日期:2014-05-16 浏览次数:20427 次
----创建临时表空间 create temporary tablespace test_temp tempfile 'E:\oracle\product\10.1.0\oradata\orcl\test_temp.dbf' size 100m autoextend on next 100m maxsize 1024m extent management local; ----创建表空间 create tablespace test_data datafile 'E:\oracle\product\10.1.0\oradata\orcl\test_data.dbf' size 100m autoextend on next 100m maxsize 1024m extent management local; ----创建用户 create user test identified by test123456 default tablespace test_data temporary tablespace test_temp; ----给用户授予权限 grant connect,resource to test; ---取消所有表空间的权限 revoke unlimited tablespace from test; alter user test quota unlimited on test_data; ---赋予导入的权限 grant imp_full_database to test; ---赋予导出的权限(这个权限上面已经包含了。) grant exp_full_database to test; ---手动赋予临时表空间 alter user test temporary tablespace test_temp;