How To Create Oracle Database Manually On Linux
How To Create Oracle Database Manually On Linux
linux
Tablespace Information
In this example , we will create the database with 5 tablespaces. Out of which 4 are system defined tablespace
and 5th one, ie USERS tablespace is user defined. For this exercise , we will have one datafile per tablespace.
Here is the structure for all the tablespaces
Tablespace Name Datafile Location Size
SYSTEM /data/mydb/sysytem.dbf 500M
SYSAUX /data/mydb/sysaux.dbf 100M
UNDOTBS /data/mydb/undo.dbf 100M
TEMP /data/mydb/temp.dbf 100M
USERS /data/mydb/usr.dbf 100M
Logfile Information
Oracle mandates to have 2 redo log groups. You may have to create more redo logs depending on the database
activity
Logfile Group Member Location Size
GROUP 1 /data/mydb/log1.ora 10M
GROUP 2 /data/mydb/log2.ora 10M
CONTROL FILE
Even though only one controlfile is mandatory , oracle recommends to have minimum 2 control files
The following is the path for contro lfiles
/data/mydb/control1.ora
/data/mydb/control2.ora
PARAMETER FILE
We will create a pfile first. Later we will see how to create a spfile from pfile.
Location of the Pfile
/wysheid/oracle_home/dbs/initmydbdb.ora
In this example /wysheid/oracle_home is the ORACLE_HOME directory. The expected path of the parameter file
is $ORACLE_HOME/dbs in Unix/Linux OS and $ORACLE_HOME/database in Windows OS
Below are the steps to create oracle database manually. Please make sure to execute them in the order given
$ mkdir /data/mydb
$ mkdir /data/mydb/recovery
$ mkdir /wysheid/diag # ADR base directory
More Reading
SQL>@/u01/oracle/rdbms/admin/catproc.sql
SQL>?@$ORACLE_HOME/sqlplus/admin/pupbld.sql