Question

Asked on 2003-12-17 at 05:36:47ID: 25457266

TRUNCATING AUD$

by: Zopilote380

Rating7.4Very Good

Dear all,

I am creating a PS/SQL package to truncate SYS.AUD$ after backing up the data

1) insert into mybackupAUD as select * from SYS.AUD$
2) TRUNCATE TABLE SYS.AUD$

My question is the following:

How do I avoid any new records in my SYS.AUD$ between steps 1 and 2.

Example:
-Insert as select Done at 14:32:00
-User XX login at 14:32:01
-Truncate at 14:32:02

I lost login audit of User X.  

I am posting this question with 125 points, but I am ready to give all my available points (380) if I get an answer that works!

Many thanks in advance.

Z;D

  1. Select existing string if exists from on etable and i…
    We have a lookup table that has a list of facilities with a unique ID assigned. When a user creates a record, the facility name is inserted into a lookup table and assigned a unique ID. If the user types a name that is already in existance, then the code should pull the existing name from the lookup table and insert into the record table; otherwise, disregard the insert …
  2. insert with select statement
    Hi, I have a table structure (study, keyword_list, keyword) that is performing poorly when querying so I want to remove the keyword list table which joins keyword and study and instead add a foreign key column (study_id) to the keyword table. I have added the study_id column to the keyword table. I now need to insert the appropriate val…
  3. PL/SQL insert question
    Trying to write a PL/SQL query that will insert records into a table. I think I must use a cursor but I am not sure. I am not sure my insert statement is correct. CREATE OR REPLACE PROCEDURE load_books_1 IS v_szrbtrm_book_id NUMBER; v_szrbtrn_term_code VARCHAR(2); v_rowid ROWID; CURSOR c_select_book…
  4. A select grouping question
    In Table A I've 5 fields Country ID, Order Date, OrderWeekEndingDate, Delivered Date and DeliverWeekEndingDate. In Table B I've WeekNum and WeekEndingDate (day ends on a Friday) for all the weeks over a 5 year period. I need to list the number of orders and deliver dates for each country for each week that we had an order, deliver…
  5. Oracle Insert/Update question for stored proc
    Hello all, I need to create two Insert or Update procs that each will do similar to what I know in SQL Server "If exists" then update else Insert to the table. I also need to make sure I have the Commit and Rollback properly. So I am looking for a good example of how to do this and make sure I have all the rollback stuff needed etc. The two table…

Solution

Sign up now to view this solution! It's quick, easy, and secure to subscribe. We will return you to this solution, unlocked, when you’re done.

About this Solution
View This Solution - Start Your 30 Day Free Trial
Zone
General
Tags
truncate
Participating Experts
2
Solution Grade
A

Replies

 by:

Posted on 2003-12-17 at 06:19:47ID: 28224911

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: Zopilote

Posted on 2003-12-17 at 06:24:30ID: 28224912

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: seazodiac

Posted on 2003-12-17 at 06:24:43ID: 28224913

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: seazodiac

Posted on 2003-12-17 at 06:26:04ID: 28224914

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: Zopilote

Posted on 2003-12-17 at 06:34:08ID: 28224915

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: seazodiac

Posted on 2003-12-17 at 06:43:47ID: 28224916

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: vc01778

Posted on 2003-12-17 at 06:46:06ID: 28224917

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: vc01778

Posted on 2003-12-17 at 06:47:16ID: 28224918

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: Zopilote

Posted on 2003-12-17 at 06:49:56ID: 28224919

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: seazodiac

Posted on 2003-12-17 at 06:51:33ID: 28224920

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: Zopilote

Posted on 2003-12-17 at 06:54:44ID: 28224921

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: seazodiac

Posted on 2003-12-17 at 06:55:38ID: 28224922

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: seazodiac

Posted on 2003-12-17 at 06:58:04ID: 28224923

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: Zopilote

Posted on 2003-12-17 at 07:15:45ID: 28224924

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

Stay Connected

Oracle Around the Web

The latest Oracle news, tips, and tricks

Oracle Unveils Netra SPARC T3 Servers

New Carrier-Grade Blade and Rackmount Servers Deliver Better Performance, Density and Power Efficiency for the Communications Industry ...

read more

Oracle fixes 21 flaws in Java SE, Java for Business

Oracle is fixing 21 flaws in its Java SE and Java for Business products in its February critical patch update issued this week ...

read more

Obama’s Silicon Valley “Tech Supper”

Why was he there? Who wasn’t invited and why? What did they talk about? Why was he really there? These are the questions being debated ...

read more

Featured Oracle Experts

slightwv

slightwv has answered more than 2,000 Oracle questions and oversees database management within the U.S. Government. Slightwv

sdstuber

A regular presenter at the Collaborate conference, Oracle developer sdstuber is a top expert in PL/SQL and Oracle 9, 10 and 11. sdstuber

Testimonials

What users are saying about our experts

"The Oracle gurus provide answers, solutions and valuable workarounds"

User: schwertner

"Wow! Excellent, valuable explanation. Hats off to you"

User: aseshu70

"Solution worked fantastic and performs excellent! Thanks heaps"

User: klausbrandlhuber

Top Experts

  1. slightwv

    2,000

    0 points yesterday

    Profile

BrowseBecome an Expert