How to track changes in the value of column level in oracle using procedures

I would need to write the following code using oracle stored procedures and packages.
S/n hate triggers, so I can't apply the same code.
Table of audit would be emp_audit.
Please guide me to write a generic procedure to handle verification, what ever insert/update / delete.
Please do the needful. Thanks in advance.
I created under the trigger but oracle DBA won't use triggers. Please guide me.

Main table: emp
===================
columns:
=======
emp_id
salary
created_ts,
created_user,
modified_ts,
modified_user,

Verification Panel: emp_audit
=======================

columns:
=======
emp_id,
salary,
created_ts,
created_user,
modified_ts,
modified_user,
archived_ts,
event_cd

trigger: need in the form of stored procedures.
========

create or replace TRIGGER test
AFTER INSERT or UPDATE or DELETE ON emp
FOR EACH LINE
BEGIN
IF THE INSERTION
INSERT INTO emp_audit
(emp_id, salary, created_ts, CREATED_user, MODIFIED_TS, MODIFIED_usER, archived_ts, event_cd)
VALUES)
: NEW.emp_id,.
: NEW.salary,.
: NEW. CREATED_TS,
: NEW. CREATED_user,
: NEW. MODIFIED_TS,
: NEW. MODIFIED_usER,
SYSTIMESTAMP, 'C'); -INSERTION
ELSIF UPDATE THEN
INSERT INTO emp_audit
(emp_id, salary, created_ts, CREATED_user, MODIFIED_TS, MODIFIED_usER, archived_ts, event_cd)
VALUES)
: OLD.emp_id,.
: OLD.salary,.
: OLD. CREATED_TS,
: OLD. CREATED_user,
: OLD. MODIFIED_TS,
: OLD. MODIFIED_usER,
SYSTIMESTAMP, 'U'); -UPDATED
ELSIF DELETION THEN
INSERT INTO emp_audit
(emp_id, salary, created_ts, CREATED_user, MODIFIED_TS, MODIFIED_usER, archived_ts, event_cd)
VALUES)
: OLD.emp_id,.
: OLD.salary,.
: OLD. CREATED_TS,
: OLD. CREATED_user,
: OLD. MODIFIED_TS,
: OLD. MODIFIED_usER,
SYSTIMESTAMP, 'd'); -REMOVE
END IF;

END;

Thank you

Bala

If you think the answer to the question, would you mind marking "answered"? It helps the people who respond and those who search the Forum.

Tags: Database

Similar Questions

  • How know (track) is where the methods in a bean of session used by?

    Hi, experts
    In jdev 11.1.2.3,.

    There are many methods in a session bean (java files), some were obtained by jdev, some have been added by the programmer.
    But how do know (trace) where in a pod of seeion methods are used by?

    Thank you.

    Hello

    You can select the project Menu--> search--> search in the files or Ctrl + Shift + F
    Name of text search method

    Or

    You can check in the Page/task source stream and find by name of the method.

    Thank you
    JIT

  • Change "Verified the value" of a messageCheckBox

    Hi all

    How can I change "Verified the value" of a messageCheckBox?
    -----
    Used OAMessageCheckBoxBean = (OAMessageCheckBoxBean) webBean.findChildRecursive ("ItemReturned");

    If (poItemId == 'Y') {}
    Value of verified value Y
    } else {}
    the verified value W
    }
    -----

    I tried the choiceR.setValue("W") and the choiceR.setDefaultValue ("W"), but they are not to set the checked value property I believe.

    Nadir,

    Just the true or false value based on what your value of checkbox will be checked and unchecked and will return the value you defined in your property window.

    If you want to change your valuable W with another value, then you can try to use
    setTrueValueObject (NewValue) method on the instance of OAMessageCheckBoxBean.

    Kind regards
    Swati

  • How the change in the value of the slider once out of the mouse in response

    Hi all

    When I used the slide bar to control my device, I answer the value change of slide bar and set the new value on my device. But it will generate the answer constantly when I use the mouse to drag the pointer, which is not my. I just need answer only after the mouse exit. How can I implement this feature?

    Hope your suggestion, thanks a lot.

    Use 2 separate controls instead of the digital screen on the slider.

    For a mouse event on the cursor, update the value of the digital control and do whatever it is you need to do.

    For a change in the value of the digital control, update the value of the slider and do whatever it is that you need to do.

  • change the color of line based on the value of column 5 Apex in the classic report

    Version of the apex 5.0.0.00.31

    Standard universal theme

    Page theme default template

    Classic report

    Foldable report template

    Hello

    I know this question has been asked several times here, but I'm working on 5 Apex and need to know the correct way to do it in this version.

    I need to change the color of the text of the entire line (no background color) based on the value in one of the columns of the classic report. I have just two conditions, if the value of column = Yes, color should be red, otherwise it must be green.

    I am new to jscript and css, so appreciate if someone can tell me the solution with steps.

    I have already checked this link that changes the value of the column, need to do something similar to the whole line.

    https://tylermuth.WordPress.com/2007/12/01/conditional-column-formatting-in-apex/

    Hi coolmaddy007-Oracle,.

    Here's an example set up on the apex.oracle.com according to the specifications you gave: https://apex.oracle.com/pls/apex/f?p=35467:1

    Version of the apex 5.0.0.00.31

    Standard universal theme

    Page theme default template

    Classic report

    Foldable report template

    Here is how it is done:

    Create a dynamic action with the following specifications:

    Name: Give the appropriate name

    Event: After refresh

    Selection type: region

    Region: select your region classic report

    Condition: No strings attached

    Action: Run the JavaScript Code

    Fire on loading the Page: Yes

    Code:

    $('td[headers="JOB"]').each(function() {
      if ( $(this).text() === 'MANAGER' ) {
        $(this).closest('tr').find('td').css({"color":"red"});
      }
      if ( $(this).text() === 'SALESMAN' ) {
        $(this).closest('tr').find('td').css({"color":"green"});
      }
      if ( $(this).text() === 'CLERK' ) {
        $(this).closest('tr').find('td').css({"color":"blue"});
      }
    });
    

    NOTE: Download the selector appropriate for your knowledge $('td[headers="JOB"]') case using firebug/browser development tools.

    Items concerned: leave blank.

    PS: Changed the example to change the color of text instead of the background color.

    I hope this helps!

    Kind regards

    Kiran

  • How can I change/remove the adminRoles in my workflow

    Hello
    How can I change/remove the adminRoles for some users in my Windows Firewall? I think my code bellow is correct, but adminRoles do not change after that that it is executed. I am able to assign the first customer with this code, but not change/remove adminRoles next. Is necessary a specific view?
    <Activity id='2' name='action'>
            <Action id='0' application='com.waveset.session.WorkflowServices'>
              <Argument name='op' value='checkoutView'/>
              <Argument name='type' value='User'/>
              <Argument name='id' value='user123'/>
              <Argument name='subject' value='Configurator'/>
              <Argument name='authorized' value='true'/>
              <Return from='view' to='user'/>
            </Action>
            <Action id='1'>
              <expression>
                <block>
                  <set name='user.waveset.adminRoles'>
                    <list>
                      <s>IT</s>
                    </list>
                  </set>             
                </block>
              </expression>
            </Action>
            <Action id='2' name='checkin User' application='com.waveset.session.WorkflowServices'>
              <Argument name='op' value='checkinView'/>
              <Argument name='view' value='$(user)'/>
              <Argument name='subject' value='Configurator'/>
              <Argument name='authorized' value='true'/>
            </Action>
            <Transition to='end'/>
            <WorkflowEditor x='256' y='256'/>
          </Activity>
    Thanks for help


    Petr

    Hi Peter,

    Set rather * use .accounts [Lighthouse] .adminRoles *.

  • How can I change/edit the ' available in the ' number on my apple phone id account information?

    How can I change/edit the ' available in the ' number on my apple phone id account information?

    Hello

    Go down from page apple ID itunes homepage

    Click on which go to your account to make changes.

    See you soon

    Brian

  • Structure of the event run only on first change of the value

    Hi all

    I would like to a structure of the event to run only on the first change of value. I currently put to run on the change in the value of a Boolean value. I'm only interested in what happens the first time that the Boolean value changes; However, he changes several times during a single run of my vi. Is it possible to limit the structure of the event so that it runs only on the first change of value? I have attached the relevant part of my VI. Thank you in advance for any help, you will be able to provide.

    Thank you

    yp21


  • Change the value (current line) of multicolumn listbox using the mouse

    Salvation is a way to change the value (current line) of multicolumn listbox using the mouse?

    Here's a way to do it.

  • the hard drive of my computer is purchased full.i a drive.how external hard change outside the primary disk so I can download music easily?

    the hard drive of my computer is purchased full.i a drive.how external hard change outside the primary disk so I can download music easily.right now my external backup just my computer that isn't doing me good

    original title: external hard drives

    You don't want to change your external drive to your main drive.

    You can move your music files on the external drive - or you can move other data on the disk to make room for your music on the internal drive.

    What applications do you use to play music?

    As described in the first link below, you can move your full "My Documents" folder on the external drive.  Alternatively, you can simply move your music files.  If such an arrangement would give you a satisfactory performance, however, depends on how your external drive is connected (for example, USB 1.1, USB 2.0, USB 3.0, eSATA, Firewire, network) and other hardware features of your computer.

    Not all of the following conditions will be applied to you, but some of the tips can be useful.

    There are a number of things you can do to- temporarily - free up disk space.  The only real solution, however, is to get a bigger internal hard drive.   You can move the data to your external drive, but if it's the data that you use frequently, slower access times may annoy you.  Therefore, I do not recommend that you move your My Documents folder in its entirety on the external drive, but you can certainly do this by following the related instructions.

    • You can run Disk Cleanup (start > run > cleanmgr > OK)
    • You can reduce the size allocated for the restoration of the system to about 1 GB (right click on desktop > properties > system restore > settings)
    • You can disable hibernation (if you don't use it) (right click on an empty spot on the desktop > properties > screen saver > power > Hibernate)
    • You can disable the indexing of the drive, which will also speed up your computer a bit (http://lifehacker.com/031440/turn-off-indexing-and-speed-up-windows-xp)
    • You can reduce the size of your Internet browser cache (depending on the browser that you use)
    • You can remove most of the $NTUninstallKBxxxxxx files $ following the directions here: http://windowsxp.mvps.org/Hotfix_backup.htm (read the warnings in the gray box first)
    • See also:

    " How to recover disk space on Windows Server 2008 and Windows XP computers? ."

    " Forty ways to free disk space ."

    But none of these answers you will earn really large amounts of space for very long.  The term solution time is a bigger hard drive.

    In the meantime, download and run JDiskReport, that will show you graphically what files take up more space and seem to so indicate what files you must move it to your external drive.  If you want to move an application, you will need to uninstall and then reinstall it specifying your external drive as the installation location.  You can not simply move the files.

  • How can I retrieve all the values in a single query in the oracle XML

    Hi all

    I have xml format below, how do I retrieve all the values in a single query.

    < files >

    < job > MANAGER < / job >

    < details >

    < ename > JONES < / ename >

    < sal > 2975 < / sal >

    < ename > BLAKE < / ename >

    < sal > 2850 < / sal >

    < ename > CLARK < / ename >

    < sal > 2450 < / sal >

    < / details >

    < / documents >

    Thank you

    I prefer desgin a little more sophisticated xml and wrap the details in a separate label.

    Then you could something like that

    1 with testdata until)
    2. Select xmltype)
    3'
    4 MANAGER
    5


    6
    7 JONES
    8 2975
    9

    10
    11 BLAKE
    12 2850
    13

    14
    15 CLARK
    16 2450
    17

    18

    19
    20 ') in the form x
    21 double
    22)
    23 select
    24 j.job
    25, d.ename
    26, d.sal
    27 of testdata
    28 join
    29 xmltable ("Scriptures" in passing testdata.x)
    30 columns
    31 job varchar2 (30) path "job."
    32, details xmltype path «details»
    (33) j
    34 (1 = 1)
    left outer join 35
    36 xmltable (' details/emp' in passing j.details)
    37 columns
    path of varchar2 (30) 38 'ename' ename
    39, path of varchar2 (30) sal "sal".
    (40) d
    41 * (1 = 1)
    >/

    JOB                            ENAME                          SAL
    ------------------------------ ------------------------------ ----------
    JONES MANAGER 2975
    BLAKE MANAGER 2850
    MANAGER CLARK 2450

  • How to track changes, accept tracked changes

    How to track changes, accept tracked changes

    Hi DCDCDC1999Party,

    What type of document you work? If you are referring to a PDF file, Acrobat doesn't have a "track changes" you'd expect to see in a word processor such as Word application. Please, see track changes and edit in Acrobat XI markup for more information.

    If ' I misunderstood your request, please let me know.

    Best,
    Sara

  • How to group and summarize the values with a vertical drop of 100?

    Dear gurus
    How to group and summarize the values with a vertical drop of 100 as the data indicated below:

    Cas_Cod_ Cas_Amt_ Description
    300 1000A
    301 200 B
    302 350 C
    400 500 A
    401 100 B
    402 25

    Now the data should be grouped like this
    A (300,400) = 1500
    (301,401) B = 300
    C (302,402) = 375

    Make sure that I don't have a column as description in my table to group data on description, its here just to give u an example.

    Hello

    using mod for hundreds:

    with x as
    (
      select 300 code, 1000 amt, 'A' descr from dual union all
      select 301 code, 200 amt, 'B' descr from dual union all
      select 302 code, 350 amt, 'C' descr from dual union all
      select 400 code, 500 amt, 'A' descr from dual union all
      select 401 code, 100 amt, 'B' descr from dual union all
      select 402 code, 25 amt, 'C' descr from dual
      )
       select mod(code,100) code, sum (amt)
        from x
       group by mod(code,100);
    

    Using the mod you get the rest of a division, so mod (300,100) = 0, mod (301,100) = 1, etc.

    Herald tiomela
    http://htendam.WordPress.com

  • I want to change all the adobe cloud programming language (I now use Korean but I want to change all the English program) is my computer OS

    I want to change all the adobe cloud programming language (I now use Korean but I want to change all the English program) is my computer OS

    Hi Parky22317382,

    Please follow the steps mentioned here https://helpx.adobe.com/creative-cloud/help/change-install-language.html

    Let us know if it works!

  • Request to remove row where the value of column contains alphabets

    Hello

    Could someone please help me to get this application working.

    Request to remove row where the value of column contains alphabets.

    DELETE FROM BIN_ITEM WHERE order_nmb LIKE '% [A - Z] % ' | LIKE '% [a - z] %'

    Thank you and best regards,

    Madam.

    SELECT order_nmb FROM BIN_ITEM WHERE regexp_count(order_nmb,'[0-9]') = 0

    ----

    Ramin Hashimzade

Maybe you are looking for

  • How to access messages remotely or via web?

    How can I access e-mail remotely or via web.  All I know is that you can't do through iCloud.  (With the help of Macbook 10.11).  Thank you.

  • With the help of VISA with Windows 7 64-bit resource control

    Hello. My company has recently upgraded our laptops, and I now work on Windows 7 64 bit rather than Windows XP 32 - bit.  I reinstalled a bunch of basic LabVIEW 2009, hoping that the 64-bit Windows 7 operating system would be able to handle 32-bit La

  • Cannot open my computer vista laptop-run. EXE files any help in getting my laptop to run?

    I have problems running. EXE files. I have an error message that appears sometimes only tell that he couldn't find the right files. But most of the time, he appears with select it if you want to search the Internet for help or choose which program yo

  • Cannot load the image

    Hi, I tried to put an image in an imageview, but got this error. The interesting thing is that there are Images that I previously added to the project. They work fine, the problem is with new images. helpRootImage->setImage("asset:///images/help/conn

  • Cannot discover 8500 scanner after the thin printer install functions

    After installing my a909g 8500 on my pc via ethernet in the network, the printer is detected and works fine but the scanner is not. The device is connected to the network that the two cables and wirles as it was the only way to get the printer to be