SlideShare una empresa de Scribd logo
1 de 55
Oracle 10g Database
Administrator: Implementation
and Administration
Creating an Oracle Instance
Objectives
•
•
•
•

Learn the steps for creating a database
Understand the prerequisites for creating a database
Configure initial settings for database creation
Create, start, and stop a database instance

Oracle 10g Database Administrator: Implementation and Administration

2
Objectives (continued)
• Learn the basics of managing configuration
parameter files
• Learn the purpose and location of the alert log and
trace files

Oracle 10g Database Administrator: Implementation and Administration

3
Steps for Creating a Database

Oracle 10g Database Administrator: Implementation and Administration

4
Steps for Creating a DB (continued)

Oracle 10g Database Administrator: Implementation and Administration

5
Steps for Creating a DB (continued)

Oracle 10g Database Administrator: Implementation and Administration

6
Overview of Prerequisites for Creating
a Database
• Creating a database is a separate process that
occurs after DB software has been installed
• Prerequisites:
– Oracle software must be installed on the computer
• SW may reside on a different machine than the
database

– You must be able to log on as a user with installation
privileges and with the correct set of environmental
variables in place
– The machine must have enough memory and disk
space to install and start the database
Oracle 10g Database Administrator: Implementation and Administration

7
Overview of Prerequisites for Creating
a Database (continued)
• Requirements to install Oracle 10g Enterprise
Edition on Windows 2000:
–
–
–
–
–
–
–
–

RAM: 512 MBs minimum, 1024 MBs recommended
Virtual memory: double-up the amount of RAM
Temp space: 100 MBs
Storage space: ORACLE_HOME drive for Oracle
binary files (system drive) of at least 100 MBs
Start database size: At least 800 MBs
Total space: at least 1.5 GBs recommended in total
Video adapter: greater than 256 colors
Processor speed: greater than 450 Mhz

Oracle 10g Database Administrator: Implementation and Administration

8
Choosing Configuration
• Important configuration tasks:
– Choose a database type
• Transactional, data warehouse, or hybrid

– How should the database be managed?
• OEM Grid Control or OEM Database Control

– Decide on the DBA authentication method
– Select a storage mechanism
• OS, ASM, or raw devices

– Decide on the file management method
• Specified or set using OMF

– Set the initial parameters (init.ora)
Oracle 10g Database Administrator: Implementation and Administration

9
Database Type

Oracle 10g Database Administrator: Implementation and Administration

10
Database Management Tool

Oracle 10g Database Administrator: Implementation and Administration

11
DBA Authentication Methods
• The DBA authentication method encompasses the
method used to validate logon of users with the
SYSDBA or SYSOPER role
– SYSDBA: ADMIN role and can CREATE DATABASE
– SYSOPER: has system privileges to start up, shut
down, and back up the database, and modify
database components

• Two authentication methods:
– OS authentication
– Password file authentication
Oracle 10g Database Administrator: Implementation and Administration

12
Operating System (OS) Authentication
• User logs without specifying user name/password
• To set up OS authentication, follow these steps:
1.
2.
3.
4.

Create OS user for the DBA
Unix only: Create an OSDBA group
Optional: Create an OSOPER group
Set the initialization parameter
REMOTE_LOGIN_PASSWORDFILE to NONE
5. Assign OS user to OSDBA or OSOPER group
6. Create Oracle user in DB with same name

• To log on to SQL*Plus using OS authentication:
sqlplus /nolog
CONNECT /@ORACLASS AS SYSDBA
Oracle 10g Database Administrator: Implementation and Administration

13
Password File Authentication
• Encrypted file contains user names and passwords
• To set up password file authentication:
– Create a new password file (orapwd)
• Windows: PWD<sid>.ORA, in
ORACLE_HOMEdatabase
• Unix: orapw<sid>.ora, typically in ORACLE_HOME/dbs

1. REMOTE_LOGIN_PASSWORD FILE = EXCLUSIVE
2. Log on to DB with SYSDBA privileges
3. Create the new DBA user name if needed
4. Grant SYSDBA or SYSOPER privilege to user
Oracle 10g Database Administrator: Implementation and Administration

14
Password File Authentication
(continued)
• You can log on to the database with SYSDBA or
SYSOPER roles in Enterprise Manager as well as
in SQL*Plus

Oracle 10g Database Administrator: Implementation and Administration

15
Password File Authentication
(continued)

Oracle 10g Database Administrator: Implementation and Administration

16
Storage Management Methods

Oracle 10g Database Administrator: Implementation and Administration

17
File Management Methods
• The two primary tasks in file management are:
– Location of files
• Oracle recommends that you multiplex control files

– Addition, expansion, and deletion of files
• Storage requirements grow and shrink according to
the activity in the database

• There are two basic file management methods
available for a new database
– User-managed
– Oracle Managed Files
Oracle 10g Database Administrator: Implementation and Administration

18
File Management Methods (continued)

Oracle 10g Database Administrator: Implementation and Administration

19
User-Managed File Management
• A good reason for using the user-managed method
of file management is to continue with a customized
file management standard that was in place for
earlier versions of the database
– Advantage: administrator has total control
– Disadvantage: many tasks involve manual intervention

• To implement user-managed redo log files, use the
LOGFILES clause in CREATE DATABASE
• Omitting a fully qualified DATAFILE clause in
CREATE DATABASE causes Oracle 10g to create
OMFs as the datafiles for the SYSTEM tablespace
Oracle 10g Database Administrator: Implementation and Administration

20
Oracle Managed Files
• OMF automates most menial file management
tasks, leaving more important decisions to DBA
– File creation/expansion/deletion as DB size changes

• Advantages:
– Adherence to OFA naming standards
– Automatic removal of dependent datafiles when a
tablespace is dropped
– Simplified syntax for CREATE DATABASE
– Automated expansion and addition of datafiles as
storage requirements change
Oracle 10g Database Administrator: Implementation and Administration

21
Oracle Managed Files (continued)
• Main disadvantage: inability to control exact size
and name of datafiles, control files, and log files
• You can create some files as user-managed files
and leave others as OMF in the same database
• Specify values in these initialization parameters:
DB_CREATE_FILE_DEST = D:oracleproduct10.2.0
DB_CREATE_ONLINE_LOG_DEST_1 = D:oracleproduct10.2.0
DB_CREATE_ONLINE_LOG_DEST_2 = E:oracleproduct10.2.0

– The directories must already exist
– On CREATE DATABASE, omit the parameters for
control file, redo log file, and SYSTEM tablespace
datafiles

• Names comply with OFA
Oracle 10g Database Administrator: Implementation and Administration

22
Set the Initialization Parameters

Oracle 10g Database Administrator: Implementation and Administration

23
Set the Initialization Parameters
(continued)

Oracle 10g Database Administrator: Implementation and Administration

24
Set the Initialization Parameters
(continued)

Oracle 10g Database Administrator: Implementation and Administration

25
Set the Initialization Parameters
(continued)

Oracle 10g Database Administrator: Implementation and Administration

26
Set the Initialization Parameters
(continued)

Oracle 10g Database Administrator: Implementation and Administration

27
Set the Initialization Parameters
(continued)

Oracle 10g Database Administrator: Implementation and Administration

28
Creating a Database
• To create a database you can use:
– Database Configuration Assistant (DBCA tool)
– CREATE DATABASE command

• You can use the DBCA tool to generate scripts for
creating a database manually
– You can use these scripts if you have multiple
consistent databases to create at different sites

• CREATE DATABASE gives you greater flexibility
but unnecessary complexity with settings
– You do need to be familiar with its syntax
Oracle 10g Database Administrator: Implementation and Administration

29
Create a New Database Using the
Database Configuration Assistant

Oracle 10g Database Administrator: Implementation and Administration

30
Create a New Database Using the
DCBA Tool (continued)

Oracle 10g Database Administrator: Implementation and Administration

31
Create a New Database Using the
DCBA Tool (continued)

Oracle 10g Database Administrator: Implementation and Administration

32
Create a New Database Using the
DCBA Tool (continued)

Oracle 10g Database Administrator: Implementation and Administration

33
Create a New Database Using the
DCBA Tool (continued)

Oracle 10g Database Administrator: Implementation and Administration

34
Create a New Database Using the
DCBA Tool (continued)

Oracle 10g Database Administrator: Implementation and Administration

35
Connecting to a New Database

Oracle 10g Database Administrator: Implementation and Administration

36
Connecting to a New Database
(continued)

Oracle 10g Database Administrator: Implementation and Administration

37
Creating a Database Manually

Oracle 10g Database Administrator: Implementation and Administration

38
Creating a Database Manually
(continued)

Oracle 10g Database Administrator: Implementation and Administration

39
Creating a Database Manually
(continued)
CREATE DATABASE "trial02"
MAXINSTANCES 8
MAXLOGHISTORY 1
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
DATAFILE 'ORACLE_BASEoradatatrial02system01.dbf' SIZE 300M REUSE
AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
EXTENT MANAGEMENT LOCAL
SYSAUX DATAFILE 'ORACLE_BASEoradatatrial02sysaux01.dbf' SIZE 120M
REUSE
AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE
'ORACLE_BASEoradatatrial02temp01.dbf' SIZE 20M REUSE
AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED
UNDO TABLESPACE "UNDOTBS1" DATAFILE
'ORACLE_BASEoradatatrial02undotbs01.dbf' SIZE 200M REUSE
AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED
CHARACTER SET WE8MSWIN1252
NATIONAL CHARACTER SET AL16UTF16
LOGFILE GROUP 1 ('ORACLE_BASEoradatatrial02redo01.log') SIZE 10240K,
GROUP 2 ('ORACLE_BASEoradatatrial02redo02.log') SIZE 10240K,
GROUP 3 ('ORACLE_BASEoradatatrial02redo03.log') SIZE 10240K
USER SYS IDENTIFIED BY "&&sysPassword"
USER SYSTEM IDENTIFIED BY "&&systemPassword"
;

Oracle 10g Database Administrator: Implementation and Administration

40
Creating a Database Manually
(continued)
• CREATE DATABASE is simple when using OMF
– DB_FILE_DEST tells where to locate datafiles
– DB_ONLINE_LOGFILE_DEST_n tells where to
place control and redo log files
– If you omit these parameters from init<sid>.ora, you
can still use OMF, placing files in a default directory
• To invoke OMF, omit all of the filenames and
locations in CREATE DATABASE
CREATE DATABASE testOFM
MAXINSTANCES 1
CHARACTER SET WE8MSWIN1252
NATIONAL CHARACTER SET AL16UTF16;

• To execute the scripts, execute the batch file
created in ORACLE_BASE/admin/trial02/scripts
Oracle 10g Database Administrator: Implementation and Administration

41
Starting and Stopping the Instance
and Database
• To shut down a running database using SQL*Plus:
1. Start a Command Prompt window (or shell)
2. Start up SQL*Plus without logging: sqlplus /nolog
3. Connect as SYS with SYSDBA
CONNECT SYS/<password>@trial01 AS SYSDBA

1. Type SHUTDOWN IMMEDIATE and press Enter
Database closed.
Database dismounted.
ORACLE instance shut down.

• There are four options for SHUTDOWN:
– NORMAL, TRANSACTIONAL, IMMEDIATE, ABORT
Oracle 10g Database Administrator: Implementation and Administration

42
Starting and Stopping the Instance
and Database (continued)
• To start DB, change step 4 in previous slide:
STARTUP PFILE=ORACLE_BASEadmintrial01pfileinittrial01.ora

– PFILE parameter needed if you have not created the
SPFILE

• STARTUP options:
– NOMOUNT, MOUNT, OPEN, PFILE

Oracle 10g Database Administrator: Implementation and Administration

43
Starting and Stopping the Instance
and Database (continued)

Oracle 10g Database Administrator: Implementation and Administration

44
Managing Text and Binary (Server)
Parameter Files
• Starting up a DB using a PFILE requires an explicit
sequence of commands, restarting DB as follows:
SHUTDOWN;
STARTUP MOUNT PFILE='C:oracleproduct10.2.0
0admintria01pfileinittrial01.ora’;
ALTER DATBASE OPEN;

• The SPFILE can be used to create a PFILE or vice
versa:
CREATE PFILE='C:oracleproduct10.2.0admintrial01pfileinittrial01.ora'
FROM SPFILE='C:oracleproduct10.2.0db_1databasespfiletrial01.ora';
CREATE SPFILE='C:oracleproduct10.2.0db_1databasespfiletrial01.ora'
FROM PFILE='C:oracleproduct10.2.0admintrial01pfileinittrial01.ora';

Oracle 10g Database Administrator: Implementation and Administration

45
The Alert Log and Trace Files
• The alert log is essential because it will contain all
the essential information for the smooth running of
your database
– All critical errors will be written to the alert log

• Trace files contain more detailed log and tracing
information about general processing
– Trace files can be used to track down problems not
causing critical failures, generally using special tools
• E.g. , TKPROF

Oracle 10g Database Administrator: Implementation and Administration

46
Expanding OFA Just a Little More
• The OFA needs to be expanded from Chapter 1 to
include other factors introduced in this chapter
– Chapter 1 described OFA as requiring a directory
structure as follows:
– Admin/<database name>
– bdump
– cdump
– create
– pfile
– udump
– db_1
– client_1
– oradata/<database name>
– flash_recovery_area/<database name>

Oracle 10g Database Administrator: Implementation and Administration

47
Summary
• Installing the Oracle 10g database software is a
separate process from that of creating a database
• Databases can be created using the Database
Configuration Assistant (DBCA tool) or manually
using the CREATE DATABASE command
• When creating a DB manually it is best to generate
scripts using DBCA first, and then to edit them
• The OS-specific installation guide describes
minimum requirements for installing a new database
• The DBA authentication method determines how
Oracle 10g validates users logging on with SYSDBA
or SYSOPER privileges
Oracle 10g Database Administrator: Implementation and Administration

48
Summary (continued)
• OS authentication relies on the OS’s security to
validate the user/password, and authorization group
• The REMOTE_LOGIN_PASSWORDFILE parameter
is set to NONE for OS authentication
• Password file authentication stores user names and
passwords and group membership in an encrypted
file in the OS
• Set REMOTE_LOGIN_PASSWORDFILE to
EXCLUSIVE for password file authentication
• The ORAPWD utility generates the password file for
SYSDBA and SYSOPER and then the database
maintains it with changes to passwords
Oracle 10g Database Administrator: Implementation and Administration

49
Summary (continued)
• Control files can be multiplexed (each subsequent
control file is an exact copy of the first control file)
– Multiplexed copies of control files should be located
on different physical devices to guard against damage

• Prevent bottlenecks in data access by placing data
on several physical devices (spreads the demand)
• Oracle Managed Files ease the DBA’s ongoing
problem of monitoring and controlling the growth of
datafiles
• User-managed file management offers more
detailed control over datafiles than Oracle Managed
Files, but requires more manual maintenance tasks
Oracle 10g Database Administrator: Implementation and Administration

50
Summary (continued)
• The OMF method automates removal of dependent
datafiles when a tablespace is dropped
• OMF handles datafile creation, naming, and sizing
• The parameter of DB_CREATE_FILE_DEST
initialization sets the location of datafiles when
using OMF
• The DB_CREATE_ONLINE_LOG_DEST_
initialization parameters set the location of control
files and redo log files when using OMF
• OMF uses OFA as its file-naming standard
Oracle 10g Database Administrator: Implementation and Administration

51
Summary (continued)
• Initialization parameters are: basic and advanced
• When using a binary parameter file, initialization
parameters can be changed at the session level for
the life of a database connection
• The DBCA tool leads you through several steps to
create a new database
– Types of database configurations, including Custom,
Data Warehouse, Transaction Processing, and
General Purpose

• Dedicated Server mode does not work well for very
large OLTP databases
Oracle 10g Database Administrator: Implementation and Administration

52
Summary (continued)
• DBCA provides an opportunity to customize
memory size and initialization parameters
• Adjusting of tablespace/datafile sizes and locations
depends on the DB type selected using DBCA
• After creating a new database, use Net Manager to
set up a Net Service name for the database
• To create a DB manually, first set up a directory
structure for the files that are to be created
• Create a password file to implement password file
authentication when the new database is created
Oracle 10g Database Administrator: Implementation and Administration

53
Summary (continued)
• A DB service must be started if using Windows, but
is not required if you are using Unix or Linux
• CREATE DATABASE generates datafiles, control
files, etc.
• Manually created DBs should have tablespaces
called SYSTEM for metadata, SYSAUX for Oracle
add-on options, temporary storage, an undo
tablespace, and a tablespace for other schemas
• Manually created DBs should include minimum
scripting generation options, as created by DBCA
• To use SHUTDOWN in SQL*Plus, log in as
SYSDBA

Oracle 10g Database Administrator: Implementation and Administration

54
Summary (continued)
• SHUTDOWN IMMEDIATE is faster than
SHUTDOWN NORMAL
• SHUTDOWN ABORT is used only when the
database has errors and does not shut down with
NORMAL, IMMEDIATE, or TRANSACTIONAL
• A DB can be started up with a text or binary
configuration initialization parameter file
– A binary file allows changing of most parameters
with the database up and running

• Alert log contains critical errors
Oracle 10g Database Administrator: Implementation and Administration

55

Más contenido relacionado

La actualidad más candente

Architecture of dbms(lecture 3)
Architecture of dbms(lecture 3)Architecture of dbms(lecture 3)
Architecture of dbms(lecture 3)Ravinder Kamboj
 
Active directory architecture
Active directory architectureActive directory architecture
Active directory architecturerahuldaredia21
 
Basic Concept of Database
Basic Concept of DatabaseBasic Concept of Database
Basic Concept of DatabaseMarlon Jamera
 
Database management systems components
Database management systems componentsDatabase management systems components
Database management systems componentsmuhammad bilal
 
An Introduction To Oracle Database
An Introduction To Oracle DatabaseAn Introduction To Oracle Database
An Introduction To Oracle DatabaseMeysam Javadi
 
Introduction of DBMS
Introduction of DBMSIntroduction of DBMS
Introduction of DBMSYouQue ™
 
Database management functions
Database management functionsDatabase management functions
Database management functionsyhen06
 
Oracle Architecture
Oracle ArchitectureOracle Architecture
Oracle ArchitectureNeeraj Singh
 
Overview of Object-Oriented Concepts Characteristics by vikas jagtap
Overview of Object-Oriented Concepts Characteristics by vikas jagtapOverview of Object-Oriented Concepts Characteristics by vikas jagtap
Overview of Object-Oriented Concepts Characteristics by vikas jagtapVikas Jagtap
 
Different type of databases
Different type of databasesDifferent type of databases
Different type of databasesShwe Yee
 
Introduction to oracle database (basic concepts)
Introduction to oracle database (basic concepts)Introduction to oracle database (basic concepts)
Introduction to oracle database (basic concepts)Bilal Arshad
 

La actualidad más candente (20)

Database ms priyanka
Database ms priyankaDatabase ms priyanka
Database ms priyanka
 
Architecture of dbms(lecture 3)
Architecture of dbms(lecture 3)Architecture of dbms(lecture 3)
Architecture of dbms(lecture 3)
 
Active directory architecture
Active directory architectureActive directory architecture
Active directory architecture
 
DATABASE MANAGEMENT
DATABASE MANAGEMENTDATABASE MANAGEMENT
DATABASE MANAGEMENT
 
INTRODUCTION TO DATABASE
INTRODUCTION TO DATABASEINTRODUCTION TO DATABASE
INTRODUCTION TO DATABASE
 
Basic Concept of Database
Basic Concept of DatabaseBasic Concept of Database
Basic Concept of Database
 
Dbms and sqlpptx
Dbms and sqlpptxDbms and sqlpptx
Dbms and sqlpptx
 
Database management systems components
Database management systems componentsDatabase management systems components
Database management systems components
 
Database systems
Database systemsDatabase systems
Database systems
 
An Introduction To Oracle Database
An Introduction To Oracle DatabaseAn Introduction To Oracle Database
An Introduction To Oracle Database
 
Introduction of DBMS
Introduction of DBMSIntroduction of DBMS
Introduction of DBMS
 
Ms sql-server
Ms sql-serverMs sql-server
Ms sql-server
 
Database management functions
Database management functionsDatabase management functions
Database management functions
 
Oracle Architecture
Oracle ArchitectureOracle Architecture
Oracle Architecture
 
Overview of Object-Oriented Concepts Characteristics by vikas jagtap
Overview of Object-Oriented Concepts Characteristics by vikas jagtapOverview of Object-Oriented Concepts Characteristics by vikas jagtap
Overview of Object-Oriented Concepts Characteristics by vikas jagtap
 
Oracle DBA
Oracle DBAOracle DBA
Oracle DBA
 
Dbms and rdbms ppt
Dbms and rdbms pptDbms and rdbms ppt
Dbms and rdbms ppt
 
Different type of databases
Different type of databasesDifferent type of databases
Different type of databases
 
Db2 tutorial
Db2 tutorialDb2 tutorial
Db2 tutorial
 
Introduction to oracle database (basic concepts)
Introduction to oracle database (basic concepts)Introduction to oracle database (basic concepts)
Introduction to oracle database (basic concepts)
 

Destacado

Steps of-creating-a-database
Steps of-creating-a-databaseSteps of-creating-a-database
Steps of-creating-a-databaseAIMS Education
 
Creating a database
Creating a databaseCreating a database
Creating a databaseRahul Gupta
 
Basic oracle-database-administration
Basic oracle-database-administrationBasic oracle-database-administration
Basic oracle-database-administrationsreehari orienit
 
Database Design Process
Database Design ProcessDatabase Design Process
Database Design Processmussawir20
 
Oracle 11gr2 - database configuration assistant (dbca) - New database
Oracle 11gr2 - database configuration assistant (dbca) - New databaseOracle 11gr2 - database configuration assistant (dbca) - New database
Oracle 11gr2 - database configuration assistant (dbca) - New databaseSimón Alonso Sánchez
 
Creating Database 2010
Creating Database 2010Creating Database 2010
Creating Database 2010tgushi12
 
Oracle Database Administration Part I covering Both Oracle 11g r2 and 12c r1
Oracle Database Administration Part I covering Both Oracle 11g r2 and 12c r1Oracle Database Administration Part I covering Both Oracle 11g r2 and 12c r1
Oracle Database Administration Part I covering Both Oracle 11g r2 and 12c r1John Boyle
 
Creating and Managing Tables -Oracle Data base
Creating and Managing Tables -Oracle Data base Creating and Managing Tables -Oracle Data base
Creating and Managing Tables -Oracle Data base Salman Memon
 
Restricting and Sorting Data - Oracle Data Base
Restricting and Sorting Data - Oracle Data BaseRestricting and Sorting Data - Oracle Data Base
Restricting and Sorting Data - Oracle Data BaseSalman Memon
 
Constraints In Sql
Constraints In SqlConstraints In Sql
Constraints In SqlAnurag
 
Oracle dba trainining in hyderabad
Oracle dba trainining in hyderabadOracle dba trainining in hyderabad
Oracle dba trainining in hyderabadsreehari orienit
 

Destacado (20)

Steps of-creating-a-database
Steps of-creating-a-databaseSteps of-creating-a-database
Steps of-creating-a-database
 
Creating a database
Creating a databaseCreating a database
Creating a database
 
Base1
Base1Base1
Base1
 
Basic oracle-database-administration
Basic oracle-database-administrationBasic oracle-database-administration
Basic oracle-database-administration
 
Database Design Process
Database Design ProcessDatabase Design Process
Database Design Process
 
Oracle 11gr2 - database configuration assistant (dbca) - New database
Oracle 11gr2 - database configuration assistant (dbca) - New databaseOracle 11gr2 - database configuration assistant (dbca) - New database
Oracle 11gr2 - database configuration assistant (dbca) - New database
 
Creating Database 2010
Creating Database 2010Creating Database 2010
Creating Database 2010
 
8. sql
8. sql8. sql
8. sql
 
Oracle Database Administration Part I covering Both Oracle 11g r2 and 12c r1
Oracle Database Administration Part I covering Both Oracle 11g r2 and 12c r1Oracle Database Administration Part I covering Both Oracle 11g r2 and 12c r1
Oracle Database Administration Part I covering Both Oracle 11g r2 and 12c r1
 
Databases
DatabasesDatabases
Databases
 
Less06 Storage
Less06 StorageLess06 Storage
Less06 Storage
 
Oracle APPS DBA Course Content
Oracle APPS DBA Course ContentOracle APPS DBA Course Content
Oracle APPS DBA Course Content
 
Razak
RazakRazak
Razak
 
Oracle database services
Oracle database servicesOracle database services
Oracle database services
 
Creating and Managing Tables -Oracle Data base
Creating and Managing Tables -Oracle Data base Creating and Managing Tables -Oracle Data base
Creating and Managing Tables -Oracle Data base
 
Restricting and Sorting Data - Oracle Data Base
Restricting and Sorting Data - Oracle Data BaseRestricting and Sorting Data - Oracle Data Base
Restricting and Sorting Data - Oracle Data Base
 
Constraints In Sql
Constraints In SqlConstraints In Sql
Constraints In Sql
 
Database design
Database designDatabase design
Database design
 
Oracle Enterprise Manager
Oracle Enterprise ManagerOracle Enterprise Manager
Oracle Enterprise Manager
 
Oracle dba trainining in hyderabad
Oracle dba trainining in hyderabadOracle dba trainining in hyderabad
Oracle dba trainining in hyderabad
 

Similar a Creating database

Less02installation 100330034101-phpapp02
Less02installation 100330034101-phpapp02Less02installation 100330034101-phpapp02
Less02installation 100330034101-phpapp02Rati Manandhar
 
COUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_FeaturesCOUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_FeaturesAlfredo Abate
 
Less02 installation
Less02 installationLess02 installation
Less02 installationImran Ali
 
Improving oracle12c security
Improving oracle12c securityImproving oracle12c security
Improving oracle12c securityLaurent Leturgez
 
Improve oracle 12c security
Improve oracle 12c securityImprove oracle 12c security
Improve oracle 12c securityLaurent Leturgez
 
Oracle database 12c intro
Oracle database 12c introOracle database 12c intro
Oracle database 12c intropasalapudi
 
Using oracle12c pluggable databases to archive
Using oracle12c pluggable databases to archiveUsing oracle12c pluggable databases to archive
Using oracle12c pluggable databases to archiveSecure-24
 
TIB Academy provides best Oracal DBA classes in Bangalore
TIB Academy provides best Oracal DBA classes in BangaloreTIB Academy provides best Oracal DBA classes in Bangalore
TIB Academy provides best Oracal DBA classes in BangaloreTIB Academy
 
Oracle database connection with the .net developers
Oracle database connection with the .net developersOracle database connection with the .net developers
Oracle database connection with the .net developersveerendramb3
 
What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1Satishbabu Gunukula
 
oracle 10G DBA Training In Delhi NCR
oracle 10G DBA Training In Delhi NCRoracle 10G DBA Training In Delhi NCR
oracle 10G DBA Training In Delhi NCRShri Prakash Pandey
 
Database 12c is ready for you... Are you ready for 12c?
Database 12c is ready for you... Are you ready for 12c?Database 12c is ready for you... Are you ready for 12c?
Database 12c is ready for you... Are you ready for 12c?Performance Tuning Corporation
 
Less02 Installation
Less02 InstallationLess02 Installation
Less02 Installationvivaankumar
 
Less02 Installation
Less02  InstallationLess02  Installation
Less02 Installationvivaankumar
 
ORACLE APPS DBA ONLINE TRAINING
ORACLE APPS DBA ONLINE TRAININGORACLE APPS DBA ONLINE TRAINING
ORACLE APPS DBA ONLINE TRAININGSanthosh Sap
 

Similar a Creating database (20)

Oracle administration classes in mumbai
Oracle administration classes in mumbaiOracle administration classes in mumbai
Oracle administration classes in mumbai
 
DBA oracle
DBA oracleDBA oracle
DBA oracle
 
Less02installation 100330034101-phpapp02
Less02installation 100330034101-phpapp02Less02installation 100330034101-phpapp02
Less02installation 100330034101-phpapp02
 
COUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_FeaturesCOUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_Features
 
Less02 installation
Less02 installationLess02 installation
Less02 installation
 
Improving oracle12c security
Improving oracle12c securityImproving oracle12c security
Improving oracle12c security
 
Improve oracle 12c security
Improve oracle 12c securityImprove oracle 12c security
Improve oracle 12c security
 
Oracle database 12c intro
Oracle database 12c introOracle database 12c intro
Oracle database 12c intro
 
ora_sothea
ora_sotheaora_sothea
ora_sothea
 
Using oracle12c pluggable databases to archive
Using oracle12c pluggable databases to archiveUsing oracle12c pluggable databases to archive
Using oracle12c pluggable databases to archive
 
TIB Academy provides best Oracal DBA classes in Bangalore
TIB Academy provides best Oracal DBA classes in BangaloreTIB Academy provides best Oracal DBA classes in Bangalore
TIB Academy provides best Oracal DBA classes in Bangalore
 
Oracle database connection with the .net developers
Oracle database connection with the .net developersOracle database connection with the .net developers
Oracle database connection with the .net developers
 
What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1
 
Flashback in OCI
Flashback in OCIFlashback in OCI
Flashback in OCI
 
oracle 10G DBA Training In Delhi NCR
oracle 10G DBA Training In Delhi NCRoracle 10G DBA Training In Delhi NCR
oracle 10G DBA Training In Delhi NCR
 
Database 12c is ready for you... Are you ready for 12c?
Database 12c is ready for you... Are you ready for 12c?Database 12c is ready for you... Are you ready for 12c?
Database 12c is ready for you... Are you ready for 12c?
 
Sg1 Cover Page
Sg1 Cover PageSg1 Cover Page
Sg1 Cover Page
 
Less02 Installation
Less02 InstallationLess02 Installation
Less02 Installation
 
Less02 Installation
Less02  InstallationLess02  Installation
Less02 Installation
 
ORACLE APPS DBA ONLINE TRAINING
ORACLE APPS DBA ONLINE TRAININGORACLE APPS DBA ONLINE TRAINING
ORACLE APPS DBA ONLINE TRAINING
 

Más de Hitesh Kumar Markam (19)

Concepts of Distributed Computing & Cloud Computing
Concepts of Distributed Computing & Cloud Computing Concepts of Distributed Computing & Cloud Computing
Concepts of Distributed Computing & Cloud Computing
 
Data guard
Data guardData guard
Data guard
 
Tunning overview
Tunning overviewTunning overview
Tunning overview
 
Resize sga
Resize sgaResize sga
Resize sga
 
Rman offline backup
Rman offline backupRman offline backup
Rman offline backup
 
Oracle shutdown
Oracle shutdownOracle shutdown
Oracle shutdown
 
Log miner in oracle.ppt
Log miner in oracle.pptLog miner in oracle.ppt
Log miner in oracle.ppt
 
Dba in 2 days unit no 9
Dba in 2 days unit no 9Dba in 2 days unit no 9
Dba in 2 days unit no 9
 
5 backuprecoveryw imp
5 backuprecoveryw imp5 backuprecoveryw imp
5 backuprecoveryw imp
 
Rmanpres
RmanpresRmanpres
Rmanpres
 
Pl sql
Pl sqlPl sql
Pl sql
 
Oracle archi ppt
Oracle archi pptOracle archi ppt
Oracle archi ppt
 
Lecture2 oracle ppt
Lecture2 oracle pptLecture2 oracle ppt
Lecture2 oracle ppt
 
Dbms objective and subjective notes
Dbms objective and subjective notesDbms objective and subjective notes
Dbms objective and subjective notes
 
Dba in 2 days
Dba in 2 daysDba in 2 days
Dba in 2 days
 
1 plsql introduction1
1 plsql introduction11 plsql introduction1
1 plsql introduction1
 
Store programs
Store programsStore programs
Store programs
 
javascript code for mysql database connection
javascript code for mysql database connectionjavascript code for mysql database connection
javascript code for mysql database connection
 
Advanced Planning And Optimization
Advanced Planning And OptimizationAdvanced Planning And Optimization
Advanced Planning And Optimization
 

Último

Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 

Último (20)

Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 

Creating database

  • 1. Oracle 10g Database Administrator: Implementation and Administration Creating an Oracle Instance
  • 2. Objectives • • • • Learn the steps for creating a database Understand the prerequisites for creating a database Configure initial settings for database creation Create, start, and stop a database instance Oracle 10g Database Administrator: Implementation and Administration 2
  • 3. Objectives (continued) • Learn the basics of managing configuration parameter files • Learn the purpose and location of the alert log and trace files Oracle 10g Database Administrator: Implementation and Administration 3
  • 4. Steps for Creating a Database Oracle 10g Database Administrator: Implementation and Administration 4
  • 5. Steps for Creating a DB (continued) Oracle 10g Database Administrator: Implementation and Administration 5
  • 6. Steps for Creating a DB (continued) Oracle 10g Database Administrator: Implementation and Administration 6
  • 7. Overview of Prerequisites for Creating a Database • Creating a database is a separate process that occurs after DB software has been installed • Prerequisites: – Oracle software must be installed on the computer • SW may reside on a different machine than the database – You must be able to log on as a user with installation privileges and with the correct set of environmental variables in place – The machine must have enough memory and disk space to install and start the database Oracle 10g Database Administrator: Implementation and Administration 7
  • 8. Overview of Prerequisites for Creating a Database (continued) • Requirements to install Oracle 10g Enterprise Edition on Windows 2000: – – – – – – – – RAM: 512 MBs minimum, 1024 MBs recommended Virtual memory: double-up the amount of RAM Temp space: 100 MBs Storage space: ORACLE_HOME drive for Oracle binary files (system drive) of at least 100 MBs Start database size: At least 800 MBs Total space: at least 1.5 GBs recommended in total Video adapter: greater than 256 colors Processor speed: greater than 450 Mhz Oracle 10g Database Administrator: Implementation and Administration 8
  • 9. Choosing Configuration • Important configuration tasks: – Choose a database type • Transactional, data warehouse, or hybrid – How should the database be managed? • OEM Grid Control or OEM Database Control – Decide on the DBA authentication method – Select a storage mechanism • OS, ASM, or raw devices – Decide on the file management method • Specified or set using OMF – Set the initial parameters (init.ora) Oracle 10g Database Administrator: Implementation and Administration 9
  • 10. Database Type Oracle 10g Database Administrator: Implementation and Administration 10
  • 11. Database Management Tool Oracle 10g Database Administrator: Implementation and Administration 11
  • 12. DBA Authentication Methods • The DBA authentication method encompasses the method used to validate logon of users with the SYSDBA or SYSOPER role – SYSDBA: ADMIN role and can CREATE DATABASE – SYSOPER: has system privileges to start up, shut down, and back up the database, and modify database components • Two authentication methods: – OS authentication – Password file authentication Oracle 10g Database Administrator: Implementation and Administration 12
  • 13. Operating System (OS) Authentication • User logs without specifying user name/password • To set up OS authentication, follow these steps: 1. 2. 3. 4. Create OS user for the DBA Unix only: Create an OSDBA group Optional: Create an OSOPER group Set the initialization parameter REMOTE_LOGIN_PASSWORDFILE to NONE 5. Assign OS user to OSDBA or OSOPER group 6. Create Oracle user in DB with same name • To log on to SQL*Plus using OS authentication: sqlplus /nolog CONNECT /@ORACLASS AS SYSDBA Oracle 10g Database Administrator: Implementation and Administration 13
  • 14. Password File Authentication • Encrypted file contains user names and passwords • To set up password file authentication: – Create a new password file (orapwd) • Windows: PWD<sid>.ORA, in ORACLE_HOMEdatabase • Unix: orapw<sid>.ora, typically in ORACLE_HOME/dbs 1. REMOTE_LOGIN_PASSWORD FILE = EXCLUSIVE 2. Log on to DB with SYSDBA privileges 3. Create the new DBA user name if needed 4. Grant SYSDBA or SYSOPER privilege to user Oracle 10g Database Administrator: Implementation and Administration 14
  • 15. Password File Authentication (continued) • You can log on to the database with SYSDBA or SYSOPER roles in Enterprise Manager as well as in SQL*Plus Oracle 10g Database Administrator: Implementation and Administration 15
  • 16. Password File Authentication (continued) Oracle 10g Database Administrator: Implementation and Administration 16
  • 17. Storage Management Methods Oracle 10g Database Administrator: Implementation and Administration 17
  • 18. File Management Methods • The two primary tasks in file management are: – Location of files • Oracle recommends that you multiplex control files – Addition, expansion, and deletion of files • Storage requirements grow and shrink according to the activity in the database • There are two basic file management methods available for a new database – User-managed – Oracle Managed Files Oracle 10g Database Administrator: Implementation and Administration 18
  • 19. File Management Methods (continued) Oracle 10g Database Administrator: Implementation and Administration 19
  • 20. User-Managed File Management • A good reason for using the user-managed method of file management is to continue with a customized file management standard that was in place for earlier versions of the database – Advantage: administrator has total control – Disadvantage: many tasks involve manual intervention • To implement user-managed redo log files, use the LOGFILES clause in CREATE DATABASE • Omitting a fully qualified DATAFILE clause in CREATE DATABASE causes Oracle 10g to create OMFs as the datafiles for the SYSTEM tablespace Oracle 10g Database Administrator: Implementation and Administration 20
  • 21. Oracle Managed Files • OMF automates most menial file management tasks, leaving more important decisions to DBA – File creation/expansion/deletion as DB size changes • Advantages: – Adherence to OFA naming standards – Automatic removal of dependent datafiles when a tablespace is dropped – Simplified syntax for CREATE DATABASE – Automated expansion and addition of datafiles as storage requirements change Oracle 10g Database Administrator: Implementation and Administration 21
  • 22. Oracle Managed Files (continued) • Main disadvantage: inability to control exact size and name of datafiles, control files, and log files • You can create some files as user-managed files and leave others as OMF in the same database • Specify values in these initialization parameters: DB_CREATE_FILE_DEST = D:oracleproduct10.2.0 DB_CREATE_ONLINE_LOG_DEST_1 = D:oracleproduct10.2.0 DB_CREATE_ONLINE_LOG_DEST_2 = E:oracleproduct10.2.0 – The directories must already exist – On CREATE DATABASE, omit the parameters for control file, redo log file, and SYSTEM tablespace datafiles • Names comply with OFA Oracle 10g Database Administrator: Implementation and Administration 22
  • 23. Set the Initialization Parameters Oracle 10g Database Administrator: Implementation and Administration 23
  • 24. Set the Initialization Parameters (continued) Oracle 10g Database Administrator: Implementation and Administration 24
  • 25. Set the Initialization Parameters (continued) Oracle 10g Database Administrator: Implementation and Administration 25
  • 26. Set the Initialization Parameters (continued) Oracle 10g Database Administrator: Implementation and Administration 26
  • 27. Set the Initialization Parameters (continued) Oracle 10g Database Administrator: Implementation and Administration 27
  • 28. Set the Initialization Parameters (continued) Oracle 10g Database Administrator: Implementation and Administration 28
  • 29. Creating a Database • To create a database you can use: – Database Configuration Assistant (DBCA tool) – CREATE DATABASE command • You can use the DBCA tool to generate scripts for creating a database manually – You can use these scripts if you have multiple consistent databases to create at different sites • CREATE DATABASE gives you greater flexibility but unnecessary complexity with settings – You do need to be familiar with its syntax Oracle 10g Database Administrator: Implementation and Administration 29
  • 30. Create a New Database Using the Database Configuration Assistant Oracle 10g Database Administrator: Implementation and Administration 30
  • 31. Create a New Database Using the DCBA Tool (continued) Oracle 10g Database Administrator: Implementation and Administration 31
  • 32. Create a New Database Using the DCBA Tool (continued) Oracle 10g Database Administrator: Implementation and Administration 32
  • 33. Create a New Database Using the DCBA Tool (continued) Oracle 10g Database Administrator: Implementation and Administration 33
  • 34. Create a New Database Using the DCBA Tool (continued) Oracle 10g Database Administrator: Implementation and Administration 34
  • 35. Create a New Database Using the DCBA Tool (continued) Oracle 10g Database Administrator: Implementation and Administration 35
  • 36. Connecting to a New Database Oracle 10g Database Administrator: Implementation and Administration 36
  • 37. Connecting to a New Database (continued) Oracle 10g Database Administrator: Implementation and Administration 37
  • 38. Creating a Database Manually Oracle 10g Database Administrator: Implementation and Administration 38
  • 39. Creating a Database Manually (continued) Oracle 10g Database Administrator: Implementation and Administration 39
  • 40. Creating a Database Manually (continued) CREATE DATABASE "trial02" MAXINSTANCES 8 MAXLOGHISTORY 1 MAXLOGFILES 16 MAXLOGMEMBERS 3 MAXDATAFILES 100 DATAFILE 'ORACLE_BASEoradatatrial02system01.dbf' SIZE 300M REUSE AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL SYSAUX DATAFILE 'ORACLE_BASEoradatatrial02sysaux01.dbf' SIZE 120M REUSE AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE 'ORACLE_BASEoradatatrial02temp01.dbf' SIZE 20M REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED UNDO TABLESPACE "UNDOTBS1" DATAFILE 'ORACLE_BASEoradatatrial02undotbs01.dbf' SIZE 200M REUSE AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED CHARACTER SET WE8MSWIN1252 NATIONAL CHARACTER SET AL16UTF16 LOGFILE GROUP 1 ('ORACLE_BASEoradatatrial02redo01.log') SIZE 10240K, GROUP 2 ('ORACLE_BASEoradatatrial02redo02.log') SIZE 10240K, GROUP 3 ('ORACLE_BASEoradatatrial02redo03.log') SIZE 10240K USER SYS IDENTIFIED BY "&&sysPassword" USER SYSTEM IDENTIFIED BY "&&systemPassword" ; Oracle 10g Database Administrator: Implementation and Administration 40
  • 41. Creating a Database Manually (continued) • CREATE DATABASE is simple when using OMF – DB_FILE_DEST tells where to locate datafiles – DB_ONLINE_LOGFILE_DEST_n tells where to place control and redo log files – If you omit these parameters from init<sid>.ora, you can still use OMF, placing files in a default directory • To invoke OMF, omit all of the filenames and locations in CREATE DATABASE CREATE DATABASE testOFM MAXINSTANCES 1 CHARACTER SET WE8MSWIN1252 NATIONAL CHARACTER SET AL16UTF16; • To execute the scripts, execute the batch file created in ORACLE_BASE/admin/trial02/scripts Oracle 10g Database Administrator: Implementation and Administration 41
  • 42. Starting and Stopping the Instance and Database • To shut down a running database using SQL*Plus: 1. Start a Command Prompt window (or shell) 2. Start up SQL*Plus without logging: sqlplus /nolog 3. Connect as SYS with SYSDBA CONNECT SYS/<password>@trial01 AS SYSDBA 1. Type SHUTDOWN IMMEDIATE and press Enter Database closed. Database dismounted. ORACLE instance shut down. • There are four options for SHUTDOWN: – NORMAL, TRANSACTIONAL, IMMEDIATE, ABORT Oracle 10g Database Administrator: Implementation and Administration 42
  • 43. Starting and Stopping the Instance and Database (continued) • To start DB, change step 4 in previous slide: STARTUP PFILE=ORACLE_BASEadmintrial01pfileinittrial01.ora – PFILE parameter needed if you have not created the SPFILE • STARTUP options: – NOMOUNT, MOUNT, OPEN, PFILE Oracle 10g Database Administrator: Implementation and Administration 43
  • 44. Starting and Stopping the Instance and Database (continued) Oracle 10g Database Administrator: Implementation and Administration 44
  • 45. Managing Text and Binary (Server) Parameter Files • Starting up a DB using a PFILE requires an explicit sequence of commands, restarting DB as follows: SHUTDOWN; STARTUP MOUNT PFILE='C:oracleproduct10.2.0 0admintria01pfileinittrial01.ora’; ALTER DATBASE OPEN; • The SPFILE can be used to create a PFILE or vice versa: CREATE PFILE='C:oracleproduct10.2.0admintrial01pfileinittrial01.ora' FROM SPFILE='C:oracleproduct10.2.0db_1databasespfiletrial01.ora'; CREATE SPFILE='C:oracleproduct10.2.0db_1databasespfiletrial01.ora' FROM PFILE='C:oracleproduct10.2.0admintrial01pfileinittrial01.ora'; Oracle 10g Database Administrator: Implementation and Administration 45
  • 46. The Alert Log and Trace Files • The alert log is essential because it will contain all the essential information for the smooth running of your database – All critical errors will be written to the alert log • Trace files contain more detailed log and tracing information about general processing – Trace files can be used to track down problems not causing critical failures, generally using special tools • E.g. , TKPROF Oracle 10g Database Administrator: Implementation and Administration 46
  • 47. Expanding OFA Just a Little More • The OFA needs to be expanded from Chapter 1 to include other factors introduced in this chapter – Chapter 1 described OFA as requiring a directory structure as follows: – Admin/<database name> – bdump – cdump – create – pfile – udump – db_1 – client_1 – oradata/<database name> – flash_recovery_area/<database name> Oracle 10g Database Administrator: Implementation and Administration 47
  • 48. Summary • Installing the Oracle 10g database software is a separate process from that of creating a database • Databases can be created using the Database Configuration Assistant (DBCA tool) or manually using the CREATE DATABASE command • When creating a DB manually it is best to generate scripts using DBCA first, and then to edit them • The OS-specific installation guide describes minimum requirements for installing a new database • The DBA authentication method determines how Oracle 10g validates users logging on with SYSDBA or SYSOPER privileges Oracle 10g Database Administrator: Implementation and Administration 48
  • 49. Summary (continued) • OS authentication relies on the OS’s security to validate the user/password, and authorization group • The REMOTE_LOGIN_PASSWORDFILE parameter is set to NONE for OS authentication • Password file authentication stores user names and passwords and group membership in an encrypted file in the OS • Set REMOTE_LOGIN_PASSWORDFILE to EXCLUSIVE for password file authentication • The ORAPWD utility generates the password file for SYSDBA and SYSOPER and then the database maintains it with changes to passwords Oracle 10g Database Administrator: Implementation and Administration 49
  • 50. Summary (continued) • Control files can be multiplexed (each subsequent control file is an exact copy of the first control file) – Multiplexed copies of control files should be located on different physical devices to guard against damage • Prevent bottlenecks in data access by placing data on several physical devices (spreads the demand) • Oracle Managed Files ease the DBA’s ongoing problem of monitoring and controlling the growth of datafiles • User-managed file management offers more detailed control over datafiles than Oracle Managed Files, but requires more manual maintenance tasks Oracle 10g Database Administrator: Implementation and Administration 50
  • 51. Summary (continued) • The OMF method automates removal of dependent datafiles when a tablespace is dropped • OMF handles datafile creation, naming, and sizing • The parameter of DB_CREATE_FILE_DEST initialization sets the location of datafiles when using OMF • The DB_CREATE_ONLINE_LOG_DEST_ initialization parameters set the location of control files and redo log files when using OMF • OMF uses OFA as its file-naming standard Oracle 10g Database Administrator: Implementation and Administration 51
  • 52. Summary (continued) • Initialization parameters are: basic and advanced • When using a binary parameter file, initialization parameters can be changed at the session level for the life of a database connection • The DBCA tool leads you through several steps to create a new database – Types of database configurations, including Custom, Data Warehouse, Transaction Processing, and General Purpose • Dedicated Server mode does not work well for very large OLTP databases Oracle 10g Database Administrator: Implementation and Administration 52
  • 53. Summary (continued) • DBCA provides an opportunity to customize memory size and initialization parameters • Adjusting of tablespace/datafile sizes and locations depends on the DB type selected using DBCA • After creating a new database, use Net Manager to set up a Net Service name for the database • To create a DB manually, first set up a directory structure for the files that are to be created • Create a password file to implement password file authentication when the new database is created Oracle 10g Database Administrator: Implementation and Administration 53
  • 54. Summary (continued) • A DB service must be started if using Windows, but is not required if you are using Unix or Linux • CREATE DATABASE generates datafiles, control files, etc. • Manually created DBs should have tablespaces called SYSTEM for metadata, SYSAUX for Oracle add-on options, temporary storage, an undo tablespace, and a tablespace for other schemas • Manually created DBs should include minimum scripting generation options, as created by DBCA • To use SHUTDOWN in SQL*Plus, log in as SYSDBA Oracle 10g Database Administrator: Implementation and Administration 54
  • 55. Summary (continued) • SHUTDOWN IMMEDIATE is faster than SHUTDOWN NORMAL • SHUTDOWN ABORT is used only when the database has errors and does not shut down with NORMAL, IMMEDIATE, or TRANSACTIONAL • A DB can be started up with a text or binary configuration initialization parameter file – A binary file allows changing of most parameters with the database up and running • Alert log contains critical errors Oracle 10g Database Administrator: Implementation and Administration 55