标签:pre account modify ora option def spool temp 十分
1.proflie优势
使用profile可以批量管理用户参数,尤其是在一批用户具有相同的参数配置时,十分便捷。
2.profile可配置用户参数
【Account id】【Default database】:用户下次登录或用户提交SET SESSION ACCOUNT命令时生效。
【Spool space】【Temporary space】:立即生效。
【Password】:用户下次登录时生效。
3.赋予操作proflie权限
grant create profile,drop profile to citic_edw with grant option;
4.创建修改删除查询proflie(profileemployee_p)
create profile employee_p as account=‘‘; modify profile employee_p as account=‘‘; drop profile employee_p; select * from dbc.profileinfov; --查看profile信息
select * from dbc.AccountInfoV; --查看用户account信息
select user,role,profile,database; --查看当前用户信息
5.用户使用指定profile(profileemployee_p或NULL)
create user Emp01 as …, profile = employee_p; modify user Emp02 as profile = employee_p; modify user Emp03 as profile=NULL;
6.用户参数生效优先顺序
(1)指定session级别的Database或者Account id
(2)Profile中的指定的用户参数
(3)CREATE USER or MODIFY USER语句指定的用户参数
7.创建profile完整实例
CREATE PROFILE Employee_P AS ACCOUNT = (‘$M0_EDUC&S&D&H‘, ‘$L0_EDUC&S&D&H‘) DEFAULT DATABASE = HR_VM SPOOL = 1E9 TEMPORARY = 500E6 PASSWORD = ( EXPIRE = 90, MINCHAR = 8, MAXLOGONATTEMPTS=3, LOCKEDUSEREXPIRE = 60, REUSE = 180, DIGITS = ‘R‘, RESTRICTWORDS = ‘Y‘, SPECCHAR = ‘P‘);
标签:pre account modify ora option def spool temp 十分
原文地址:https://www.cnblogs.com/badboy200800/p/9838378.html