Recently an issue which was reported to me on my forum, perfectly illustrated how a seemingly complex internal error can sometimes be traced back to a very simple syntax conflict, and from there how a syntax conflict may be caused by not following the EBS development and deployment standards. The problem was ORA-00907 during ADOP Cleanup.
Here is the link to that forum thread -> http://erman-arslan-s-oracle-forum.124.s1.nabble.com/Error-duing-CLEANUP-td13293.html
Well, one of my community members hit a wall while running the cleanup phase: adop phase=cleanup cleanup_mode=full. Everything seemed to be going fine until the process halted with error: ORA-00907: missing right parenthesis.
Here is the the error stack:
Statement Handler Error Code: 907
Statement Handler Error Message: ORA-00907: missing right parenthesis
ORA-06512: at "APPS.AD_ZD", line 64
ORA-06512: at "APPS.AD_ZD", line 48
ORA-06512: at "APPS.AD_ZD_TABLE", line 28
ORA-06512: at "APPS.AD_ZD_TABLE", line 2701
ORA-06512: at "APPS.AD_ZD_TABLE", line 2701
ORA-06512: at "APPS.AD_ZD", line 1152
ORA-06512: at line 3 (DBD ERROR: OCIStmtExecute)
Reference of statement-handler is valid, not attempting database reconnect.
Failed to execute SQL statement:
begin
execute immediate 'alter session set DDL_LOCK_TIMEOUT = 600';
ad_zd.cleanup('FULL');
end;
Error Message:
ORA-00907: missing right parenthesis
ORA-06512: at "APPS.AD_ZD", line 64
ORA-06512: at "APPS.AD_ZD", line 48
ORA-06512: at "APPS.AD_ZD_TABLE", line 28
ORA-06512: at "APPS.AD_ZD_TABLE", line 2701
ORA-06512: at "APPS.AD_ZD_TABLE", line 2701
ORA-06512: at "APPS.AD_ZD", line 1152
ORA-06512: at line 3 (DBD ERROR: OCIStmtExecute) [UNEXPECTED]Error occurred calling cleanup PL/SQL API.
[UNEXPECTED]Cleanup phase has failed.
At first glance, this is frustrating. You begin with wondering: Did Oracle’s own AD_ZD package have a coding error? Is there a bug in the PL/SQL generated by the system? The stack trace pointed directly to the Online Patching framework...
When looked closely at that column name, it was -> SYS_C00019_26042317:24:34$
That is Oracle identifiers cannot contain colons (:)
Oracle Support usually suggests complex steps for dropping columns from custom tables in 12.2, often involving the AD_ZD utilities. Just -> Review below document for instructions for dropping columns from custom table - Developing and Deploying Customizations in Oracle E-Business Suite Release 12.2 [KA1068 ]
However, before going further with the whole recommendation, the issue reached a self-resolved status. Since the table in question was a staging table in the custom schema used for data interfaces, it didn't contain permanent, mission-critical data. My follower took the most logical and efficient route: he dropped the table entirely :) By removing the problematic object, the adop cleanup process no longer had to deal with the invalidly named column, and the next run finished successfully.
No comments :
Post a Comment
If you will ask a question, please don't comment here..
For your questions, please create an issue into my forum.
Forum Link: http://ermanarslan.blogspot.com.tr/p/forum.html
Register and create an issue in the related category.
I will support you from there.