oracle-将.dmp文件导入linux服务器下的oracle数据库中-方式一&&利用plSQL工具导入(不推荐)&&遇到的问题及解决办法&&实例-亲测有效

注意:有两种方式导入,利用plSQL工具导入(不推荐)以及利用Windows自带的命令行导入,下一篇将介绍利用Windows自带的命令行导入,附上链接:

一、利用plSQL工具导入(不推荐)


1、以管理员方式登录plSQL
     注意:oracle数据库的管理员账户一般为sys,忘记登录密码,不知道如何登录,的请查看下面这个链接有详细服务器端修改密码方式:
               https://blog.csdn.net/weixin_47055922/article/details/109047419

2、在管理员模式下新建“SQL窗口”用于执行sql语句

3、利用代码创建表空间及分配用户
     注意:第一句是创建用户名和密码都是test01_200的数据库,test01_200可以自定义,下面的语句是对该数据库创建表空间以及给用户进行赋权处理:

     Create user test01_200 identified by test01_200   
     Default tablespace users
     Temporary tablespace temp
     password expire;
     grant resource to test01_200;
     grant alter any procedure to test01_200;
     grant create any procedure to test01_200;
     grant create procedure to test01_200;
     grant create session to test01_200;
     grant create table to test01_200;
     grant create view to test01_200;
     grant debug any procedure to test01_200;
     grant debug connect session to test01_200;
     grant execute any procedure to test01_200;
     grant unlimited tablespace to test01_200;

4、选择tools(工具)菜单下的import tables..(导入表)

5、在oracle import选项卡界面勾选相应的选项
     推荐:我这里是全选

6、选择buffer size(缓冲池大小)
     推荐:我设置的是50

7、选择导入可执行文件
     打开你安装的oracle客户端目录,双击选择imp.exe运行文件,我这里D:\app\Admin\product\11.2.0\client_1\BIN\imp.exe

8、导入文件,选择dmp文件
     我这里是:C:\Users\Admin\Desktop\bda_js200_plsql.dmp,bda_js200_plsql.dmp是我之前导出的.dmp文件

9、单机import(导入)进行导入出错
     注意:当我单机导入的时候,windows黑窗口一闪而过,宣布着导入失败,网上查阅大量资料发现,利用第三方工具导入时会出现各种各样的问题(比如:问题一、导入的时候一闪而过,显示导入成功,但数据库里找不到任何数据。问题二、选择From User、To User时显示“Not logged on”问题。),所以不推荐这种方式导入,下面介绍第二种导入方式。

猜你喜欢

转载自blog.csdn.net/weixin_47055922/article/details/109097059
今日推荐