ORA-04043 WHEN USING SYNONYM FOR TYPE OBJECT WORKS FROM SQLPLUS
Posted: Mon 05 May 2008 14:44
Hi. We have a problem when using private synonyms to access a type on another schema.
.NET application raises ORA-04043: object TBL_PROPOSALS does not exist. The same statement works ok in sqlplus, or in .NET app when the type used is referenced with the owner instead of the private synonym:
Not working:
Dim objOra As OracleObject
tblProposal = New OracleTable("tbl_Proposals", objConn)
objOra = New OracleObject("obj_Proposals", objConn)
Working ok:
Dim objOra As OracleObject
tblProposal = New OracleTable("typeowner.tbl_Proposals", objConn)
objOra = New OracleObject("typeowner.obj_Proposals", objConn)
Can you please tell us where is the problem? Thank you.
.NET application raises ORA-04043: object TBL_PROPOSALS does not exist. The same statement works ok in sqlplus, or in .NET app when the type used is referenced with the owner instead of the private synonym:
Not working:
Dim objOra As OracleObject
tblProposal = New OracleTable("tbl_Proposals", objConn)
objOra = New OracleObject("obj_Proposals", objConn)
Working ok:
Dim objOra As OracleObject
tblProposal = New OracleTable("typeowner.tbl_Proposals", objConn)
objOra = New OracleObject("typeowner.obj_Proposals", objConn)
Can you please tell us where is the problem? Thank you.