SYS@rac1> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 2200
Next log sequence to archive 2203
Current log sequence 2203
SYS@rac1> 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, Oracle Label Security,
OLAP, Data Mining, Oracle Database Vault and Real Application Testing options
[oracle@oda1 ~]$ srvctl stop database -d rac
[oracle@oda1 ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Wed May 13 12:38:22 2015
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to an idle instance.
SYS@rac1> startup mount
ORACLE instance started.
Total System Global Area 8551575552 bytes
Fixed Size 2270360 bytes
Variable Size 1577061224 bytes
Database Buffers 6945767424 bytes
Redo Buffers 26476544 bytes
Database mounted.
SYS@rac1> show parameter spfile
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
spfile string +DATA/rac/spfilerac.ora
SYS@rac1> alter database noarchivelog;
Database altered.
SYS@rac1> shutdown immediate
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SYS@rac1> 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, Oracle Label Security,
OLAP, Data Mining, Oracle Database Vault and Real Application Testing options
[oracle@oda1 ~]$ srvctl start database -d rac
[oracle@oda1 ~]$ srvctl status database -d rac
Instance rac1 is running on node oda1
Instance rac2 is running on node oda2
[oracle@oda1 ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Wed May 13 12:40:50 2015
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, Oracle Label Security,
OLAP, Data Mining, Oracle Database Vault and Real Application Testing options
SYS@rac1> archive log list
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 2201
Current log sequence 2204
SYS@rac1> alter system switch logfile;
System altered.
Komentáře