如何将oracle转储文件上传到oracle数据库:AWS RDS

编程入门 行业动态 更新时间:2024-10-28 08:30:44
本文介绍了如何将oracle转储文件上传到oracle数据库:AWS RDS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我的AWS ec2实例中有oracle转储文件,我想将此转储文件导入AWS RDS中的Oracle数据库.

I have oracle dump file in my AWS ec2 instance, I want to import this dump file to Oracle database in AWS RDS.

我尝试与Oracle SQL Developer以及Perl脚本一起使用.

I tried using with Oracle SQL developer and also using Perl script.

docs.aws.amazon /AmazonRDS/latest/UserGuide/Oracle.Procedural.Importing.html

如何导入oracle转储从ec2实例到AWS中的RDS

使用Oracle SQL Developer方法,未启用数据库复制"选项. 使用Perl,在运行脚本时会出现很多错误.

Using Oracle SQL Developer method, the 'Database Copy' option is not enabled. Using Perl, getting a lot of error while running the script.

[root@ip-172-28-1-70 oracle]# perl dump_exp.pl install_driver(Oracle) failed: Can't locate DBD/Oracle.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at (eval 4) line 3. Perhaps the DBD::Oracle perl module hasn't been fully installed, or perhaps the capitalisation of 'Oracle' isn't right. Available drivers: DBM, ExampleP, File, Gofer, Mem, Proxy, SQLite, Sponge. at dump_exp.pl line 23.

这两种方法都不适合我,并且不了解Perl.

this both methods are not working for me, and am not aware of Perl.

请告诉我是否有更好的方法.

Please suggest me if have any better method.

推荐答案

AWS RDS不允许目录访问.

AWS RDS does not allow directory access.

  • 您需要在Amazon EC2上安装Oracle XE.
  • 在Oracle XE和Oracle RDS之间的Oracle XE EC2上创建db_link.
  • 在Oracle XE和Oracle RDS之间使用db_link传输文件 使用过程DBMS_FILE_TRANSFER.
  • You need install Oracle XE on Amazon EC2.
  • Create db_link on Oracle XE EC2 between Oracle XE and Oracle RDS.
  • Use a db_link between Oracle XE and Oracle RDS to transfer files using the procedure DBMS_FILE_TRANSFER.
  • 如果可以使用原始导出exp进行导出, 您可以使用oracle客户端和原始导入实用程序imp从任何工作站导入.

    If you can export using the original export exp, you can import from any workstation with oracle client and the original import utility imp.

    更多推荐

    如何将oracle转储文件上传到oracle数据库:AWS RDS

    本文发布于:2023-10-26 10:15:18,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1529841.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:如何将   数据库   oracle   储文   AWS

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!