Acylas 发表于 2013-1-16 16:49:43

Solaris下如何设置oracle为自动归档模式?

执行vi $ORACLE_HOME/dbs/initSID.ora,添加下面两行
                    *.log_archive_dest='/export/home/oracle/arch'
                    *.log_archive_start=true
如果需要设置log文件格式,也可以指定,如
                    *.log_archive_format='%t_%s_%r.dbf'
保存后先shutdown immediate,然后startup mount,执行alter database archivelog;
再次shutdown immediate,再次启动即可进入自动归档模式。
如果是spfile运行的,那么设置 log_archive_dest和log_archive_start可以通过startup mount,然后执行
alter database archivelog;
alter system set LOG_ARCHIVE_DEST_1='LOCATION=/export/home/oracle/arch';
alter system set log_archive_format='%t_%s_%r.dbf' scope=spfile;
Alter system set log_archive_start=true scope=spfile;

 
页: [1]
查看完整版本: Solaris下如何设置oracle为自动归档模式?