oracle數(shù)據(jù)權(quán)限問題
INSERT INTO userinfo?
VALUES (1 , 'xxx' , '123' , 'xxx@163.com' , SYSDATE)
錯誤報告:
SQL 錯誤: ORA-01950: 對表空間 'USERS' 無權(quán)限
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.
下的客戶端,自己創(chuàng)建了用戶,能創(chuàng)建表格,但是添加數(shù)據(jù)的時候總是提示權(quán)限不夠,怎么把自己創(chuàng)建的用戶的權(quán)限提升上去,
2016-11-24
一般我們創(chuàng)建用戶的時候,一般要用create user wangfan identified by wangfan default tablespace test. 但一定還要加上一句:quota Storage(unlimited, 8K, 10M etc.) on tablespace; 否則就會出現(xiàn)對表空間使用無權(quán)限的錯誤。quota的意思是該用戶可以得到在這個tablespace上所得到的空間。后來就以sysdba的身份登陸,alter user wangfan quota unlimited on test;然后再創(chuàng)建表就沒有問題了。