ORA-900 Invalid Sql Statement.
Hi,
I've got the strange problem, please go through with my findings.
BANNER
----------------------------------------------------------------
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
PL/SQL Release 9.2.0.8.0 - Production
CORE 9.2.0.8.0 Production
TNS for Solaris: Version 9.2.0.8.0 - Production
NLSRTL Version 9.2.0.8.0 - Production
chry_pm_stg@PUBINT> SELECT data_utils.column_list('CHRY_PM_STG.PARTS@EPC_TARGET', 0, 0, NULL,1, NULL, NULL, 0) FROM DUAL;
DATA_UTILS.COLUMN_LIST('CHRY_PM_STG.PARTS@EPC_TARGET',0,0,NULL,1,NULL,NULL,0)
-----------------------------------------------------------------------------
PARTID,PARTNO,PARTNAME,PARTLANGID
BANNER
------------------------------------------------------------
Oracle9i Enterprise Edition Release 9.2.0.5.0 - Production
PL/SQL Release 9.2.0.5.0 - Production
CORE 9.2.0.6.0 Production
TNS for 32-bit Windows: Version 9.2.0.5.0 - Production
NLSRTL Version 9.2.0.5.0 - Production
chry_pm_aj@W9ITEST> SELECT data_utils.column_list('CHRY_PM_AJ.PARTS@EPC_TARGET', 0, 0, NULL,1, NULL, NULL, 0) FROM DUAL;
SELECT data_utils.column_list('CHRY_PM_AJ.PARTS@EPC_TARGET', 0, 0, NULL,1, NULL, NULL, 0) FROM DUAL
*
ERROR at line 1:
ORA-00900: invalid SQL statement
ORA-06512: at "CHRY_PM_AJ.DATA_UTILS", line 492
ORA-06512: at line 1
In the above code, Data Utils is a package and column_list is a function.As you can clearly see, the above code works well in first case, but in the second case, the same code does return an error, howerve the database version is not same.
hare krishna
Alok