活着,寻找生存。
分类: Oracle
2015-11-20 18:31:39
oracle@oracle /home/oracle$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.3.0 Production on Fri Nov 20 18:17:06 2015 Copyright (c) 1982, 2011, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> archive log list Database log mode Archive Mode Automatic archival Enabled Archive destination /opt/oracle/oradata/ora/archive Oldest online log sequence 7 Next log sequence to archive 13 Current log sequence 13 |
SQL> shutdown immediate Database closed. Database dismounted. ORACLE instance shut down. |
SQL> startup mount; ORACLE instance started. Total System Global Area 2137886720 bytes Fixed Size 2230072 bytes Variable Size 1593837768 bytes Database Buffers 536870912 bytes Redo Buffers 4947968 bytes Database mounted. |
SQL> alter database noarchivelog; Database altered. SQL> alter database open; Database altered. SQL> archive log list Database log mode No Archive Mode Automatic archival Disabled Archive destination /opt/oracle/oradata/ora/archive Oldest online log sequence 7 Current log sequence 13 |
SQL> shutdown immediate Database closed. Database dismounted. ORACLE instance shut down. |
SQL> startup mount; ORACLE instance started. Total System Global Area 2137886720 bytes Fixed Size 2230072 bytes Variable Size 1593837768 bytes Database Buffers 536870912 bytes Redo Buffers 4947968 bytes Database mounted. |
SQL> alter database archivelog; Database altered. SQL> alter database open; Database altered. SQL> archive log list Database log mode Archive Mode Automatic archival Enabled Archive destination /opt/oracle/oradata/ora/archive Oldest online log sequence 7 Next log sequence to archive 13 Current log sequence 13 |