Home » RDBMS Server » Server Administration » Problems compiling a package / package body
Problems compiling a package / package body [message #163997] Tue, 21 March 2006 03:26 Go to next message
Uwe
Messages: 260
Registered: February 2003
Location: Zürich, Switzerland
Senior Member
Hi all,

we have a user package on our database.
I exported the complete DB from 8.1.7.4 and imported it into 10.1.0.4.
Afterwards one package body is invalid.
Try to recompile with
alter package xxxxxxx.xxxxxx recompile package body

will give ot that it is compiled with errors
show error will bring out "No Errors"

How could I find which error is running in ?

regards
Uwe
Re: Problems compiling a package / package body [message #164007 is a reply to message #163997] Tue, 21 March 2006 04:51 Go to previous messageGo to next message
orausern
Messages: 826
Registered: December 2005
Senior Member
Try doing:

set serveroutput on
and then give the recompile statement and show errors
Re: Problems compiling a package / package body [message #164019 is a reply to message #164007] Tue, 21 March 2006 06:07 Go to previous messageGo to next message
Uwe
Messages: 260
Registered: February 2003
Location: Zürich, Switzerland
Senior Member
Thanks,

but the result is stil the same:

SQL> set serveroutput on;
SQL> alter package WESTREPMAN.WESTBURY compile;

Warning: Package altered with compilation errors.

SQL> show errors;
No errors.
SQL>

any other suggestions ?
Re: Problems compiling a package / package body [message #164020 is a reply to message #164019] Tue, 21 March 2006 06:10 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
did you also check user_errors?
Re: Problems compiling a package / package body [message #164026 is a reply to message #164020] Tue, 21 March 2006 06:40 Go to previous messageGo to next message
Uwe
Messages: 260
Registered: February 2003
Location: Zürich, Switzerland
Senior Member
I am a little bit confused.
How to check user_errors ?
"show" will not work.
I have done all as SYS
Re: Problems compiling a package / package body [message #164028 is a reply to message #164026] Tue, 21 March 2006 06:44 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
I may be wrong.
Output of SHow_errors is derived from user_errors.

select name,text from user_errors;
Re: Problems compiling a package / package body [message #164029 is a reply to message #164028] Tue, 21 March 2006 06:47 Go to previous messageGo to next message
Uwe
Messages: 260
Registered: February 2003
Location: Zürich, Switzerland
Senior Member
Hi Mahesh,

this is the result :

SQL> alter package WESTREPMAN.WESTBURY compile;

Warning: Package altered with compilation errors.

SQL> select name,text from user_errors;

no rows selected


There are no errors reported
uwe
Re: Problems compiling a package / package body [message #164030 is a reply to message #164029] Tue, 21 March 2006 07:07 Go to previous messageGo to next message
JSI2001
Messages: 1016
Registered: March 2005
Location: Scotland
Senior Member
Stab in the dark, log in as the package owner and try to recompile, then check for errors. (Shouldn't make a diff I don't think, but you never know._ and you really should use sys other than for very high level tasks (shutdown startup etc)

Jim
Re: Problems compiling a package / package body [message #164037 is a reply to message #164030] Tue, 21 March 2006 07:38 Go to previous messageGo to next message
orausern
Messages: 826
Registered: December 2005
Senior Member
a guess is:

try to compile the package body and see its errors the same way..probably WESTREPMAN.WESTBURY is a package body? (or a procedure in it?)


pl.post the outputs of recompile commands for package body..
Re: Problems compiling a package / package body [message #164039 is a reply to message #163997] Tue, 21 March 2006 07:40 Go to previous message
Uwe
Messages: 260
Registered: February 2003
Location: Zürich, Switzerland
Senior Member
Thanks Jim,

I just done this, and noe I have an error code.
But it looks like coding problem. So they havn't tested the switch from 8.1.7.4 to 10.1 completely

WESTBURY
PLS-00593: default value of parameter "P_TMZNAME" in body must match that of spec

kind regards
Uwe


Previous Topic: Moving data's with out down the application
Next Topic: Troubleshooting deadlocks
Goto Forum:
  


Current Time: Tue Feb 18 19:05:37 CST 2025