---------------------------------------------------------------------------------------------
CREATE TEMPORARY TABLESPACE CLOTA_22316TEMP
TEMPFILE 'F:oracleCLOTA_22316TEMP.DBF'
SIZE 50M
AUTOEXTEND ON
NEXT 50M MAXSIZE UNLIMITED
EXTENT MANAGEMENT LOCAL;
CREATE TABLESPACE CLOTA_22316DATA
LOGGING
DATAFILE 'F:oracleCLOTA_22316DATA.DBF'
SIZE 50M
AUTOEXTEND ON
NEXT 50M MAXSIZE UNLIMITED
EXTENT MANAGEMENT LOCAL;
CREATE USER CLOTA22316 IDENTIFIED BY gsclota010
ACCOUNT UNLOCK
DEFAULT TABLESPACE CLOTA_22316DATA
TEMPORARY TABLESPACE CLOTA_22316TEMP;
--drop user NEWUSER cascade;--删除用户
GRANT CONNECT,RESOURCE TO CLOTA22316; --表示把 connect,resource权限授予news用户
GRANT DBA TO CLOTA22316; --表示把 dba权限授予给NEWUSER用户
----------------------第一次导入----------------
@ECHO OFF
TITLE 数据导入
ECHO 导入开始
imp CLOTA22316/gsclota010@192.168.0.213 fromuser=clota touser=CLOTA22316 file=E:原223_16导入源文件223CS20190412.dmp ignore=y
log=E:22316导入imp.log;
ECHO 导入结束
PAUSE
EXIT
---------------------第一次导入失败,补充导入--------------
@ECHO OFF
TITLE 数据导入
ECHO 导入开始
imp dbclota/123123@192.168.0.213 file=E:sjkdc20190326001327.dmp tables=(t_b2c_config,co_product,co_gcpdatacomu) ignore=y
ECHO 导入结束
PAUSE