1) 配置檔案(profile)是乙個只允許具有create profile 的許可權的使用者設定口令管理和資源限制的物件。
2) 建立資料庫時會建立乙個預設(default)配置檔案,該檔案對所有資源不做任何限制。受resource_limit引數限制,只有置為true才起作用3) 乙個使用者只能擁有1個配置檔案
4) 配置檔案分兩部分,資源引數(resource parameters) 和密碼引數(password parameters),只有在resource_limit引數設定為true時
,資源引數的設定才有效,而密碼引數設定始終有效,不受resource_limit引數的限制。sql>alter system set resource_limit=true scope=both;//該值預設為false
![](https://pic.w3help.cc/dd4/cccdffd6e9612a99afd685042ab81.jpeg)
不受resource_limit引數限制,任何時候都起作用。
sql>select * from dba_profile where profile=』profile_name』;
可以為每個引數指定unlimiyed或者default值,前者設定該引數無任何限制,後者則指定該引數值參考default profile的設定值。
sql>create profile profile_name limit
sessions_per_user
value
cpu_per_session
value
cpu_per_call
value
connect_time
value
idle_time
value
logical_reads_per_session
value
logical_reads_per_call
value
composite_limit
value
private_sga
value
[ k | m ]
failed_login_attempts
value
password_life_time
value
password_reuse_time
value
password_reuse_max
value
password_lock_time
value
password_grace_time
value
password_verify_function
function_name
;更改引數時, 對於當前連線修改不生效。只在下次連線時才生效
sql>alter profile profile_name limit reference_name new_value;
如果沒有使用cascade引數,則要求被刪除的profile沒有被指定給任何使用者,如果使用了cascade引數,則被刪除的profile可以已經被指定給其他使用者,被刪除後,將使用系統default profile代替,提供給該使用者。
sql>drop profile profile_name [cascade]
任何使用者都只具有乙個有效的配置檔案。
sql>alter user user_name profile profile_name;
也可以在建立使用者時指定。
sql>create user user_name identitied by password profile profile_name;
另請參見oracle asm知識儲備
oracle archive log(歸檔日誌)知識整理
oracle過程小結
Oracle profile 使用技巧
給scott使用者分配乙個profile要求如下 1 嘗試登入的次數最多4次 2 如果4次輸入錯誤,則鎖定該使用者2天 3 密碼每隔5天修改一次,寬限期為2天 答 sql conn sys orcl as sysdba sql create profile scottprofile limit fa...
Oracle Profile 配置檔案
profile是使用者的配置檔案,它是密碼限制,資源限制的命名集合。利用profile 可以對資料庫使用者進行基本的資源管理,密碼管理。1 建立profile 的語法 create profile profile test1 limit failed login attempts 3 passwor...
Oracle Profile概要檔案管理使用者密碼
目標 1.實現使用者定期修改密碼 2.控制使用者密碼的登入出錯的次數 3.控制使用者舊密碼的生命週期 1.profile的概述 profile是oracle提供的一種針對使用者資源使用和密碼管理的策略配置。借助profile,可以實現特定使用者資源上的限制和密碼管理規則的應用。在實際的應用中,pro...