1.创建表空间
用SYSTEM用户登陆数据库,执行下面语句创建表空间
CREATE TABLESPACE TEST
LOGGING
DATAFILE \'D:\app\Administrator\oradata\TEST01.DBF\' //根据实际环境修改
SIZE 32M
AUTOEXTEND ON
NEXT 32M
EXTENT MANAGEMENT LOCAL;
2.创建用户
CREATE USER test IDENTIFIED BY test
DEFAULT TABLESPACE TEST;
3.赋用户权限
GRANT "CONNECT" TO TEST;
GRANT RESOURCE TO TEST;
GRANT DBA TO TEST;
GRANT "JAVASYSPRIV" TO TEST;
GRANT "JAVAUSERPRIV" TO TEST;
GRANT CREATE VIEW TO TEST;