Dbam 05
Dbam 05
Database
Administration & Management
Lecture 05
Creating SPFILE
Start-up Database
• Starting-up a database creates an instance of that database.
Start-up Database
• Connect with SQL Plus as SYSDBA to start-up.
Start-up Database
• Starting an instance without Mounting a Database:
• STARTUP NOMOUNT
(Typically used only during database creation)
Start-up Database
• Forcing an instance to start:
• STARTUP FORCE
(rarely used; when experiencing problems to startup or unable to
shutdown properly)
• Default location:
• C:\APP\ADMINISTRATOR\ADMIN\mydb\PFILE\init.ora
• $ORACLE_HOME\DATABASE
• $ORACLE_HOME\DBS
• Parameter Examples:
• CONTROL_FILES: One or more control file names
• DB_FILES: Maximum number of database files
• PROCESSES: Maximum number of OS user processes that can
simultaneously connect
• DB_BLOCK_SIZE: Standard database block size used by all tablespaces
• DB_CACHE_SIZE: Size of the standard block buffer cache
• SGA_TARGET: Total size of all SGA components
• MEMORY_TARGET: Oracle system-wide usable memory
• PGA_AGGREGATE_TARGET: Amount of PGA memory for all server processes
• SHARED_POOL_SIZE: Size of shared pool (in bytes)
• UNDO_MANAGEMENT: Undo space management mode to be used
29/02/16
• Dynamic Parameters:
• Can be changes while database is online.
• Can be altered at session and system level.
• Are valid for duration of session.
• Are changed by using ALTER SESSION and ALTER SYSTEM commands.
29/02/16
Session altered.
SYSDATE
-----------
mar 12 2015
System altered.
Creating SPFILE
• Server Parameter Files are binary files that exist only on server and a
called from client location to start-up database.
Trace Files
• Processes are stored in Trace Files. (user, server, background)
• Located at
C:\APP\ADMINISTRATOR\DIAG\RDBMS\MYDB\MYDB\..
• Initialization Parameters are:
• BACKGROUND_DUMP_DEST
• USER_DUMP_DEST
• CORE_DUMP_DEST
Data Dictionary
• Data Dictionary base tables store information about all user-
defined objects in database.
Data Dictionary
• Usage Examples:
• DESCRIBE dba_indexes;
29/02/16