Anyone know how to find out when a table was TRUNCATEd in Oracle? (Apart from asking the usual suspects).
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Oracle TRUNCATE
Collapse
X
-
-
I guess not....Originally posted by expatAnyone know how to find out when a table was TRUNCATEd in Oracle? (Apart from asking the usual suspects).
Logically speaking, one answer is: TRUNCATE it. Look at your watch. -
Not so you'd notice...Originally posted by expatAnyone know how to find out when a table was TRUNCATEd in Oracle? (Apart from asking the usual suspects).
However, if your database is running in Archivelog mode, dust off log miner and see at what what you can find - that'll give you a reasonable indication of time, depending on log switch frequency.
Alternatively, write the letters A-Z and the numbers 0-9, in a circle, on a piece of paper; I'll find a shot glass, or a bottle top, or something.
HTHThe squint, the cocked eye and clenched first are the cornerstones of all Merseyside communication from birth to graveComment
-
Might be worth having a look in the V$SQL table within the schema the truncated table lives. Try the following, there is last load and first load date fields in that table as well.
SELECT * FROM V$SQL where SQL_TEXT like ('Truncate%')Last edited by Ivor1; 5 April 2006, 13:43.Comment
-
Thanks. Got nothing (when I put a % at the beginning too, the statement showed itself so for an instant I thought....)Originally posted by Ivor1Might be worth having a look in the V$SQL table within the schema the truncated table lives. Try the following, there is last load and first load date fields in that table as well.
SELECT * FROM V$SQL where SQL_TEXT like ('Truncate%')
Since what I really wanted was not the time so much as the culprit, I employed soft means to find out. Not involving death or major organ failure, so quite in order as an information-gathering exercise.Comment
-
Truncate might have been all upper case I think so may be thats why you didnt find anything.Originally posted by expatThanks. Got nothing (when I put a % at the beginning too, the statement showed itself so for an instant I thought....)
Since what I really wanted was not the time so much as the culprit, I employed soft means to find out. Not involving death or major organ failure, so quite in order as an information-gathering exercise.
SELECT * from V$SQL is always good to see what people are running, or are upto.Comment
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- HMRC loan charge settlement offer: 3 things to check before you sign Today 07:41
- HMRC standstill agreements extended to 72 months: why the term's doubled, and what to check before signing Jul 31 05:53
- Who owns the loans? Inside the mystery of the loan charge recall scandal Jul 30 06:20
- Umbrella company winding-up petitions in 2026: the practical guide for contractors Jul 29 05:29
- Payments on Account deadline: what contractors must do before July 31st — maybe for the final few times Jul 28 08:01
- Andy Burnham's first 100 days: five things contractors need from the new PM Jul 27 00:53
- Starmer vs Burnham on housing: What their rival plans mean for your contractor mortgage Jul 22 00:59
- Burnham's housing vision vs. Starmer's home-buying reforms: what it means for your contractor mortgage Jul 22 00:59
- In Khalil v Innovate Transport, a limited company contractor wasn’t a worker and was on £2.30 — not £230 Jul 21 07:58
- Andy Burnham is PM: 5 new IT policies set to shape UK tech and its contractors Jul 20 06:29

Comment