Bug #4562

Email subject: Bii team: error while performing your request after login rcas app

Added by Anonymous about 10 years ago. Updated almost 10 years ago.

Status:Work Completed-End life cycleStart date:July 17, 2014
Priority:NormalDue date:July 22, 2014
Assignee:-% Done:

0%

Category:-Spent time:-
Target version:-

Description

Issue: Error while performing your request after login rcas app (http://172.18.25.36:9080/CAS/Common/Login.do)
My environment rcas sit 2.

Finding: still checking

History

#1 Updated by Anonymous about 10 years ago

  • Assignee set to Ong Wei Kuan

#2 Updated by Ong Wei Kuan about 10 years ago

  • Status changed from New - Begin Life Cycle to Finished Development
  • % Done changed from 0 to 100

Issue Description:
The error was thrown when system trying to insert data with duplicate primary key into ADMIN_AUDIT_LOG table.

From the result in excel file, the LOG_ID in ADMIN_AUDIT_LOG is 5987. But the last number in SQ_AUDIT_LOG is 5986. And, in ADMIN_AUDIT_LOG table, LOG_ID is the primary key, where this ID is get from the next number in SQ_AUDIT_LOG. In this case, system will use 5987 as LOG_ID, which 5987 already been used.

This duplicate key issue occurred is because there is possibility data is manually inserted into the database, or the last number in SQ_AUDIT_LOG has been changed.

Solution:
To solve this issue, execute below query to get latest LOG_ID,
"SELECT LOG_ID FROM ADMIN_AUDIT_LOG WHERE ROWNUM = 1 ORDER BY LOG_ID DESC;"

Then, use the latest LOG_ID from above query to minus 5986 and execute below query with the result (eg. latest LOG_ID - 5986 = $number),
"ALTER SEQUENCE SQ_AUDIT_LOG INCREMENT BY $number;
SELECT SQ_AUDIT_LOG.NEXTVAL FROM dual;
ALTER SEQUENCE SQ_AUDIT_LOG INCREMENT BY 1;"

Conclusion:
Issue solved, confirm by customer.

#3 Updated by Ong Wei Kuan about 10 years ago

  • Assignee changed from Ong Wei Kuan to Anonymous
  • % Done changed from 100 to 0

#4 Updated by Tan Lee Yong almost 10 years ago

what is the update on this?

#5 Updated by Anonymous almost 10 years ago

  • Due date set to July 22, 2014
  • Status changed from Finished Development to Work Completed-End life cycle

released to Bank

Also available in: Atom PDF