How to track the changes on the table, not not using triggers

Hello
I would like to track DML changes on the tables. As I have several tables, it is not effective to write triggers.

Is there any installation that I can do at the database level.

I use 11g R2.


Thank you
thanks fran,

I am a developer DBA with no access to db as sysdba.

how can I access au$ table

SQL> show parameter audit_trail

NAME TYPE VALUE
-----------
audit_trail string DB
SQL> audit select,insert on ctrl_batch;

Audit succeeded.

SQL> select sqltext from aud$ where sqltext is not null;
select sqltext from aud$ where sqltext is not null
*
ERROR at line 1:
ORA-00942: table or view does not exist

Hmm... a contradiction in terms...

(1) audit trail must be in "DB, EXTENDED" see sqltext in the table sys.aud$.

(2) If you have not logged: $sqlplus / as sysdba, if logged in SQL > conn / as sysdba (and of course sqlplus sys / conn sys as sysdba / as sysdba).

(3) in your example, you are using views of dictironary of data that require dba (such as system or sys) privileges, but the owner of aud$ is sys. So, probably you use user system, right? Try to connect as sys as I told you in step 2 and try again.

Tags: Database

Similar Questions

  • How to find the tables that are used in a procedure

    Hello
    I need to write a SQL to find (user_source) procedures or triggers (from user_triggers), whose code contains the registerd tables in a table X.
    In other words, I have a table X with files having a column containing tables. I want to write a SQL to obtain these (proc, package and triggers) container objects or use the tables inside
    Can you help me?
    Thank you!

    Mark1970 wrote:
    Hello
    I need to write a SQL to find (user_source) procedures or triggers (from user_triggers), whose code contains the registerd tables in a table X.
    In other words, I have a table X with files having a column containing tables. I want to write a SQL to obtain these (proc, package and triggers) container objects or use the tables inside
    Can you help me?
    Thank you!

    I don't know if I understand your problem, but have you had a glance at the data dictionary views USER_DEPENDENCIES or ALL_DEPENDENCIES?

    It has classified hard dependencies of objects.
    If a table is used directly (not in dynamic SQL code in a string) in an object PL/SQL, the dependency is available in the stated points of view.

  • How to remove the message "not using current Version" boring?

    For months, my Firefox home page included a note that I do not have the latest version and provides a link to update. When I use the link I said "Congratulations, you are using the latest version." Adding insult to injury, there are not 20 minutes, I downloaded 27, and the message is still there. Almost the end of the world, but at this point, it is very annoying. How to remove the message?

    The old page of Google-Firefox has not changed since Firefox 4 is released, please disregard the information updated on this page.

  • How to clear the table dhcp clients

    Does anyone know how to clear the Table of Clients DHCP?

    I have a WRV54G.

    Concerning

    I understand this is a very old post, but since I found it when I was looking for the same answer in 2009, I thought go ahead and give my $.02 worth.

    I have a different router, so it may not be present in your.

    I use a version of the firmware WRT54GLwith 4.30.7 and finally found on the status under "Local network" page a link to the DHCP table. You can click on that and delete existing IP addresses.

  • How to know the tables used in packages of a schema.

    How to know the tables used in packages of a pattern that I have connected.

    SELECT DISTINCT referenced_owner, referenced_name

    Of all_dependencies

    Owner WHERE = "MY_USER_NAME".

    AND type ('PACKAGE', 'BODY of PACKAGE')

    AND referenced_type = 'TABLE '.

  • How to purge the table ECX_OUTQUEUE of the ECX_OUTBOUND AGENT

    How to purge the table ECX_OUTQUEUE of the ECX_OUTBOUND AGENT

    904632 wrote:

    How to purge the table ECX_OUTQUEUE of the ECX_OUTBOUND AGENT

    Please see (how to recreate the ECX Related queues? (Doc ID 1354312.1)).

    Thank you

    Hussein

  • How to design the table from the answer to the question table.

    Hi all

    I am creating an application for student review online.

    There are two types of questions, the only choice of response and multi choice answers.

    My question is less than
    create table question_master
    (
    exam_id number references exam_master(exam_id),
    marks_of_each_question number,
    type_of_question char(1),-- single choice answer/multiple choices answer
    q1 varchar2(2000),
    q2 varchar2(2000),
    q3 varchar2(2000),
    q4 varchar2(2000))
    my table to answer (I'm not satisfied with who is below
    create table answers_of_questions
    (
    answer_id number primary key,
    question_ID number referenes question_master(question_id),
    answer varchar2(4000) not null,
    is_answer_correct char(1),--y/n,
    student_selection char(1),--y/n   student select it or not
    ....
    ...
    now, I'm perfectly how to create the RESPONSE table to contain the answers.
    the only choice is good, but several checkboxes choices, what to do?
    How to design the table from the answer?

    do I have to create 2 tables to contain the answers?
    Note: the QUESTIONS and ANSWERS, all will be entered by the teacher. students will make a choice and I will store this choice in another table
    may be called STUDENT_SELECTED_ANSWERS or something like that.
    If anyone has some reference to the script retail scheme review online, kindly share with me.

    Kind regards.

    Kind regards.

    If you need to have answers in another table:

    Student (student_id, name, etc...)
    Review (exam_id, exam_name, etc...)
    Question (question_id, exam_id, question_text)

    Response (question_id, a_text, b_text, c_text, d_text, a, b, c, d).<-- one-to-one="" with="" question="" table,="" a-d="" flags="" used="" to="" indicate="">
    OR
    Response (question_id, answer_id, answer_text, OK)<-- many-to-one="" with="" question="" table,="" correct="" flag="" used="" to="" indicate="" correctness="" for="" this="" single="">

    Student_Answer (student_id, question_id, a, b, c and d)
    OR
    Student_Answer (question_id, student_id, answer_id)<-- creation="" of="" a="" question_id+answer_id="" in="" this="" table="" implies="" the="" student="" checked/selected="" it="" as="" an="">

    To what extent you want to standardize, it is up to you.

  • How to manage the photos Lightroom when using 2 computers, keeping any changes made on one or the other?

    Based on http://forums.Adobe.com/thread/1308132?TSTART=0 I decided to add each question separately:

    Hello, I am very interested in buying Lightroom 5.2. I tried the RC that was missing today. Yet, I have several questions that I can't find really good conclusive answers, I'd like to get an answer before buying LR. Please do not write maybe like this or that (assumptions), because I don't want to start my entire workflow and then realize that I have to change all around, please reply, if you know for sure that something works and you are, preferably, using this method too.

    Is the big question, where I want to especially a conclusive answer:  How to manage the photos Lightroom when using 2 computers, keeping all the changes made on one of them, using the same photos for editing. I'm not going to use DNG. Details: I mainly use my old MacBook Pro, but I wish I could use my PC as it is much better (card: i5 2500K, 16 GB of RAM, SSD, USB3, nVidia GTX 560 TI etc.). I have 2 external HD that I could use, one for backup and one for the actual Photos/changes. I you will probably need to use as my internal HDs are fairly complete and I cannot be the kind of things simply delete or move to one (developer, without loss of music, programs etc.).

    On this basis, how do I save all such Photos folder (pictures and retouching and preferably presets too)?

    According to me, that it should be possible to work cross-platform without having to create a link to the files each time, or without having to keep export/import of the catalog, keeping the single catalog and the picture library on an external drive that is then switched between systems as needed.

    Obvious first requirement is an external drive that is formatted in a way (for example, FAT32) that it can be used on both platforms in read/write mode. Given that, if the catalogue AND folder parent si le catalogue ET le dossier parent images are both set to the same level in a global parent folder, then it should be possible to take advatage of ability of Lightroom to use relative paths instead of absolute paths to detect the images, no matter if the player is named (Mac) or lettering (PC). This is how "export as catalog of ' works, that is, it creates a 'package', alias a parent folder, containing the catalog and a replica of the folder hierarchy to exported along with the catalog images. Take this 'package' to another system (same OS or not) and "it works" even if the drive letter is different or the operating system is different... because the relative path of the image catalogue is always the same.

    I have not tested this cross-platform (if I have between various PC systems with letters of different readers) so for me it's still just a theory, but there may be others who have done this successfully.

  • How to add the table radio button.

    Hello

    I want to update the record if I want that an option of button raduio shaped tabular .There is no option for tabular.
    How to add the table radio button.


    Thank you

    Published by: 805629 on February 3, 2011 04:56

    Use APEX_ITEM. BOX API in the definition of SQL query for the form of tables

  • How to check the table have are all views in oracle

    Hello
    How to check the table have are all views in oracle
    SELECT * FROM user_dependencies
    WHERE type='VIEW'
    AND referenced_type='TABLE'
    AND referenced_name ='Your_Table_Name' 
    

    You can use dba_dependencies to find views in the different schema.

  • How to save the table column and row headings

    I have a table where I activated the column and row headings.  Once the table is loaded with data, I would like to save the contents of the table, including the column and row headings in a text file.  The crux of "value" property returns only the content of the table, not the row and column headers.  I could use "header line chains []" and '[] column header chains' property nodes as well, but I'm in the island there is an easier way.  Looks like adding the headers of lines would be difficult.  Any ideas?

    Thanks in advance.

    Here is a way. The construction with the empty constant is to provide to the left corner of the table where there is no data.

  • How to track data changes in a LMD scheme

    How to track data changes in a LMD scheme

    My version of the database is 11.2.0

    I want to know how many records inserted,.

    the number of deleted records

    the number of updated records to date on which object?

    example... See table below

    update date object_name insertion deletion

    02-06-14  A                    2             0          1

    02-06-14  B                    0            1          1

    ----

    Thank you

    Gopal

    «The DML surveillance function keeps track of all activity DML (INSERT, UPDATE, DELETE) on a table * given that the statistics were collected last *, Oracle 10 g change the method in which Oracle monitors the tables of DML changes.» Rather than use the clause [No.] FOLLOW-UP in CREATE TABLE or ALTER TABLE statements, STATISTICS_LEVEL initialization parameter now acts as a global switch to control the monitoring for all objects. It is more necessary to toggle DML followed at the level of the object. »

    Monitoring of the Table DML changes

  • How dynamically update the role of oracle using the trigger

    How dynamically update the role of oracle using the trigger:

    I have svmanger owner of schema in the database. There are five tables belonged to svmanager.

    Table A, B, C, D, E.

    I have a role that is played only to these tables under the scheme: SVMANAGER_READ_ONLY

    now, if I create a new table F under svmanager. the role that svmanager_read_only does not work is updated, so the user had assigned role cannot access table F.

    is there a way to create the trigger for this role dynamically update any when a table is created or deleted?

    Thank you.

    I really really really don't suggest to do this - it's a bad habit. If possible I'd just adding the grant as part of the steps to the role on the new creation of the table.
    But for fun here's how you can accomplish this:

    create or replace procedure execute_grant(v_ddl in varchar2)
    is
    begin
       execute immediate v_ddl;
    end;
    /
    
    create or replace trigger catch_create_table_trg after create on schema
    DECLARE
    
    ddl_job number;
    ddl_str varchar2(50);
    begin
       IF ora_dict_obj_type = 'TABLE' THEN
    
           ddl_str := 'GRANT SELECT ON '||ora_dict_obj_owner||'.'||ora_dict_obj_name||' TO SVMANAGER_READ_ONLY';
    
           dbms_job.submit(job => ddl_job,
           what => 'execute_grant(''' || ddl_str || ''');',
           next_date => sysdate+(5/24/60/60));
    
       END IF;
    end;
    /
    

    Test it

    create table F (id number(1));
    

    Validate

    select * from ROLE_TAB_PRIVS where ROLE = 'SVMANAGER_READ_ONLY';
    
  • What are the parameters? How are Variables differenet? Why we can not use variables to pass data to one sequnece to another? What is the advantage to use parameters instead of Variables?

    Hi all

    I am new to TestStand. Still in the learning process.

    What are the parameters? How are Variables differenet? Why we can not use variables to pass data to one sequnece to another? What is the advantage to use parameters instead of Variables?

    Thanks in advance,

    LaVIEWan

    I'm sorry... I discovered that... its not at all possible to pass data to another sequence using variables... it must be through settings... once again I apologize for the display of such a stupid question

  • Each time I click on a folder, search companion will appear. I am interested in DISABLING research or travel companion down on the pop-up menu, or at least, put it further down in the context menu. How can I do this? My computer not used to do this.

    Each time I click on a folder, search companion will appear. I am interested in DISABLING research or travel companion down on the pop-up menu, or at least, put it further down in the context menu. How can I do this? My computer not used to do this.

    Doug Knox fix - http://www.dougknox.com/xp/scripts_desc/xp_folder_open.htm
    Search Companion starts if you double-click a folder or computer drive - http://windowsxp.mvps.org/searchwindow.htm MS - MVP - Elephant Boy - Don ' t Panic!

  • Windows 8, 32-bit: how to cancel the file history and use the USB for the sole purpose Ready Boost

    By mistake, I clicked file history on. The USB key used for ready boost is selected and that the disk is write protected. Windows 8, 32-bit: how to cancel the file history and use the USB for the sole purpose Ready Boost. I don't have an another USB suitable for ready boost.

    Hello

    You should be able to disable the history of files by using the local Group Policy Editor.  Consult this publication of the article.  Use the #2 option.

Maybe you are looking for

  • Reset my password

    You can help me to reset my bios password model #: HP mini110 - 1115-CA CNU9463JC9 Thank you..

  • Convert software SRW2048 SG300

    In my view, the SRW series is the same as basic material the SG300 series. Is there a way to update the firmware on the series SRW using firmware SG300? The SG300 firmware is much more usable. Also I'd rather have consistency we have the old SRW2024/

  • Cannot remove adware win32/opencandy

    I am trying to remove adware win32/opencandy with the basics of microsoft securityAfter I removed and restarted the computer he reinstals himself a minute later

  • Can we have Windows 7 and 8.1 in a portable unique?

    Original title: os I bought a laptop with windows os 8.1. and I want to also windows 7 on my laptop is possible. the two bones can work at the same time

  • create sp for County

    HelloI have 20 tables in the schema and wanted to consider using the stored procedureHow to create a MS for taking into account several tables Thanks in advance