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
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