Troubleshooting
Problem
SQL2018N error when creating an instance on DB2 LUW database.
Symptom
default trace file shows the following error .
14 2012-05-04 15:21:24.778 main{1} com.datamirror.ts.engine.ReplicationExecutive initAndCheckOptionalEnvironment()
A SQL exception has occurred. The SQL error code is '-2018'. The SQL state is: . The error message is: |SQL2018N The utility encountered an error "" while attempting to verify the user's authorization |ID or database authorizations.| com.datamirror.ts.util.EnvironmentUserException A SQL exception has occurred. The SQL error code is '-2018'. The SQL state is: . The error message is: |SQL2018N The utility encountered an error "" while attempting to verify the user's authorization |ID or database authorizations.||
db2diag.log shows following error around the time period when CDC reported SQL2018 error.
2012-05-04-15.16.59.412375-420 I234084A569 LEVEL: Error
PID : 18415630 TID : 7731 PROC : db2sysc 0
INSTANCE: db2irsbm NODE : 000 DB : SBMRD02
APPHDL : 0-12653 APPID: *LOCAL.db2irsbm.120504221707
AUTHID : SVCDCDC
EDUID : 7731 EDUNAME: db2agent (SBMRD02) 0
FUNCTION: DB2 UDB, data protection services, sqlp_AsyncLogReadAPI, probe:30
DATA #1 : String, 122 bytes
Error: sqlcode -2018, rc -2018, hflag2LsnReuse 0
action 3, startLSN 0000 0000 0000, endLSN 0000 0000 0000, logBufferSize 0
Log InLog in to view more of this document
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21594741