To open a database to read-only mode

Source: Internet
Author: User

Tag:database    database    opened   


Case 3: Opening a database to read-only mode

1. Open database directly to read-only mode

sql> startup open Read only;
ORACLE instance started.

Total System Global area 608174080 bytes
Fixed Size 1268920 bytes
Variable Size 230687560 bytes
Database buffers 373293056 bytes
Redo buffers 2924544 bytes
Database mounted.
Database opened.

Querying the read-write mode of the current database
Sql> select Open_mode from V$database;

Open_mode
----------
READ only

2. How to open the database to read-only mode in the Mount state

Sql> ALTER DATABASE open read only;

Database altered.

Sql> select Open_mode from V$database;

Open_mode
----------
READ only

3. In normal state, the database read/write mode is
Sql> select Open_mode from V$database;

Open_mode
----------
READ WRITE

To open a database to read-only mode

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.