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

 

转载于:https://www.cnblogs.com/ChineseIntelligentLanguage/p/6513193.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值