pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Can't locate Ora2Pg.pm while executing export_schema.sh
4+ messages / 4 participants
[nested] [flat]

* Can't locate Ora2Pg.pm while executing export_schema.sh
@ 2021-08-17 07:15  Pansara, Jiten <Jiten.Pansara@fisglobal.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Pansara, Jiten @ 2021-08-17 07:15 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

Hello Team,

I am getting below error while executing export_schema.sh. Any suggestion/help is really appreciated.

BEGIN failed--compilation aborted at /c/Strawberry/perl/site/bin/ora2pg line 27.
Can't locate Ora2Pg.pm in @INC (you may need to install the Ora2Pg module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /c/Strawberry/perl/site/bin/ora2pg line 27.
BEGIN failed--compilation aborted at /c/Strawberry/perl/site/bin/ora2pg line 27.

If we don't want to use this script, should we execute ora2pg directly to migrate the database from Oracle to Postgres?

  *   Ora2pg -c ora2pg.conf

Let me know your views.

Jiten Pansara
Senior Database Analyst
T:  +91 9158149600
E: jiten.pansara@fisglobal.com<mailto:jiten.pansara@fisglobal.com>
FIS | Advancing the way the world Pays, Banks, and Invests [cid:image001.png@01D79365.CE59CA90] <https://www.facebook.com/FIStoday; [cid:image002.png@01D79365.CE59CA90] <https://twitter.com/FISGlobal; [cid:image003.png@01D79365.CE59CA90] <https://www.linkedin.com/company/fis;
[A picture containing text, outdoor, sign  Description automatically generated]


The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.

Attachments:

image001.png (image/png, 572B) download view image
image002.png (image/png, 656B) download view image
image003.png (image/png, 576B) download view image
image004.png (image/png, 13.3K) download view image
^ permalink raw reply [nested|flat] 4+ messages in thread

* Re: Can't locate Ora2Pg.pm while executing export_schema.sh
@ 2021-08-17 14:34  Mladen Gogala <gogala.mladen@gmail.com>
  parent: Pansara, Jiten <Jiten.Pansara@fisglobal.com>
  0 siblings, 2 replies; 4+ messages in thread

From: Mladen Gogala @ 2021-08-17 14:34 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

You should locate Ora2Pg.pm using "find" like this:

[mgogala@umajor ~]$ find /usr/local -name Ora2Pg.pm
/usr/local/share/perl5/5.32/Ora2Pg.pm
[mgogala@umajor ~]$

and then make sure that your PERL5LIB directory contains  the location:

export PERL5LIB=/usr/local/share/perl5/5.32:$PERL5LIB

That should do the trick. On most distributions, 
/usr/local/share/perl5/<perl version> is already included into PERL5LIB. 
Are you working on Cygwin? You can do a simple test:

[mgogala@umajor ~]$ perl -e 'use Ora2Pg; print "$Ora2Pg::VERSION\n";'
21.0

This is not related to PostgreSQL, this is a Perl question: 
https://gist.github.com/cgoldberg/4332167

On 8/17/21 3:15 AM, Pansara, Jiten wrote:
>
> Hello Team,
>
> I am getting below error while executing export_schema.sh. Any 
> suggestion/help is really appreciated.
>
> BEGIN failed--compilation aborted at 
> /c/Strawberry/perl/site/bin/ora2pg line 27.
>
> Can't locate Ora2Pg.pm in @INC (you may need to install the Ora2Pg 
> module) (@INC contains: /usr/lib/perl5/site_perl 
> /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl 
> /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl 
> /usr/share/perl5/core_perl) at /c/Strawberry/perl/site/bin/ora2pg line 27.
>
> BEGIN failed--compilation aborted at 
> /c/Strawberry/perl/site/bin/ora2pg line 27.
>
> If we don’t want to use this script, should we execute ora2pg directly 
> to migrate the database from Oracle to Postgres?
>
>   * Ora2pg -c ora2pg.conf
>
> Let me know your views.
>
> *Jiten Pansara*
>
> Senior Database Analyst
>
> *T*:  +91 9158149600
> *E*: jiten.pansara@fisglobal.com <mailto:jiten.pansara@fisglobal.com>
> *FIS | Advancing the way the world Pays, Banks, and 
> Invests***<https://www.facebook.com/FIStoday><https://twitter.com/FISGlobal><https://www.linkedin.c...;
>
> A picture containing text, outdoor, sign Description automatically 
> generated
>
> **
>
> The information contained in this message is proprietary and/or 
> confidential. If you are not the intended recipient, please: (i) 
> delete the message and all copies; (ii) do not disclose, distribute or 
> use the message in any manner; and (iii) notify the sender 
> immediately. In addition, please be aware that any message addressed 
> to our domain is subject to archiving and review by persons other than 
> the intended recipient. Thank you. 

-- 
Mladen Gogala
Database Consultant
Tel: (347) 321-1217
https://dbwhisperer.wordpress.com

Attachments:

image001.png (image/png, 572B) download view image
image002.png (image/png, 656B) download view image
image003.png (image/png, 576B) download view image
image004.png (image/png, 13.3K) download view image
^ permalink raw reply [nested|flat] 4+ messages in thread

* Re: Can't locate Ora2Pg.pm while executing export_schema.sh
@ 2021-08-17 16:38  Luca Ferrari <fluca1978@gmail.com>
  parent: Mladen Gogala <gogala.mladen@gmail.com>
  1 sibling, 0 replies; 4+ messages in thread

From: Luca Ferrari @ 2021-08-17 16:38 UTC (permalink / raw)
  To: Mladen Gogala <gogala.mladen@gmail.com>; +Cc: pgsql-general <pgsql-general@lists.postgresql.org>

On Tue, Aug 17, 2021 at 4:34 PM Mladen Gogala <gogala.mladen@gmail.com> wrote:
>
> You should locate Ora2Pg.pm using "find" like this:
>
> [mgogala@umajor ~]$ find /usr/local -name Ora2Pg.pm
> /usr/local/share/perl5/5.32/Ora2Pg.pm

Sounds like he is using strawberry Perl, that means he is on windows.
Things could be different there.

Luca





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Can't locate Ora2Pg.pm while executing export_schema.sh
@ 2021-08-31 11:43  Peter J. Holzer <hjp-pgsql@hjp.at>
  parent: Mladen Gogala <gogala.mladen@gmail.com>
  1 sibling, 0 replies; 4+ messages in thread

From: Peter J. Holzer @ 2021-08-31 11:43 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

On 2021-08-17 10:34:28 -0400, Mladen Gogala wrote:
> You should locate Ora2Pg.pm using "find" like this:
> 
> [mgogala@umajor ~]$ find /usr/local -name Ora2Pg.pm
> /usr/local/share/perl5/5.32/Ora2Pg.pm
> [mgogala@umajor ~]$
> 
> and then make sure that your PERL5LIB directory contains  the location:
> 
> export PERL5LIB=/usr/local/share/perl5/5.32:$PERL5LIB
> 
> That should do the trick. On most distributions,
> /usr/local/share/perl5/<perl version> is already included into PERL5LIB.

It should be. Normally, if a perl module is not where perl can find it
that's a pretty good indication that either the module wasn't installed
properly in the first place or that something changed which makes a
reinstall highly advisable (e.g. a perl upgrade).

        hp

-- 
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Attachments:

  signature.asc (application/pgp-signature, 832B) download

^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2021-08-31 11:43 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-08-17 07:15 Can't locate Ora2Pg.pm while executing export_schema.sh Pansara, Jiten <Jiten.Pansara@fisglobal.com>
2021-08-17 14:34 ` Mladen Gogala <gogala.mladen@gmail.com>
2021-08-17 16:38   ` Luca Ferrari <fluca1978@gmail.com>
2021-08-31 11:43   ` Peter J. Holzer <hjp-pgsql@hjp.at>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox