1. 程式人生 > >35 Oracle深度學習筆記——關於dbms shared pool MARKHOT

35 Oracle深度學習筆記——關於dbms shared pool MARKHOT

ali sdn 固定 idc num 共享池 font default edit

35.Oracle深度學習筆記——關於dbms_shared_pool. MARKHOT

歡迎轉載,轉載請標明出處:http://blog.csdn.net/notbaron/article/details/50859148

BMS_SHARED_POOL包提供存儲過程來將PL/SQL對象或SQL遊標固定到Oracle 共享池。一旦這些對象固定之後,將不再參與aged out,而

是常駐內存,即便是使用alter system flush shared_pool也不會將對象清除出共享池。

查看包

中的過程命令如下:

idle> 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

ArgumentName 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

關於MARKHOT

This procedure marks a library cache objectas a hot object.

語法如下:

DBMS_SHARED_POOL.MARKHOT (

schema VARCHAR2,

objname VARCHAR2,

namespace NUMBER DEFAULT1, global BOOLEAN DEFAULT TRUE);

DBMS_SHARED_POOL.MARKHOT (

hash VARCHAR2,

namespace NUMBER DEFAULT 1,

global BOOLEAN DEFAULTTRUE);

也可以使用KEEP過程

查看在內存中的對象

SELECT * FROM v$db_object_cache;

再分享一下我老師大神的人工智能教程吧。零基礎!通俗易懂!風趣幽默!希望你也加入到我們人工智能的隊伍中來!http://www.captainbed.net

35 Oracle深度學習筆記——關於dbms shared pool MARKHOT