Les04 Rev2
Les04 Rev2
Les04 Rev2
Creating a Database
Objectives
After completing this lesson, you should be able to do
the following:
List the prerequisites necessary for database
creation
Create a database using Oracle Database
Configuration Assistant
Create a database manually
Create a database using Oracle Managed Files
4-2
4-3
4-4
Software
/product
/release_number
/bin
/dbs
/rdbms
/sqlplus
/admin
/inst_name
/pfile
4-5
Files
oradata/
db01/
system01.dbf
control01.ctl
redo0101.log
...
db02/
system01.dbf
control01.ctl
redo0101.log
...
Creation Prerequisites
To create a new database, you must have the following:
A privileged account authenticated by one of the
following:
Operating system
Password file
4-6
Authentication Methods
for Database Administrators
Remote database
administration
Do you
have a secure
connection?
Yes
N
o
4-7
Local database
administration
Do you want
to use OS
authentication?
Yes
Use OS
authentication
N
o
Use a
password file
Set REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE in
initialization parameter file.
Add users to the password file.
Assign appropriate privileges to each user.
GRANT SYSDBA TO HR;
4-8
Creating a Database
An Oracle database can be created by:
Oracle Universal Installer
Oracle Database Configuration Assistant
4-10
4-11
4-12
4-13
Create database
Save as a template
Generate creation script
Copyright Oracle Corporation, 2002. All rights reserved.
4-16
4-19
4-21
Troubleshooting
Creation of the database fails if:
There are syntax errors in the SQL script
Files that should be created already exist
Operating system errors such as file or directory
permission or insufficient space errors occur
4-26
4-27
Summary
In this lesson, you should have learned to:
Identify the prerequisites for creating a database
Create a database using the Oracle Database
Configuration Assistant
Create a database manually
Create a database using Oracle Managed Files
4-28
Practice 4 Overview
This lesson provides two specific ways of creating a
database:
Use the Database Configuration Assistant to create a
database using graphical steps. Launched by:
Start > Programs > Oracle-OraHome90 > Configuration
and Migration Tools.
Appendix A provides a step-by- step guide for creating
a database manually on a UNIX system.
4-29
4-30