CHIL-ORACLE-修改密码

--1.修改oracle用户密码
    ->dos:  set oracle_sid =数据库名;
    ->输入: sqlplus “/as  sysdata” ; 进入oracle管理界面
    ->查找指定用户:select username ,password  from  dba_users where  username=’SYSTEM’;
    ->修改system密码:alter user system identified by password;
    ->使用修改后的密码执行备份工作:exy  system/oracle  full=y  file=d:\grx.dmp;
    ->将密码改回原始状态
          Sqlplus  “/as  sysdba”
          alter  user  system  identified  by  values123456’ ;
          
管理口令及相关资源(managing password security and resourecs)

--2.修改用户账号、解锁及口令(controlling account lock and password)
alter user jumcky identified by oracle account unlock;

--3.user_privided password function
function_name(userid in varchar2(30),password in varchar2(30),old_password in varchar2(30)) return boolean

--4.创建概要文件:设置口令参数(create a profile : password setting)
create profile grace_5 limit failed_login_attempts 3
password_lock_time unlimited password_life_time 30
password_reuse_time 30 password_verify_function verify_function
password_grace_time 5;

--5.修改概要文件(altering a profile)
alter profile default limit
failed_lofin_attemppts 3
password_life_time 60;

--6.删除概要文件(drop a profile)
drop profile grace_5 [cascade];

--7.创建概要文件:设置资源限制(create a profile : resource limit)
create profile developer_prof limit sessions_per_user 2
cpu_per_session 10000 idle_time 60 connect_time 480;

--8.view =>resource_cost : alter resource cost dba_users,dba_profiles

 

posted @ 2017-03-07 09:58  CHIL  阅读(296)  评论(0编辑  收藏  举报