oracle數據權限問題
INSERT INTO userinfo?
VALUES (1 , 'xxx' , '123' , '[email protected]' , SYSDATE)
錯誤報告:
SQL 錯誤: ORA-01950: 對表空間 'USERS' 無權限
01950. 00000 - ?"no privileges on tablespace '%s'"
*Cause: ? ?User does not have privileges to allocate an extent in the
? ? ? ? ? ?specified tablespace.
*Action: ? Grant the user the appropriate system privileges or grant the user
? ? ? ? ? ?space resource on the tablespace.
下的客戶端,自己創建了用戶,能創建表格,但是添加數據的時候總是提示權限不夠,怎么把自己創建的用戶的權限提升上去,
2016-11-24
一般我們創建用戶的時候,一般要用create user wangfan identified by wangfan default tablespace test. 但一定還要加上一句:quota Storage(unlimited, 8K, 10M etc.) on tablespace; 否則就會出現對表空間使用無權限的錯誤。quota的意思是該用戶可以得到在這個tablespace上所得到的空間。后來就以sysdba的身份登陸,alter user wangfan quota unlimited on test;然后再創建表就沒有問題了。