Manual Database Creation
Manual Database Creation
1. Set up the relevant environment variables before creating the database. The three
important variables are ORACLE_SID, ORACLE_BASE, and ORACLE_HOME.
On UNIX platforms, the instance identifier is case sensitive. The ORACLE_BASE parameter
decides where the trace files and dump file directories will be located. ORACLE_HOME is the
location where the Oracle 11g software is installed.
export ORACLE_SID=ora11g
export ORACLE_BASE=/home/oracle
export ORACLE_HOME=/home/oracle/product/11g
2.Create a password file using the ORAPWD utility. This allows administrative logins to the
Oracle 11g database from tools such as EM Database Control.
cd $ORACLE_HOME/dbs
orapwd file=orapwora11g
3. Create an initialization-parameter file. You can create a text-based pfile, and using
SQL*Plus you can create the spfile from the pfile.
cd $ORACLE_HOME/dbs
sqlplus / as sysdba
SQL> create spfile from pfile;
5. Create the database using the CREATE DATABASE statement. This statement creates the
database with SYSTEM, SYSAUX, TEMP, and UNDOTBS1 tablespaces. It creates control files
specified in the location of CONTROL_FILES parameter and redo log files. It also sets a
password for SYS and SYSTEM users.
SQL> @?/rdbms/admin/catalog.sql
SQL> @?/rdbms/admin/catproc.sql
9. If you want to install additional options such as JVM or Oracle Ultra Search, run the
relevant scripts:
SQL> @?/javavm/install/initjvm.sql;