ORA-6508 Error [message #450181] |
Mon, 05 April 2010 12:08 |
|
Hi,
I am getting below error when SP (Packaged Procedure) is called from application...
ORA-06508: PL/SQL: could not find program unit being called
After checking DB, i found package to be valid and call to SP giving same error ORA-06588.
If i fire alter command to compile the package..
alter package name compile;
and then if i try to run the SP in db it runs sucessfully.
again after some time ORA-06508 it occurs again. after compiling it starts working fine again.
Body of the procedure :-
begin
indexFields.extend;
indexFields(indexFields.last) := ATTRIBUTE_REC_TYPE(i_attributeName,i_attributeValue);
o_errorcode := '0';
o_errormsg := null;
EXCEPTION
WHEN OTHERS THEN
o_errorcode := to_char(SQLCODE);
o_errormsg := SQLERRM;
indexFields := ATTRIBUTE_TABLE_TYPE();
end prepBatchIndexField;
WHEREAS (Definition of types) :-
indexFields ATTRIBUTE_TABLE_TYPE := ATTRIBUTE_TABLE_TYPE();
CREATE OR REPLACE TYPE ATTRIBUTE_TABLE_TYPE IS TABLE OF ATTRIBUTE_REC_TYPE
/
CREATE OR REPLACE TYPE ATTRIBUTE_REC_TYPE IS OBJECT
(ATTRIBUTE_NAME VARCHAR2(256),ATTRIBUTE_VALUE VARCHAR2(512)
);
/
I donno what is wrong here...sometimes it is working fine, sometimes gives error on compiling it works again.
Please help me in this regards.
Thanks & Regards
|
|
|
|
|
Re: ORA-6508 Error [message #450186 is a reply to message #450183] |
Mon, 05 April 2010 12:24 |
|
Hi,
When error occurs every time i check the object which are invalid and can cause the existing procedure to be invalid state.
But querying user_objects also does not show any invalid object also.
Error get resolved when i ...
1] compile the package again with alter command.
2] drop and recreate the package
3] disconnect and connect the session again.
Is it something related to memory ?
Thanks & Regards
|
|
|
Re: ORA-6508 Error [message #450187 is a reply to message #450181] |
Mon, 05 April 2010 12:24 |
|
Michel Cadot
Messages: 68645 Registered: March 2007 Location: Nanterre, France, http://...
|
Senior Member Account Moderator |
|
|
From your previouos topics:
BlackSwan wrote on Wed, 02 December 2009 16:29...You need to help us by following the Posting Guidelines as stated below.
http://www.orafaq.com/forum/t/88153/0/
Go to the URL above click the link "Posting Guidelines"
Go to the section labeled "Practice" & do as directed.
BlackSwan wrote on Tue, 16 June 2009 17:42You need to help us by following the Posting Guidelines as stated below.
http://www.orafaq.com/forum/t/88153/0/
Go to the URL above click the link "Posting Guidelines"
Go to the section labeled "Practice" & do as directed.
...
Michel Cadot wrote on Thu, 30 April 2009 12:59Please read OraFAQ Forum Guide, especially "How to format your post?" section.
Make sure that lines of code do not exceed 80 characters when you format.
Indent the code (See SQL Formatter), use code tags.
Use the "Preview Message" button to verify.
Also always post your Oracle version (4 decimals).
Use SQL*Plus and copy and paste your session then we can see what's happening and where.
...
Yes, you can do it.
[Updated on: Mon, 05 April 2010 12:24] Report message to a moderator
|
|
|
|
|
|
|
Re: ORA-6508 Error [message #450198 is a reply to message #450186] |
Mon, 05 April 2010 13:12 |
flyboy
Messages: 1903 Registered: November 2006
|
Senior Member |
|
|
bholeuday wrote on Mon, 05 April 2010 19:24Hi,
When error occurs every time i check the object which are invalid and can cause the existing procedure to be invalid state.
But querying user_objects also does not show any invalid object also.
Objects, on which the procedure is depending, do not have to necessarily be invalid. They may be just dropped and re-created on the fly. Dropping the depending object makes the procedure invalid. You might list all of them by querying USER_DEPENDENCIES view. Check CREATED and LAST_DDL time for all of them.
|
|
|
|
Re: ORA-6508 Error [message #450212 is a reply to message #450194] |
Mon, 05 April 2010 14:15 |
|
Michel Cadot
Messages: 68645 Registered: March 2007 Location: Nanterre, France, http://...
|
Senior Member Account Moderator |
|
|
bholeuday wrote on Mon, 05 April 2010 19:52If You dont know the answer then please keep quiet Mr. Blackswan
If you don't want to follow the guidelines then please don't post Mr. bholeuday
[Updated on: Mon, 05 April 2010 14:15] Report message to a moderator
|
|
|