创建临时表空间
CREATE?TEMPORARY?TABLESPACE?test_temp
SIZE?32M
NEXT?32M?MAXSIZE?2048M
EXTENT?MANAGEMENT?LOCAL;
SIZE?32M
NEXT?32M?MAXSIZE?2048M
EXTENT?MANAGEMENT?LOCAL;
创建用户表空间
CREATE?TABLESPACE?test_data
DATAFILE?'C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\TEST_DATA01.DBF'?
AUTOEXTEND?ON?
EXTENT?MANAGEMENT?LOCAL;
DATAFILE?'C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\TEST_DATA01.DBF'?
AUTOEXTEND?ON?
EXTENT?MANAGEMENT?LOCAL;
创建用户并制定表空间
CREATE?USER?username?IDENTIFIED?BY?password
TEMPORARY?TABLESPACE?TEST_TEMP;
TEMPORARY?TABLESPACE?TEST_TEMP;
给用户授予权限
GRANT?
ALTER?ANY?TABLE,?ALTER?ANY?
ALTER?ANY?TABLE,?ALTER?ANY?