Documente Academic
Documente Profesional
Documente Cultură
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
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
db_name = test
db_block_size = 8192
$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/catproc.sql
After creating your init.ora file with the appropriate parameters you can use the "create
database" command in SQL*Plus to create a database:
Make sure that your have your $ORACLE_HOME and $ORACLE_SID set properly and
that you sign-on as SYSDBA:
startup nomount;
'/u01/oradata/oldlsq/mydatabase.dbf'
;
This is just an abbreviated sample of the Oracle create database command and there are
many more options:
Oracle Tips
David Ellison: Heir to the Oracle throne?
Oracle whistleblower asking for $42,000,000 payday
2010 Oracle Offshoring declared a disaster
2010 Oracle layoffs may exceed 10,000
Do you have what it takes to be an emergency DBA?
Note: This Oracle documentation was created as a support and Oracle training reference
for use by our DBA performance tuning consulting professionals. Feel free to ask
questions on our Oracle forum.
Verify experience! Anyone considering using the services of an Oracle support expert
should independently investigate their credentials and experience, and not rely on
advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their
Oracle qualifications.
Errata? Oracle technology is changing and we strive to update our BC Oracle support
information. If you find an error or have a suggestion for improving our content, we
would appreciate your feedback. Just e-mail: and include the URL for the page.
Burleson Consulting