From: Adrian Klaver <adrian.klaver@aklaver.com>
To: George Dimopoulos <gdimopoulos@techtrend.us>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: ora2pg error : DBD::Oracle::db prepare failed: ORA-28110
Date: Thu, 11 Jun 2020 13:03:00 -0700
Message-ID: <40041ae1-76d2-c5e3-a2da-7c8ab8d2323d@aklaver.com> (raw)
In-Reply-To: <BL0PR07MB54586CBFD06E5895A97C89B0D3800@BL0PR07MB5458.namprd07.prod.outlook.com>
References: <BL0PR07MB54586CBFD06E5895A97C89B0D3800@BL0PR07MB5458.namprd07.prod.outlook.com>
On 6/11/20 12:32 PM, George Dimopoulos wrote:
> Hi Everyone,
>
> I am new to migrating oracle 18c EX to postgres.
>
> I do not know if this site is the correct site for my problem. If it is
> not, can you please point me to correct site to ask the question?
>
> I used ora2pg to start the migration but when I try to run “ ora2pg -t
> SHOW_REPORT” I get the following error:
>
> /DBD::Oracle::db prepare failed: ORA-28110: policy function or package
> NRM_CAVES.UTIL_SECURITY has error (DBD ERROR: error possibly near <*>
> indicator at char 49 in 'SELECT DISTINCT c.SHAPE.SDO_GTYPE FROM
> NRM_CAVES.<*>LOCATIONS c WHERE ROWNUM < 50000') [for Statement "SELECT
> DISTINCT c.SHAPE.SDO_GTYPE FROM NRM_CAVES.LOCATIONS c WHERE ROWNUM <
> 50000"] at C:/Strawberry/perl/site/lib/Ora2Pg.pm line 9408/.
So does:
SELECT DISTINCT c.SHAPE.SDO_GTYPE FROM NRM_CAVES.LOCATIONS c WHERE
ROWNUM < 50000
run correctly in the database?
>
> I have set COMPILE_SCHEMA 0
>
> This error appears on every time no matter what I set TYPE, even I have
> excluded all the tables where this policy applies.
>
> Please help,
>
> Best Regards,
>
> George
>
> George Dimopoulos
>
> Oracle DBA and Weblogic Admin
>
> TechTrend Inc.
>
> 8270 Willow Oaks Corporate Drive, Suite 625, Fairfax, VA 22031
>
> Office: 703-521-9392 | Fax 703-663-8668
>
> gdimopoulos@techtrend.us <mailto:gdimopoulos@techtrend.us>|
> www.techtrend.us <http://www.techtrend.us/;
>
--
Adrian Klaver
adrian.klaver@aklaver.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, gdimopoulos@techtrend.us
Subject: Re: ora2pg error : DBD::Oracle::db prepare failed: ORA-28110
In-Reply-To: <40041ae1-76d2-c5e3-a2da-7c8ab8d2323d@aklaver.com>
References: <BL0PR07MB54586CBFD06E5895A97C89B0D3800@BL0PR07MB5458.namprd07.prod.outlook.com> <40041ae1-76d2-c5e3-a2da-7c8ab8d2323d@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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