Get the latest date DML for all tables
Hi gurus,Version - ORacle 11i
I need to get a list of the tables that was not 'DML used' for a long time (updates/Inserts / (and selects too if available)). I searched for this in the forum and found 3 methods I used
1 insert/update dtm
----------------------------------
SELECT DISTINCT table_name, T.COLUMN_NAME
FROM all_tab_cols t
WHERE UPPER (T.COLUMN_NAME) LIKE 'UPD%'
OR UPPER (T.COLUMN_NAME) LIKE 'INSERT%'
AND T.OWNER = 'STG'
AND T.DATA_TYPE IN ('TIMESTAMP', 'DATE')
ORDER BY column_name
Issue- Not all the tables have inaert/upd dtm
2 all_tab_modifications-------------------------------------
SELECT table_Name, timestamp
FROM all_tab_modifications t
WHERE T.TABLE_OWNER = 'STG'
ORDER BY timestamp ASC
Issue - Not all tables are monitored
3 ORA_ROWSCN------------------------------------------
select MAX(ORA_ROWSCN), SCN_TO_TIMESTAMP(MAX(ORA_ROWSCN)) from stg.XXXXXX
Issue- This throws error MAX(ORA_ROWSCN) is not a valid input . ie for really old tables this throws error.
How do I get there?Thank you
S
957793 wrote:
Thank you peter.But one thing I noticed, sometimes at the time where I start an analysis table calculates statistics, the table disappears from the all_tab_modifications
Thank you
S
Yes, makes the Act of analyzing a table disappears from the view of xxx_tab_modifications. It is because this view follows changes in the analyzed table have been modified in order to analyze the self employment can tell whether or not it must be analused "today."
Assuming that you use more or less the default policy analysis that Oracle puts in place, it would be a pretty safe assumption that any which table not in xxx_tab_modifications had to be a substantial (as defined by the auto scan parameters) activity dml recently, or in other words did not have an important activity for a long time. You can make a difference based on the last_analyzed_date column in the xxx_tables view.
John
Tags: Database
Similar Questions
-
Get the latest data of Variable shared before disconnecting from the network
Hello.
I use Shared - published network variables for my communication between two PC's. Each LV software will pass the data to another.
Sometimes the wireless connection to become really bad and the network connection stops.
I want to get the latest data. Currently my VI will show the value '0' on the variable shared data once the connection is cut.
I tried using shift, but she registers the same results.
Can someone show me how I can stay past data when the network connection is disconnected.
Thank you very much.
Kind regards
Hello Fan, Ravens
It works! Thank you very much.
Kind regards
-
Hello
I have a simple question... .i do not know why I m brain dead today...
I m trying to get the date limit for the id of each
I was wondering if we have any function in oracle PL/SQL to do this kind of thingswith test_data as( select '001'id, 'xyz'name, '1/1/2009'start_date from dual union all select '001', 'abc', '1/2/2099' from dual union all select '001', 'def', '1/3/2009' from dual union all select '001', 'ghi', '1/4/2009' from dual union all select '001', 'jkl', '1/5/2009' from dual ) The output i m looking for just one record with latest date with result as ( select '001', 'jkl', '1/5/2009' from dual ) i tried this select id,name, greatest(start_date) from test_data group by id,name,start_date It gives me output ...which i m not lookg for with t as ( select '001', 'abc', '1/3/2009' from dual union all select '001', 'ghi', '1/4/2009' from dual union all select '001', 'jkl', '1/5/2009' from dual )select * from t
Any suggestion is greatly appreciated! Thanks much sio!
Published by: user642297 on March 12, 2010 12:21SQL> with test_data as( 2 select '001'id, 'xyz'name, '1/1/2009'start_date from dual union all 3 select '001', 'abc', '1/2/2099' from dual union all 4 select '001', 'def', '1/3/2009' from dual union all 5 select '001', 'ghi', '1/4/2009' from dual union all 6 select '001', 'jkl', '1/5/2009' from dual union all 7 select '002', 'ghi', '1/4/2009' from dual 8 ) 9 select id, max(start_date), max(name) keep (dense_rank first order by start_date desc) 10 from test_data 11 group by id; ID MAX(STAR MAX --- -------- --- 001 1/5/2009 jkl 002 1/4/2009 ghi
Max
http://oracleitalia.WordPress.com -
How to always get the latest data in ADF rowSetIterator
Hello guys
I have a method that I run on pageLoad to check the data in the database. Here I use rowsetiterator. I get the data fine but if I insert a new row and load the page again once, he did not get the newly inserted line and watch the old line set.
I tried to run the query on the iterator, but did not work. This is the Council of Europe that I use. Can you get it someone please let me know if I'm missing something?
DCIteratorBinding MyDCIter is getBindings () .get ("MyView1Iterator") (DCIteratorBinding);.
MyDCIter . executeQuery();
RowSetIterator rsi = MyDCIter . getRowSetIterator().
RSI. Reset();
I guess I found the problem.
He has been to the while loop. When I use while (rsi.hasNext ()) is the first line to jump and iteration of second line.
So I changed to loop, as for (int i = 0; i)
-
How to get the old data 6 months from the current date?
Hi friends,
I have a table which includes historical data, which are having more than 1 years old data. The historical table gets updated once a week. My requirement is that I should get the latest data from the week of each month for 6 months according to the current data. I use oracle 10g.
Can you please someone help in this.
Thanks in advanceSELECT last_day (ADD_MONTHS (TRUNC (SYSDATE, 'mm'),-LEVEL))-7 start_dt.
LAST_DAY (ADD_MONTHS (TRUNC (SYSDATE, 'mm'),-LEVEL)) end_dt
OF THE DOUBLE
CONNECT BY LEVEL<=>=>change as a result, I have provided you the start and end dates for your logic...
-
How to get the button "Search Web" on all spotlight searches?
I have an iPhone running iOS 9.3.2,and 6s and something that I noticed is that I no longer get the "Web search" button for all of my spotlight search. Here are some photos to show you what I mean.
In this first photo, I typed in 'claire underwood house of cards' and should reach the "Web search" button at the bottom so that the query could be entered into Google as any other search. However, I noticed that this button is not pop up for stretched from the search terms such as "claire underwood house of cards" in the way which he used to. I don't know if this is perhaps the result of an update, but I don't see the button more. I could easily just go into Safari and type it in, but it is not as intuitive.
If I type in a shorter like simply "claire underwood' search, as shown in the second picture below, I get a lot of results, as well as the button"Search Web". I used to be able to enter anything on stage and immediately search the Internet which is much faster. No idea how to solve this problem?
Figured it out. For some reason when I got Bing Web enabled in Spotlight search results, it would not view long queries and leave the field blank. It turned off but kept the other apps I like to search and it works perfectly. I didn't care much for Bing, but it should be fixed. Now it makes it easier to just search Google directly from the home screen.
-
Get the DDL for all tables in a schema;
Hello
I tried to get the DDL for all tables under my own diagram "A". Here are the steps I've tried, but in vain I
1. logged in as a user A 2. And the ran query SELECT DBMS_METADATA.get_ddl ('TABLE', 'XYZ') FROM user_tables o/p (HugecloB) {code} Any idea how i can get the DDL for all the tables under my own schema ? Thank you so much! Edited by: user642297 on Feb 4, 2011 12:05 PM Edited by: user642297 on Feb 4, 2011 12:05 PM Edited by: user642297 on Feb 4, 2011 12:05 PM Edited by: user642297 on Feb 4, 2011 12:07 PM
Your idea is good, you missed only to use the correct table name:
SELECT DBMS_METADATA.get_ddl ('TABLE', table_name) FROM user_tables;
Concerning
-
Single request for the display of all, but the values of 1 column for all tables
Hello
All tables have the column SYS_CREATION_DATE.
But I don't want to not display the value of this column
Can anyone suggest a way in which I could achieve this?
Oracle version: 11 GR 1 material
OS: SunOS
See you soon,.
Malika
Published by: user9131570 on July 6, 2010 19:57user9131570 wrote:
@TubbyI * table-wise display the values of all but 1 columns (SYS_CREATION_DATE) in my database.*
I need it to compare to another data base for all these values.
I would like to make a wild guess at what you are getting.
In view of these two tables
create table emp (empid number, empname varchar2(15), empaddr varchar2(15), sys_creation_date date); -- create table dept (deptid number, deptmgr varchar2(10), sys_creation_date date);
you want to combine somehow
select empid, empname, empaddr from emp;
with
select deptid, deptmgr from dept;
in a single sql statement?
-
I bought an upgrade from lightroom 5 to 6 (not cc) and when I try to update to get the latest patch for my camera (fujifilm t10) I am installer of clouds taken on creative and lightroom 6 cc and inviting me to open. nothing happens when I click the icon. I had already downloaded a demo for creative cloud but decided against the purchase of this
Hi artprints.
You can install the update from Lightroom 6 from this link: keeping up-to-date for Lightroom
-
Download all packages or just the sound with the latest dates?
Hi, maybe it's a stupid question, but when you go to the drivers and it shows are all pilots who are selected to download to your laptop you wanted to install only those with the latest dates or each package that is there?
Hello:
You must install the driver with the most recent date if you are sure this is a driver that you are interested in.
-
What is the command of shortcut for all windows get the information from the computer?
What is the command of shortcut for all windows get the information from the computer?
instead of going to the computer / my computer > properties > discover the pc... basic information or go to the control panel...
just a command for windows xp, vista, 7 for system looking for information....
original title: what is the SHORTCUT COMMAND to get information from the computer system?
Hello BlackSecret,
The keyboard shortcut to get to the top of this information is Windows key + break Attn.
Who does what you ask? -
How to get the last date of 3 days for the current month?
Hello. Guy
How to get the last date of 3 days for the current month?
MY OUTPUT WOULD LOOK LIKE THIS
JANUARY 29, 2016
JANUARY 30, 2016
JANUARY 31, 2016
GUYS HELP ME / / /...
SQL > select last_day (sysdate) - level + 1 double connect by level<= 3="" order="" by="">=>
LAST_DAY)
---------
29 JANUARY 16
30 JANUARY 16
31 JANUARY 16
-
For a designer of shoes, I need more than photoshop and illustrator? is it better to get the full creative cloud for £58 per month? or would I not need all of them? should I get adobe stock as well?
@
Hi Alice,.
It's totally up to you who request CC will you use and therefore, you can customize your plans.
Pricing plans and creative Cloud membership | Adobe Creative Cloud
You can also join Adobe sales for assistance.
Kind regards
Sheena
-
I currently have Lightroom 3. Do I need to download all intermediate versions before you get the latest version?
N ° just install the latest version. It does not rely on previous versions being installed.
-
I havePhotoshop Elements 6.0 for mac. What should I do to get the latest version?
See http://www.adobe.com/products/photoshop-elements/buying-guide.displayTab3.html
Maybe you are looking for
-
Hello I use a module NI9862 with a CRIO9081 to retrieve data CAN from another device. I have properly the power module and configure the software with all drivers. My problem is that when I start the "BUS data viewer" under MAX, there is no data. But
-
How to upload photos from mobile phone on craigslist
* Original title: how taking mobile phone pictures snd put them on craigslist ad? I have pictures on my cell phonr I want to place an ad from craigslist. What are the steps? Thank you!
-
Arial Narrow Bold missing XP 2nd edition Internet Explorer 8
I downloaded the latest Airport Design Editor, claiming Ariel "BOLD" narrow, which is not in XP home edition 2nd. How to please the police if necessary. Robin
-
Why the postmastor keep saying called failed on my email
He repeats to me fitness has failed everytime I try to send an email
-
Photosmart 6520 driver for Mac 10.5
I try to use a Photosmart 6520 new on my iMa running 10.5. Is it possible to do without upgrading? Thank you!