GoldenGate extract on sys.aud$

Hi all

I have a silly question, can I create a snippet to capture transactions from a SYS table?

The plan is to create a snippet on the table of sys.aud$ for easy maintenance of the AUDIT table.

Thank you very much

Best regards

KVM

Thank you Vicky for your time...

Best regards

KVM

Tags: Business Intelligence

Similar Questions

  • Sys.AUD$

    Hi all

    11.2.0.3

    AIX 6.1

    What data dictionary is the best to use to generate audit reports?

    1 Sys.aud$

    2 Dba_audit_trail

    3 Dba_audit_session

    Thank you very much

    zxy

    If it comes to no - EBS database, ignore the first link referenced above and the rest should be applicable.

    Thank you

    Hussein

  • Delete records from sys.aud$ stored procedure

    We have a stored procedure that attempts to move the records from the table of sys.aud$ to a history table (in order to keep sys.aud$ to a more reasonable size, I guess - full disclosure, I have not written this proc). Base flow is:
    Select count (*) in the number of lines of sys.aud$
    If {(rowcount > 1000)
    copy all rows in sys.aud$ in the history table
    remove from sys.aud$
    }

    I says this proc used to work perfectly in a troubled past (I'm new on the client) but now has not worked for a while. When we try to compile the proc, we get the error
    "table or view does not exist", and the line is the "deletion of sys.aud$. The line "select count (*) from sys.aud$ ' seems to cause no problems, but the proc does not compile as is. If I comment out the line "remove from sys.aud$", however, the proc compiles very well.

    Confusingly, if I log in as the same account that owns this proc, I can run both the count (*) select from sys.aud$ AND remove clauses sys.aud$ with no complaint at all (by modifying slightly to work with 1 single record at a time, of course), but I can't seem the same to compile in a stored proc.

    I guess that it is related permissions? Can someone point me to the permissions of the owner needs to be able to remove from sys.aud$ in a stored procedure? Or is there something else that needs to be done here? Pointers much appreciated.

    Thank you.

    956928 wrote:
    We have a stored procedure that attempts to move the records from the table of sys.aud$ to a history table (in order to keep sys.aud$ to a more reasonable size, I guess - full disclosure, I have not written this proc). Base flow is:
    Select count (*) in the number of lines of sys.aud$
    If (rowcount 1000 >) {}
    copy all rows in sys.aud$ in the history table
    remove from sys.aud$
    }

    I says this proc used to work perfectly in a troubled past (I'm new on the client) but now has not worked for a while. When we try to compile the proc, we get the error
    "table or view does not exist", and the line is the "deletion of sys.aud$. The line "select count (*) from sys.aud$ ' seems to cause no problems, but the proc does not compile as is. If I comment out the line "remove from sys.aud$", however, the proc compiles very well.

    Confusingly, if I log in as the same account that owns this proc, I can run both the count (*) select from sys.aud$ AND remove clauses sys.aud$ with no complaint at all (by modifying slightly to work with 1 single record at a time, of course), but I can't seem the same to compile in a stored proc.

    I guess that it is related permissions? Can someone point me to the permissions of the owner needs to be able to remove from sys.aud$ in a stored procedure? Or is there something else that needs to be done here? Pointers much appreciated.

    Thank you.

    acquired through ROLE privileges are NOT applicable within the named PL/SQL procedures.

    GRANT DELETE ON SYS. AUD$ ;

  • No line in sys.aud$

    Salvation Group

    I have a doupt, why no lines are inserted into the table sys.aud$, if the configuration is apparently ok. I am connected with the sys user.

    SQL > SELECT * FROM SYS. AUD$;

    no selected line

    SQL > see the parameter checking

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    audit_file_dest channel? / rdbms/audit
    audit_sys_operations Boolean TRUE
    AUDIT_TRAIL DB string
    transaction_auditing boolean FALSE


    Thank you very much

    Hello

    You may need to activate the option to audit by using the following statement:

    audit {statement_option|privilege_option} [by user] [by
    {session|access}] [ whenever {successful|unsuccessful}]
    

    For example, for the session of the audit:

    audit create session;
    

    After you enable the check option, you can check the setting with the following query:

    select audit_option,success,failure
    from dba_stmt_audit_opts
    union
    select privilege,success,failure
    from dba_priv_audit_opts;
    

    Hope this helps.
    Best regards
    Jean Valentine

  • GoldenGate extract cannot start without errors or warnings

    I'm gg 11 config on my node RAC 3 and extract again the State arrested after using the command START EXTRACT ECHGLOG. Someone please help me understand what happened.

    It showed no errors or warnings, so I don't know why it cannot be started. Thank you very much.

    GGSCI (node3) 15 > news

    Program status group Lag time since Chkpt Chkpt

    MANAGER RUNNING

    EXTRACT DECREE 00:00:00 ECHGLOG 18:53:02

    GGSCI (node3) 16 > discovers params echglog

    EXTRACT echglog

    SETENV (ORACLE_SID = "RAC3")

    SETENV (ORACLE_HOME="/u01/app/oracle/product/11.1.0/db_1')

    SETENV (NLS_LANG = 'AMERICAN_AMERICA. AL32UTF8")

    GG@RAC3 username, password ggat3

    TRANLOGOPTIONS ASMUSER SYS@ASM3, ASMPASSWORD thepassword

    exttrail /u01/app/oracle/product/11.2.0/gg_1/dirdat/eg

    DISCARDFILE u01/app/oracle/product/11.2.0/gg_1/dirrpt/discard_echglog.dsc, SERVING

    DISCARDROLLOVER AT 01:00 ON SUNDAY

    IGNOREDELETES;

    base table. JOURNAL;

    The spectacle of newspapers below:

    2016-01-06 10:59:28 INFO OGG - 00975 Oracle GoldenGate for Oracle, Manager mgr.prm: ECHGLOG EXCERPT from.

    2016-01-06 10:59:28 INFO OGG - 00992 Oracle GoldenGate Capture for Oracle, echglog.prm: ECHGLOG EXCERPT from.

    2016-01-06 10:59:28 INFO OGG - 03035 Oracle GoldenGate Capture for Oracle, echglog.prm: operating system character set identified as UTF - 8. Local: en_US, LC_ALL.:

    2016-01-06 10:59:28 INFO OGG - 01635 Oracle GoldenGate Capture for Oracle, echglog.prm: RECOVERY DEMARCATED: reset to initial or modified checkpoint.

    2016-01-06 10:59:28 INFO OGG - 01815 Oracle GoldenGate Capture for Oracle, echglog.prm: virtual memory facilities for: BR

    Anon alloc: mmap (MAP_ANON) free anon: munmap

    the file alloc: mmap (MAP_SHARED) free file: munmap

    target directories:

    U01/app/Oracle/product/11.2.0/gg_1/BR/ECHGLOG.

    2016-01-06 10:59:28 INFO OGG - 01815 Oracle GoldenGate Capture for Oracle, echglog.prm: virtual memory facilities for: COM

    Anon alloc: mmap (MAP_ANON) free anon: munmap

    the file alloc: mmap (MAP_SHARED) free file: munmap

    target directories:

    U01/app/Oracle/product/11.2.0/gg_1/dirtmp.

    2016-01-06 10:59:30 INFO OGG - 00546 Oracle GoldenGate Capture for Oracle, echglog.prm: default thread stack size: 10485760.

    Thank you for your help.

    Finally, I found the problem.

    It's my fault to set the wires on 1

    It should be 3

    Remove the extract and the new one and it works ok.

  • GoldenGate extract with ASM does not

    Hi experts,

    I have config GoldenGate with ASM and extract process works do not.

    Source:

    GoldenGate version: 12.1.2.1.0

    Oracle version: 11.2.0.4

    I have config ASM is standardalone

    Settings file:

    extract crosshead

    SETENV ("ORACLE_SID = orcl")

    SETENV ("ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1")

    exttrail ./dirdat/aa

    gguser@ORCL username, password gguser

    tranlogoptions asmuser sys@ASM, password ASMPASSWORD

    table testgg.*.

    Report file:

    ***********************************************************************

    * In the course of a run with the following parameters *.

    ***********************************************************************

    2015-04-03 10:43:20 identifies the character set of INFO-OGG-03059 in operating system

    d as US-ASCII.

    2015-04-03 10:43:20 parameter INFO OGG-02695 ANSI SQL syntax is used for pa

    rameter analysis.

    extract crosshead

    SETENV ("ORACLE_SID = orcl")

    2015-04-03 10:43:20 INFO OGG-02095 successfully set environment variable "O".

    RACLE_SID = orcl ".

    SETENV ("ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1")

    2015-04-03 10:43:20 INFO OGG-02095 successfully set environment variable "O".

    RACLE_HOME=/U01/app/Oracle/product/11.2.0/dbhome_1 ".

    exttrail ./dirdat/aa

    gguser@ORCL username, password *.

    Thank you

    T N

    Hello

    In the present can running in the extraction process.

    I reinstall GoldenGate. This success.

    I assumed install file is not complete.

    Thank you

    T N

  • GoldenGate extract added - OGG-01668 - no record extracts.

    All,

    Excerpt from process added with OFF-01668 error.

    / U01/app/ggs/dirdat/db output:

    No record extracts.

    I checked the thread in this forum: extract added because no record extracts - no database activity

    This indicates a metalink for the doc ID: 1374091.1 but it did not solve my problem.

    System details:

    OS: RHEL 5

    DB: Oracle 11g R2 (11.2.0.3)

    GG: Version 11.2.1.0.1 OGGCORE_11.2.1.0.1_PLATFORMS_120423.0230_FBO

    One more thing: before I hit this error, extract processes added with below error:

    2013-07-01 04:24:26 OGG-01028 ERROR object with the number of the object 141055 is compressed. Compression of the table is not supported.

    There was a table that was compressed, so I not compressed using below command:

    ALTER table tab1 nocompress;

    and after that, I got error OGG-01668.

    Any help/suggestions?

    -Onkar

    I solved the problem on my own. Here's what I did:

    I run below command and got the confusing output:

    SELECT stamp, recid, first_time v$ archived_log WHERE sequence # 5409 >;

    RECID STAMP NAME FIRST_TIME

    5343 819262010 6/28 / 2013 04:35

    5344 819265607 6/28 / 2013 04:46:25

    5345 819269066 6/28 / 2013 05:46:36

    5346 819306016 6/28 / 2013 06:44:18

    5347 819321008 6/28 / 2013 17:00:10

    5348 819321306 6/28 / 2013 21:10:05

    5349 819325439 6/28 / 2013 21:15:06

    5350 819338494 6/28 / 2013 22:23:52

    5351 819360028 29/6 / 2013 02:01:21

    5352 819396068 29/6 / 2013 08:00:24

    5353 819411608 29/6 / 2013 18:01

    5354 819421343 /u02/archive_devoltp2/DEVOLTP2_00010001S0000005421_747195880.ARC 29/06/2013 22:20:07

    5355 819442732 /u02/archive_devoltp2/DEVOLTP2_00010001S0000005422_747195880.ARC 2013/06/30 01:01:32

    5356 819479001 /u02/archive_devoltp2/DEVOLTP2_00010001S0000005423_747195880.ARC 2013/06/30 06:58:46

    until RECID 5353, there was no file generated but GG was looking for the same thing. Just because there was no transaction so I assumed that there are no generated file and so I just moved the extract to the place where the file generation started I... e of sequence number 5421 (the first name of file in the above output) and then issues the commands below:

    modify the EXTrep1 clip, etrollover

    modify the clip EXTrep1, tranlog, begin 2013-06-29 22:20:07

    and then just started extracts and he started to work very well.

    -Onkar

  • Record in sys.aud$ can be deleted directly?

    We start with Oracle 11 g of August 2011, I am not aware of the audit trail is turned on by default. I'll try to set up the schedule jobs to purge the audit trail regularly, before that, I will not keep track more than a month ago. Can I just delete the record by timestamp? Is - this ntimestamp #?

    The last_arch_timestamp is used by the procedure, but must be set manually by the ADMINISTRATOR. You may have another procedure set it progressively.

    Hemant K Collette

  • Expdp unable the aud$ table as the user sys

    Hello
    Oracle 11 g 2
    OS: Solaris

    Expdp unable the aud$ table as the user sys

    Audit tables is size: 5 GB to check tablespace

    Error details:

    Current estimation using BLOCKS method...
    Total estimation using BLOCKS method: 0 KB
    ORA-39166: Object SYS. AUD$ has not been found.
    ORA-31655: no data or metadata of objects selected for employment

    Export is suspended for 4 hours and shows 0kb of dumpfile to the os levl.

    kindly, one please help on this issue.

    Thank you
    visu.

    try to export the table SYS. AUD$ using the traditional export...

    $exp system / file yourdmpfile.dmp log = yourlogfile.log = tables = sys.aud$

    Please see below notes for more information.
    DBMS_AUDIT_MGMT to manage and purge Audit information [ID 731908.1]

  • Purge of the SYS. AUD$

    Hello

    According to the literature, we can use the following procedure to purge this table
    http://docs.Oracle.com/CD/E11882_01/AppDev.112/e25788/d_audit_mgmt.htm#ARPLS65423
    DBMS_AUDIT_MGMT.INIT_CLEANUP(
       audit_trail_type          IN PLS_INTEGER,
       default_cleanup_interval  IN PLS_INTEGER);
    However, I can't find any option to back up or store records in a way any before that happens the purge of the table.
    Is it possible to do?

    Edit: Just to add, I understand that by purging you say the DB you no longer need them and want to get rid of them... However I wonder for storing more than the allowed value (999 hours) where my question.

    Thank you
    NACEUR

    Osama mustafa wrote:

    or you can export the SYS. AUD$

    proof of post above is more than ramblings slowed down between your ears.

    oracle@bcm-laptop:~$ expdp / dumpfile=aud1.dmp tables="AUD$" logfile=aud.log
    
    Export: Release 11.2.0.1.0 - Production on Fri Jul 6 09:15:28 2012
    
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    
    UDE-01017: operation generated ORACLE error 1017
    ORA-01017: invalid username/password; logon denied
    
    Username: / as sysdba
    
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Starting "SYS"."SYS_EXPORT_TABLE_01":  /******** AS SYSDBA dumpfile=aud1.dmp tables=AUD$ logfile=aud.log
    Estimate in progress using BLOCKS method...
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 0 KB
    ORA-39166: Object SYS.AUD$ was not found.
    ORA-31655: no data or metadata objects selected for job
    Job "SYS"."SYS_EXPORT_TABLE_01" completed with 2 error(s) at 09:15:59
    
    oracle@bcm-laptop:~$ 
    
  • Unable to connect to the DB as a result of the high SYS. AUD$

    DB version: 11.2.0.2
    Platform: Solaris 10

    One of the SYS of the DB. Table AUD$ is spent 4.5 million records and then when you try to connect to outside of the host server, you will have
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01653: unable to extend table SYS.AUD$ by 128 in tablespace SYSTEM
    But you can connect with local authentication
    sqlplus / as sysdba
    We took an export of this table and truncated the table. This fixed the problem.

    But questions remain.

    The disk group where the SYSTEM tablespace is stored had 14 GB of free space. So, why I was getting this error?

    ExpansiveMind wrote:
    ...
    But questions remain.

    The disk group where the SYSTEM tablespace is stored had 14 GB of free space. So, why I was getting this error?

    Is - this tablespace SYSTEM configured mode autoextend? Probably not.

    Nicolas.

  • New parameter to SOCKSPROXY function of GoldenGate 12 c

    Hi all!

    Someone is trying to use the new SOCKSPROXY parameter in the GoldenGate extract?

    I got the following error when I use:

    2015-04-14 12:40:37 OGG - 00382 Oracle GoldenGate Capture for Oracle ERROR, ext2.prm: is not a valid option for RMTHOST.

    2015-04-14 12:40:37 OGG - 01668 Oracle GoldenGate Capture for Oracle ERROR, ext2.prm: PROCESS ABENDING.

    Parameters:

    RMTHOST dc0a5db00.ps, 7809 MGRPORT, SOCKSPROXY 10.70.133.10:17809

    or

    Add SNIPPET test1 desc 'extract from test' RMTHOST dc0a5db00.ps MGRPORT 7809 RMTNAME test1 SOCKSPROXY 10.70.133.10:17809

    Could you please help me in it?

    Thank you in advance,

    Sergey Kushnarev.

    Hello

    What version of OGG you run with? I think 12.1.2.1.0 from that this setting is supported.

    I use the setting as follows.

    RMTHOST 109.150.140.013, MGRPORT 9000, SOCKSPROXY 127.0.0.1:1080

    Haddi

  • Is there a way took care in the reorg table sys.job$ (and its indexes)?  (Oracle 9)

    I have an old database that has a table of great sys.job$ and the large index on it. (indices are just standard installed indexes nothing we did)    However the table has very little data in it now, only 22 rows.   Yet between the table and index is > 1 GB in size.

    The enforcement team asked me to reorg or shrink the table sys.job$ and explained its large size is probably due to the fact that they believe some process went wrong turned for years resulting in job creation, but his long since been cleaned.

    What motivates is to save space in the SYSTEM tablespace and possibly help some query performance.

    I know that in general its forbidden to directly manipulate the sys objects (such as truncation, insert, etc. with the exception of sys.aud$).

    Y at - it a taken way supported to reduce the size of this table.  Any document referencing.

    Yes, there is a way taken in charge.

    It's called "Recreate the database"

    -------------

    Sybrand Bakker

    Senior Oracle DBA

  • Curriculum vitae of GoldenGate question

    We use the classic configuration for Goldengate. Companies want to make a mass migration to our database of Siebel using Siebel EIM Chargers, but they want to disable Archivelog to make loading faster.

    1.), they want to know if we can stop Goldengate extract, put the DB in noarchivelog mode, load data for a few hours, the archivelog mode, start the extract. GoldenGate will be able to extract the correct data?

    Integrated method of Goldengate makes 2) has also need in Archivelog mode as a sine qua non?

    3.) relating to the reliability of Goldengate extract - if extracted abends & gets restarted a few days later, but the Archivelogs are already removed from the system. GoldenGate will be able to extract the necessary changes?

    Thanks cordially

    Thinus

    Hello

    Below you will find the answers

    Q1. N ° if you disable the log archiving, data will be crush redo log itself, there will be data loss.

    Q2. Yes, its necessary to avoid data loss, its useful for long running transaction and obtain the data from the location of archive.

    Q3. After a few days, if you restart the extract, it will look the last reading SNA, if its not available in the log again, the process will be added

    Hope this will help.

    Annamalai

  • Number of AUD$ and dba_audit_trail of lines is different after the removal of a few rows of aud$ table

    Hello

    We have a database of GR 11, 2.

    I manually deleted a few lines of sys.aud$.

    remove the sys.aud$ where trunc(ntimestamp#) < 16 August 13 ';

    commit;

    But I have still a few lines in dba_audit_trail.

    SQL > SELECT COUNT (*) FROM DBA_AUDIT_TRAIL WHERE TRUNC (timestamp)

    SQL > = 15 August 13 ';

    COUNT (*)

    ----------

    26110

    SQL > SELECT COUNT (*) FROM SYS. AUD$ WHERE TRUNC(NTIMESTAMP#)

    SQL > = 15 August 13 ';

    COUNT (*)

    ----------

    0

    Please let me know after you remove manually, it is something else I need to do.

    Try this one:

    SELECT COUNT (*)

    OF SYS. AUD$

    WHERE TRUNC (((FROM_TZ (ntimestamp #, ' 00:00 ') in the LOCAL CAST) AS DATE)) = 15 August 13 ';

Maybe you are looking for