Status queries for Oracle databases

Source: Internet
Author: User

1 Status Query

launch status

SQL Statement /p>

results

Nomount

Select Statu s from V$instance;

started

select Open_mode from v$database;

ERROR at line 1:

Ora-01507:database not mounted

Mount

Select status from V$instance

Mounted

Select Open_mode from V$database

Mounted

Open

Select status from V$instance

OPEN

Select Open_mode from V$database

Read WRITE or Read only

2 Experimental Process

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.