[20211116]plsql_code_type=native補充.txt
[20211116]plsql_code_type=native補充.txt
--//以前曾經測試過設定plsql_code_type=native會編譯的過程和包在/dev/shm,補充一些測試:
1.環境:
SCOTT@book> @ ver1
PORT_STRING VERSION BANNER
------------------------------ -------------- --------------------------------------------------------------------------------
x86_64/Linux 2.4.xx 11.2.0.4.0 Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
SCOTT@book> show parameter plsql
NAME TYPE VALUE
---------------------- --------- --------------
plsql_ccflags string
plsql_code_type string INTERPRETED
plsql_debug boolean FALSE
plsql_optimize_level integer 2
plsql_v2_compatibility boolean FALSE
plsql_warnings string DISABLE:ALL
2.測試:
SCOTT@book> alter session set plsql_code_type=native ;
Session altered.
SCOTT@book> select * from dba_plsql_object_settings where plsql_code_type = 'NATIVE';
no rows selected
--//當前沒有編譯的報是型別NATIVE。
create or replace package bla as
procedure foo;
end;
/
create or replace package body bla as
procedure foo is begin null; end;
end;
/
SCOTT@book> select * from dba_plsql_object_settings where plsql_code_type = 'NATIVE'
2 @ prxx
==============================
OWNER : SCOTT
NAME : BLA
TYPE : PACKAGE
PLSQL_OPTIMIZE_LEVEL : 2
PLSQL_CODE_TYPE : NATIVE
PLSQL_DEBUG : FALSE
PLSQL_WARNINGS : DISABLE:ALL
NLS_LENGTH_SEMANTICS : BYTE
PLSQL_CCFLAGS :
PLSCOPE_SETTINGS : IDENTIFIERS:NONE
==============================
OWNER : SCOTT
NAME : BLA
TYPE : PACKAGE BODY
PLSQL_OPTIMIZE_LEVEL : 2
PLSQL_CODE_TYPE : NATIVE
PLSQL_DEBUG : FALSE
PLSQL_WARNINGS : DISABLE:ALL
NLS_LENGTH_SEMANTICS : BYTE
PLSQL_CCFLAGS :
PLSCOPE_SETTINGS : IDENTIFIERS:NONE
PL/SQL procedure successfully completed.
--//可以透過檢視確定那些包編譯是NATIVE的。
$ ls -l /dev/shm/
total 4
-rwx------ 1 oracle oinstall 424 2021-11-16 09:39:36 PESLD_book_32d0004_082c567c00000000
--//java類透過native編譯可以透過如下查詢。
select * from dba_java_methods where is_native = 'YES' ;
--//或者查詢:
select * from sys.ncomp_dll$ n, dba_objects o where n.obj# = o.object_id;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-2842353/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [20210621]plsql_code_type=native.txtSQL
- [20180928]ora-01426(補充).txt
- [20241016]Oracle C functions annotations補充.txtOracleFunction
- [20211215]提示precompute_subquery補充.txt
- [20220603]測試quiz night(補充).txtUI
- [20211221]提示precompute_subquery補充2.txt
- [20210803]使用那個shared pool latch(補充).txt
- [20211013]測試遠端監聽補充.txt
- [20221014]TNS-12543 TNSdestination host unreachable(補充).txt
- [20180129]簡單探究cluster table(補充)4.txt
- [20181229]簡單探究cluster table(補充)3.txt
- [20181227]簡單探究cluster table(補充)2.txt
- [20220119]超長sql語句補充3.txtSQL
- [20220120]超長sql語句補充4.txtSQL
- [20211111]補充完善ash_wait_chains指令碼.txtAI指令碼
- [20211025]12c sequence nocache測試補充.txt
- [20200414]Linux下快速刪除大量檔案(補充).txtLinux
- [20190214]11g Query Result Cache RC Latches補充.txt
- [20190211]簡單測試埠是否開啟(補充).txt
- [20211221]記錄使用sqlplus的小問題補充.txtSQL
- [20211021]windows新建文字檔案帶日期(補充).txtWindows
- [20220309]查詢x$ksmmem遇到的疑問補充.txt
- [20201208]為什麼返回2行記錄補充.txt
- [20190329]探究sql語句相關mutexes補充2.txtSQLMutex
- [20181128]toad連線資料庫的問題(補充).txt資料庫
- [20190312]關於增量檢查點的疑問(補充).txt
- [20201116]測試CURSOR_SPACE_FOR_TIME(10g)(補充).txt
- [20220317]補充完善TPT 顯示欄位列的指令碼.txt指令碼
- [20211009]8K資料庫最大行號補充.txt資料庫
- [20210708]find -mtime +0 0 -0時間問題補充.txt
- [20210625]find -mtime +N N -N時間問題補充.txt
- [20210626]find -mtime +N N -N時間問題補充.txt
- [20181030]避免表示式在sql語句中(10g)(補充).txtSQL
- [20230227]探究v$session.SQL_EXEC_ID在共享池(補充).txtSessionSQL
- [20230303]生成相關備庫的awr報表(補充說明).txt
- [20211011]計算sql_id.sh指令碼的一些補充.txtSQL指令碼
- JVM補充篇JVM
- linux命令補充Linux