Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / April 2004

Tip: Looking for answers? Try searching our database.

Using synonyms with oracle object types

Thread view: 
Andres Rodriguez - 07 Apr 2004 18:02 GMT
Hello,

I'm using some Oracle types that belong to a certain schema. I've code
some classes that implement java.sql.SQLData to manage the conversion
between the java and oracle types.

The SQL type the classes report is "schema_name.object_name".

The application connects to the database by using an user different
from the one that owns the tables, and there are synonyms for all the
interested objects (tables, views, etc).

The problem is that if I remove the schema name from the sql type name
in the java class the object type is not found when passing an object
to or from a stored procedure, even though a synonym is created for
the object.

Any idea?

Thanks
Jeff Smith - 08 Apr 2004 12:26 GMT
Same problem here. I have to create the types in each schema.

If someone can shed light on this, I too, am listening.

Jeff

> Hello,
>
[quoted text clipped - 16 lines]
>
> Thanks
Jeff Smith - 08 Apr 2004 12:27 GMT
Oh yes, Oracle 8.1.7....
> Same problem here. I have to create the types in each schema.
>
[quoted text clipped - 22 lines]
> >
> > Thanks
bung ho - 15 Apr 2004 19:34 GMT
> Oh yes, Oracle 8.1.7....
> > Same problem here. I have to create the types in each schema.
[quoted text clipped - 23 lines]
> > >
> > > Thanks

i don't really remember if this is the issue i think it is, but trying
using all uppercase when specifying SCHEMA.TYPE_NAME in your java
code.
Jeff Smith - 19 Apr 2004 12:18 GMT
Found this:

Synonym support for user defined types was added in 9i Release 2 (9.2.x)

> > Oh yes, Oracle 8.1.7....
> > > Same problem here. I have to create the types in each schema.
[quoted text clipped - 27 lines]
> using all uppercase when specifying SCHEMA.TYPE_NAME in your java
> code.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.