亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 2797 | 回復(fù): 8
打印 上一主題 下一主題

查詢提示錯誤,卻又出結(jié)果 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2008-07-30 09:17 |只看該作者 |倒序瀏覽
用scott用戶在pl/sql dev下 連接oracle 10g,點擊寫個任意的sql語句f8后給出下面的提示“
Dynamic Performance Tables not accessible,
Automatic Statistics disabled for this session

You can disable statistics in the preference menu, or obtain select
priviliges on the v$session, v$sesstat and v$statname tables
”但是結(jié)果卻可以出來,這個3個標(biāo)(視圖)在那個用戶下,該怎么授權(quán)可以解決這個問題

   英語要學(xué)好啊

[ 本帖最后由 chi7na 于 2008-7-30 17:00 編輯 ]

招聘 : Linux運維
論壇徽章:
0
2 [報告]
發(fā)表于 2008-07-30 09:51 |只看該作者
Dynamic Performance Tables not accessible,
Automatic Statistics disabled for this session

提示很明顯啊

論壇徽章:
0
3 [報告]
發(fā)表于 2008-07-30 10:11 |只看該作者
grant select on v$session to 你的用戶名;
grant select on v$sesstat to 你的用戶名;
grant select on v$statname to 你的用戶名;

論壇徽章:
0
4 [報告]
發(fā)表于 2008-07-31 10:21 |只看該作者
按照3樓的說法,提示找不到 v$session, v$sesstat and v$statname 這3張表,我用的是sys as dba

[ 本帖最后由 chi7na 于 2008-7-31 16:28 編輯 ]

論壇徽章:
0
5 [報告]
發(fā)表于 2008-07-31 16:22 |只看該作者
v$session, v$sesstat and v$statname


你的登錄用戶應(yīng)該是sys

conn / as sysdba

grant select on v$session to 你的用戶名;
grant select on v$sesstat to 你的用戶名;
grant select on v$statname to 你的用戶名;

論壇徽章:
0
6 [報告]
發(fā)表于 2008-08-01 08:33 |只看該作者
sqlplus sys/ as dba
SQL >grant select on v$session to scott;
  
grant select on v$session to scott;
                           *
ERROR at line 1 :
ORA-02030: can only select from fixed table/views
SQL >

論壇徽章:
0
7 [報告]
發(fā)表于 2008-08-01 09:18 |只看該作者
step 1:
SQL> alter system set o7_dictionary_accessibility=true scope=spfile;
重啟oracle使之生效

step 2:
SQL> grant create any table to 用戶;

step3:
SQL> grant select any table to 用戶;




操作例子:

  1  create user TT
  2  identified by TT
  3* default tablespace TBS
SQL> /

用戶已創(chuàng)建

SQL> grant create session to TT
  2  ;

授權(quán)成功。

SQL> grant create any table to TT;

授權(quán)成功。

SQL> alter system set o7_dictionary_accessibility=true scope=spfile;

系統(tǒng)已更改。

SQL> grant select any table to TT;

授權(quán)成功。

SQL> show parameter o7

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
O7_DICTIONARY_ACCESSIBILITY          boolean     FALSE
SQL> shutdown immediate
數(shù)據(jù)庫已經(jīng)關(guān)閉。
已經(jīng)卸載數(shù)據(jù)庫。
ORACLE 例程已經(jīng)關(guān)閉。
SQL> startup
ORACLE 例程已經(jīng)啟動。

Total System Global Area  135338868 bytes
Fixed Size                   453492 bytes
Variable Size             109051904 bytes
Database Buffers           25165824 bytes
Redo Buffers                 667648 bytes
數(shù)據(jù)庫裝載完畢。
數(shù)據(jù)庫已經(jīng)打開。
SQL> show parameter o7

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
O7_DICTIONARY_ACCESSIBILITY          boolean     TRUE
SQL>

論壇徽章:
0
8 [報告]
發(fā)表于 2008-08-01 19:03 |只看該作者
樓主問題解決了嗎?

論壇徽章:
0
9 [報告]
發(fā)表于 2008-08-02 11:00 |只看該作者
問題按照7樓的說法,已經(jīng)解決了,能給個簡單的說明嗎
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP