Listing parameters and their descriptions

Listing parameters and their descriptions

To display a list of parameters and their descriptions, use the v$parameter view, like this:

		
SQL > SELECT name,value,description FROM v$parameter;

OR

SQL > SHOW PARAMETERS;

Reader Feedback

"Database guy" writes: A nice and simple tip. The caveats should be listed though--you need to have SELECT permisssion on v$parameter.

I use the following script to generate the list of database parameters or just a single parameter. The script will prompt for the parameter name for which you need the value. If you need all the values just press ENTER when prompted for "Enter value for parameter:". The script will save the results into a file named parameter<dbname>.txt where <dbname> is the name of the database. The script is saved as param.sql and run at SQL prompt.

SQL> @param
---------------------------------------------------------------
REM The Script
REM param.sql
set pages 300
set heading off
spool tempfile.sql
select 'define DB ='||name from v$database;
spool off

-- set heading on  feedback on  verify on  pause off
start tempfile.sql
spool parameter&DB..txt
select 'Database '||name||' was created on 
'||created||' in '||log_mode||' mode
' from V$DATABASE;
set heading on
set pages 300
select substr(name,1,35) name,
substr(value,1,30) value,
isdefault
from v$parameter
where name like '&Parameter%'
order by substr(name,1,20)
/
spool off
host rm tempfile.sql
REM

    Requires Free Membership to View

    By submitting your registration information to SearchOracle.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchOracle.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

END Script.

For More Information

  • What do you think about this tip? E-mail the Editor at tdichiara@techtarget.com with your feedback.
  • The Best Oracle Web Links: tips, tutorials, scripts, and more.
  • Have an Oracle tip to offer your fellow DBA's and developers? The best tips submitted will receive a cool prize--submit your tip today!
  • Ask your technical Oracle questions--or help out your peers by answering them--in our live discussion forums.
  • Check out our Ask the Experts feature: Our SQL, database design, Oracle, SQL Server, DB2, metadata, and data warehousing gurus are waiting to answer your toughest questions.

This was first published in May 2002

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.

    Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.