Oracle导入导出

//创建表空间
create tablespace erp_data
logging
datafile 'E:\ERPDataBase\erpdata\erp_data.dbf' 
size 32m 
autoextend on 
next 32m maxsize 10240m
extent management local;

//创建用户
create user strongerp identified by 123456(密码)
default tablespace erp_data;

//temporary tablespace test_temp;

//给用户授予权限
grant connect,resource to strongerp ; (db2:指定所有权限)

数据库导出
exp strongerp/strong@test236 file=E:\old\test236.dmp  owner=(strongerp)

数据库导入
imp system/123456@erpdata file=E:\old\test236.dmp full=y;
imp strongerp/123456@erpdata full=y file=E:\old\test236.dmp ignore=y;


imp sys/strongerp@erptest as sysdba

--给用户授权导入数据
GRANT CREATE USER,DROP USER,ALTER USER ,CREATE ANY VIEW , 
   DROP ANY VIEW,EXP_FULL_DATABASE,IMP_FULL_DATABASE, 
      DBA,CONNECT,RESOURCE,CREATE SESSION TO strongerp

 一、set oracle_sid=数据库名称。

二、dbca打开新建数据图形界面cmd环境下。

posted on 2013-05-06 12:46  R.Ray  阅读(136)  评论(0)    收藏  举报

导航