update of the input xml without using the table

Hello

I am new to oracle xml I entered below.this came from front end.

< employees >

< employee >

< > 7369 empno < / empno >

< ename > SMITH < / ename >

< deptno > 20 < / deptno >

< sal > 1000 < / sal >

< job > CLERK < / job >

< / employee >

< employee >

< > 7499 empno < / empno >

< ename > ALLEN < / ename >

< deptno > 30 < / deptno >

< sal > 1000 < / sal >

< job > SELLER < / job >

< / employee >

< employee >

< > 7521 empno < / empno >

< ename > WARD < / ename >

< deptno > 30 < / deptno >

< sal > 1000 < / sal >

< job > SELLER < / job >

< / employee >

< employee >

< > 7566 empno < / empno >

< ename > JONES < / ename >

< deptno > 20 < / deptno >

< sal > 1000 < / sal >

< job > MANAGER < / job >

< / employee >

< employee >

< > 7654 empno < / empno >

< ename > MARTIN < / ename >

< deptno > 30 < / deptno >

< sal > 1000 < / sal >

< job > SELLER < / job >

< / employee >

< employee >

< > 7698 empno < / empno >

< ename > BLAKE < / ename >

< deptno > 30 < / deptno >

< sal > 1000 < / sal >

< job > MANAGER < / job >

< / employee >

< employee >

< > 7782 empno < / empno >

< ename > CLARK < / ename >

< deptno > 10 < / deptno >

< sal > 1000 < / sal >

< job > MANAGER < / job >

< / employee >

< employee >

< > 7788 empno < / empno >

< ename > SCOTT < / ename >

< deptno > 20 < / deptno >

< sal > 1000 < / sal >

< job > ANALYST < / job >

< / employee >

< employee >

< > 7839 empno < / empno >

< ename > KING < / ename >

< deptno > 10 < / deptno >

< sal > 1000 < / sal >

< job > PRESIDENT < / job >

< / employee >

< employee >

< > 7844 empno < / empno >

< ename > TURNER < / ename >

< deptno > 30 < / deptno >

< sal > 1000 < / sal >

< job > SELLER < / job >

< / employee >

< employee >

< > 7876 empno < / empno >

< ename > ADAMS < / ename >

< deptno > 20 < / deptno >

< sal > 1000 < / sal >

< job > CLERK < / job >

< / employee >

< employee >

< > 7900 empno < / empno >

< ename > JAMES < / ename >

< deptno > 30 < / deptno >

< sal > 1000 < / sal >

< job > CLERK < / job >

< / employee >

< employee >

< > 7902 empno < / empno >

< ename > FORD < / ename >

< deptno > 20 < / deptno >

< sal > 1000 < / sal >

< job > ANALYST < / job >

< / employee >

< employee >

< > 7934 empno < / empno >

< ename > MILLER < / ename >

< deptno > 10 < / deptno >

< sal > 1000 < / sal >

< job > CLERK < / job >

< / employee >

< / employees >

In I want to update only the sal smith to 999. is it possible in sql and plsql.

Note:-l' entry above is from front end only no table.

Please help in this.

Thank you

SQL > DECLARE

2

3 xmldoc xmltype: = xmltype)

4'

5

6 7369

7 SMITH

8        20

9 1000

10 REGISTRAR

11

12

13 7499

14 ALLEN

15        30

16 1000

17 SELLER

18

19 ');

20

BEGIN 21

22

23 select xmlquery)

24 ' copy $d: =.

25 edit)

26 replace the value of the node $d/employees/employee [empno = $empno] / sal

27 with $new_sal

28              )

29 return $from

30 passage xmldoc

31, 7369 as 'empno '.

32, 999 as 'new_sal '.

33 contents of return

34           )

35 in xmldoc

36 double;

37

38 dbms_output.put_line(xmldoc.extract('/').getclobval);

39

END 40;

41.

7369

SMITH

20

999

CLERK

7499

ALLEN

30

1000

SELLER

PL/SQL procedure successfully completed

Tags: Database

Similar Questions

  • PPR for the updating of the table after a click in a butto in Jdeveloper 10.1.3 - thanks

    Hi people,

    I looked through many messages about refreshing the page, but still did not solve my problem. Please help me. It's quite URGENT.

    I have a table with a command button. After you click the data insertion is engaged and the table is supposed to be updated to reflect the changes.

    Now I use PPR as my solution: the button is the initiator and the table is the target. I put the button property: part delivery = true and its id as a partial release of the table value

    What I missed, please?

    Note: reloading of the entire page is not a solution for me. (The table is incorporated within a region of showOneTab and there are other tables in different tabs)

    Thanks in advance!

    Assuming that nothing wrong with the JavaScript syntax, the explanation might be: If you ActionListener Installer (data transaction method) and javaScript on a button-click the button, the button click javaScript will not be executed. (???)

    This is not the case. In my application, the two actions of script and java onclick button are executed. Javascript onclick fires first, then the action of the button. It should be the same for actionlistener as well.

    Regarding the updating of the table after a click of a button inside the table, you can do this by forcing the partial relaxation of the table of a bean to support using addPartialTarget.

    On the actionListener to the button call the below the backup method of bean.

    Here is the code example:

        public void btnSample_actionListener(ActionEvent actionEvent) {
           // First execute the method on the button
           BindingContainer bindings = getBindings();
            OperationBinding operationBinding = bindings.getOperationBinding("buttonMethod");
            Object result = operationBinding.execute();
    
            //Refresh the iterator of table and partial trigger the table
            OperationBinding operationBindingTab =
                bindings.getOperationBinding("RefreshTable");
            Object resultTab = operationBindingTab.execute();
            AdfFacesContext.getCurrentInstance().addPartialTarget(myTable);
    

    RefreshTable is an action that runs the Execute method on the table iterator.

    Thank you
    Mitesh.

  • Update on the table by extracting the data from the table even under certain conditions

    Hi Experts,

    I have the table EMP which currently has 6 entries.

    EMP_SYS BATCH_NO JOIN_DATE LOGIN_ID STATUS FLAG

    1 FEBRUARY 10 PROD 84 Y IND123 ABC

    DEV 1-23 APRIL 98 Y IND123 ABC

    2 12 APRIL PROD 98 Y IND123 ABC

    2 2 APRIL DEV 98 Y IND123 ABC

    3 13 APRIL PROD 98 Y IND123 ABC

    3 3 APRIL DEV 98 Y IND123 ABC

    CONDITION: I need to take lines which has the minimum BATCH_NO for each of the EMP_SYS

    for example,.

    1 FEBRUARY 10 PROD 84 Y IND123 ABC

    DEV 1-23 APRIL 98 Y IND123 ABC

    For the above two lines, I need to update the status of DEF. How to select this criterion and update in the same query?

    Currently, I used the query to select the minimum BATCH_NO for each of the EMP_SYS below.

    SELECT EMP_SYS, BATCH_NO, JOIN_DATE, FLAG, LOGIN_ID, STATUS

    Of

    (

    EMP_SYS, BATCH_NO, JOIN_DATE, FLAG, LOGIN_ID, STATUS, SELECT ROW_NUMBER)

    COURSE NR (PARTITION BY ORDER OF EMP_SYS OF EMP_SYS)

    FROM EMP

    WHEN STATUS = 'ABC' AND FLAG = "Y".

    )

    WHERE

    NR = 1;

    If I try to use the update on the above query statement... It updates every 6 rows instead of 2 rows.

    Please suggest me a way to update only the two lines that has the minimum BATCH_NO for each of the EMP_SYS.

    But is possible to write the query without using the Group of?

    Update e EMP

    set STATUS = "DEF".

    where BATCH_NO = (select min (BATCH_NO) from EMP I where STATUS = 'ABC' AND FLAG = 'Y' and i.emp_sys = e.emp_sys)

  • Update custom fields in VC without using Get - VM

    Greetings-

    I am trying to determine a way to update a custom field in Virtual Center via powershell without using Get - VM.  I am able to extract custom using Get-View fields

    $VMView = Get-View -ViewType virtualmachine -filter @{"Name" = $input_machinename}

    return $VMview.customvalue [7] .value

    However, all of the examples I found related to the update/filling of custom fields requires the use of Get - VM.  While that's great and all, but everyone knows at this stage that Get - VM is something you want to avoid problems with speed

    http://communities.VMware.com/thread/206909;JSESSIONID=C3AC43115524E4F5F8608530367321B3?TSTART=0

    http://communities.VMware.com/message/1122166#1122166

    It is an example of the code snippet that I fight with in an attempt to update a custom field.

    #This is the line which takes about 2 minutes

    $VMName = Get-VM | {$_.name - eq "adv0010vpvc01"}

    $VMView = $VMName | Get-View

    $VMName.CustomFields.values [3] # prints the name of custom field

    $VMName.CustomFields.keys [3] # print the value of custom field

    $VMView.setCustomValue($VMName.CustomFields.keys[3],"10/10/2000") #Updates custom the field with the value "10/10/2000.

    Thank you very much

    The final alternative is to use the SDK method to set a custom field.

    Can you try this and see if it is faster?

    $input_machinename = 
    $CustomVarName = 
    $CustomVarValue = 
    
    $vm = Get-View -ViewType virtualmachine -Filter @{"Name"=$input_machinename}
    $vm.setCustomValue($CustomVarName, $CustomVarValue)
    
  • [ADF, JDev12.1.3] af:table - how to select by program level 1 (on the updating of the table)?

    Hallo,

    I have an af:table that displays the result of a custom search form.

    I need to update the properties of some of the buttons every time that a row in the table is selected.

    I would like to handle this in a SelectionListener I associated with the table.

    public void myTableSelectionListener(SelectionEvent selectionEvent) {
      ELUtils.invokeEL("#{bindings.SearchEmployee1.collectionModel.makeCurrent}",
                       new Class[] { SelectionEvent.class },
                       new Object[] { selectionEvent });
      Row selectedRow = (Row) ELUtils.evaluateEL("#{bindings.SearchEmployees1Iterator.currentRow}");
      System.out.println(selectedRow.getAttribute("Name") + " - " + selectedRow.getAttribute("Surname"));
    }
    
    

    I noticed the System.out.println prints the values of the selected line only when the user clicks on a line while that no value does print when the grid is recharged after clicking the search button.

    To resolve this problem, I guess I need to select by program level 1 in the table whenever the grid is charged, but I have not found a working method to do this.

    You kindly explain how to select by program level 1 of an af:table?

    Thank you

    Federico

    Hi Federico
    only for research you can handle this in your action of the search button (because your selection listener code works for another action), after research get the current row of your table (it would be the first rows) and run your code

    If you are using af:query, then override default query listener to run custom code

    See -Ashish Awasthi (Jdev/ADF) Blog: the substitution of the listener default query, validation in the field of af: query-Oracle ADF

    Thank you

  • Build/update dynamically the table 3D

    Hi all

    I'm having a problem with the dynamic generation of a 3D of the following set of data table:

    x: {1,2,3,4,5}

    y: {1,2,3,4,5}

    Z_1: {1,2,3,4,5}

    Z_2: {1,2,3,4,5}

    Z_3: {1,2,3,4,5}

    Z_4: {1,2,3,4,5}

    Z_5: {1,2,3,4,5}

    where there is (5) Z amplitudes associated with each measurement location.  What I am able to statically (from the above values x and y tables 1 d and 2D table Z) is to create a 3D Board made up of x and is indexed intensity to the graphic format of the 2D tables.  Each page of the table corresponds to each of the 5 Z amplitudes measured at each location.  In the attached VI, the Array Build function works perfectly for the static case where the entire data is available.  I followed the example of a another discussion forum will be subject to the provisions of nest two loops construction 2D array in the inner loop and incrementing the pages on the outer loop. The static situation is resolved.

    However, my goal is to graphically present data he is taken, point by point, to the user.  The other attached VI simulates this scenario, incrementation of x and y positions based on the measure button.  Z matrix indicator shows that the 2D Array (each individual page) is in the proper format.  The construction of the 3D picture is dynamically where I'm having problems.  I tried to build table and replace a subset of table, but none of these functions to produce the desired result.

    In the case of building table, 3D table is correctly based on the first measure: for x = y = 1, 2D array page0 is set Z_1 in position (1,1), page1 has the Z_2 value in the position (1,1), page2 Z_3, etc..  However, on the second measure, as expected, the berries are concatenated page5 have Z_1 values in the (1,1) and (2,2) positions.  This result is properly formatted, however, should the counted array 3D page is limited to 5 (page0, 1, 2, 3, 4).  So ideally, page5 should in this case replace page0.  So build array results in the correct format but concatenation is not desirable.

    The subset of spare board was made with the index of the page (outside of the loop) number to specify the subset of the 3D Board needs to be replaced.  The result was an empty 3D array.

    Thank you any help to solve this problem.

    kmsk wrote:

    Any suggestions on how to handle filling out table 3D of unknown size?

    If the size of the final table has a reasonable upper limit, you can initialize an array of slightly oversized, then keep using the subset of the table replace. It will be much faster and more effective memory than gradually more and more large networks.

    When the purchase is made, you can cut to the final size.

    Aircraft add to a table 3D using 'insert into array' or 'Build array' (favorite?), cause memory frequent shifts and might slow down your code by orders of magnitude in casing of excessive fragmentation of memory.

  • Updating of the table after insert shows empty cells

    Hello experts,

    I'm trying to insert some custom values of certain fields in a table displayed on my page. The table comes a VO based entity with a sequence number and a few constraints.

    The sequence numbers batteries managed automatically by the database.

    The entry fields are related to a bean managed to get the value with 'GetValue' and then I create a string for the entry. The string then gets cut in the VO as some attributes with the following SQL calculation example:

    REGEXP_SUBSTR (attribut3, "[^,] +' 1, 5")

    But it is on the ViewObject/database layer.

    After I call the method of the VO Impl to create the new line like this:

    Managed bean:

    OperationBinding operationBinding = bindings.getOperationBinding ("addRow");

    operationBinding.getParamsMap () .put ("Value1", someInt);

    operationBinding.getParamsMap () .put ("Value2", someIntToo);

    operationBinding.getParamsMap () .put ("Value3", someString);

    operationBinding.execute ();


    Impl VO:


    ' public void addRow (integer value1, value2 Integer, String value3) {}


    ViewObject vo = this;

    NewRow row = vo.createRow ();


    newRow.setAttribute ("attribut1", value1);

    newRow.setAttribute ("attribut2", value2);

    newRow.setAttribute ("attribut3", value3);


    vo.insertRow (newRow);

    this.getDBTransaction () .commit ();

    }

    I capture without exception again, but when I place everything correctly and trigger the code bean managed via a button action, the table shows the new line with the correct integers, but the channel cut in two by the calculation of SQL from the top shows only blank cells. After that research with the filter of the table and remove the search filter once again, the strings appear correctly.

    For example, after you insert:

    table1.PNG

    Then, after 'refreshment' with the filter:

    table2.PNG

    What can I do about it? I can't really put the data through the InsertWithParams, because I need build the string with the Java Code.

    It only does not show data after insertion, PartialTrigger (s) also will not work.

    You must re-run the sql query after validation (with: vo.executeQuery ())

    Dario

  • Problems during the update of the table of contents

    Hello

    does anyone know why additional section numbers and points appear every time I update my OCD? Normally I just delete them.

    Thank you!

    Try to remove the numbering of paragraph TOC style options. I am sure that what is happening is to make a numbered list on the table of contents entries AND pick up the existing numbers in the text.

    Peter

  • update of the table at the entrance to the page

    Hello

    What is the best way to update a table at the entrance to the page?

    I have a file I need to add a value of 1 for once it is loaded (it is not a counter)

    By default, the value is 0 added by mysql. I want to update for when the user saw that record when the page loads message.php for this page id.

    I did until now, but I want to submit without going through a button on the page.

    If ((isset($_POST["MM_update"])) & & ($_POST ["MM_update"] == "update_message_status")) {}
    $updateSQL = sprintf ("mailbox to UPDATE the VALUE displayed = %s WHERE mailbox_id = %s",
    GetSQLValueString ($_POST ["watched"], "text").
    GetSQLValueString ($_POST ['mailbox_id'], "int"));

    @mysql_select_db ($database_db, $db);
    $Result1 = mysql_query ($updateSQL, $db) or die (mysql_error ());

    $updateGoTo = "message.php? id ='". $row_messagesList ['mailbox_id] "]." ' « ;
    If (isset {}
    $updateGoTo. = (strpos ($updateGoTo, '?'))? « & » : « ? » ;
    $updateGoTo. = $_SERVER ['QUERY_STRING'];
    }
    header (sprintf ("location: %s", $updateGoTo));
    }

    < do action = "<?" PHP echo $editFormAction;? ">" method = "POST" name = "update_message_status" >
    < input name = "mailbox_id" type = "hidden" value = "<?" PHP echo $row_messagesList ["mailbox_id"];? ">" / >
    < input name = "consulted" type = "hidden" value = "1" / >
    < input type = "hidden" name = "MM_update" value = "update_message_status" / >
    < / make >

    Thank you

    your code all the junk and put something like this:

    @mysql_select_db ($database_db, $db);
    $mailbox_id = "-1";
    If (isset($_row_messagesList['mailbox_id'])) {}
    $mailbox_id = $_row_messagesList ["mailbox_id"];
    }
    $updateSQL = sprintf ("mailbox to UPDATE the displayed VALUE = '1' WHERE mailbox_id = %s", GetSQLValueString ($mailbox_id, "int") ");
    $Result1 = mysql_query ($updateSQL, $db) or die (mysql_error ());

  • Update of the table based on another

    Hello

    I'm trying to update a date column in a table based on another table. There is a unique ID in each table that identifies and connects each person:
    update patient_bu a set a.entry_date = (select b.entry_date from CLIENT_MED_DT b where a.id = b.id)
    This is the error:

    ORA-01427: einreihig subquery returns multiple rows


    The problem (I think) is that the select statement back several dates for records people. There are some people / records that have multiple entry dates, but I'm only interested in the most recent date.

    How can I update this table with only the most recent date?

    Thanks for any help,
    Matt

    Oh well, I forgot the UPDATE clause:

    SQL> create table patient_bu
      2  (id number
      3  ,entry_date date);
    
    Table created.
    
    SQL> create table client_met_dt
      2  (id number
      3  ,entry_date date);
    
    Table created.
    
    SQL> merge into patient_bu a
      2  using (select id
      3               ,max(entry_date) max_date
      4         from   client_met_dt
      5         group  by id
      6        ) b
      7  on    (a.id = b.id)
      8  when  matched then update
      9        set a.entry_date = b.max_date;
    
    0 rows merged.
    
  • Direct Descriptive Flexfields update on the table HR_ALL_POSITIONS_F

    Hello! I am currently developing something that requires the HR_ALL_POSITIONS_F Table.

    I have a test instance that is a clone of our Live/Production environment. They have the same values in HR_ALL_POSITIONS_F.

    I added a FDF for ATTRIBUTE1 value ~ ATTRIBUTE4 of HR_ALL_POSITIONS_F in our Test environment.

    I would now like to migrate these values in the direct environment.

    Is it preferable that I directly update the values of the ATTRIBUTES to help

    UPDATE HR_ALL_POSITIONS_F

    ATTRIBUTE1 SET = VAL1,

    ATTRIBUT2 = VAL2,

    ATTRIBUT3 = VAL3,

    ATTRIBUTE4 = VAL4

    WHERE = WHERECLAUSE;

    I was also looking for a comand FNDLOAD for these de FACTO forces, but I can't find.

    Hoping for your help!

    Thank you!

    Please see if https://community.oracle.com/thread/3648553 help.

    You can also save an SR to confirm the same thing with Oracle support.

    Thank you

    Hussein

  • How to convert varchar to date datatype all insert or update in the table

    Hai All

    I need to convert to varchar type to date.

    I have two Tables T1, T2

    Structure of T1

    Code varchar

    Time varchar

    Date varchar

    Structure of T2

    Var EmpName

    Empcode var

    Date of the respondent

    Outtime date

    Intrinsically date

    Date of Introut

    Att_date

    Now I need to spend the time form T1 to T2 respondent, outtime, intrinsically, introut under certain conditions

    So now I need to convert Varchar to Date so that the insert or update

    I tried something

    Insert into T1 (code, respondent, att_date) values

    (To_date(Date|| dele de code temps, «hh24mi de mon-dd-yyyy»), att_date);

    OR update while

    Setting a day set Outtime T2 = To_date(Date||) Time, 'hh24mi mon-dd-yyyy') where...


    I got an error Ora-01861


    Concerning

    Srikkanth.M

    You did not show an example of your date or time values, control may be necessary to add a space between them, like

    To_date(Date || ' ' || time,'dd-mon-yyyy hh24mi')
    
  • How can simple trigger for verification of status update on the table... - I get upd sql then?

    Hi guys,.

    I need to do a temporary simple audit on all updates on a table.

    That's why I create a trigger for her...

    However, I need to capture the SQL statement to make the update as well... However I have no way to do it, because it is always replaced by a SQL code I run to get the SESSION ID...

    Here is the trigger...
    ----------------------

    create or replace
    alert_setting_trg relaxation
    before the update on user_alert_settings
    for each line
    declare
    number of v_sid;
    v_username varchar2 (100);
    v_osuser varchar2 (100);
    v_machine varchar2 (100);
    v_program varchar2 (100);
    v_module varchar2 (100);
    v_prevsqlid varchar2 (100);
    v_sqltext varchar2 (100);

    Start
    SELECT SYS_CONTEXT ('USERENV', 'SID')
    IN v_sid
    FROM DUAL;

    SELECT the username, osuser, machine, program, module, PREV_SQL_ID
    IN v_username, v_osuser, v_machine, v_program, v_module, v_prevsqlid
    SESSION $ v where SID = v_sid;

    SELECT sql_text
    IN v_sqltext
    V $ sqltext
    WHERE SQL_ID = v_prevsqlid;

    INSERT INTO alert_settings_log
    VALUES (sysdate, v_sid, v_username, v_osuser, v_machine, v_program, v_module, v_sqltext,: new.user_id,: new.service_grp,: new.alert_setting_id,: old.alert_active,: new.alert_active);

    end;


    Now the problem is that...
    the capture of SQL statement will always be

    SELECT SYS_CONTEXT ('USERENV', 'SID')
    IN v_sid
    FROM DUAL;


    and not the UPDATE table statement.

    1st quarter) I have to get the SID of the session before I could know what SQL it is running.

    However, once I get the SID, the SQL to UPDATE the SID is run changes the SQL that gets the SID.

    What can I do?

    Rgds,
    Noob

    Instead of to the request in three steps, do it in 1. Replace all three of your queries with something like:

    SELECT s.username, s.osuser, s.machine, s.program, s.module, q.sql_text
    INTO v_username, v_osuser, v_machine, v_program, v_module, v_sqltext
    FROM v$session s, v$sql_area q
    WHERE s.sid = SYS_CONTEXT('USERENV','SID') and
          s.prev_sql_id = q.sql_id
    

    John

  • Need to update the table

    Release of PL/SQL version 11.2.0.2.0 - Production

    Hi gurus

    You need assistance in question. I have the following data:

    Sample data


    drop table aa;

    drop table bb;
    create table aa
    (
    cust_no number (5),
    cust_name varchar2 (30)
    );

    Insert in the NOA
    (
    Select 100, 'A' from two
    Union of all the
    Select 200, 'B' double
    Union of all the
    Select 300, 'C' of the double
    );

    create table bb
    (
    cust_no number (5),
    cust_caty varchar2 (15)
    );
    Insert into bb
    (
    Select NULL, 'Potential' from dual
    Union of all the
    Select NULL, 'Not Potencial' of the double
    Union of all the
    Select NULL, "Unknown" of the double
    );

    Now, I want to update my bb with cust_id without no join table...

    My required data should be something like below in the table of bb:

    CUST_NO, CUST_CATY

    100 potential

    200 potential not

    300 stranger

    Please note that it doesn't matter what cust_no arrive at any cust_caty

    Concerning

    Shu

    Hi, Shu,

    Here's one way:

    MERGE INTO dst bb

    WITH THE HELP OF)

    WITH aa_r_num AS

    (

    SELECT cust_no

    ROWNUM AS r_num

    AA

    )

    bb_r_num AS

    (

    SELECT cust_caty

    ROWNUM AS r_num

    BB

    )

    SELECT a.cust_no

    b.cust_caty

    Of aa_r_num one

    JOIN bb_r_num b ON b.r_num = a.r_num

    )             src

    WE (dst.cust_caty = src.cust_caty)

    WHEN MATCHED THEN UPDATE

    SET dst.cust_no = src.cust_no

    ;

    The results I get are exactly what you posted:

    CUST_NO CUST_CATY

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

    100 potential

    200 potential not

    300 stranger

    But there is no guarantee that the same cust_no at the same cust_caty when you run it.

    As posted, which means that bb.cust_caty is unique and not NULL.

    If there are N + X lines in the bb, but only N lines in aa, then only N lines in bb will be updated.

    Why do you want to do "without no join"?  If a join is the most simple, average the most effective to achieve the results expected, so why not use it?

    If you really want to avoid the join, you can use a scalar subquery.

  • Statement of "SELECT UPDATES" of the audit

    Hi all

    My database is 10.2.0.3 and I activated audit_trail DB value already.

    My goal I want to audit statement "SELECT UPDATES" on the table and tried to activate "SELECT" audit on the table that has the number of records in dba_audit_trail, because the "SELECT statement" that include in this review and then I tried to activate "TABLE of LOCKING" of the audit on the table that does not dba_audit_trail n records.

    So my question is how to enable auditing of collecting only the instruction "Select updates"? or someone has an idea for this.

    Kind regards
    Hiko

    I don't think that it is possible to SELECT UPDATES verification without verification of all SELECT statements.

    What is the problem you are trying to solve in auditing SELECT for UPDATE statements? If you try to solve a problem of line lock contention, for example, you would be better served by looking at the data of ASHES (assuming that the appropriate licenses) to get information on what sessions were blocking other sessions over time.

    If you really want to just audit records to SELECT for UPDATE statements, you may audit all selects them and then run a job that regularly purged audit records that were not SELECT them for updates. Or, assuming you are using FGA, you could get the current SQL from the USERENV context and analyze in the search of the FOR UPDATE clause before writing the audit record in your audit table.

    Justin

Maybe you are looking for

  • Why my iMac logout immediately after login?

    MY iMac 27-inch has recently begun to disconnect me immediately after the connection. After reboot several times and even unplug, it seemed set. But when another user is connected, the computer immediately disconnected them. Then I logged in t Se if

  • Position photos

    I copied 3 photos on a WORD sheet, but I can'tmove photos on. Can someone what to do to move photos? Thank you Dave Y

  • Skype from itself randomly means it's open distance by someone?

    A few minutes after 20:30 CET, Skype started himself in the middle of my session. It happened once before, to my knowledge. It is not a problem for me to simply leave the app, but I need assurances that this is not the case due to malignant activitie

  • Printouts of web pages are produced in a huge font size

    Printed web pages are manufactured in sizes of police who are huge - essentially a 1/4 of the web page prints on paper 8 x 11. This has happened Each time Firefox opened recently, is since a few days

  • Satellite A200 and Windows 7 64 bit - how someone test it?

    Someone has test and works with it.I * A200 23W * with 4 GB of memory, vista sp2 installed and I want to have a clear installation * windows 7 but the 64-bit version *. What do you think?