STEPS FOR CREATION OF DATABASE MANUALLY:
1. Login as oracle user
# su – oracle
Now to get Database Configuration Assistant you need to type DBCA from Oracle User
$ dbca
Select Create Database and press NEXT
Select New Database and Press Next
Here specify your Database Name {Prod is my DB Name}
And
SID will automatically updated when we enter DB Name.
UnCheck all And select Create Database Creation Scripts
(Path: /uo1/Prod/scripts)
And press Finish Button, All the scripts will generate in this path.
Create Oracle Database Init file for the
Example:-. If the ORACLE_SID is Prod the Init file name will be "initProd.ora"
$ vi $ORACLE_HOME/dbs/initProd.ora
Enter the parameter values, sample values are as below and a sample init file is also available in the scripts.rar
{Path: /u01/app/oracle/product/9.2.0.4/dbs}
1. Before starting running the scripts, first modify the database name, datafile location etc.
Following are the script required to be modified:
CREATEDB.SQL -- Modify the datafile path, add the undo tablespace command to the create database statement.
UTLSPACE.SQL -- Comment the statements related to rollback and specify the path for datafiles
CREATEDB.SQL -- This script will create the databaseUTLSPACE.SQL -- This script will create the pstemp & psdefault tablespace
Note : Sample modified scripts are attached herewith in file scripts.rar
Run the scripts using sqlplus as sysdba in following order:
Login as oracle user
# su – oracle
$ sqlplus /nolog
Run the remaining 2 scripts using sqlplus as sysdba
SQL>conn / as sysdba
NOW run the script CreateDB.sql
SQL>@/u01/Prod/scripts/CreateDB.sql
This script will create your Oracle DB than you need to run another script utlspace.sql.
SQL>@/u01/Prod/scripts/utlspace.sql
than Configure the LISTENER using netca wizard
Configure the TNSNAMES using netmgr
Suggestion/Troubleshooting: The tnsnames entry created by the wizard will append the network domain name with the ORACLE_SID, to remove the domain name edit the tnsnames.ora file at $ORACLE_HOME/network/admin/ and remove the domain name appended to the SID
Start the listener
Downloading Link:
http://www.ziddu.com/download/3731987/scripts.rar.html
No comments:
Post a Comment