You are on page 1of 3

Database creation(manual)

Database can be created using any of the following methods. 1.At the time of installation of oracle software. 2.Using dbca. 3.Manually. we need to add oracle environments to .bash_profile. vi .bash_profile !" cat ## .bash_profile

e$port !"A%&'_(!M')*pathtooraclehome e$port !"A%&'_+,D)prod e$port &D_&,-"A"._/A0() !"A%&'_(!M'*lib e$port /A0() !"A%&'_(!M'*bin1 /A0( delete the last line. 1w2 env 3grep !"A . .bash_profile 1.%reate directory structure m4dir dev cd dev m4dir control data log arch diag 2.Ma4e the parameter file oracle cd !"A%&'_(!M'*dbs 5path)*home*oracle*prod6 oracle vi initdev.ora db_name)dev control_files ) 7*home*oracle*dev*control*control1.ctl787*home*oracle*dev*control*control2.ctl7 undo_management ) Auto

undo_tablespace ) U9D!0-+1 db_bloc4_si:e ) ;1<2 diagnostic_dest)=*home*oracle*dev*diag= compatible ) 11.2.> memory_ma$_target ) ;>>m memory_target ) ;>>m pga_aggregate_target) 1>>m log_archive_dest_1)=&!%A0,!9)*home*oracle*dev*arch= 1w2? cd *home*oracle*dev oracle vi dbcreation.s2l MA@&!AM'M-'"+ B MA@&!A(,+0!". 1 %"'A0' DA0A-A+' dev +'0 0,M'_C!9')7Asia*%alcutta7 U+'" +.+ ,D'90,D,'D -. %trls123 U+'" +.+0'M ,D'90,D,'D -. %trls123 &!AD,&' A"!U/ 1 57*oradata1*dev*log*redo>1a.log787*oradata1*dev*log*redo>1b.log76 +,C' 1>>M -&!%E+,C' B128 A"!U/ 2 57*oradata1*dev*log*redo>2a.log787*oradata1*dev*log*redo>2b.log76 +,C' 1>>M -&!%E+,C' B128 A"!U/ 3 57*oradata1*dev*log*redo>3a.log787*oradata1*dev*log*redo>3b.log76 +,C' 1>>M -&!%E+,C' B12 MA@&!AD,&'+ B

MA@DA0AD,&'+ 1>> %(A"A%0'" +'0 U+FA+%,, 9A0,!9A& %(A"A%0'" +'0 A&1GU0D1G '@0'90 MA9AA'M'90 &!%A&

DA0AD,&' 7*oradata1*dev*data*system>1.dbf7 +,C' 32BM "'U+' +.+AU@ DA0AD,&' 7*oradata1*dev*data*sysau$>1.dbf7 +,C' 32BM "'U+' D'DAU&0 0A-&'+/A%' users DA0AD,&' 7*oradata1*dev*data*users>1.dbf7 +,C' B>>M "'U+' AU0!'@0'9D !9 MA@+,C' U9&,M,0'D D'DAU&0 0'M/!"A". 0A-&'+/A%' tempts1 0'M/D,&' 7*oradata1*dev*data*temp>1.dbf7 +,C' 2>M "'U+' U9D! 0A-&'+/A%' undotbs1 DA0AD,&' 7*oradata1*dev*data*undotbs>1.dbf7 +,C' 2>>M "'U+' AU0!'@0'9D !9 MA@+,C' U9&,M,0'DH 1w2? e$port !"A%&'_+,D)dev s2lplus * as sysdba s2l#startup nomount s2l#Idbcreation.s2l you must see database creation statement here. !nce you see database created message8 run the following scripts to create the data dictionary. s2l# IJ*rdbms*admin*catalog.s2l 0hen run cataproc.s2l and pupbld.s2l s2l#IJ*rdbms*admin*catproc.s2l s2l#conn system*%trls123 s2l#IJ*s2lplus*admin*pupbld.s2l

You might also like