--创建test表空间
CREATE TABLESPACE test_data
LOGGING
DATAFILE '/u01/app/oracle/oradata/test/test_data.dbf'
SIZE 256M
AUTOEXTEND ON
NEXT 32M MAXSIZE UNLIMITED
EXTENT MANAGEMENT LOCAL;
--创建test用户以及指定test表空间
CREATE USER test IDENTIFIED BY "test"
DEFAULT TABLESPACE test_data;
--给test用户授权
GRANT CONNECT,RESOURCE,DBA TO test;