[英]SQLFiddle - Oracle 11g - unable to create schema
I am trying to create a table in SQLFiddle using Oracle and I want to specify the schema the table belongs to. 我正在尝试使用Oracle在SQLFiddle中创建一个表,并且我想指定该表所属的架构。
However I am having a tough time making the schema. 但是,我在制定模式时遇到了困难。 Since given the code below:
由于给出以下代码:
CREATE USER myname
IDENTIFIED BY pwd4myname
DEFAULT TABLESPACE tbs_perm_01
TEMPORARY TABLESPACE tbs_temp_01
QUOTA 20M on tbs_perm_01;
GRANT create session TO myname;
GRANT create table TO myname;
GRANT create view TO myname;
GRANT create any trigger TO myname;
GRANT create any procedure TO myname;
GRANT create sequence TO myname;
GRANT create synonym TO myname;
CREATE TABLE myname_schema.person (
person_id NUMBER(5) PRIMARY KEY,
name VARCHAR2(15) NOT NULL,
phone NUMBER(9),
address VARCHAR2(10),
);
When running this I am getting: 运行时,我得到:
ORA-01031: insufficient privileges
ORA-01031:权限不足
Log in as SYSDBA, and issue the command, 以SYSDBA身份登录,然后发出命令,
GRANT CONNECT, RESOURCE TO YOUR_USER_NAME; 授权连接,资源到YOUR_USER_NAME;
Logoff from the SYSDBA, and again log in with your user name, now try to create table. 从SYSDBA注销,然后再次使用您的用户名登录,现在尝试创建表。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.