我使用企业管理器数据库Express 18.3.0.0.0 和 我使用SQL DEVELOPER 18.4.0.376
操作系统:Windows 10
我必须执行一些这样的sql来创建表:
CREATE TABLE "MYDATABASE"."MYCUSTOMTABLE"
( "ID" VARCHAR2(36 BYTE),
"FILE_DATA" BLOB,
"TAGFR" NUMBER(*,0),
"TATO" NUMBER(*,0),
"FLAG" NUMBER(*,0)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
STORAGE(INITIAL 202144 NEXT 1548576 MINEXTENTS 1 MAXEXTENTS 2047486543
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "MYTABLESPACE_DATA"
LOB ("FILE_DATA") STORE AS BASICFILE (
TABLESPACE "MYTABLESPACE_DATA" ENABLE STORAGE IN ROW CHUNK 32768 PCTVERSION 20
CACHE
STORAGE(INITIAL 65536 NEXT 1548576 MINEXTENTS 1 MAXEXTENTS 2047486543
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) ;
但是我得到了这个错误:
Report error -
ORA-01950: no privileges on tablespace 'MYTABLESPACE_DATA'
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.
我执行此行sql:
GRANT UNLIMITED TABLESPACE TO MYUSER
MYUSER的默认表空间是MYTABLESPACE_DATA。
我仍然遇到相同的错误,我怎么了?我在做什么?