通过alter database open;命令将数据库启动到open状态,此时,数据库实例的状态是OPEN。如下所示:
-
SQL>
-
SQL> alter database open;
-
-
Database altered.
-
-
SQL>
-
SQL> select status from v$instance;
-
-
STATUS
-
------------
-
OPEN
-
-
SQL>
查看alert日志的输出内容如下:
-
Sat May 09 22:16:34 2015
-
alter database open
-
Beginning crash recovery of 1 threads
-
parallel recovery started with 2 processes
-
Started redo scan
-
Completed redo scan
-
read 12 KB redo, 9 data blocks need recovery
-
Started redo application at
-
Thread 1: logseq 7, block 118
-
Recovery of Online Redo Log: Thread 1 Group 1 Seq 7 Reading mem 0
-
Mem# 0: /u01/app/oracle/oradata/HOEGH/redo01.log
-
Completed redo application of 0.00MB
-
Completed crash recovery at
-
Thread 1: logseq 7, block 143, scn 918639
-
9 data blocks read, 9 data blocks written, 12 redo k-bytes read
-
Sat May 09 22:16:34 2015
-
Thread 1 advanced to log sequence 8 (thread open)
-
Thread 1 opened at log sequence 8
-
Current log# 2 seq# 8 mem# 0: /u01/app/oracle/oradata/HOEGH/redo02.log
-
Successful open of redo thread 1
-
MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
-
Sat May 09 22:16:35 2015
-
SMON: enabling cache recovery
-
[5095] Successfully onlined Undo Tablespace 2.
-
Undo initialization finished serial:0 start:4294562150 end:4294562220 diff:70 (0 seconds)
-
Verifying file header compatibility for 11g tablespace encryption..
-
Verifying 11g file header compatibility for tablespace encryption completed
-
SMON: enabling tx recovery
-
Database Characterset is AL32UTF8
-
No Resource Manager plan active
-
replication_dependency_tracking turned off (no async multimaster replication found)
-
Starting background process QMNC
-
Sat May 09 22:16:35 2015
-
QMNC started with pid=22, OS id=5274
-
Completed: alter database open
-
Sat May 09 22:16:36 2015
-
Starting background process CJQ0
-
Sat May 09 22:16:36 2015
-
CJQ0 started with pid=24, OS id=5296
这一阶段数据库读取控制文件中描述的数据文件并验证数据文件的一致性,如果不一致,使用日志文件将数据库文件恢复到一致的状态。数据库open后,普通用户才可以访问数据库。
~~~~~~~ the end~~~~~~~~~