profile的resourcelimits和資源計(jì)劃resource_manager_plan的limit

profile
使用參數(shù)RESOURCE_LIMIT 
RESOURCE_LIMIT determines whether resource limits are enforced in database profiles
RESOURCE_LIMIT決定是否在數(shù)據(jù)庫(kù)概要文件中執(zhí)行資源限制
Resource limits for passwords work even with resource_limit = false
即使resource_limit = false, password的資源限制也會(huì)生效
該參數(shù)為false的話,發(fā)現(xiàn)FAILED_LOGIN_ATTEMPTS是正常生效的,即輸入10次密碼就鎖定用戶。

resource parameters有16個(gè)參數(shù),見如上sql查詢的resource_name 
SELECT resource_name FROM dba_profiles where profile='DEFAULT' order by 1;

SESSIONS_PER_USER:pecify the number of concurrent sessions to which you want to limit the user.
限制每個(gè)用戶所允許建立的最大并發(fā)會(huì)話數(shù)。

CPU_PER_SESSION:Specify the CPU time limit for a session, expressed in hundredth of seconds.
限制每個(gè)會(huì)話所能使用的CPU 時(shí)間。參數(shù)值是一個(gè)整數(shù),單位是百分之一秒。

CPU_PER_CALL:Specify the CPU time limit for a call (a parse, execute, or fetch), expressed in hundredths of seconds.
用于指定每條SQL 語(yǔ)句可占用的最大CPU 時(shí)間,單位是百分之一秒。

CONNECT_TIME:Specify the total elapsed time limit for a session, expressed in minutes.
限制每個(gè)會(huì)話能連接到數(shù)據(jù)庫(kù)的最長(zhǎng)時(shí)間,超過(guò)這個(gè)時(shí)間會(huì)話將自動(dòng)斷開。參數(shù)值是一個(gè)整數(shù),單位是分鐘。

IDLE_TIME:Specify the permitted periods of continuous inactive time during a session, expressed in minutes. Long-running queries and other operations are not subject to this limit.
限制每個(gè)會(huì)話所允許的最長(zhǎng)連續(xù)空閑時(shí)間,超過(guò)這個(gè)時(shí)間會(huì)話將自動(dòng)斷開。參數(shù)值是一個(gè)整數(shù),單位是分鐘。

LOGICAL_READS_PER_SESSION:Specify the permitted number of data blocks read in a session, including blocks read from memory and disk.
限制每個(gè)會(huì)話所能讀取的數(shù)據(jù)塊數(shù)目。

LOGICAL_READS_PER_CALL:Specify the permitted number of data blocks read for a call to process a SQL statement (a parse, execute, or fetch).
用于指定每條SQL 語(yǔ)句最多所能讀取的數(shù)據(jù)塊數(shù)目。

PRIVATE_SGA:Specify the amount of private space a session can allocate in the shared pool of the system global area (SGA). Refer to size_clause for information on that clause.
每個(gè)會(huì)話分配的私有SGA 區(qū)大小(以字節(jié)為單位)。該參數(shù)只對(duì)共享服務(wù)器模式有效。

COMPOSITE_LIMIT:Specify the total resource cost for a session, expressed in service units. Oracle Database calculates the total service units as a weighted sum of CPU_PER_SESSION, CONNECT_TIME, LOGICAL_READS_PER_SESSION, and PRIVATE_SGA.
指定以服務(wù)單位表示的會(huì)話的總資源成本。Oracle數(shù)據(jù)庫(kù)將總服務(wù)單元計(jì)算為CPU_PER_SESSION、CONNECT_TIME、LOGICAL_READS_PER_SESSION和PRIVATE_SGA的加權(quán)和。

剩下密碼相關(guān)的7個(gè)
FAILED_LOGIN_ATTEMPTS  
PASSWORD_LIFE_TIME  
PASSWORD_REUSE_TIME
PASSWORD_REUSE_MAX  
PASSWORD_LOCK_TIME  
PASSWORD_GRACE_TIME  
PASSWORD_VERIFY_FUNCTION  





RESOURCE_MANAGER_PLAN,對(duì)應(yīng)包dbms_resource_manager
一個(gè)plan里面可以看到哪些consumer groups調(diào)用了這個(gè)plan
一個(gè)consumer groups里面可以看到有哪幾個(gè)用戶

使用參數(shù)RESOURCE_MANAGER_PLAN
RESOURCE_MANAGER_PLAN specifies the top-level resource plan to use for an instance.
The resource manager will load this top-level plan along with all its descendants(subplans, directives, and consumer groups). If you do not specify this parameter, the resource manager is off by default.
RESOURCE_MANAGER_PLAN指定要為一個(gè)實(shí)例使用的top-level資源計(jì)劃
資源管理器將與它的所有后代一起加載這個(gè)top-level計(jì)劃(子計(jì)劃、指示和消費(fèi)者組)。如果不指定此參數(shù),則資源管理器默認(rèn)是關(guān)閉的。
RESOURCE_MANAGER_PLAN = plan_name

主要有如下紅色字體的5個(gè)參數(shù)類,每個(gè)參數(shù)類有具體的參數(shù)配置
Parallelism:Specify a limit on the degree of parallelism for any operation issued by this consumer group, a limit on the total number of parallel servers that can be used by all sessions in this consumer group, and the maximum time a parallel statement can be queued.
Max Degree of Parallelism
Max Percentage of Parallel Servers Target
Parallel Queue Timeout
并行性:指定此消費(fèi)者組發(fā)出的任何操作的并行度的限制、此消費(fèi)者組中所有會(huì)話可以使用的并行服務(wù)器的總數(shù)的限制,以及并行語(yǔ)句可以排隊(duì)的最長(zhǎng)時(shí)間。
主要有如下三個(gè)參數(shù)
最大并行度
目標(biāo)服務(wù)器的最大并行度百分比
并行隊(duì)列超時(shí)時(shí)間

Session Pool:Specify a limit on the maximum number of concurrently active sessions for a consumer group. All other sessions will wait in an activation queue.
Max Number of Active Sessions
Activation Queue Timeout(sec)
會(huì)話池:指定消費(fèi)者組當(dāng)前活動(dòng)會(huì)話的最大會(huì)話數(shù)。所有其他會(huì)話將在激活隊(duì)列中等待。
主要有如下兩個(gè)參數(shù)
活動(dòng)會(huì)話的最大數(shù)量
激活隊(duì)列超時(shí)時(shí)間,單位秒

Undo Pool:Specify the maximum amount of undo that can be active and uncommitted for a consumer group.
Max Undo Space(KB) 
回滾池:指定活動(dòng)和未提交的消費(fèi)者組的最大回滾數(shù)量。
主要有如下參數(shù)
最大回滾空間,單位KB

Thresholds:Specify the time duration or the resource limits under which a session can execute in a consumer group. If any of the limits are exceeded, the session can be switched to another consumer group, the session's SQL operation can be canceled, or the session can be killed.
Execution Time Limit (Sec)
I/O Limit (MB)
I/O Request Limit (Requests)
閾值:指定一個(gè)消費(fèi)者組的會(huì)話時(shí)間或資源限制。如果超出了任何限制,會(huì)話可以切換到另一個(gè)使用者組,會(huì)話的SQL操作可以被取消,或者會(huì)話可以被殺死。
主要參數(shù)有如下三個(gè)
執(zhí)行時(shí)間限制,單位秒
I/O限制,單位MB
I/O請(qǐng)求限制,單位次數(shù)

Idle Time:Specify the maximum time a session in the consumer group can be idle.
Max Idle Time (sec)
Max Idle Time if Blocking Another Session (sec)
空閑時(shí)間:指定的消費(fèi)者組的會(huì)話的最大空閑時(shí)間。
主要參數(shù)有如下兩個(gè)
最大空閑時(shí)間,單位秒
阻塞另一個(gè)會(huì)話時(shí)的最大空閑時(shí)間,單位秒


兩者相同的地方,只有Idle Time這項(xiàng)。profile針對(duì)使用這個(gè)profile的用戶,RESOURCE_MANAGER_PLAN針對(duì)使用這個(gè)plan的某個(gè)Consumer Group中的用戶

網(wǎng)站欄目:profile的resourcelimits和資源計(jì)劃resource_manager_plan的limit
地址分享:http://muchs.cn/article32/ghehpc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供外貿(mào)建站做網(wǎng)站、搜索引擎優(yōu)化、域名注冊(cè)、虛擬主機(jī)、軟件開發(fā)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

外貿(mào)網(wǎng)站建設(shè)