zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    shell中逻辑与的两种表示方法
    Git学习之Git恢复进度
    RH318之域控服务器
    《征服C指针》读书笔记
    2013年:一个技术领导的启程
    sqlite的一个Unable to Open database file的坑爹错误
    我的2013——青春的躁动
    C/C++注册动态对象到Lu系统并进行运算符重载
    Geeks面试题:Min Cost Path
    Leetcode Gray Code
  • 原文地址:https://www.cnblogs.com/ChineseIntelligentLanguage/p/6513193.html
Copyright © 2011-2022 走看看