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 > unable to create db2 server for federated database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-15-10, 00:22
aditi.tiwari aditi.tiwari is offline
Registered User
 
Join Date: Jun 2010
Posts: 2
unable to create db2 server for federated database

Hi,

I issued a command:

create server p400 type db2/400 version 5.3.0 wrapper DRDA authorization "qseibm" password "ibm***" options (node 'S657686B', dbname 'S657686B')

for an already cataloged remote data source.
I can successfully connect to the data source through my AIX server but once I run this command i get the following error:

DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0104N An unexpected token "SERVER" was found following "". Expected
tokens may include: "VIEW ALIAS TABLE SCHEMA UNIQUE ENCODED". SQLSTATE=42601

same create server command I had used before to create a server and it worked fine.
Reply With Quote
  #2 (permalink)  
Old 06-15-10, 15:20
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Did you enable federation support in your DBM config? And which version of DB2 are you using on which platform?

If it really worked before on the same database, you may have some sort of typo (e.g. a non-printable character) in your statement.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 06-16-10, 02:45
aditi.tiwari aditi.tiwari is offline
Registered User
 
Join Date: Jun 2010
Posts: 2
Hi Knut,
Thanks for the support
I have already modified the dbm config file to make it federated and I'm using db2 9.1 on AIX 5.3.

How can i look for those "typo" ?

ADITI TIWARI
Reply With Quote
  #4 (permalink)  
Old 06-17-10, 05:54
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
always put this command in a file. we had this problem before, because it needs quotes and " quotes..
execute with db2 -tvf ...
__________________
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