Wednesday, June 26, 2013

OCM Preparation - 4 - Determine and set Sizing Parameters for Database Structures




Initialization Parameters.

Documentation Library ->  Administrator's Guide - > Creating and Configuring an Oracle Database -> Specifying Initialization Parameters


Memory Configurations.
 Documentation Library ->  Administrator's Guide - > Managing Memory


Changing the Database Archiving Mode

 Documentation Library ->  Administrator's Guide - > Managing Archived Redo Logs -> Controlling Archiving

Changing the Database Archiving Mode using EM

Database Control Home -> Availability -> Recovery Settings.

Adding a Control File

Create pfile from spfile
Shutdown the database.
Copy existing control file to a new location.
Edit "control_file" parameter in pfile and add the new location.
Start the database with pfile.
Create spfile from pfile.
Restart the database.

Notes

How to check if the database was started with SPFILE or PFILE

SQL>SELECT DECODE(value, NULL, 'PFILE', 'SPFILE') "Init File Type"
FROM sys.v_$parameter
WHERE name = 'spfile';


How to check if the database is running on archive log mode.
SQL>archive log list

How to check session/process utilization.

SQL>select * from v$resource_limit where resource_name in ('processes','sessions');