码迷,mamicode.com
首页 > 数据库 > 详细

Oracle数据库状态

时间:2017-11-08 17:38:35      阅读:186      评论:0      收藏:0      [点我收藏+]

标签:open   code   分享   from   buffer   tar   mes   pre   sage   

  • 状态查询
    技术分享

  • 实验过程

SQL> startup nomount;
ORACLE instance started.

Total System Global Area  125829120 bytes
Fixed Size                  1247684 bytes
Variable Size              92276284 bytes
Database Buffers          25165824 bytes
Redo Buffers                7139328 bytes

SQL> select status from v$instance;

STATUS
------------
STARTED

SQL> select open_mode from v$database;
select open_mode from v$database
*
ERROR at line 1:
ORA-01507: database not mounted

SQL> alter database mount;

Database altered.

SQL> select status from v$instance;

STATUS
------------
MOUNTED

SQL> select open_mode from v$database;

OPEN_MODE
----------
MOUNTED

SQL> alter database open;

Database altered.

SQL> select status from v$instance;

STATUS
------------
OPEN

SQL> select open_mode from v$database;

OPEN_MODE
----------
READ WRITE

Oracle数据库状态

标签:open   code   分享   from   buffer   tar   mes   pre   sage   

原文地址:http://www.cnblogs.com/yldf/p/7804620.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!