Pre-requisite
- ORACLE_HOME is defined ( normally is the Oracle DB install path)
- ORACLE_SID is known (The Instance DB that we want to connect)
Processes
- Setting up the Oracle environment for the user.(Oracle DBA User, ORACLE_HOME & ORACLE_SID)
- Using "oracle" dba account issue >> startup [db]
- Oracle will lookup the spfile [$ORACLE_HOME/spfile$ORACLE_SID.ora]<-- binary file
- With the spfile, oracle will then create SGA (System Global Area) in the memory.
- All the oracle processes will also be started for the instance.(DBWR,LGWR,SMON,PMON.etc)
- The SGA will be assigned spaces for
- Fixed Buffer
- Variable Buffer
- DB Buffer
- Log Buffer
- Next oracle will look for the control files that is mentioned in the spfile. Control files is crucial as it allow for
- location of 'df files like datafiles','redofiles','tempfiles' & 'logfiles'
- check global db file consistencies
- Check if need to do any rollback
- At the point the datafiles will be known.
- Database can then be mounted
- Next Database will then be open
- If the connections are from other systems or client users, we need to start the listener (LSNR) >> lsnrctl start
No comments:
Post a Comment