Problem:
You are getting ORA-00600: internal error code, arguments: [qkaffsindex5] in Oracle 12.1.0.1 or higher.
This seems like a bug in 12c and it happens because your query is using a function based index and DESC.
$ srvctl add service -d BKISDB -s HR -r BKISDB1,BKISDB2 -P BASIC -e SELECT
|
$ srvctl start service -d BKISDB -s HR
|
HR =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = scan)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = HR)
)
)
|
$ sqlplus system/password@HR
|
SELECT TO_CHAR(current_timestamp AT TIME ZONE 'GMT', 'YYYY-MM-DD HH24:MI:SS TZD') AS curr_timestamp, COUNT(username) AS failed_count
FROM sys.dba_audit_session
WHERE returncode != 0 AND TO_CHAR(timestamp, 'YYYY-MM-DD HH24:MI:SS') >=
TO_CHAR(current_timestamp - TO_DSINTERVAL('0 0:30:00'), 'YYYY-MM-DD HH24:MI:SS')
|