Manual Database Creation
Manual Database Creation
Manual Database Creation
I
Think of Database name
Oracle_Sid = db02
Oracle9i
Admin Oradata
Command:
Mkdir db02
Mkdir bdump
Mkdir cdump
Mkdir udump
Command:
Cp initdb01.ora initdb02.ora
Vi initdb02.ora
%s/db01/db02/g
Su – oracle9i
Vi db02.env
export ORACLE_BASE=/u01/oracle9i
export ORACLE_HOME=$ORACLE_BASE/product
II
export ORACLE_SID=db02
export LD_ASSUME_KERNEL=2.4.19
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:$PATH
export
ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
umask 022
Login as SYSDBA
Command:
Sqlplus ‘/as sysdba’
Command:
Startup nomount
III
Command:
@Createdb.sql
Command:
@ ORACLE_HOME/rdbms/admin/catalog.sql
@ ORACLE_HOME/rdbms/admin/catproc.sql
Why?
Catalog.sql is for creatintg data dictionary views & synonyms
CatProc.sql is for running scripts required for server side pl/sql.
Command:
@ ORACLE_HOME/sqlplus/admin/pupbld.sql
Why?
Pupbld.sql is for installaing Product user profiles.
Command:
shut immediate
startup
IV