Command description to open, change status an Oracle database
Oracle databases statuses sequence:
SHUTDOWN -> NOMOUNT -> MOUNT -> OPEN
- SQL*Plus should be used to issue the STARTUP and SHUTDOWN commands
- A SHUTDOWN command is required after STARTUP command, even if errors were found during a startup process.
Optional: the Enterprise Manager can be used to startup an Oracle Database
Altering the Oracle database status
Changing the status MOUNT, to prevent the database from being modified by users:
ALTER DATABASE MOUNT;
Changing the database to status open
ALTER DATABASE OPEN;
Changing the database status to READ ONLY, this status prevents transaction generating online REDO LOGS
ALTER DATABASE OPEN READ ONLY;
READ ONLY STATUS FOR AN ORACLE DATABASE
Eventually, an Oracle database can be “read only” status.
Why? In case that the database crashes, the DBA can perform the execution of selected queries. Some additional setting is required for query performing “sorts”.
STARTUP MOUNT
ALTER DATABASE OPEN READ ONLY;
If the database is in read-only status and a sql insert (or update statement) is executed, an error message appears:
<cannot use system rollback segment for non system tablespace>
Then the database status should be changed to read-write