解决方案: SQL> select grantee,privilege from dba_sys_privs where grantee='RESOURCE' order by privilege; GRANTEE PRIVILEGE ------------------------------ ---------------------------------------- RESOURCE CREATE CLUSTER RESOURCE CREATE INDEXTYPE RESOURCE CREATE OPERATOR RESOURCE CREATE PROCEDURE RESOURCE CREATE SEQUENCE RESOURCE CREATE TABLE RESOURCE CREATE TRIGGER RESOURCE CREATE TYPE 8 rows selected
发现有创建一些对象的权限,应该没什么问题,music用户也有resource的角色。
最后根据网友的经验,重新授权resource角色给music之后,便可以创建表格了:
SQL> grant resource to music; Grant succeeded
SQL> create table test(id number(2),name varchar2(10)); Table created SQL> desc test; Name Type Nullable Default Comments ---- ------------ -------- ------- -------- ID NUMBER(2) Y NAME VARCHAR2(10) Y