创建表空间
CREATE TABLESPACE XBRLGF DATAFILE ‘D:\app\airk\oradata\orcl\XBRLGF.dbf’ SIZE 100M REUSE AUTOEXTEND ON NEXT 100M MAXSIZE UNLIMITED LOGGING PERMANENT EXTENT MANAGEMENT LOCAL AUTOALLOCATE BLOCKSIZE 8K SEGMENT SPACE MANAGEMENT MANUAL FLASHBACK ON;
创建用户并绑定表空间
CREATE USER XBRLGF IDENTIFIED BY “XBRLGF” DEFAULT TABLESPACE “XBRLGF” TEMPORARY TABLESPACE “TEMP” QUOTA UNLIMITED ON “XBRLGF”;
给用户授予权限
GRANT “CONNECT” TO XBRLGF WITH ADMIN OPTION;
GRANT “DBA” TO XBRLGF WITH ADMIN OPTION;
GRANT “RESOURCE” TO XBRLGF WITH ADMIN OPTION;
ALTER USER XBRLGF DEFAULT ROLE “CONNECT”, “DBA”, “RESOURCE”;