From: Gilles Darold <gilles@darold.net>
To: Adrian Klaver <adrian.klaver@aklaver.com>
To: George Dimopoulos <gdimopoulos@techtrend.us>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: ora2pg error : DBD::Oracle::db prepare failed: ORA-28110
Date: Fri, 12 Jun 2020 07:50:13 +0200
Message-ID: <36dbc4cf-ad2d-88fb-5d93-fb14954b868a@darold.net> (raw)
In-Reply-To: <cb79912f-96a0-6797-fc48-526abee62df6@aklaver.com>
References: <BL0PR07MB54586CBFD06E5895A97C89B0D3800@BL0PR07MB5458.namprd07.prod.outlook.com>
<40041ae1-76d2-c5e3-a2da-7c8ab8d2323d@aklaver.com>
<BL0PR07MB545881AFEA8F0ED9DF088713D3800@BL0PR07MB5458.namprd07.prod.outlook.com>
<cb79912f-96a0-6797-fc48-526abee62df6@aklaver.com>
Le 12/06/2020 à 00:40, Adrian Klaver a écrit :
> On 6/11/20 1:30 PM, George Dimopoulos wrote:
> Please reply to list also.
> Ccing list.
>
>> Hi Adrian,
>>
>> Thank you very much for your help !!!
>> I did the query, and I found out that
>> SELECT DISTINCT c.SHAPE.SDO_GTYPE FROM NRM_CAVES.LOCATIONS c WHERE
>> ROWNUM < 50000
>> *
>> ERROR at line 1:
>> ORA-28110: policy function or package NRM_CAVES.UTIL_SECURITY has error
>
> So to be clear the above error is being seen on the Oracle database.
>
>>
>> This policy has been applied to few tables so I did exclude them
>> (with directive TYPE TABLE).
>> I was hopping that I will be able to migrate the other tables that do
>> not depend on this policy.
>> That means that developers have to correct this in Oracle side before
>> I can do the migration and succeed.
>> Is this correct?
>
> Not sure.
>
Hi,
"ORA-28110: Policy function or package has error occurs when a policy
function has some error such as a compilation problem. The solution is
to recompile the package or the function after fixing the underlying
problem."
If you set COMPILE_SCHEMA to 1 in your ora2pg.conf, Ora2pg will first
recompile the all functions but if the policy function is not in the
schema you are exporting it will not help. Actually this is an Oracle
issue you may want to contact an Oracle DBA to see what can be done.
Best regards
--
Gilles Darold
http://www.darold.net/
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: gilles@darold.net, adrian.klaver@aklaver.com, gdimopoulos@techtrend.us
Subject: Re: ora2pg error : DBD::Oracle::db prepare failed: ORA-28110
In-Reply-To: <36dbc4cf-ad2d-88fb-5d93-fb14954b868a@darold.net>
References: <BL0PR07MB54586CBFD06E5895A97C89B0D3800@BL0PR07MB5458.namprd07.prod.outlook.com> <40041ae1-76d2-c5e3-a2da-7c8ab8d2323d@aklaver.com> <BL0PR07MB545881AFEA8F0ED9DF088713D3800@BL0PR07MB5458.namprd07.prod.outlook.com> <cb79912f-96a0-6797-fc48-526abee62df6@aklaver.com> <36dbc4cf-ad2d-88fb-5d93-fb14954b868a@darold.net>
* 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