oracle arvhivelog、noarchivelog与mount的关系

本文详细介绍了Oracle数据库在mount状态下如何执行archive log和noarchivelog命令的原因。通过分析数据库启动日志,揭示了归档模式与非归档模式在数据库open阶段的区别,特别是在归档模式下LGWR进程启动归档进程(ARCH)的过程。
摘要由CSDN通过智能技术生成

这里仅仅想解释下,为什么alter database archivelog 与alter database noarchivelog需要在mount状态下执行。


我们来分步骤看看oracle的启动过程日志:


SQL> startup pfile='$ORACLE_HOME/dbs/pfileorcl.ora'  mount;
ORA-32006: LOG_ARCHIVE_START initialization parameter has been deprecated
ORA-32006: REMOTE_OS_AUTHENT initialization parameter has been deprecated
ORACLE instance started.


Total System Global Area  480182272 bytes
Fixed Size    2254424 bytes
Variable Size  352324008 bytes
Database Buffers  117440512 bytes
Redo Buffers    8163328 bytes
Database mounted.
SQL> 

SQL> show parameter log_archive_start


NAME     TYPE VALUE
------------------------------------ ----------- ------------------------------
log_archive_start     boolean FALSE
SQL> archive log list
Database log mode       No Archive Mode
Automatic archival       Disabled
Archive destination       /home/oracle/app/oracle/product/11.2.0/dbhome_1/log/archive
Oldest online log sequence     65
Current log sequence       67
SQL> select name ,log_mode from v$database;


NAME  LOG_MODE
--------- ------------
ORCL  NOARCHIVELOG


SQL> 

看看alert_${ORACLE_SID}.log中记录的启动日志

Sat May 28 00:54:04 2016
Adjusting the default value of parameter parallel_max_servers
from 160 to 120 due to the value of parameter processes (150)
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Initial number of CPU is 4
Number of processor cores in the system is 4
Number of processor sockets in the system is 4
CELL communication is configured to use 0 interface(s):
CELL IP affinity details:
    NUMA status: non-NUMA system
    cellaffinity.ora status: N/A
CELL communication will use 1 IP group(s):
    Grp 0: 
Picked latch-free SCN scheme 3
Autotune of undo retention is turned on. 
IMODE=BR
ILAT =27
LICENSE_MAX_USERS = 0
SYS auditing is disabled
Starting up:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options.
ORACLE_HOME = /home/oracle/app/oracle/product/11.2.0/dbhome_1
System name: Linux
Node name: localhost.localdomain
Release: 3.10.0-229.el7.x86_64
Version: #1 SMP Fri Mar 6 11:36:42 UTC 2015
Machine: x86_64
VM name: VMWare Version: 6
Using parameter settings in client-side pfile /home/oracle/app/oracle/product/11.2.0/dbhome_1/dbs/pfileorcl.ora on machine localhost.localdomain
System parameters with non-default values:
  processes                = 150
  memory_target            = 460M
  control_files            = "/home/oracle/app/oracle/oradata/orcl/control01.ctl"
  control_files            = "/home/oracle/app/oracle/fast_recovery_area/orcl/control02.ctl"
  db_block_size            = 8192
  compatible               = "11.2.0.4.0"
  log_archive_dest_1       = "location=/home/oracle/app/oracle/product/11.2.0/dbhome_1/log/archive"
  log_archive_start        = FALSE
  db_recovery_file_dest    = "/home/oracle/app/oracle/fast_recovery_area"
  db_recovery

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值