You are on page 1of 3

Parameter/Serverfile Location :

==============================
[prd@anush dbs]$ pwd
/u02/disk/prd/11.2.0/dbs
[prd@anush dbs]$ ls
hc_PROD.dat init.ora lkPROD orapwPROD peshm_PROD_0 spfilePROD.ora---SeverPa
rameter File

[prd@anush dbs]$ sqlplus '/ as SYSDBA';


SQL*Plus: Release 11.2.0.1.0 Production on Mon Apr 4 21:28:14 2016
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> create pfile from spfile;
File created.
[prd@anush dbs]$ pwd
/u02/disk/prd/11.2.0/dbs
[prd@anush dbs]$ ls
hc_PROD.dat initPROD.ora orapwPROD
spfilePROD.ora
init.ora
lkPROD
peshm_PROD_0
Making changes to the initPROD.ora (pfile)
=========================================
[prd@anush dbs]$ vi initPROD.ora
*.db_name='PROD'
*.db_recovery_file_dest='/u02/disk/prd/flash_recovery_area'
*.db_recovery_file_dest_size=4039114752
*.diagnostic_dest='/u02/disk/prd'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=PRODXDB)'
*.memory_target=642777088
*.open_cursors=300 /* Change the Value to the 400*/
SQL> CREATE spfile from pfile;
File created.
SQL> startup;
ORACLE instance started.
Total System Global Area 644468736 bytes
Fixed Size
1338448 bytes
Variable Size
398459824 bytes
Database Buffers
239075328 bytes
Redo Buffers
5595136 bytes
Database mounted.
Database opened.
SQL> show parameter open_cursors;

NAME
TYPE
VALUE
------------------------------------ ----------- -----------------------------open_cursors
integer
400

=================Making Changes to the spfile (Server parameter file)===========


======
No need to bounce the database
SQL> alter system set OPEN_CURSORS=300 SCOPE=MEMORY; -- this value will be acti
ve till the session it self
System altered.
SQL> SHOW parameter OPEN_CURSORS;
NAME
TYPE
VALUE
------------------------------------ ----------- -----------------------------open_cursors
integer
300

SQL> alter system set OPEN_CURSORS=500 SCOPE=SPFILE; --System altered.


SQL> SHOW parameter OPEN_CURSORS;
NAME
TYPE
VALUE
------------------------------------ ----------- -----------------------open_cursors
integer
300
SQL> shut immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> CREATE pfile FROM spfile;
File created.

[prd@anush dbs]$ vi initPROD.ora


*.db_recovery_file_dest='/u02/disk/prd/flash_recovery_area'
*.db_recovery_file_dest_size=4039114752
*.diagnostic_dest='/u02/disk/prd'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=PRODXDB)'
*.memory_target=642777088
*.open_cursors=500
SQL> startup ;
ORACLE instance started.

Total System Global Area 644468736 bytes


Fixed Size
1338448 bytes
Variable Size
398459824 bytes
Database Buffers
239075328 bytes
Redo Buffers
5595136 bytes
Database mounted.
Database opened.
SQL> alter system set open_cursors=500 scope=both;-- the value willbe updated in
the spfile directly
System altered.
SQL> SHOW parameter open_cursors;
NAME
TYPE
VALUE
------------------------------------ ----------- -----------------------------open_cursors
integer
500
SQL>

You might also like