阻止任何用户建立新的连接,同时阻止当前连接的用户开始任何新的事务。
等待所有未提交的活动事务提交完毕,然后立即断开用户的连接。
直接关闭、卸载数据库,并终止实例。
4. Abort(终止关闭方式)
(1). 命令:shutdown abort
(2). 讲解:这是比较粗暴的一种关闭方式,当前面3种方式都无法关闭时,可以尝试使用终止方式来关闭数据库。但是以这种方式关闭数据库将会丢失一部份数据信息,当重新启动实例并打开数据库时,后台进程SMON会执行实例恢复操作。一般情况下,应当尽量避免使用这种方式来关闭数据库。执行过程如下:
阻止任何用户建立新的连接,同时阻止当前连接的用户开始任何新的事务。
立即终止当前正在执行的SQL语句。
任何未提交的事务均不被退名。
直接断开所有用户的连接,关闭、卸载数据库,并终止实例。
四、案例数据库启动全过程
Step1. SQLPLUS /'as sysdba' SQL*Plus: Release 10.2.0.1.0 - Production on Sat Mar 3 22:48:27 2012 Copyright (c) 1982, 2005, Oracle. All rights reserved. Connected to an idle instance. Step2. Startup nomount ORACLE instance started. --> Total System Global Area 167772160 bytes Fixed Size 1218316 bytes Variable Size 104859892 bytes Database Buffers 58720256 bytes Redo Buffers 2973696 bytes oracle@db1:~> ps -ef | grep ora_ oracle 3626 1 0 22:48 ? 00:00:00 ora_pmon_orcl1 oracle 3628 1 0 22:48 ? 00:00:00 ora_psp0_orcl1 oracle 3630 1 0 22:48 ? 00:00:00 ora_mman_orcl1 oracle 3632 1 0 22:48 ? 00:00:00 ora_dbw0_orcl1 oracle 3634 1 0 22:48 ? 00:00:00 ora_lgwr_orcl1 oracle 3636 1 0 22:48 ? 00:00:00 ora_ckpt_orcl1 oracle 3638 1 0 22:48 ? 00:00:00 ora_smon_orcl1 oracle 3640 1 0 22:48 ? 00:00:00 ora_reco_orcl1 oracle 3642 1 0 22:48 ? 00:00:00 ora_cjq0_orcl1 oracle 3644 1 0 22:48 ? 00:00:00 ora_mmon_orcl1 oracle 3646 1 0 22:48 ? 00:00:00 ora_mmnl_orcl1 oracle 3648 1 0 22:48 ? 00:00:00 ora_d000_orcl1 oracle 3650 1 0 22:48 ? 00:00:00 ora_s000_orcl1 Step3. Startup mount Oracle instance started. --> Total System Global Area 167772160 bytes Fixed Size 1218316 bytes Variable Size 104859892 bytes Database Buffers 58720256 bytes Redo Buffers 2973696 bytes Database mounted. Step4. Startup ORACLE instance started. --> Total System Global Area 167772160 bytes Fixed Size 1218316 bytes Variable Size 104859892 bytes Database Buffers 58720256 bytes Redo Buffers 2973696 bytes Database mounted. Database opened.