If this is your first visit, be sure to check out the FAQ by clicking the link above. You may 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.

 
Go Back  dBforums > Database Server Software > Oracle > How on earth is this table getting it's data!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-24-10, 05:45
shajju shajju is offline
Registered User
 
Join Date: Aug 2008
Posts: 332
How on earth is this table getting it's data!

Hi guys

I have an oracle 9i table which was getting data once everyday till July 12. But since July 12 no data has been inserted into the table. The irony is I don't know how this table is/was getting it's data. I have tried the following queries but to no avail:

Code:
select *
from dba_dependencies 
where referenced_name like '%TAB1%';

select *
from user_dependencies 
where referenced_name like '%TAB1%';

SELECT * FROM USER_SOURCE WHERE TEXT LIKE '%TAB1%';

select * from v$sql where SQL_TEXT like '%TAB1%'
I have an inclin towards a procedure doing the job but cannot see any such procedure inserting data into TAB1 or scheduled in the crontab.

Could someone kindly advise on any more methods to find out how TAB1 is/was getting poplulated with data?

Many Thanks
Shajju
Reply With Quote
  #2 (permalink)  
Old 08-24-10, 05:52
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,407
Quote:
Originally Posted by shajju View Post
Could someone kindly advise on any more methods to find out how TAB1 is/was getting poplulated with data?
A shell script using SQL*Loader?
Reply With Quote
  #3 (permalink)  
Old 08-24-10, 07:20
shajju shajju is offline
Registered User
 
Join Date: Aug 2008
Posts: 332
Thanks for the suggestion however, I can't see any such script in the crontab. See, the front-end isn't giving any clue as to how data was being inserted/loaded into TAB1. I was hoping there was some backend way?
Reply With Quote
  #4 (permalink)  
Old 08-24-10, 07:45
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,407
Did you check dbms_scheduler?
Reply With Quote
  #5 (permalink)  
Old 08-24-10, 07:54
shajju shajju is offline
Registered User
 
Join Date: Aug 2008
Posts: 332
Thanks but I'm using Oracle 9i. Can't see any jobs set up to insert data into TAB1 either.
Reply With Quote
  #6 (permalink)  
Old 08-24-10, 08:25
magicwand magicwand is offline
Registered User
 
Join Date: Mar 2010
Location: Vienna, Austria
Posts: 128
This is not necessarily from a cron job on the database server. Can you rule out inserts and/or data loads from another machine ?

Check your "listener.log" file for candidates
__________________
If A is a success in life, then A = x + y + z.
Work is x; y is play; and z is keeping your mouth shut. After all the years, I'm still working on the correct value for z.
(Albert Einstein)
Reply With Quote
  #7 (permalink)  
Old 08-24-10, 09:20
n_i n_i is online now
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,448
Quote:
Originally Posted by shajju View Post
any more methods to find out how TAB1 is/was getting poplulated with data?
I'd suggest a "wall plug test". Rename the table and see who comes to you complaining about a failing job.
Reply With Quote
  #8 (permalink)  
Old 08-24-10, 09:52
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 6,407
You could write a trigger that fires when DML occurs against this table.
It could produce a simple audit record to provide clues regarding the culprit
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Reply With Quote
  #9 (permalink)  
Old 08-25-10, 01:42
shajju shajju is offline
Registered User
 
Join Date: Aug 2008
Posts: 332
Many thanks for your replies.
As I said no data has been inserted into the table since July 12 so would a trigger still work?
Where is the listener.log located on a HPUX Itanium machine?
Reply With Quote
  #10 (permalink)  
Old 08-25-10, 01:54
shajju shajju is offline
Registered User
 
Join Date: Aug 2008
Posts: 332
Not sure if this will help but the table in question has daily partitions with a week's worth of partitions created in advance so after the 12th, no partitions have been created and I can see the last partition created is for the 19th of July. So no partitions are getting created either. Partitions should continue to be created regardless of data being inserted into the table, right?
Reply With Quote
  #11 (permalink)  
Old 08-25-10, 09:26
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 6,407
>Partitions should continue to be created regardless of data being inserted into the table, right?
Only if job to add partitions actually run & run without error.
Partition creation task could be 100% independent of data INSERT job
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Reply With Quote
  #12 (permalink)  
Old 08-28-10, 01:21
shajju shajju is offline
Registered User
 
Join Date: Aug 2008
Posts: 332
Many Thanks.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On