复制代码 代码如下:
create temporary tablespace user_temp
tempfile 'D:/app/topwqp/oradata/orcl/user_temp.dbf'
size 500m
autoextend on
next 50m maxsize 2048m
extent management local;
create tablespace ts_mydb
logging
datafile 'D:/app/topwqp/oradata/orcl/ts_mydb.dbf'
size 500m
autoextend on
next 50m maxsize 2048m
extent management local;
drop user mydb cascade;
create user mydb identified by mydb
default tablespace ts_mydb
temporary tablespace user_temp;
grant connect,resource,dba to mydb;
复制代码 代码如下:
SET USERID=mydb/mydb@orcl
SET FROMUSER=test
SET TOUSER=mydb
SET FILENAME=test_bak2013-03-22.dmp
SET LOGNAME=mylog.log
imp %USERID% file=%FILENAME% fromuser=%FROMUSER% touser=%TOUSER% log=%LOGNAME%
复制代码 代码如下:
SET CURDATE=%date:~0,10%
SET USERID=test/test@orcl
SET OWNER=test
SET FILENAME=test_bak%CURDATE%.dmp
SET LOGNAME=test_bak%CURDATE%.log
exp %USERID% file=%FILENAME% owner=%OWNER% log=%LOGNAME%
新闻热点
疑难解答