TIMESTAMP on FGA_AUDIT [message #469177] |
Tue, 03 August 2010 11:34  |
GAN2009
Messages: 25 Registered: January 2009 Location: Phils
|
Junior Member |
|
|
Hi Oracle Experts,
We have the fga enabled in our database & our plan is to transfer the
log data into a local table which I can call FGA_LOCAL_TBL. The process
on transferring the data is via procedure with job for execution schedule.
Problem: Viewing the dba_fga_audit_trail on TIMESTAMP everything seems fine
but once inserted into the local table it change into wrong time.
Please help to figure out the solution.
Select TIMESTAMP, EXTENDED_TIMESTAMP from
dba_fga_audit_trail where username='GAN';
TIMESTAMP EXTENDED_TIMESTAMP
8/3/2010 9:51:55 AM 8/3/2010 9:51:55.054340 AM -06:00
This is how it look like in local table:
FGA_LOCAL_TBL
TIMESTAMP
2010-08-03 03:51:55
This is the select line on the procedure:
SELECT
TO_CHAR(DBA_FGA_AUDIT_TRAIL.TIMESTAMP,'YYYY-MM-DD HH12:MI:SS'),
Thank you,
GAN
|
|
|
|
|
|
|
|
|
|
|
|
Re: TIMESTAMP on FGA_AUDIT [message #469195 is a reply to message #469177] |
Tue, 03 August 2010 14:37  |
GAN2009
Messages: 25 Registered: January 2009 Location: Phils
|
Junior Member |
|
|
I'm getting the right time now by applying below select statement from dba_fga_audit_trail. It's not the best solution but good enough to move forward in our project.
TO_CHAR(TIMESTAMP - INTERVAL '6' HOUR,'YYYY-MM-DD HH24:MI:SS')
Thank you all!
-GAN-
|
|
|