日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 >

oracle的parameters怎么用,oracle普通用户使用show parameter方法

發(fā)布時(shí)間:2024/9/27 39 豆豆
生活随笔 收集整理的這篇文章主要介紹了 oracle的parameters怎么用,oracle普通用户使用show parameter方法 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

在Oracle中一般只有sys用戶可以使用show parameter來查看參數(shù)的設(shè)置,如果想要普通用戶也可以使用show

parameter,需要給普通用戶授予在V_$PARAMETER視圖上SELECT權(quán)限。

Oracle官方解釋:

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

類似的,如果要是使用show sga,就需要將V_$SGA的select權(quán)限授予普通用戶

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

總結(jié)

以上是生活随笔為你收集整理的oracle的parameters怎么用,oracle普通用户使用show parameter方法的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。