Oracle RAC環境開啓歸檔模式

[oracle@testrac1 ~]$
[oracle@testrac1 ~]$ srvctl status database -d ttdbw
Instance ttdbw1 is running on node testrac1
Instance ttdbw2 is running on node testrac2
[oracle@testrac1 ~]$ srvctl stop database -d ttdbw  -o immediate
[oracle@testrac1 ~]$
[oracle@testrac1 ~]$ srvctl status database -d ttdbw
Instance ttdbw1 is not running on node testrac1
Instance ttdbw2 is not running on node testrac2
[oracle@testrac1 ~]$
[oracle@testrac1 ~]$ srvctl start database -d ttdbw -o mount
[oracle@testrac1 ~]$ srvctl status database -d ttdbw
Instance ttdbw1 is running on node testrac1
Instance ttdbw2 is running on node testrac2

[oracle@testrac1 ~]$ sqlplus sys as sysdba


SQL*Plus: Release 11.2.0.4.0 Production on Fri May 29 16:05:15 2020

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

Enter password:


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

SQL> SQL>
SQL> alter database archivelog;

Database altered.


SQL>  alter system set log_archive_dest_1='LOCATION= +FRA' scope=both sid='*';


SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
[oracle@testrac1 ~]$ srvctl stop database -d ttdbw
[oracle@testrac1 ~]$ srvctl start database -d ttdbw
[oracle@testrac1 ~]$ srvctl status database -d ttdbw
Instance ttdbw1 is running on node testrac1
Instance ttdbw2 is running on node testrac2
[oracle@testrac1 ~]$

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章