473,395 Members | 1,403 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

procedure compilable over db link?

Hi,

we have come across the problem that the execution of a stored
procedure by our scheduling tool (cronacle -> over db link) fails with
the error message:
ORA-04068: existing state of packages has been discarded
ORA-04062: of has been changed
ORA-04062: timestamp of procedure "LARA.PRC_BERECHNE_ZINSFAKTOR" has
been changed
ORA-06512: at "LARA.LARA_PRC_BERECHNE_ZINSFAKTOR", line 15
ORA-06512: at "LARA.LARA_PRC_BERECHNE_ZINSFAKTOR", line 34
ORA-06512: at line 1
ORA-06512: at "SYS.DBMS_SYS_SQL", line 1118
ORA-06512: at "SYS.DBMS_SQL", line 316
ORA-06512: at "SYSJCS.DDL", line 493
ORA-06512: at line 2
JCS-00215: in statement RSOJ_EXECUTE_JOB

We could not find any process that could have changed the timestamp of
this procedure. Therefore we are thinking about recompiling the
procedure over the same db link that is used to execute the stored
procedure. However, test have come to no positive results. The
recompilation over db link gives the following error:
alter procedure TEST_PRC_SIR389@keth_2_lara_keth compile
*
ERROR at line 1:
ORA-00922: missing or invalid option

If we encapsulate the procedure with a synonym, we get a different
error that leads to the assumption that a synonym is no appropriate
procedure wrapper with respect to compilation:
alter procedure SYN_TEST_PRC_SIR389 compile
*
ERROR at line 1:
ORA-04043: object SYN_TEST_PRC_SIR389 does not exist

We could eliminate the uncertainty that the quality of the test
procedure is causing the problem. a local installation of the
procedure compiles without problems.

Is ORA-00922 only a misleading error message and procedures cannot be
compiled over db links whatsoever or are we missing some important
points?

Cheers

Thiemo
Jul 19 '05 #1
3 16135
couple ideas:

set the INIT.ORA parameter 'remote_dependencies_mode = signature'

the default is TIMESTAMP which leads to useless ORA-04052 errors

you should no longer have a need to compile remotely, but if there is still
some reason to compile remotely it looks like you might need to create a
remote procedure to encapsulate the ALTER PROCEDURE command -- however,
after setting remote_dependencies_mode it should never be necessary.(accent
on 'should')
--
----------------------------------------
Mark C. Stock
www.enquery.com
(888) 512-2048
"Thiemo Kellner" <th****@gmx.ch> wrote in message
news:c1**************************@posting.google.c om...
Hi,

we have come across the problem that the execution of a stored
procedure by our scheduling tool (cronacle -> over db link) fails with
the error message:
ORA-04068: existing state of packages has been discarded
ORA-04062: of has been changed
ORA-04062: timestamp of procedure "LARA.PRC_BERECHNE_ZINSFAKTOR" has
been changed
ORA-06512: at "LARA.LARA_PRC_BERECHNE_ZINSFAKTOR", line 15
ORA-06512: at "LARA.LARA_PRC_BERECHNE_ZINSFAKTOR", line 34
ORA-06512: at line 1
ORA-06512: at "SYS.DBMS_SYS_SQL", line 1118
ORA-06512: at "SYS.DBMS_SQL", line 316
ORA-06512: at "SYSJCS.DDL", line 493
ORA-06512: at line 2
JCS-00215: in statement RSOJ_EXECUTE_JOB

We could not find any process that could have changed the timestamp of
this procedure. Therefore we are thinking about recompiling the
procedure over the same db link that is used to execute the stored
procedure. However, test have come to no positive results. The
recompilation over db link gives the following error:
alter procedure TEST_PRC_SIR389@keth_2_lara_keth compile
*
ERROR at line 1:
ORA-00922: missing or invalid option

If we encapsulate the procedure with a synonym, we get a different
error that leads to the assumption that a synonym is no appropriate
procedure wrapper with respect to compilation:
alter procedure SYN_TEST_PRC_SIR389 compile
*
ERROR at line 1:
ORA-04043: object SYN_TEST_PRC_SIR389 does not exist

We could eliminate the uncertainty that the quality of the test
procedure is causing the problem. a local installation of the
procedure compiles without problems.

Is ORA-00922 only a misleading error message and procedures cannot be
compiled over db links whatsoever or are we missing some important
points?

Cheers

Thiemo

Jul 19 '05 #2

Suggest you read about remote dependency checking (and the
remote_dependencies_mode parameter) in Oracle documentation,
specifically Oracle Application Developer's Guide - Fundamentals,
chapter 9.
--
Posted via http://dbforums.com
Jul 19 '05 #3
Thanks for your replies. They helped.

Cheers

Thiemo
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dan Loomis | last post by:
Hi guys - I have a weird condition here I'm trying to get resolution on, and unfortunately I'm not getting anywhere with my friends at Oracle. I'm hoping it's something simple, or at the very...
15
by: Jarrod Morrison | last post by:
Hi All Im generally a vb programmer and am used to referencing multiple records returned from a query performed on an sql database and im trying to move some functions of my software into sql...
3
by: aaj | last post by:
SQL SERVER 2000 Hi all This is my first attempt at writing a stored procedure. I have managed to get it working but its unlikely to be the best way of handling the problem. While writing it I...
3
by: Serge Rielau | last post by:
Hi SQL Procedure developers, As threatened in earlier posts the SQL PL Tracing facility is finally oot-and-aboot. SQL procedure tracing: Analyzing SQL procedure flow This article describes an...
6
by: Rod Snyder | last post by:
I'm trying to set up a page with an asp.net link button that would send a user to a certain page and on page load execute a specific stored procedure tied to the button on the previous page. The...
2
by: ApexData | last post by:
Hello I'm sure the solution is simple and probably has something to do with the VB Editor. I want to create an EventProcedure link to an already created procedure that exists in my Form...
0
by: IamtheEvster | last post by:
Hi All, I am currently using PHP 5 and MySQL 5, both on Fedora Core 5. I am unable to call a MySQL stored procedure that returns output parameters using mysql, mysqli, or PDO. I'm having a...
0
by: SOI_0152 | last post by:
Hi all! Happy New Year 2008. Il hope it will bring you love and happyness I'm new on this forum. I wrote a stored procedure on mainframe using DB2 7.1.1 and IBM language c. Everything works...
3
by: Thiemo Kellner | last post by:
Hi, we have come across the problem that the execution of a stored procedure by our scheduling tool (cronacle -over db link) fails with the error message: ORA-04068: existing state of packages...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.