This Practice will focus on the manual creation of the
Oracle Database.
Assumptions
·
SYSDBA privileges have been established by OS or Password
File
·
Sqlplus script to create the database will work on different
OS’s file paths or is changed
1.
In Sqlplus, connect with sysdba privileges and run the
create database script.
connect
SYS/change_on_install as SYSDBA set echo
off spool
c:\oracle9i\assistants\dbca\logs\CreateDB.log startup
nomount pfile="c:\oracle9i\admin\test\scripts\init.ora"; CREATE
DATABASE test MAXINSTANCES
1 MAXLOGHISTORY
1 MAXLOGFILES
5 MAXLOGMEMBERS
5 MAXDATAFILES
100 DATAFILE 'c:\oracle9i\oradata\test\system01.dbf'
SIZE 325M
REUSE AUTOEXTEND ON NEXT 10240K
MAXSIZE UNLIMITED UNDO
TABLESPACE "UNDOTBS" DATAFILE
'c:\oracle9i\oradata\test\undotbs01.dbf' SIZE 200M REUSE
AUTOEXTEND ON NEXT 5120K MAXSIZE
UNLIMITED CHARACTER
SET WE8MSWIN1252 NATIONAL
CHARACTER SET AL16UTF16 LOGFILE
GROUP 1 ('c:\oracle9i\oradata\test\redo01.log') SIZE 100M, GROUP 2
('c:\oracle9i\oradata\test\redo02.log') SIZE 100M, GROUP 3
('c:\oracle9i\oradata\test\redo03.log') SIZE 100M; spool off |
2.
In Sqlplus, check the physical files created by the script.
SQL>
select name from v$datafile 2
/ NAME ----------------------------------------------- C:\ORACLE9I\ORADATA\TEST\SYSTEM01.DBF C:\ORACLE9I\ORADATA\TEST\UNDOTBS01.DBF SQL>
select name from v$controlfile; NAME ----------------------------------------------- C:\ORACLE9I\ORADATA\TEST\CONTROL01.CTL C:\ORACLE9I\ORADATA\TEST\CONTROL02.CTL C:\ORACLE9I\ORADATA\TEST\CONTROL03.CTL SQL>
select member from v$logfile; MEMBER ----------------------------------------------- C:\ORACLE9I\ORADATA\TEST\REDO01.LOG C:\ORACLE9I\ORADATA\TEST\REDO02.LOG C:\ORACLE9I\ORADATA\TEST\REDO03.LOG SQL> |