If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Oracle --> DB2 --> Oracle

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-20-06, 16:57
swma swma is offline
Registered User
 
Join Date: Mar 2005
Location: London, England
Posts: 8
Oracle --> DB2 --> Oracle

I'm trying to perform a query to find the table names through a DB link.

The database I'm on is Oracle, the query I'm running goes through a DB2 database which somehow sits on top of a Oracle system? or helps translates something that then writes/communicates data or something to the underlying Oracle database.

So it's like

OracleA --> DB2-- >Oracle ?!?!?!?!?

Oracle dblink to DB2 which sits on to of oracle?

anyway when I query from OracleA I get the following... can anyone help? I'm very very new to DB2. How can I make the below query work?

select table_name from all_tables@chidb2 *
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
DSNT408I SQLCODE = -204, ERROR: OTGDB2.ALL_TABLES IS AN UNDEFINED NAME
DSNT418I SQLSTATE = 42704 SQLSTATE RETURN CODE
DSNT415I SQLERRP = DSNXOTL SQL PROCEDURE DETECTING ERROR
ORA-28506: parse error in data dictionary translation for ALL_TABLES stored in
sys.hs_all_dd
ORA-28559: FDS_CLASS_NAME is DB2MVS_V6_10.1.0.2.0, FDS_INST_NAME is GADI
ORA-00604: error occurred at recursive SQL level 1
ORA-00942: table or view does not exist
DSNT408I SQLCODE = -204, ERROR: OTGDB2.ALL_TABLES IS AN UNDEFINED NAME
DSNT418I SQLSTATE = 42704 SQLSTATE RETURN CODE
DSNT415I SQLERRP = DSNXOTL SQL PROCEDURE DETECTING ERROR
ORA-02063: preceding 7 lines from CHIDB2

Last edited by swma; 12-20-06 at 17:04.
Reply With Quote
  #2 (permalink)  
Old 12-21-06, 01:48
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
catalog

in db2 the name is sysibm.systables for luw (name,creator)
but in mvs-z/os I am not sure
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
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

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