How To Query And Change The Oracle Hidden Parameters In Oracle 10g and 11g (文档 ID 315631.1)

In this Document

  Goal
  Solution
  References

APPLIES TO:

Oracle Database - Enterprise Edition - Version 10.1.0.2 and later
Information in this document applies to any platform.
Reviewed for relevancy on 7-November-2007


GOAL

Q1: How to query this hidden initialization parameters in sql ?

Q2: How to change these hidden parameters?

SOLUTION

A1: The hidden parameters start with an "_".They can not be viewed from the output of 'show parameter'
or querying v$parameter unless and until they are set explicitly in init.ora.
However if you want to view all the hidden parameters and their default values the following query
could be of help. Connected as SYSDBA, execute:

SELECT a.ksppinm "Parameter",
       b.ksppstvl "Session Value",
       c.ksppstvl "Instance Value"
FROM   x$ksppi a,
       x$ksppcv b,
       x$ksppsv c
WHERE  a.indx = b.indx
AND    a.indx = c.indx
AND    a.ksppinm LIKE '/_%' escape '/'
/


This will list all the hidden parameters with their default values.


A2: Now you can change the desired parameter by setting it explicitly in init.ora or using the alter..session set command for session level.

During startup, the database takes the parameters from spfile by default.
So you have four options to change the parameters:

  1. While starting up the database startup with pfile, e.g.
    SQL> startup pfile <pfile location>

  2. Create the spfile from pfile using command "create spfile from pfile" and replace the old spfile with the new one.
    For more information see: Note 249664.1 - Pfile vs SPfile

  3. Use
    SQL> alter system set "<_parameter-of-choice>" scope=spfile and bounce the database.

  4. Use
    SQL> alter..session set command for session level

 

NOTE:
It is never recommended to modify these hidden parameters without the assistance of Oracle Support.
Changing these parameters may lead to serious corruption issues, high performance degradation and other problems in the database.

It is not possible to see hidden parameters of other instances in a RAC cluster.

 

 
 

相关内容

   
 
 

产品

   
 
  • Oracle Database Products > Oracle Database > Oracle Database > Oracle Database - Enterprise Edition > RDBMS > DB Parameters

你可能感兴趣的:(How To Query And Change The Oracle Hidden Parameters In Oracle 10g and 11g (文档 ID 315631.1))