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 > DB2 equivalent for '@' in oracle

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-09-09, 09:22
smauel smauel is offline
Registered User
 
Join Date: Jul 2009
Posts: 1
DB2 equivalent for '@' in oracle

In oracle it is possible to run a sql script with the '@' command. What is the equivalent command in DB2?

Thanks
smauel
Reply With Quote
  #2 (permalink)  
Old 07-09-09, 12:23
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
db2 -tf script.sql
Reply With Quote
  #3 (permalink)  
Old 07-10-09, 03:14
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
Not sure. In oracle you specify the"@" to point to tables on another server, right? In that case you need "federation" and "nicknames" in DB2. When you google for those you'll find out.
Reply With Quote
  #4 (permalink)  
Old 07-11-09, 03:09
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
also to execute in pl/sql a script
@catalog would execute catalog.sql
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
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