From: | <karen(dot)smalara(at)boehringer-ingelheim(dot)com> |
---|---|
To: | <pgsql-admin(at)lists(dot)postgresql(dot)org> |
Subject: | Call to package procedure in Oracle not working |
Date: | 2021-07-23 17:06:47 |
Message-ID: | VI1PR09MB3984001F5359FF0527829D30C1E59@VI1PR09MB3984.eurprd09.prod.outlook.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
We have migrated from Oracle to PostgreSQL and one thing could only be tested in Production and of course it is not working so I am desperate for a solution.
In Oracle (it works here), we had a database link and a synonym to a subroutine in the foreign table package:
* DBLINK to another Oracle database: REMP_MSS
* Package name in REMP_MSS: REMP_API CREATE OR REPLACE SYNONYM "PGXLIMSP"."REMPASS_API" FOR "REMPASS_API"@"REMP_MSS"
* SYNONYM: CREATE OR REPLACE SYNONYM "PGXLIMSP"."REMPASS_API" FOR "REMPASS_API"@"REMP_MSS";
* Call from an Oracle procedure rempass_api.put_line(0,'');
This is what we have in POSTGRESQL:
* Using oci_dblink, a foreign server named REMP_MSS, this link works because we can query tables in this database
* SYNONYM: CREATE OR REPLACE SYNONYM "PGXLIMSV8"."REMPASS_API" FOR "REMPASS_API"@"REMP_MSS"
* Call from Oracle procedure rempass_api.put_line(0,' '); but get the error message "schema REMPASS_API(at)REMP_MSS does not exist"
In the Oracle database this is the package that has the put_line subroutine
[cid:image003(dot)png(at)01D77FC1(dot)ECE1DDC0]
We gave tried several variations of the call but all error out with "schema xyz does not exist":
* CALL "REMPASS_API(at)REMP_MSS".put_line(0,'');
* CALL "MSS(dot)REMPASS_API(at)REMP_MSS ".put_line(0,'');
* CALL "MSS(dot)REMPASS_API(at)REMP_MSS ".put_line(0,'');
* CALL "rempass_api(at)remp_mss".put_line(0,'');
Can anyone help?
Best Regards,
Karen
[cid:image004(dot)png(at)01D77FC3(dot)96A07F50]<https://www.boehringer-ingelheim.us/>
Karen Smalara
Senior Principal Software Engineer
Boehringer Ingelheim Pharmaceuticals, Inc.
900 Ridgebury Road, Ridgefield, CT 06877
C: +1 804 244 0111
karen(dot)smalara(at)boehringer-ingelheim(dot)com<mailto:karen(dot)smalara(at)boehringer-ingelheim(dot)com>
Facebook<https://www.facebook.com/BoehringerUS/> | Twitter<https://twitter.com/boehringerus> | Instagram<https://www.instagram.com/boehringerus/> | LinkedIn<https://www.linkedin.com/company/boehringer-ingelheim>
This e-mail is confidential and may also be legally privileged. If you are not the intended recipient please reply to sender, delete the e-mail and do not disclose its contents to any person. Any unauthorized review, use, disclosure, copying or distribution is strictly prohibited.
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2021-07-23 17:22:31 | Re: Call to package procedure in Oracle not working |
Previous Message | Ron | 2021-07-23 17:06:04 | Re: Backup/Restore |