ORACLE IMP导入

2022-07-29,,

ORACLE IMP导入

  1. oracle命令行登录
sqlplus / as sysdba
  1. 创建表空间
create tablespace 表空间名 datafile '数据文件存放路径' size 200M AUTOEXTEND ON NEXT 5 M MAXSIZE UNLIMITED;

例:

 CREATE TABLESPACE test DATAFILE  'F:\dev\oracle\test.DATA' size 200 M AUTOEXTEND ON NEXT 5 M MAXSIZE UNLIMITED;
  1. 创建用户
 create user 用户名 identified by 密码;

例:

create user test identified by root default tablespace test;
  1. 用户授权
grant connect ,resource,dba to 用户名 ;
  1. 退出sqlplus(windws Control+C),在命令行界面使用imp导入dmp
    imp 用户/密码 file=文件路径 full=y ignore=y;
    例: imp test/root file=F:\dev\oracle\test.dmp full=y ignore=y;
  2. IMP命令说明1
  3. 区分一个dmp文件是exp还是expdp导出的2

  1. IMP命令说明 ↩︎

  2. 区分exp与expdp导出 ↩︎

本文地址:https://blog.csdn.net/qq_39122985/article/details/108575494

《ORACLE IMP导入.doc》

下载本文的Word格式文档,以方便收藏与打印。