码迷,mamicode.com
首页 > 其他好文 > 详细

归档日志

时间:2014-10-20 13:33:13      阅读:122      评论:0      收藏:0      [点我收藏+]

标签:11g   application   database   dba   oracle   

RAC
 sqlplus / as sysdba
 SQL> alter system set cluster_database=false scope=spfile; --in node1
 SQL> create pfile=‘/opt/oracle/pfile_20120301‘ from spfile; --in node1
 SQL> alter system set log_archive_format=‘ora11g_%r_%t_%s.log‘ scope=spfile; --in node1, using default value is ok
 SQL> alter system set log_archive_start=TRUE scope=spfile; --in node1
 SQL> alter system set  log_archive_dest=‘‘ scope=spfile; --in node1
 SQL> alter system set  log_archive_dest_1=‘LOCATION=/oracle/ora_arch‘ scope=spfile; --in node1 using the specificated DIR
 SQL> shutdown immediate; --two nodes
 SQL> startup mount; --in node1
 SQL> alter database archivelog; --in node1
 SQL> alter database open; --in node1
 SQL> alter system set cluster_database=true scope=spfile; --in node1
 SQL> shutdown immediate; --in node1
 SQL> startup; --in two nodes

 NORAC
 sqlplus / as sysdba
 SQL> create pfile=‘/opt/oracle/pfile_20120301‘ from spfile;
 SQL> alter system set log_archive_format=‘ora11g_%r_%t_%s.log‘ scope=spfile; --using default value is ok
 SQL> alter system set log_archive_start=TRUE scope=spfile;
 SQL> alter system set  log_archive_dest=‘‘ scope=spfile;
 SQL> alter system set  log_archive_dest_1=‘LOCATION=/oracle/ora_arch‘ scope=spfile; --using the specificated DIR
 SQL> shutdown immediate;
 SQL> startup mount;
 SQL> alter database archivelog;
 SQL> alter database open;
 SQL> archive log list;

归档日志

标签:11g   application   database   dba   oracle   

原文地址:http://blog.csdn.net/jenya007/article/details/40298913

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!