Oracle 12c Rac Set Archive Mode
Oracle 12c Rac Set Archive Mode
node1:
SQL> show parameter db_recovery_file_dest
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_recovery_file_dest string +CRSFRA
db_recovery_file_dest_size big integer 4800M
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.
Total System Global Area 7766568960 bytes
Fixed Size 4665928 bytes
Variable Size 2432699832 bytes
Database Buffers 5318377472 bytes
Redo Buffers 10825728 bytes
Database mounted.
SQL>
SQL>
SQL> alter database archivelog;
Database altered.
show parameter name
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
cell_offloadgroup_name string
db_file_name_convert string
db_name string testdb
db_unique_name string testdb
global_names boolean FALSE
instance_name string testdb_1
lock_name_space string
log_file_name_convert string
pdb_file_name_convert string
processor_group_name string
service_names string testdb
SQL> alter system set db_recovery_file_dest='+CRSFRA' sid='testdb_1';
System altered.
SQL> alter system set db_recovery_file_dest='+CRSFRA' sid='testdb_2';
System altered.
SQL> alter system set log_archive_format ='arch1_%s_%R_%T.arc' scope=spfile sid='testdb_1';
System altered.
SQL> alter system set log_archive_format ='arch1_%s_%R_%T.arc' scope=spfile sid='testdb_2';
System altered.
SQL> alter database open;
SQL> alter system set cluster_database=TRUE scope=spfile sid='*';
System altered.
SQL>
SQL>
SQL> shutdown immediate;
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 TESTCS1 MOUNTED
4 PDB_PLUG_NOCOPY MOUNTED
5 CRM MOUNTED
6 ESSDB MOUNTED
8 PDB_PLUG_MOVE MOUNTED
SQL> select con_id,dbid,NAME,OPEN_MODE from v$pdbs;
CON_ID DBID NAME OPEN_MODE
---------- ---------- ------------------------------ ----------
2 4069264041 PDB$SEED READ ONLY
3 4133352937 TESTCS1 MOUNTED
4 518394074 PDB_PLUG_NOCOPY MOUNTED
5 2880313921 CRM MOUNTED
6 983511936 ESSDB MOUNTED
8 1625017221 PDB_PLUG_MOVE MOUNTED
6 rows selected.
SQL> alter PLUGGABLE database all open;
Pluggable database altered.
SQL> select con_id,dbid,NAME,OPEN_MODE from v$pdbs;
CON_ID DBID NAME OPEN_MODE
---------- ---------- ------------------------------ ----------
2 4069264041 PDB$SEED READ ONLY
3 4133352937 TESTCS1 READ WRITE
4 518394074 PDB_PLUG_NOCOPY MOUNTED
5 2880313921 CRM READ WRITE
6 983511936 ESSDB READ WRITE
8 1625017221 PDB_PLUG_MOVE READ WRITE
6 rows selected.
node2:
QL> ALTER DATABASE FORCE LOGGING;
Database altered.
SQL> startup force;
ORACLE instance started.
Total System Global Area 7766568960 bytes
Fixed Size 4665928 bytes
Variable Size 2499808696 bytes
Database Buffers 5251268608 bytes
Redo Buffers 10825728 bytes
select con_id,dbid,NAME,OPEN_MODE from v$pdbs;Database mounted.
Database opened.
SQL>
CON_ID DBID NAME OPEN_MODE
---------- ---------- ------------------------------ ----------
2 4069264041 PDB$SEED READ ONLY
3 4133352937 TESTCS1 MOUNTED
4 518394074 PDB_PLUG_NOCOPY MOUNTED
5 2880313921 CRM MOUNTED
6 983511936 ESSDB MOUNTED
8 1625017221 PDB_PLUG_MOVE MOUNTED
6 rows selected.
SQL> alter PLUGGABLE database all open;
Pluggable database altered.
SQL> select con_id,dbid,NAME,OPEN_MODE from v$pdbs;
CON_ID DBID NAME OPEN_MODE
---------- ---------- ------------------------------ ----------
2 4069264041 PDB$SEED READ ONLY
3 4133352937 TESTCS1 READ WRITE
4 518394074 PDB_PLUG_NOCOPY MOUNTED
5 2880313921 CRM READ WRITE
6 983511936 ESSDB READ WRITE
8 1625017221 PDB_PLUG_MOVE READ WRITE
6 rows selected.
SQL> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 3672
Next log sequence to archive 3674
Current log sequence 3674
SQL>
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/13750068/viewspace-1064158/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 更改Archive ModeHive
- Enabling Archive Log mode in OracleHiveOracle
- Oracle RAC active-passive modeOracle
- Oracle 12c RAC: MGMTDBOracle
- 12c in-database archiveDatabaseHive
- Oracle 12C RAC DataGuard實戰Oracle
- 深入理解Oracle RAC 12COracle
- Oracle 12c rac ocr和votedisk管理Oracle
- Oracle 12c 使用RMAN搭建物理備庫(RAC to RAC)Oracle
- Oracle 12C RMAN Duplicating the Whole RAC CDB to local RAC CDBOracle
- Oracle 12C RAC CDB資料庫部署Oracle資料庫
- oracle 12c rac 詳細部署教程(一)Oracle
- oracle 12c rac 詳細部署教程(二)Oracle
- RedHat6.5 安裝Oracle 12c RACRedhatOracle
- Config server pool in oracle 12c racServerOracle
- Change the Archiving Mode in a RAC Environment
- ORACLE 12C RAC 部署應用包準備Oracle
- ORACLE 12C RAC資料庫的啟停Oracle資料庫
- How to Disable or set SELinux to Permissive mode [ID 457458.1]Linux
- Seed Database (pdb$seed) - Read Write OR Read Only Mode in Oracle Database 12cDatabaseOracle
- How to config (no)archivelog mode and manage archive log files by RMANHive
- ORACLE 12C RAC 生產環境搭建介紹Oracle
- Oracle 12c RAC構築之二:共享磁碟配置Oracle
- Oracle 12c RAC OCR和voting files介紹Oracle
- Oracle 12c 2 Nodes sandbox RAC environment on your laptop!OracleAPT
- oracle time modeOracle
- Oracle Flashback Data ArchiveOracleHive
- oracle 817 archive err,oracle hangOracleHive
- Oracle 12C RMAN transport tablespace from PDB of RAC CDB to remote PDBOracleREM
- Oracle RAC 12c的新變化和新優勢Oracle
- oracle 12C RAC 啟動報錯 ORA-00845Oracle
- Oracle 12c GI/RAC Step-by-Step安裝指南(一)Oracle
- Oracle 12c GI/RAC Step-by-Step安裝指南(二)Oracle
- Oracle 12c GI/RAC Step-by-Step安裝指南(三)Oracle
- Oracle 12c GI/RAC Step-by-Step安裝指南(四)Oracle
- Oracle 12c GI/RAC Step-by-Step安裝指南(五)Oracle
- Oracle 12c GI/RAC Step-by-Step安裝指南(六)Oracle
- ORACLE LOCK MODE 1.2.3.4.5.6Oracle