表空间名:TEST_DB
用户:TESTUSER
密码:TESTPASS

以OS身份连接

sqlplus / as sysdba

创建表空间执行:

CREATE TABLESPACE TEST_DB
DATAFILE 'D:\oracle\TEST_DB.dbf'
SIZE 200M
AUTOEXTEND ON;

创建用户执行:

CREATE USER TESTUSER
IDENTIFIED BY TESTPASS
DEFAULT TABLESPACE TEST_DB
TEMPORARY TABLESPACE temp;

授权用户权限

GRANT CREATE SESSION,CREATE TABLE,CREATE VIEW,CREATE SEQUENCE,UNLIMITED TABLESPACE TO TESTUSER;
GRANT CONNECT TO TESTUSER;
GRANT RESOURCE TO TESTUSER;

标签: oracle

添加新评论