how to fetch last access TIMESTAMP of a table in oracle? - oracle

How to fetch the last access date for a table in oracle using the query from Oracle DB?
I am using select TIMESTAMP from dba_tab_modifications query it's giving me last updates in table
but I need last execution of select query statement on a particular table
Thanks in Advance
Sai Kumar

Oracle does not keep this information by default. You need to enable the appropriate AUDIT rules. But I'd question what problem you think this will solve. Auditing every access to a table will be a lot of audit records.

Related

last_ddl_time in dba_objects table Oracle

what does column "last_ddl_time" in table "dba_objects" really mean? what causes the change of the date in this column?
We are testing this as part of change management in Oracle and im not sure what this column really represents.
Thank you in advance!
regards
According to the docs:
Timestamp for the last modification of the object resulting from a DDL
statement (including grants and revokes)
So creating a table, altering a table, rebuilding an index, granting access and so on and so forth, depending on the object type.
Did you have a more specific question, or was that it?

Does oracle store transaction date of data?

Im currently using oracle 11g. I had extracted data from the schema once at a specific date to do some cleansing process. Suppose that now i would want to extract again but only with new/updated data from the last date i extracted, is there anyway i could get it? unfortunately these data does not have any column that store last edited date.
i was wondering if Oracle would automatically store that type of info that i could check? perhaps any transaction log?
Thanks,
A Physal
One way would be to enable flashback and then you can do:
SELECT * FROM table1
MINUS
SELECT * FROM table1 AS OF TIMESTAMP TIMESTAMP '2018-01-01 00:00:00.000';
To get all the rows changed since 2018-01-01.

What will be the query in oracle?

How to write this sql query into Oracle.
ALTER TABLE student MODIFY 'student_balance' DOUBLE(20,5)
As i am new in oracle so can anybody suggest some good sites to learn oracle queries again
Use number instead of double
Alter table student MODIFY student_balance number(20,5)
For more refer here .

SQL Server - Date of newly inserted column in a table

As part of my project, new columns are introduced in many tables. I wanted to find out the date in which this columns are introduced. Is there a way I can query the date of insertion of all the columns in a specific table in Oracle SQL Developer 3.0.04.
You can try to use the last_ddl_time object from the dba_objects table.

Recording sql statements performing on a table in Oracle

Is there a way to record sql statements performing on table in Oracle? I need to record those queries for a table in production and hopefully rerun them in my test to make sure I don't mess up table modification.
Thanks,
Sean
Oracle Database Replay is exactly the feature you are looking for: http://www.oracle.com/technetwork/articles/sql/11g-replay-099279.html
Oracle automatically records any SQL executed against the instance in a table called v$sqlarea

Resources