Create  user  xok  Identified  By  fucku;  //創建用戶
 
GRANT  SELECT  ANY  DICTIONARY  TO  xok;  //授予所有字典的查詢權限
 
GRANT  SELECT  ANY  SEQUENCE  TO  xok;  //授予所有序列的查詢權限
 
GRANT  SELECT  ANY  TABLE  TO  xok;  //授予所有表的查詢權限
 
GRANT CREATE SESSION TO xok;       //授予創建會話
 
GRANT  SELECT  ANY  VIEW  TO  xok; //授予所有視圖的查詢權限

#——
其實只要給用戶賦予create session, select any table兩個系統權限,該用戶就能查詢其他schema下表和視圖

grant create session to username;
grant select any table to username;
但是這樣授權后,sys下的對象還是不能select的,因為sys是數據字典的擁有者,要select sys下的對象,需要select any dictionary的權限

grant select any dictionary to username;

轉自http://xok.la/2008/12/oracle_10g_create_read_only_user.html