Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Oracle > Attributes of ROWID in 2 tables are different?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-29-04, 17:21
jin007 jin007 is offline
Registered User
 
Join Date: Jan 2004
Location: Chicago
Posts: 47
Attributes of ROWID in 2 tables are different?

When I installed Oracle on my XP I get a sample database HR with table COUNTRIES, EMPLOYEES etc. I use a Java program to retrieve rowid from these 2 tables and I get confusing results.

First , rowid from EMPLOYEES table was retrieved without any problem:

String sql = "SELECT ROWID FROM HR.EMPLOYEES";
ResultSet rs = stmt.executeQuery(sql);

When I try to get rowid from COUNTRIES table using the same syntax I get an exception.

String sql = "SELECT ROWID FROM HR.COUNTRIES";
ResultSet rs = stmt.executeQuery(sql);

Exception at = stmt.executeQuery(sql):
"ORA-03115: unsupported network datatype or representation"


When I use SQL-Plus I can get ROWIDs from both tables!

Why?

Thanks!
Reply With Quote
  #2 (permalink)  
Old 09-29-04, 17:29
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 3,564
It could be that HR.EMPLOYEES & HR.COUNTRIES are different type of objects;
table, view, IOT, Partitioned table, etc.
Since it works OK, in SQL*Plus, the problem also may be in the JDBC interface.
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On