Home  >  Article  >  Database  >  oracle 开启关闭归档日志

oracle 开启关闭归档日志

WBOY
WBOYOriginal
2016-06-07 15:44:421289browse

开启归档,保证log_archive_start=true开启自动归档,否则只能手工归档,关闭了归档,则设置该参数为false 注意:如果是OPS/RAC环境,需要先把parallel_server = true注释掉,然后执行如下步骤,最后用这个参数重新启动 1、开启归档 a. 关闭数据库shutdown i

开启归档,保证log_archive_start=true开启自动归档,否则只能手工归档,关闭了归档,则设置该参数为false

  注意:如果是OPS/RAC环境,需要先把parallel_server = true注释掉,然后执行如下步骤,最后用这个参数重新启动

  1、开启归档

  a. 关闭数据库shutdown immediate

  b. startup mount

  c. alter database archivelog

  d. alter database opne

  2、禁止归档

  a. 关闭数据库shutdown immediate

  b. startup mount

  c. alter database noarchivelog

  d. alter database open

  归档信息可以通过如下语句查看

  SQL> archive log list

  Database log mode Archive Mode

  Automatic archival Enabled

  Archive destination E:\Oracle\ora92\database\archive

  Oldest online log sequence 131

  Next log sequence to archive 133

  Current log sequence 133

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn