ORACLE_11G_RAC模式开启日志归档过程

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u014642915/article/details/80682481

1.在ASM建归档路径
[root@tadsdb1 ~]# su - grid
[grid@tadsdb1 ~]$ asmcmd
ASMCMD> ls
ARCHDG/
CRSDG/
DATADG/
ASMCMD> cd datadg
ASMCMD> ls
TADSDB/
tadsdb-cluster/
ASMCMD> mkdir arch
ASMCMD> cd arch
ASMCMD> pwd
+datadg/arch

2.修改归档路径参数
检查节点状态
[grid@tadsdb1 ~]$ srvctl status database -d tadsdb
Instance tadsdb1 is running on node tadsdb1
Instance tadsdb2 is running on node tadsdb2

[grid@tadsdb1 ~]srvctlstopdatabasedtadsdb[oracle@tadsdb1 ] sqlplus / as sysdba
SQL> alter system set log_archive_dest_1=’location=+datadg/arch’ scope=spfile sid=’*’;

–alter system set log_archive_dest_1=’location=/u01/oracle/admin/archivelog’ scope=spfile sid=’*’;

System altered.

3.关闭数据库,全部节点都要关闭
[grid@tadsdb1 ~]srvctlstopdatabasedtadsdb[grid@tadsdb1 ] srvctl status database -d tadsdb
Instance tadsdb1 is not running on node tadsdb1
Instance tadsdb2 is not running on node tadsdb2

4.将一个节点数据库启动到mount状态
[grid@tadsdb1 ~]$ srvctl start instance -d tadsdb -i tadsdb1 -o mount

5.修改数据库的归档模式并启动数据库
SQL> alter database archivelog;

Database altered.

SQL> alter database open;

Database altered.

SQL> alter database open;

Database altered.

6.检查状态
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination +DATADG/arch
Oldest online log sequence 54
Next log sequence to archive 59
Current log sequence 59

7.启动所有节点数据库
[grid@tadsdb1 ~]$ srvctl start database -d tadsdb

8.检查节点状态
[grid@tadsdb1 ~]$ srvctl status database -d tadsdb
Instance tadsdb1 is running on node tadsdb1
Instance tadsdb2 is running on node tadsdb2

阅读更多
换一批

没有更多推荐了,返回首页