Vous êtes sur la page 1sur 20

3

Creating an Oracle Database

Copyright © 2005, Oracle. All rights reserved.


Objectives

After completing this lesson, you should be able to do


the following:
• Answer basic logical and physical database
design questions
• Use the Database Configuration Assistant (DBCA)
to create a database design template
• Use the DBCA to create an additional database
(based on a template)
• Use the DBCA to delete a database

3-2 Copyright © 2005, Oracle. All rights reserved.


Tasks of a Database Administrator

Task 1: Evaluating the database server hardware


Task 2: Installing the Oracle database software
Task 3: Planning the database
Task 4: Creating and opening the database
Task 5: Backing up the database
Task 6: Enrolling system users
Task 7: Implementing the database design
Task 8: Backing up the fully functional database
Task 9: Tuning database performance

3-3 Copyright © 2005, Oracle. All rights reserved.


Planning the Database

As a DBA, you must plan:


• The logical storage structure of the database and
its physical implementation:
– How many disk drives do you have for this?
– How many data files will you need? (Plan for
growth)
– How many tablespaces will you use?
– Which type of information will be stored? Any
special storage requirements due to type or size?
• The overall database design
• A backup strategy for the database

3-4 Copyright © 2005, Oracle. All rights reserved.


Planning the Database:
Considerations

• The performance of the servers running Oracle


database instances
• The performance of the database during data
access operations
• The efficiency of backup and recovery procedures
for the database

3-5 Copyright © 2005, Oracle. All rights reserved.


Databases: Examples

• Data Warehouse: Store data for long periods and


retrieve them in read operations:
• Research and marketing data
– State or federal tax payments
– Professional licensing (doctors, nurses, and so on)
• Transaction Processing: Accommodate many, but
usually small transactions:
– Store checkout register system
– Automatic teller machine (ATM) transactions
• General Purpose: Work with transactions and
store them for a medium length of time:
– Retail billing system, for example, of a software house or
a nursery

3-6 Copyright © 2005, Oracle. All rights reserved.


Physical and Logical Design
Questions: Quiz

1. DBAs should consider growth and security True/False


factors when planning a database.
2. It is a good idea to store data and indexes on True/False
the same physical disk although you have
several disks available.
3. The size of a database can be described by the True/False
sum of all its tablespaces.
4. Database objects belonging to one schema can True/False
be stored in multiple tablespaces.
5. Blocks in online transaction processing (OLTP) True/False
systems should always be as full as possible,
because updates never occur in this type of
system.

3-7 Copyright © 2005, Oracle. All rights reserved.


Database Configuration Assistant (DBCA)

3-8 Copyright © 2005, Oracle. All rights reserved.


Creating a Database Design Template

3-9 Copyright © 2005, Oracle. All rights reserved.


Creating a Database Design Template

3-10 Copyright © 2005, Oracle. All rights reserved.


Using the DBCA to Create a Database

3-11 Copyright © 2005, Oracle. All rights reserved.


Using the DBCA to Create a Database

3-12 Copyright © 2005, Oracle. All rights reserved.


Using the DBCA to Create a Database

3-13 Copyright © 2005, Oracle. All rights reserved.


Simplified Initialization Parameters

Basic Advanced

CONTROL_FILES DB_CACHE_SIZE
DB_BLOCK_SIZE DB_FILE_MULTIBLOCK
PROCESSES _READ_COUNT
UNDO_MANAGEMENT SHARED_POOL_SIZE
… …

3-14 Copyright © 2005, Oracle. All rights reserved.


Initialization Parameter Examples
Full Notes Page

3-15 Copyright © 2005, Oracle. All rights reserved.


Using the DBCA to Delete a Database
1

3-16 Copyright © 2005, Oracle. All rights reserved.


Removing an Oracle Database
Full Notes Page

3-17 Copyright © 2005, Oracle. All rights reserved.


Summary

In this lesson, you should have learned how to:


• Answer basic logical and physical database
design questions
• Use the DBCA to create a database design
template
• Use the DBCA to create an additional database
(based on a template)
• Use the DBCA to delete a database

3-18 Copyright © 2005, Oracle. All rights reserved.


Practice Overview:
Using the DBCA

This practice covers the following topics:


• Creating a database design template by using the
DBCA
Optionally:
• Creating an additional database
• Deleting a database

3-19 Copyright © 2005, Oracle. All rights reserved.


3-20 Copyright © 2005, Oracle. All rights reserved.