Hi Everybody,
We are facing a problem while creating a nickname. The Server definition is created successfully using the following command:-
db2 connect to federatedDB user user1 using Password1
db2 "create server XYZDBserver type DB2/UDB VERSION 9.5 WRAPPER DRDA AUTHORIZATION "user" PASSWORD "passwd" OPTIONS (ADD DBNAME 'XYZDB',FOLD_ID 'L', FOLD_PW 'L')"
When we try to create a nickname we 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:
SQL1101N Remote database "XYZDB" on node "<unknown>" could not be accessed with the specified authorization id and password. SQLSTATE=08004
When we changed the password from Password1 to password1 then the nickname was created successfully. Creating a user mapping also solved the problem.
However since both the databases are on the same server our client, is it absolutely neccessary to create a user mapping? Is there any way we can create a nickname without changing the password or creating a user mapping?
Regards
Ashwin