Professional Documents
Culture Documents
EXTREMELY Minimal Manual Oracle Database Creation Script
EXTREMELY Minimal Manual Oracle Database Creation Script
EXTREMELY Minimal Manual Oracle Database Creation Script
export ORACLE_SID=test
export ORACLE_HOME=/path/to/oracle/home
# $ORACLE_HOME/dbs/init<sid>.ora
control_files = (/path/to/control1.ctl,/path/to/control2.ctl,/path/to/control3.ctl)
undo_management = AUTO
undo_tablespace = UNDOTBS1
db_name = test
db_block_size = 8192
sga_max_size = 1073741824 #one gig
sga_target = 1073741824 #one gig
$ORACLE_HOME/bin/orapwd file=$ORACLE_HOME/dbs/pwd<sid>.ora
password=oracle entries=5
sqlplus / as sysdba
startup nomount
5. Create the database
Note: there's some other things you can do here, like "ARCHIVELOG" "SET
TIME_ZONE =" and "USER SYS IDENTIFIED BY password" and "USER SYSTEM
IDENTIFIED BY password"
@?/rdbms/admin/catalog.sql
@?/rdbms/admin/catproc.sql
7. Change passwords
--------------------------------------------------------------------------------
# $ORACLE_HOME/dbs/init<sid>.ora
control_files = (/path/to/control1.ctl,/path/to/control2.ctl,/path/to/control3.ctl)
undo_management = AUTO
db_name = test
db_block_size = 8192
sga_max_size = 1073741824 #one gig
sga_target = 1073741824 #one gig
db_create_file_dest = /path/to/datafile/location #OMF
db_create_online_log_dest_1 = /path/to/first/redo_and_control_file/location #OMF
db_create_online_log_dest_2 = /path/to/second/redo_and_control_file/location #OMF
db_recovery_file_dest = /path/to/flash/recovery/area #OMF
#note it’s a good idea to also have background_dump_dest, user_dump_dest, and
core_dump_dest here as well
$ORACLE_HOME/bin/orapwd file=$ORACLE_HOME/dbs/pwd<sid>.ora
password=oracle entries=5
sqlplus / as sysdba
startup nomount
You can even do this and it will work, the ultimate in minimalism:
Note: There's some other things you can do here, like "ARCHIVELOG" "SET
TIME_ZONE =" and "USER SYS IDENTIFIED BY password" and "USER SYSTEM
IDENTIFIED BY password"
Note 2: This is so minimal because you are using Oracle Managed Files as seen in #2
@?/rdbms/admin/catalog.sql
@?/rdbms/admin/catproc.sql
--------------------------------------------------------------------------------
Make sure that your have your $ORACLE_HOME and $ORACLE_SID set properly and
that you sign-on as SYSDBA:
startup nomount;
This is just an abbreviated sample of the Oracle create database command and there are
many more options:
Suskandani
agus
Suskandani
agus
Suskandani
agus
mojolaban
mojolaban
mojolaban
mojolaban