APAR status
Closed as program error.
Error description
After migrating from V7 to V8, the dbclean utility might throw exceptions when cleaning scheduler tables: Chained SQLException 2: DB2 SQL Error: SQLCODE=-727, SQLSTATE=56098, SQLERRMC=2;-206;42703;SCHCONFIG.SCCJOBREFUM, DRIVER=4.19.26 com.ibm.db2.jcc.am.SqlSyntaxErrorException: DB2 SQL Error: SQLCODE=-206, SQLSTATE=42703, SQLERRMC=SCHCONFIG.SCCJOBREFUM, DRIVER=4.19.26 at com.ibm.db2.jcc.am.kd.a(Unknown Source) at com.ibm.db2.jcc.am.kd.a(Unknown Source) ... at com.ibm.commerce.clean.dbcleaner.DBCleaner.deleteDirect(DBCleane r.java:1460) at com.ibm.commerce.clean.dbcleaner.DB2Cleaner.deleteCommit(DB2Clea ner.java:347) at com.ibm.commerce.clean.dbcleaner.DBCleaner.cleanTable(DBCleaner. java:1412) at com.ibm.commerce.clean.dbcleaner.DBCleaner.clean(DBCleaner.java: 992) at com.ibm.commerce.clean.dbcleaner.DBCleaner.clean(DBCleaner.java: 823) at com.ibm.commerce.clean.DBClean.execute(DBClean.java:374) at com.ibm.commerce.clean.DBClean.main(DBClean.java:84) 20160502-181632| DBCleaner.printCounters> The total number of tables visited is 0. 20160502-181632| DBCleaner.printCounters> The total number of tables affected is 0. 20160502-181632| DBCleaner.clean> The system could not run the following SQL statement: DELETE FROM SCHCONFIG WHERE SCCAPPTYPE ='broadcast' AND NOT EXISTS (SELECT 1 FROM SCHACTIVE A WHERE SCHCONFIG.SCCJOBREFUM = A.SCSJOBNBR) AND NOT EXISTS (SELECT 1 FROM SCHBRDCST B WHERE SCHCONFIG.SCCJOBREFNUM = B.JOBREFNUM AND B.JOBSTATE = 'R') AND (days(CURRENT TIMESTAMP) - days(SCCSTART) >= ?) 20160502-181632| DBCleaner.doFailureOutput> The DBClean utility completed with errors.
Local fix
Run the following SQL statement against your database to correct the issue (in the original SQL, there was a typo. "SCCJOBREFUM" should be "SCCJOBREFNUM"): DELETE FROM SCHCONFIG WHERE SCCAPPTYPE = 'broadcast' AND NOT EXISTS (SELECT 1 FROM SCHACTIVE A WHERE SCHCONFIG.SCCJOBREFNUM = A.SCSJOBNBR) AND NOT EXISTS (SELECT 1 FROM SCHBRDCST B WHERE SCHCONFIG.SCCJOBREFNUM = B.JOBREFNUM AND B.JOBSTATE = 'R') AND (days(CURRENT TIMESTAMP) - days(SCCSTART) >= ?)
Problem summary
USERS AFFECTED: WebSphere Commerce Version 8 users who migrated from WebSphere Commerce Version 7. PROBLEM ABSTRACT: Dbclean throws an SQL error on deletion in Scheduler tables BUSINESS IMPACT: Cannot clean scheduled tables. RECOMMENDATION:
Problem conclusion
Fixed the merging process that happens during the migration.
Temporary fix
Comments
APAR Information
APAR number
JR55893
Reported component name
WC BUS EDITION
Reported component ID
5724I3800
Reported release
800
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
YesSpecatt / Pervasive / Xsystem
Submitted date
2016-05-10
Closed date
2016-06-10
Last modified date
2016-06-10
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
WC BUS EDITION
Fixed component ID
5724I3800
Applicable component levels
R800 PSY
UP
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSYSYL","label":"WebSphere Commerce Enterprise"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Line of Business":{"code":"LOB31","label":"WCE Watson Marketing and Commerce"}}]
Document Information
Modified date:
11 December 2021