Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

sql30082n RC=3 [ remote db -> local db ]

$
0
0
Code:

db2inst1@xxxxxxxx:/xxx/db2/db2inst1> db2 list node directory

 Node Directory

 Number of entries in the directory = 1

Node 1 entry:

 Node name                      = JAC_NODE
 Comment                        =
 Directory entry type          = LOCAL
 Protocol                      = TCPIP
 Hostname                      = localhost
 Service name                  = db2c_db2inst1

db2inst1@xxxxxxxx:/xxx/db2/db2inst1> db2 list db directory

 System Database Directory

 Number of entries in the directory = 2

Database 1 entry:

 Database alias                      = SCM
 Database name                        = JAC
 Node name                            = JAC_NODE
 Database release level              = c.00
 Comment                              =
 Directory entry type                = Remote
 Catalog database partition number    = -1
 Alternate server hostname            =
 Alternate server port number        =

Database 2 entry:

 Database alias                      = JAC
 Database name                        = JAC
 Local database directory            = /xxx/db2/data
 Database release level              = c.00
 Comment                              =
 Directory entry type                = Indirect
 Catalog database partition number    = 0
 Alternate server hostname            =
 Alternate server port number        =


db2inst1@xxxxxxxx:/xxx/db2/db2inst1> db2 connect to JAC

  Database Connection Information

 Database server        = DB2/AIX64 9.5.9
 SQL authorization ID  = DB2INST1
 Local database alias  = JAC


db2inst1@xxxxxxxx:/xxx/db2/db2inst1> db2 connect to SCM
SQL30082N  Security processing failed with reason "3" ("PASSWORD MISSING").
SQLSTATE=08001


db2inst1@xxxxxxxx:/xxx/db2/db2inst1> db2 attach to JAC_NODE
SQL30082N  Security processing failed with reason "3" ("PASSWORD MISSING").
SQLSTATE=08001


db2inst1@xxxxxxxx:/xxx/db2/db2inst1> db2 connect to SCM user db2inst1
Enter current password for db2inst1:

  Database Connection Information

 Database server        = DB2/AIX64 9.5.9
 SQL authorization ID  = DB2INST1
 Local database alias  = SCM


db2inst1@xxxxxxxx:/xxx/db2/db2inst1> db2 get dbm cfg | grep -i auth
 GSS Plugin for Local Authorization    (LOCAL_GSSPLUGIN) =
 Server Connection Authentication          (SRVCON_AUTH) = NOT_SPECIFIED
 Database manager authentication        (AUTHENTICATION) = SERVER
 Cataloging allowed without authority  (CATALOG_NOAUTH) = NO
 Trusted client authentication          (TRUST_CLNTAUTH) = CLIENT
 Bypass federated authentication            (FED_NOAUTH) = NO


If I change AUTHENTICATION dbm cfg to CLIENT, connect to SCM without user/pwd is successful.


From the manual:

"If authentication is SERVER, the user ID and password are sent from the client to the server so that authentication can take place on the server....
A value of CLIENT indicates that all authentication takes place at the client. No authentication needs to be performed at the server."


In my example, client and server is the same AIX box. Could you please explain why I need to provide user/pwd when connecting to a db that is catalogued as remote but pointing to local?

Viewing all articles
Browse latest Browse all 13329

Trending Articles