欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

oracle 11G dataguard 恢复

程序员文章站 2022-08-09 10:53:39
检查主备机的sys 密码是否一致,忘记密码可以修改,同步 。alter user sys identified by xxx; orapwd file=oraxxx.ora password=admin entries=40force=y; 检查静态tnsnames.ora 和listener.or... ......
  1. 检查主备机的sys 密码是否一致,忘记密码可以修改,同步 。alter user sys identified by xxx; orapwd file=oraxxx.ora password=admin entries=40 force=y; 
  2. 检查静态tnsnames.ora 和listener.ora ,确保正常测试:sqlplus sys/oracle@comstar2 as sysdba / sqlplus sys/oracle@comstar1 as sysdba
  3. 备库 sql>shutdown immediate,删除原有的数据文件。
  4. rman target sys/oracle@comstar1 auxiliary sys/oracle@comstar2 nocatalog
  5. duplicate target database for standby from active database nofilenamecheck;