473,466 Members | 4,855 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Syntax error when creating user mapping in DB2 (Data Federation)

- Federation Server (DB2)
- Solaris 10 Fed Server

db2 "create user mapping for USER123 server SRV1 options
(remote_authid ‘AAA_USER’, remote_password ‘PWD’)"

CLP response:

# ./db2 "create user mapping for USER123 server SRV1 options
(remote_authid .AAA_USER., remote_password .PWD’.)"
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 "create user mapping for USER123 server
SRV"
was found following "BEGIN-OF-STATEMENT". Expected tokens may
include:
"<space>". SQLSTATE=42601

-----

It's obviously a syntax error (SQLSTATE=42601) but I cannot figure
out where the problem may be. The
syntax looks correct to me...

Thanks
Orlando

Oct 15 '08 #1
1 2838
pu**********@live.com wrote:
db2 "create user mapping for USER123 server SRV1 options
(remote_authid ‘AAA_USER’, remote_password ‘PWD’)"
[...]
Thanks
Orlando
Hi Orlando,

db2 "CREATE USER MAPPING FOR USER123 SERVER SRV1 OPTIONS (ADD
REMOTE_AUTHID 'AAA_USER', ADD REMOTE_PASSWORD 'PWD')"

Note that the apostrophe around AAA_USER is different (‘value’ vs
'value'), and that you are missing the "ADD" keyword. Ok, according to
[1] the ADD keyword is optional.

Michael

[1]
http://publib.boulder.ibm.com/infoce...c/r0002172.htm
Oct 16 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

29
by: shank | last post by:
1) I'm getting this error: Syntax error (missing operator) in query expression on the below statement. Can I get some advice. 2) I searched ASPFAQ and came up blank. Where can find the "rules"...
1
by: Steven | last post by:
This is complicated so I will try to be specific. Server: W2K DB2 V8.1 fixpack 4 Instances: DB2 databases TOOLSDB, DBDC DEV databases SURVEY, QUALDEV, DBDCDEV STAGE databases WSWSTAGE, TEMP I am...
11
by: Mark Findlay | last post by:
Hello Experts! I am attempting to use the OleDbCommand.ExecuteScaler() function within my ASP.NET C# web page to perform a simple validation, but receive the following error: "Incorrect...
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
2
by: Tomas Vera | last post by:
Hello All, I have a web application that is required to copy a file from the WebServer to a remote web server (staging server to production server). I've created an application that maps the...
1
by: maz01 | last post by:
Hello All, I am developing an application in visual basic 2005 that will run continuously in the background on a users workstation. This application will automatically transfer files from the...
3
by: jer006 | last post by:
Hi I am writing a select statement that has an arithmetic function inside a case statement that uses logic to decide whether to divide or multiply and when I run the arithmetic statements outside...
0
by: rautsmita | last post by:
hello friends , i am using to jdk6 and JAXB2.0, i have geomtry.xsd file i am trying to compile this file using jaxb but i got some error i.e.The particle of the type is not a valid restriction of...
0
by: =?Utf-8?B?UmF2aQ==?= | last post by:
Hi, I have WCF service and integrated with STS (WS-Federation). The Service exposes 5 endpoints Win, UNT and Federated Windows, Federated UNT and Mex endpoint. My STS Service exposes 3 endpoints...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.