alter user sys identified by Sys;
方法二(推荐):[oracle@rac1 ~]$ cd $ORACLE_HOME/dbs[oracle@rac1 dbs]$ pwd/u01/app/oracle/product/11.2.0/db_1/dbs[oracle@rac1 dbs]$ orapwd file=orapwapac password=sys force=y[oracle@rac1 dbs]$ ls -ltr orapwapac-rw-r----- 1 oracle oinstall 1536 Jul 25 18:21 orapwapac[oracle@rac1 dbs]$
注意:密码文件格式:orapw+sid,如orapwapac2.2 备库的监听文件listener.ora备库的监听一定要是静态,静态,静态,重要的事件说三遍[oracle@oa_new_db admin]$ cat listener.ora,添加如下配置:SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (GLOBAL_DBNAME = orcl) (SID_NAME = orcl) ))
注:GLOBAL_DBNAME和SID_NAME,根据实际情况,改成实际值即可2.3 主备库的tnsname.oraORCL =(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = 172.3.0.122)(PORT = 1521))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = orcl)))ORCL_DG =(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 172.3.0.163)(PORT = 1521)))(CONNECT_DATA =(SERVICE_NAME = orcl)(UR = A)))注意:备库要添加选项(UR=A)2.4主备验证连通性主备节点上执行,如果都能正常连通,说明正常sqlplus sys/Sys@orcl as sysdbasqlplus sys/Sys@orcl_dg as sysdba
2.5 创建备库(主库上执行)[oracle@rac1 ~]$rman target sys/Sys@orcl auxiliary sys/Sys@orcl_dgRMAN> duplicate target database for standby from active database nofilenamecheck;
(图片来源网络,侵删)
0 评论