[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
- [20161012]linux free的補充.txtLinux
- [20160407]bbed修改檔案頭2(補充).txt
- [20180105]oracle臨時表補充.txtOracle
- [20120601]ITL的問題補充.txt
- [20241016]Oracle C functions annotations補充.txtOracleFunction
- [20170916]sqlplus set array最小2補充.txtSQL
- [20120809]學習物化檢視(補充).txt
- [20220603]測試quiz night(補充).txtUI
- [20211013]測試遠端監聽補充.txt
- JVM補充篇JVM
- 聯通性補充
- [20190329]探究sql語句相關mutexes補充2.txtSQLMutex
- css雜項補充CSS
- redis筆記補充Redis筆記
- Servlet學習補充Servlet
- Oracle 補充日誌Oracle
- UDP聊天程式補充UDP
- lambda(持續補充)
- while迴圈補充While
- step1 補充
- linux命令補充Linux
- [20190211]簡單測試埠是否開啟(補充).txt
- [20211021]windows新建文字檔案帶日期(補充).txtWindows
- [20200414]Linux下快速刪除大量檔案(補充).txtLinux
- [20220120]超長sql語句補充4.txtSQL
- [20181128]toad連線資料庫的問題(補充).txt資料庫
- [20181030]避免表示式在sql語句中(10g)(補充).txtSQL
- [20220317]補充完善TPT 顯示欄位列的指令碼.txt指令碼
- [20220309]查詢x$ksmmem遇到的疑問補充.txt
- [20171115]恢復資料檔案塊頭3補充.txt
- [20171115]恢復資料檔案塊頭4補充.txt
- [20130723]ORACLE 12C Invisible Columns的補充.txtOracle
- [20130125]DML操作出現交集的情況[補充].txt
- Jaeger知識點補充
- 陣列常用方法補充陣列
- 面試題抽答(補充)面試題
- 有關元件的補充~~~~~~~元件