Professional Documents
Culture Documents
Manual DB Creation Batch 14
Manual DB Creation Batch 14
==============================
/oracle/app/product/12.2.0.1/dbhome_1 -- oracle_home/dbs
1)startup nomount
-------------------
This is the first stage of database startup sequence .In this it will check
whether database related pfile or spfile exists or not .
Pfile:
=======
pfile is called as parameter file ,In this pfile we can read and write any context
based on our requirement .
vi initGPAY.ora
db_name=GPAY
diagnostic_dest='/oracle/app/diag'
db_unique_name='GPAY_PRIMARY'
db_block_size=8192
undo_tablespace='UNDOTBS'
audit_file_dest='/oracle/app/audit'
audit_trail ='db'
processes=100
control_files='/oracle/app/control/control01.ctl','/oracle/app/control/
control02.ctl'
ENVIRONMNETAL VARIABLES :
=========================
export ORACLE_SID=GPAY
export ORACLE_HOME=/oracle/app/product/12c/dbhome_1
export PATH=/oracle/app/product/12c/dbhome_1/bin:$PATH
sqlplus / as sysdba
shut immediate ;
startup nomount ;
spfile :
=========
It is system parameter file .It will be located in the /oracle_home/dbs.
The naming convention of the spfile will be initspfile.ora
This will be created with the help of pfile by the below command .
>> create spfile from pfile;
SYSTEM
SYSAUX
TEMP
UNDO
2)startup mount :
==================
This is the second stage of database startup sequence .This stage will check
whether database controlfiles exists or not .
3)startup
==========
It is the final stage of database startup .It will check whether all the datafiles
are exists or not .
In this it will be opened(read write) if all the datafiles are physically exists
======
$ORACLE_HOME/network/admin
vi listener.ora
LISTENER_GPAY =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.211.131)(PORT=1545))
)
SID_LIST_LISTENER_GPAY =
(SID_LIST=
(SID_DESC=
(SID_NAME=GPAY)
(ORACLE_HOME= /oracle/app/product/12c/dbhome_1)
)
)