• ASM实例修改SYS密码


    修改ASM实例中SYS用户密码

    How To Change ASM SYS PASSWORD ? (文档 ID 452076.1)    
    
    Oracle Database - Enterprise Edition - Version 10.2.0.1 to 11.2.0.3 [Release 10.2 to 11.2]
    
    SOLUTION
    The password should be the one provided when the password file was created,also
    REMOTE_LOGIN_PASSWORDFILE should be
    set to EXCLUSIVE on all instances. If you want to change the password then you would need to recreate the password file using the orapwd utility Recreate the password file for the ASM instance as follows: 1. Set the ORACLE_HOME and ORACLE_SID to the ASM instance 2. connect /as sysdba from sqlplus 3. If the value of the "remote_login_passwordfile" parameter in the pfile or spfile is EXCLUSIVE, you must shutdown your instance 4. RENAME or DELETE the existing password file PWD<SID>.ora( In Windows) / orapw<SID> ( in UNIX) 5. Issue the command: WINDOWS: orapwd file=<ORACLE_HOME>/database/PWD<SID>.ora password=<sys_password> UNIX: orapwd file=<ORACLE_HOME>/dbs/orapw<SID> password=<sys_password> The passwordfile can be recreated for ASM while ASM instance is up. Usually for normal
    DB instances, we recommended that DB instances be shutdown before changing the passwordfile. In
    11.2 you can use asmcmd to change the password for single instance environment as follows $ export ORACLE_SID=+ASM $ asmcmd ASMCMD> passwd sys Enter old password (optional): ****** Enter new password: ****** In Cluster environment ASMCMD> orapwusr --modify --password sys Enter password: ****** ASMCMD> exit NOTE: This is not applicable for SYSASM privilege. 如果ASM实例参数是共享的,则不需要关闭ASM实例,默认都是非共享的。 因此实际10.2.0.5 RAC环境修改ASM实例SYS密码,节点1关闭db,关闭asm实例,orapw修改sys密码后,启动节点1 asm,db,之后节点二重复操作。 如果是11g,单节点使用asm实例可以使用ASMCMD>passwd sys; RAC使用 ASMCMD>orapwusr --modify --password sys

    ASMCMD> orapwusr --modify --password sys
    Enter password: *********

    $ sqlplus sys/oracle123 as sysdba

    SQL> 

  • 相关阅读:
    (ZOJ 3329) One Person Game (概率DP)
    python爬虫之json数据处理
    1034 Head of a Gang 图的遍历,map使用
    1030 Travel Plan Dijkstra+dfs
    vs C++ scanf 不安全
    1021. Deepest Root DFS 求最长无环路径
    1013. Battle Over Cities 用dfs计算联通分量
    无法解析的外部符号
    PAT DFS,BFS,Dijkstra 题号
    1004 Counting Leaves 对于树的存储方式的回顾
  • 原文地址:https://www.cnblogs.com/lvcha001/p/11279642.html
Copyright © 2020-2023  润新知