Common Oracle users use the show parameter Method

Source: Internet
Author: User

Common Oracle users use the show parameter Method

In Oracle, only sys users can use show parameter to view parameter settings. If you want common users, you can also use show parameter, the SELECT permission must be granted to common users in the V _ $ PARAMETER view.

Oracle official explanation:

Your output may vary depending on the version and configuration of the Oracle Database server to which you are connected. you need select on v _ $ PARAMETER object privileges to use the PARAMETERS clause, otherwise you will receive a message

ORA-00942: table or view does not exist

SQL> conn/as sysdba
Connected.
SQL> show parameter count

NAME TYPE VALUE
-----------------------------------------------------------------------------
Active_instance_count integer
Cpu_count integer 2
Db_file_multiblock_read_count integer 46

SQL> create user lyn identified by oracle default tablespace users;

User created.

SQL> grant connect, resource to lyn;

Grant succeeded.

SQL> conn lyn/oracle
Connected.
SQL> show parameter count
ORA-00942: table or view does not exist
SQL> conn/as sysdba
Connected.
SQL> grant select on v _ $ parameter to lyn;

Grant succeeded.

SQL> conn lyn/oracle
Connected.
SQL> show parameter count

NAME TYPE VALUE
-----------------------------------------------------------------------------
Active_instance_count integer
Cpu_count integer 2
Db_file_multiblock_read_count integer 46

 

Similarly, if you use show sga, You need to grant the select permission of V _ $ SGA to a common user.

SQL> conn lyn/oracle
Connected.
SQL> show sga
ORA-00942: table or view does not exist

SQL> conn/as sysdba
Connected.
SQL> grant select on v _ $ sga to lyn;

Grant succeeded.

SQL> conn lyn/oracle
Connected.
SQL> show sga

Total System Global Area 313860096 bytes
Fixed Size 1336232 bytes
Variable Size 205524056 bytes
Database Buffers 100663296 bytes
Redo Buffers 6336512 bytes

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.