How to upload oracle dump file to oracle database: AWS RDS

一个人想着一个人 提交于 2019-12-24 23:19:57

问题


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

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

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

How to import oracle dump from ec2 instance to RDS in AWS

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.

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

Please suggest me if have any better method.


回答1:


AWS RDS does not allow directory access.

  1. You need install Oracle XE on Amazon EC2.
  2. Create db_link on Oracle XE EC2 between Oracle XE and Oracle RDS.
  3. Use a db_link between Oracle XE and Oracle RDS to transfer files using the procedure DBMS_FILE_TRANSFER.

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



来源:https://stackoverflow.com/questions/54548149/how-to-upload-oracle-dump-file-to-oracle-database-aws-rds

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!