who shut the DB down? - Page 2
DBAsupport.com Forums - Powered by vBulletin
Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: who shut the DB down?

  1. #11
    Join Date
    Jan 2001
    Posts
    157
    Hi Sam and the rest ,
    I think with sam's method, I'm on the right way to capture the culprit.

    One last question.
    When I went through the ORACLE_HOME, I found out that, the
    default audit trail were a lot(i mean a lot) so I could not really narrow down the time stamp. Do you know of any easier way to narrow the time stamp?

    This is what I did:
    cd $ORACLE_HOME/rdbms/audit
    ls

    ora_29944.aud ora_43866.aud ora_56872.aud ora_9304562.aud
    ora_29946.aud ora_43922.aud ora_56882.aud ora_9305594.aud
    ora_30202.aud ora_43934.aud ora_56890.aud ora_9308434.aud
    ora_30442.aud ora_44150.aud ora_56898.aud ora_9312820.aud
    ora_30466.aud ora_44368.aud ora_56914.aud ora_9316174.aud
    ora_30482.aud ora_44896.aud ora_56922.aud ora_9319786.aud
    ora_30978.aud ora_44902.aud ora_56928.aud ora_93226.aud
    ora_30982.aud ora_45158.aud ora_57046.aud ora_9323398.aud
    ora_31068.aud ora_45354.aud ora_57050.aud ora_9327010.aud
    ora_31074.aud ora_45428.aud ora_57056.aud ora_94744.aud
    ora_31224.aud ora_45476.aud ora_57134.aud ora_94750.aud
    ora_31276.aud ora_45684.aud ora_57280.aud ora_94958.aud
    ora_31744.aud ora_45728.aud ora_57282.aud ora_95916.aud
    ora_31994.aud ora_45730.aud ora_57288.aud ora_96880.aud
    ora_32082.aud ora_45860.aud ora_57290.aud ora_97762.aud
    ora_32090.aud ora_45924.aud ora_57292.aud ora_97944.aud
    ora_32098.aud ora_45930.aud ora_57296.aud ora_9796.aud
    ora_32106.aud ora_45932.aud ora_57314.aud ora_98046.aud
    ora_32114.aud ora_45938.aud ora_57344.aud ora_98424.aud
    ora_32134.aud ora_46088.aud ora_57350.aud ora_98430.aud
    ora_32196.aud ora_46094.aud ora_57356.aud ora_99546.aud



    NOTE: THIS IS JUST AN EDITED VERSION.
    IS THERE AN EASIER WAY TO FIND THE TIME STAMP? OR I HAVE TO GO THROUGH EACH OF THEM INDIVIDUALLY?




    thanks,
    Clinton



  2. #12
    Join Date
    Oct 2000
    Location
    Saskatoon, SK, Canada
    Posts
    3,925
    One way to do this is write a shell script that would list the directory and awk the files between certain time frame and then you could reduce the files that you need to search. Other way would be to write a script that would open all the files and search for the "SHUTDOWN" word and then list only those files that has this. One other eaier way is to use the "find " command and search the directory for shutdown and then start analysing only those files.

    Hope this would help you.
    Sam
    Thanx
    Sam



    Life is a journey, not a destination!


  3. #13
    Join Date
    Feb 2001
    Posts
    123
    Searching the files for the word 'SHUTDOWN' can be done with a single command:

    grep -i shutdown ora*.aud

    (-i means ignore case)

    or, just to get the filenames

    grep -l -i shutdown ora*.aud

    Also, the ls -l command will give the list of files, including the modification date, if you pipe the output of the ls to the grep command (look at the format of the date returned), you can quickly get a list of files for a certain date.

    e.g.

    ls -l ora*.aud | grep "Mar 08"

    to list all files for the specified date.

    HTH

    David.

    [Edited by Dave_A on 03-08-2001 at 08:25 AM]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width