Saturday 14 March 2015

PARAMETER FILE OF THE DATABASE

Parameter Files:
A parameter file is a file that contains a list of initialization parameters and a value for each parameter. You specify initialization parameters in a parameter file that reflect your particular installation. 
Oracle supports the following two types of parameter files:
Server Parameter Files
Initialization Parameter Files
Server Parameter Files:
A server parameter file is a binary file that acts as a repository for initialization parameters. The server parameter file can reside on the machine where the Oracle database server executes. Initialization parameters stored in a server parameter file are persistent, in that any changes made to the parameters while an instance is running can persist across instance shutdown and startup.
Initialization Parameter Files:
An initialization parameter file is a text file that contains a list of initialization parameters. The file should be written in the client's default character set.
The following are sample entries in an initialization parameter file:
PROCESSES = 100
OPEN_LINKS = 12
GLOBAL_NAMES = true
The name of the initialization parameter file varies depending on the operating system. For example, it can be in mixed case or lowercase, or it can have a logical name or a variation of the name init.ora. Also supplied is an initdw.ora file, which contains suggested parameter settings for data warehouses and data marts
Parameter File: 
                 There are mainly two types of parameter files are there for oracle database.
1) Pfile (Manually created parameter file)
2) Spfile(Created automatically through DBCA command)

spfile: 
1) It is automatically created when we create the database with dbca command. 
2) The Location of the parameter file is $ORACLE_HOME/DBS.
3) Oracle can read and write the parameter spfile.
4) The general form of the parameter file is spfile<ORACLE_SID>.ora
5) It is a server side file.
6) We can create the pfile from spfile as following statement:
CREATE PFILE FROM SPFILE;
 Pfile:
1) It can be creted by us manually.
2) The Location of the parameter file is $ORACLE_HOME/DBS.
3) Oracle can read the pfile but cann't wirte it.
4) The general form of the parameter file is init<ORACLE_SID>.ora
5) It is a client side file.
6) We can create the pfile from spfile as following statement:
CREATE SPFILE FROM PFILE;
Eg: The contents of the parameter file is as shown in below.
RMAN.__db_cache_size=574619648
RMAN.__java_pool_size=4194304
RMAN.__large_pool_size=4194304
RMAN.__oracle_base='/oracle/orasoft/test'#ORACLE_BASE set from environment
RMAN.__pga_aggregate_target=268435456
RMAN.__sga_target=805306368
RMAN.__shared_io_pool_size=0
RMAN.__shared_pool_size=213909504
RMAN.__streams_pool_size=0
*.audit_file_dest='/oracle/orasoft/test/admin/EVOKE/adump'
*.audit_trail='db'
*.compatible='11.2.0.0.0'
*.control_files='/oracle/orasoft/test/oradata/orcl/rman/control01.ctl','/oracle/orasoft/test/oradata/orcl/rman/control02.ctl'
*.db_block_size=8192
*.db_domain='localdomain'
*.db_name='RMAN'
*.db_recovery_file_dest='/oracle/orasoft/test/oradata/orcl/rman'
*.db_recovery_file_dest_size=4039114752
*.diagnostic_dest='/oracle/orasoft/test'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=RMANXDB)'
*.log_archive_format='%t_%s_%r.dbf'
*.open_cursors=300
*.pga_aggregate_target=268435456
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=805306368
*.undo_tablespace='UNDOTBS1'
The above eg is the parameter file of the RMAN database.

No comments:

Post a Comment