安裝DBMS_SHARED_POOL包
Oracle提供了一個管理共享池物件的介面——DBMS_SHARED_POOL包,不過這個包在11g以前的版本是預設沒有安裝的。
先看一下11.2的情況:
SQL> select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
TNS for Solaris: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 – Production
SQL> desc dbms_shared_pool
PROCEDURE ABORTED_REQUEST_THRESHOLD
Argument Name Type In/Out Default?
------------------------------
----------------------- ------ --------
THRESHOLD_SIZE NUMBER IN
PROCEDURE KEEP
Argument Name Type In/Out Default?
------------------------------
----------------------- ------ --------
NAME VARCHAR2 IN
FLAG CHAR IN DEFAULT
PROCEDURE KEEP
Argument Name Type In/Out Default?
------------------------------
----------------------- ------ --------
SCHEMA VARCHAR2 IN
OBJNAME VARCHAR2 IN
NAMESPACE NUMBER IN
HEAPS NUMBER IN
PROCEDURE KEEP
Argument Name Type In/Out Default?
------------------------------
----------------------- ------ --------
HASH VARCHAR2 IN
NAMESPACE NUMBER IN
HEAPS NUMBER IN
PROCEDURE MARKHOT
Argument Name Type In/Out Default?
------------------------------
----------------------- ------ --------
SCHEMA VARCHAR2 IN
OBJNAME VARCHAR2 IN
NAMESPACE NUMBER IN
DEFAULT
GLOBAL BOOLEAN IN DEFAULT
PROCEDURE MARKHOT
Argument Name Type In/Out Default?
------------------------------
----------------------- ------ --------
HASH
VARCHAR2 IN
NAMESPACE NUMBER IN DEFAULT
GLOBAL BOOLEAN IN DEFAULT
PROCEDURE PURGE
Argument Name Type In/Out Default?
------------------------------
----------------------- ------ --------
NAME VARCHAR2 IN
FLAG CHAR IN DEFAULT
HEAPS NUMBER IN DEFAULT
PROCEDURE PURGE
Argument Name Type In/Out Default?
------------------------------
----------------------- ------ --------
SCHEMA VARCHAR2 IN
OBJNAME VARCHAR2 IN
NAMESPACE NUMBER IN
HEAPS NUMBER IN
PROCEDURE PURGE
Argument Name Type In/Out Default?
------------------------------
----------------------- ------ --------
HASH VARCHAR2 IN
NAMESPACE NUMBER IN
HEAPS NUMBER IN
PROCEDURE SIZES
Argument Name Type In/Out Default?
------------------------------
----------------------- ------ --------
MINSIZE NUMBER IN
PROCEDURE UNKEEP
Argument Name Type In/Out Default?
------------------------------
----------------------- ------ --------
NAME VARCHAR2 IN
FLAG
CHAR IN DEFAULT
PROCEDURE UNKEEP
Argument Name Type In/Out Default?
------------------------------
----------------------- ------ --------
SCHEMA VARCHAR2 IN
OBJNAME VARCHAR2 IN
NAMESPACE NUMBER IN
PROCEDURE UNKEEP
Argument Name Type In/Out Default?
------------------------------
----------------------- ------ --------
HASH VARCHAR2 IN
NAMESPACE NUMBER IN
PROCEDURE UNMARKHOT
Argument Name Type In/Out Default?
------------------------------
----------------------- ------ --------
SCHEMA VARCHAR2 IN
OBJNAME VARCHAR2 IN
NAMESPACE NUMBER IN DEFAULT
GLOBAL BOOLEAN IN DEFAULT
PROCEDURE UNMARKHOT
Argument Name Type In/Out Default?
------------------------------
----------------------- ------ --------
HASH VARCHAR2 IN
NAMESPACE NUMBER IN DEFAULT
GLOBAL BOOLEAN IN DEFAULT
SQL>
11.2中,這個包在資料庫建立的時刻就會預設安裝完成,而且在11.2中,這個包的功能得到了進一步的增強。除了給一些已有的過程增加了過載的過程外,還新增了MARKHOT以及和它對應的UNMARKHOT過程。MARKHOT用來標記一個LIBRARY CACHE物件為熱物件,而UNMARKHOT則取消這個標記。
在10g及以前版本,這個包在資料庫建立後並未馬上建立需要手工呼叫$ORACLE_HOME/rdbms/admin/dbmspool.sql來建立:
SQL> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
TNS for Linux: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
SQL> desc dbms_shared_pool
ERROR:
ORA-04043: object dbms_shared_pool does not exist
SQL> @?/rdbms/admin/dbmspool.sql
Package created.
Grant succeeded.
View created.
Package body created.
SQL> desc dbms_shared_pool
PROCEDURE ABORTED_REQUEST_THRESHOLD
Argument Name Type In/Out Default?
------------------------------
----------------------- ------ --------
THRESHOLD_SIZE NUMBER IN
PROCEDURE KEEP
Argument Name Type In/Out Default?
------------------------------
----------------------- ------ --------
NAME VARCHAR2 IN
FLAG CHAR IN DEFAULT
PROCEDURE PURGE
Argument Name Type In/Out Default?
------------------------------
----------------------- ------ --------
NAME VARCHAR2 IN
FLAG CHAR IN DEFAULT
HEAPS NUMBER IN DEFAULT
PROCEDURE SIZES
Argument Name Type In/Out Default?
------------------------------
----------------------- ------ --------
MINSIZE NUMBER IN
PROCEDURE UNKEEP
Argument Name Type In/Out Default?
------------------------------
----------------------- ------ --------
NAME VARCHAR2 IN
FLAG CHAR IN DEFAULT
在10g中,Oracle將包體建立的呼叫指令碼新增到了dbmspool.sql中,而在更早的版本中,除了需要執行dbmspool.sql指令碼意外,還需要手工方式執行$ORACLE_HOME/rdbms/admin/prvtpool.plb指令碼來建立包體。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/4227/viewspace-720290/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle基礎包之DBMS_SHARED_POOL(十)Oracle
- mysql非安裝包安裝教程MySql
- 安裝pdksh包
- msys 包安裝
- Electron 如何打包生成exe安裝包,注意是安裝包。
- 使用DBMS_SHARED_POOL包將物件固定到共享池物件
- mysql安裝------RPM包安裝及解除安裝MySql
- ubuntu透過安裝包安裝MongodbUbuntuMongoDB
- npm 包安裝位置NPM
- pycharm如何安裝包?PyCharm
- iOS安裝包瘦身iOS
- LAMPrpm包安裝LAMP
- RPM應用——查詢(已安裝包和未安裝包)
- mysql安裝-----二進位制包安裝及解除安裝MySql
- 使用dbms_shared_pool包將物件pin到記憶體中物件記憶體
- rpm包安裝升級與解除安裝
- postgresql下載安裝包如何解壓安裝SQL
- Postgresql Linux版本安裝——RPM包安裝SQLLinux
- .net core 常用安裝包
- anaconda如何安裝包
- 快速安裝python包Python
- 中文BetterMouse破解安裝包
- LNMP一鍵安裝包LNMP
- 1、ZabbixRPM包安裝
- Ubuntu 搜尋安裝包Ubuntu
- 安裝Python requests包Python
- comfyui包的安裝UI
- pip 命令安裝模組包
- VS 預設安裝包
- Linux下怎麼安裝.deb格式的安裝包?Linux系統下.deb格式安裝包的安裝教程Linux
- PostgreSQL 安裝擴充套件包SQL套件
- iOS安裝包瘦身小記iOS
- NPM 安裝包遇到的坑!NPM
- 安裝laravel許可權包Laravel
- Redis Manager Build Redis 安裝包RedisUI
- 原始碼包安裝過程原始碼
- python 包安裝筆記Python筆記
- Windows 安裝包啟動PostgresqlWindowsSQL