在【企業(yè)管理器】中創(chuàng)建概要文件
(1)如圖8.26所示。
(2)出現(xiàn)如圖8.27所示的創(chuàng)建概要文件的【一般信息】選項(xiàng)卡。
(3)圖8.28所示為創(chuàng)建概要文件的【口令】選項(xiàng)卡。
(4)出現(xiàn)如圖8.29所示界面。
(5)按照上述配置創(chuàng)建概要文件的sql代碼如下。
―――――――――――――――――――――――――――――――――――――
create profile "tempprofile"
/*【一般信息】選項(xiàng)卡對(duì)應(yīng)的配置參數(shù)*/
limit cpu_per_session 1000
cpu_per_call 1000
connect_time 30
idle_time default
sessions_per_user 10
logical_reads_per_session 1000
logical_reads_per_call 1000
private_sga 16k
composite_limit 1000000
/*【口令】選項(xiàng)卡對(duì)應(yīng)的配置參數(shù)*/
failed_login_attempts 3
password_lock_time 5
password_grace_time 60
password_life_time 30
password_reuse_max
default password_reuse_time 30
password_verify_function default
―――――――――――――――――――――――――――――――――――――
【參見光盤文件】:第8章/createprofile.sql。
在【sqlplus worksheet】中創(chuàng)建概要文件
在【sqlplus worksheet】中直接執(zhí)行createprofile.sql 文件將完成概要文件的創(chuàng)建,執(zhí)行結(jié)果如圖8.30所示。表明已經(jīng)成功創(chuàng)建概要文件tempprofile。
概要文件的修改
(1)如圖8.31所示。
(2)在出現(xiàn)的編輯概要文件的【一般信息】和【口令】選項(xiàng)卡中可以修改概要文件的配置參數(shù),對(duì)應(yīng)修改概要文件的sql語句為“alter profile”。
實(shí)例:將cpu/會(huì)話參數(shù)設(shè)置為6000的sql代碼如下。
―――――――――――――――――――――――――――――――――――――
alter profile "tempprofile" limit cpu_per_session 6000
―――――――――――――――――――――――――――――――――――――
【參見光盤文件】:第8章/alterprofile.sql。
將概要文件分配給用戶
(1)如圖8.32的【分配概要文件】界面。
(2)上述過程對(duì)應(yīng)的sql代碼如下。
―――――――――――――――――――――――――――――――――――――
alter user tempuser profile tempprofile;
―――――――――――――――――――――――――――――――――――――
【參見光盤文件】:第8章/alteruserprofile.sql。
概要文件的刪除
(1)如圖8.33所示的【概要文件刪除確認(rèn)】界面。
(2)刪除概要文件的sql代碼如下。
―――――――――――――――――――――――――――――――――――――
drop profile tempprofile
―――――――――――――――――――――――――――――――――――――
【參見光盤文件】:第8章/dropprofile.sql。
新聞熱點(diǎn)
疑難解答
圖片精選