select name from v$tempfile;
/app/oracle/oradata/sysware/temp01.dbf
select name from v$datafile;
-- 1创建表空间,用sysdba登陆,在sql窗口执行(或者cmd窗口执行:sqlplus /@sysware(在那个数据库实例中) as sysdba)/或者PLSQL使用SYSDBA登录SQL窗口中执行
CREATE TABLESPACE TEST_000
DATAFILE '/app/oracle/oradata/TEST_000.DBF' size 800M --存储地址 初始大小800M
autoextend on next 50M maxsize unlimited --每次扩展10M,无限制扩展
EXTENT MANAGEMENT LOCAL autoallocate SEGMENT SPACE MANAGEMENT AUTO;
-- 2.建用户,用sysdba登陆,在sql窗口执行(或者cmd窗口执行:sqlplus /@sysware(在那个数据库实例中) as sysdba)/或者PLSQL使用SYSDBA登录SQL窗口中执行
create user TEST_000identified by TEST_000
default tablespace TEST_000;
grant connect,resource,create type,create view,recovery_catalog_owner to TEST_000
create directory dpdir220200612 as 'D:\dpdir\dpdir220200612';
grant read,write on directory dpdir220200612 to IDP_20200612;
expdp SYSWARE_ORM320_TEST01/TEST_000@sysware directory=TEST_000 dumpfile=data.dmp