Pages

Showing posts with label Database Instance. Show all posts
Showing posts with label Database Instance. Show all posts

Thursday, March 23, 2017

Change an Oracle database to noarchivelog mode


Here, we will alter our database to no archive log mode.
For this,
  • shutdown our database if it is running
  • take our database to mount mode
  • alter database to noarchivelog
  • open database
  • verify

Saturday, March 4, 2017

Oracle Restricted Session

Sometimes we need to work on a database without any other users being logged in. In this scenario, it is possible to restrict the database session. When the database is altered to restricted mode, only users with restricted session privileges can get access to the database. Technically it is in open mode.

If database is running, alter system command is used to enable and disable restricted session as follows. We can see, select logins from v$instance will verify this:

Shutting Down an Oracle Database Instance


There are four modes of shutting down an Oracle Instance
  1. NORMAL
  2. TRANSACTIONAL
  3. IMMEDIATE
  4. ABORT

Starting up an Oracle Database Instance

When starting the database instance, we need to select the state in which it starts.
  1. NOMOUNT
  2. MOUNT
  3. OPEN

1. NOMOUNT: An instance is typically started only in NOMOUNT mode during database creation, during re-creation of control files, or during certain backup and recovery scenarios.