change the column using the trigger

Hello
is there any possibility or a way around to change a LONG column in a trigger BEFORE INSERT and BEFORE UPDATE?
the scenario is like this.
Old DOS applications (this is why we must use LONG in the Oracle), they inserting a record in Oracle (9.2.0.8 - HP UX).

They are inserting ASCII characters that must be converted properly by Oracle using REPLACE.
But the problem is that I can not handle a long TIME in relaxation.

We have set the Oracle Client and Server NLS_LANG by using the same character set ISO-8859-1.
but in some sort the ASCII character has managed to go to the Oracle, and it had not stored in the database.

Use change will take more time than making a cleaning trash in the database.

Is there a way around that you think.

OK, you have your problem:

Check this box:

SQL> create table t
(
   user_id        number,
   user_account   varchar2 (10),
   user_status    varchar2 (1),
   user_message   long
)
/
Table created.

SQL> create or replace trigger t_trg
   after insert
   on t
   for each row
declare
   l_new_long   long;
begin
   execute immediate '
       declare
         l long;
       begin
         select user_message into l from t@loopback where user_id = :1;
         update  t@loopback set user_message = replace(l, ''Some'', ''Some other'') where user_id = :1;
       end;
          ' using :new.user_id;
end t_trg;
/
Trigger created.

SQL> insert into t  values (1,  'michael', 'Y',  'Some Message')
/
1 row created.

SQL> select * from t
/
   USER_ID USER_ACCOUNT USER_STATUS USER_MESSAGE
---------- ------------ ----------- --------------------
         1 michael      Y           Some other Message
1 row selected.

Tags: Database

Similar Questions

  • Manually change the trigger threshold

    I'm new to LabView and I looked around the forum, trying to find a solution to a problem I have. I wish I could have a trigger that detects a threshold that I can change on the fly. Now my program has an amplitude of setting it off, but I would like to be able to drag a slider and change the threshold I'll. A bonus would be to have the threshold value display on the chart that I use, but it is not necessary.

    http://forums.NI.com/NI/board/message?board.ID=170&message.ID=283779

    The post above is pretty much what I need, but I did not identify most of the controls used, and there is no source file to look at. Is it possible to change the threshold on the fly without having to mess with tables as in the example above? If not, could someone please explain the process to me.


  • Changing the trigger error

    Hi all

    I am trying to use the trigger, but I get the mutation of error:

    This is my original table:
    BUS_CYC_D                 CYC_STRT_OF_DAY_DT        BUS_CYC_STAT_C CYC_END_OF_DAY_DT         CCUR_N                 CRE_T                     CRE_USR_ID UPD_T                     UPD_USR_ID 
    ------------------------- ------------------------- -------------- ------------------------- ---------------------- ------------------------- ---------- ------------------------- ---------- 
    08-DEC-08                 08-DEC-08                 ACTV         09-DEC-08                 1                      08-DEC-08 12.00.00.000000000 AM TAAC       08-DEC-08 12.00.00.000000000 AM seeding 
    I wrote a trigger to avoid insertion of a date 'ACTIVE' user. My trigger is defined as:
    CREATE OR REPLACE TRIGGER trg_bus_cyc_valid_br
    BEFORE INSERT
    ON t_bus_cyc
    FOR EACH ROW
    
    DECLARE
     
    
    pctx                          plog.log_ctx := plog.init('Trigger.trg_bus_cyc_valid_br');
    v_unit_context                VARCHAR2(1500);
    v_count                       NUMBER(10,0) := 0;
    raiseexcp                           EXCEPTION;
    
    BEGIN
    
        
    --    v_unit_context := 'Fetch if t_bus_cyc table already have active record'; 
          
         SELECT COUNT(1) 
         INTO v_count
        FROM t_bus_cyc tbc
        WHERE tbc.bus_cyc_stat_c ='ACTV';
         
    --     v_unit_context := 'Fetch if t_bus_cyc table already have active record'; 
         
         IF :NEW.bus_cyc_stat_c = 'ACTV' AND v_count = 1
         THEN
              RAISE raiseexcp;
        END IF;
         
      --  plog.setendsection(pctx,'SECTION_1');
    
    EXCEPTION
         WHEN raiseexcp
         THEN
              RAISE_APPLICATION_ERROR (-20000,'DUPLICATE ACTIVE DATES');    
    
    END  trg_bus_cyc_valid_br;
    But when I try to use something like, I get the error transfer:

         INSERT INTO t_bus_cyc
              (bus_cyc_d,
               bus_cyc_stat_c,
               cyc_strt_of_day_dt,
               cyc_end_of_day_dt,
               cre_usr_id,
               upd_usr_id)
         SELECT max(bus_cyc_d) +1  ,
                'INACTVE',
                max(bus_cyc_d) -1,
                max(bus_cyc_d) -1,
                'A',
                'A'
         FROM t_bus_cyc where bus_cyc_d = '08-DEC-08'  
    Please something to avoid the mistake of the mutation.

    Hello

    I think I misread your original message, and I changed it when you answered. My apologies.

    It looks like all this you want to do is raise an error if someone tries to add a second line "ACTV.
    You better not to use a trigger while: more it can be done with a unique index, LIKE THIS:

    CREATE UNIQUE INDEX     t_bus_cyc_actv
    ON t_bus_cyc ( CASE
                   WHEN  bus_cyc_stat_c ='ACTV'
                   THEN  1
                END
              );
    

    In general, when you have the choice of doing something with a trigger or some other way (such as a constraint or an index), then the other way is almost always better. Etbin statement "triggers are evil" is perhaps a little exaggerated, but it is something short and catchy to remember.

    The error you are getting now is that a FOR EACH ROW trigger on t_bus_cyc cannot reference t_bus_cyc himself.
    The link I posted shows different ways to get around that. As Peter says, none of them are really the best solution for your problem.

  • Mod_user handling in a table using the trigger

    Hello

    I have a table with two columns value ' test' and the mod_user. Currently, the table has a before Update trigger to update the mod_user as a user of the system
    Now, I need to change the trigger to meet the criteria below

    (1) in an update statement if I manually put the mod_user, then it should be updated such as defined in the update statement.

    For example:
    UPDATE test
    Value = 1,
    mod_user = "xyz".
    WHERE value = 4;

    In the scenario above mod_user should be updated to "xyz" in the table

    (2) if I don't talk to any term set for mod_user, the default windows user should be changed in the table.
    UPDATE test
    Value = 1
    WHERE value = 4;

    In the scenario above mod_user should be updated as a user of windows in the table

    The trigger statement, I used doesn't seem to work.

    CREATE OR REPLACE TRIGGER t_mod_test
    BEFORE the UPDATE OF value WE test
    FOR EACH LINE
    BEGIN
    : new.mod_user: = NVL (SYS_CONTEXT ('USERENV', 'OS_USER'), USER);
    END;

    Any suggestions on how I can do the work of scenario would be very appreciated.

    Thanks in advance
    DAS

    It looks like you want something like

    SQL> create table test(
      2    value number,
      3    mod_user varchar2(100)
      4  );
    
    Table created.
    
    SQL> create or replace trigger t_mod_test
      2    before update on test
      3    for each row
      4  begin
      5    if( updating( 'MOD_USER' ) )
      6    then
      7      null;
      8    else
      9      :new.mod_user := NVL( sys_context('USERENV', 'OS_USER')
     10                           ,user );
     11    end if;
     12  end;
     13  /
    
    Trigger created.
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  create or replace trigger t_mod_test
      2    before update on test
      3    for each row
      4  begin
      5    if( not updating( 'MOD_USER' ) )
      6    then
      7      :new.mod_user := NVL( sys_context('USERENV', 'OS_USER')
      8                           ,user );
      9    end if;
     10* end;
    SQL> /
    
    Trigger created.
    
    SQL> insert into test values( 4, 'xyz' );
    
    1 row created.
    
    SQL> update test
      2     set value = 1
      3        ,mod_user = 'abc'
      4   where value = 4;
    
    1 row updated.
    
    SQL> select * from test;
    
         VALUE MOD_USER
    ---------- ----------
             1 abc
    
    SQL> update test
      2     set value = 2
      3   where value = 1;
    
    1 row updated.
    
    SQL> select * from test;
    
         VALUE
    ----------
    MOD_USER
    ------------------------------------------------------------------------------
    
             2
    JCAVEDDBC64\jcave
    
    SQL>
    

    Justin

  • I use Photoshop elements on Windows 8.1 12.  When I go in the Expert Mode to change the available toolbar is displayed in a single column and missing several tools which foreground and background color.  How to restore the original toolbar?

    I use Photoshop elements on Windows 8.1 12.  When I go in the Expert Mode to change the available toolbar is displayed in a single column and missing several tools which foreground and background color.  How to restore the original toolbar?

    Try to re - set preferences.

    Go to: Edit > preferences > general (menu Photoshop Elements on Mac)

    Click on the button Reset preferences on the next launch

  • InDesign cs5 crashes whenever I try to change the mark formatting via Type > reference Option Document or paragraph using the span columns Styles

    InDesign cs5 crashes whenever I try to change the formatting mark by going to the Type > Document reference Option > and then I try to choose a paragraph style, I already put in place. I need to use the paragraph style includes columns of Span, which I think may be the issue. I think this because when I then tried to create a new document and re - import styles, it won't let me even the columns of the span feature is added the paragraph in question Style.

    I can send screenshots at all (for example, dialog boxes) if it would be helpful to understand the question, I'll have.

    Any help would be greatly appreciated!

    Thank you.

    They used to have a feature called 'Useful response', but in my view, which has not been restored yet since they have recently updated the forum software. No problem. Just trying to help you.

  • What trigger use to change the value of the front element validate trigger

    Hello

    I would like to have an element of the DATE where it is possible to enter values as 1 + 12,-1, which should respond to the evolution of the value of the element to SYSDATE-/ + X. How should I do?

    Now, when I get out of the question, I get a validation error because the value of the element is not a valid date. How can I change the value of the date before it is validated?

    Concerning

    Create a non-base of data-element with the char data type.
    Fill the element in the POST-QUERY-trigger with the value of the date element of the basis of something like

    :BLOCK.THECAHRITEM:=TO_CHAR(:BLOCK.THEDATEITEM, 'DD.MM.YYYY');
    

    Then in the WHEN-VALIDATE-ITEM, check if the user entered a valid date, then simply write to the database column, otherwise check a valid value you want to treat, make the appropriate conversion and rewrite the date you got in the article database and the database element.

  • Interactive report - out has changed the value of the column selectlist

    Hello

    I try to use a selectlist in an interactive report. I used "APEX_ITEM. SELECT_LIST' for this. My interactive report request is

    SELECT APEX_ITEM.checkbox (1, CUSTOMER_ID, NULL, NULL, 'onclick = "javascript:setvalue (this.value)" ') as "-",

    CUST_FIRST_NAME,

    CUST_LAST_NAME,

    APEX_ITEM. SELECT_LIST)

    p_idx = > 2,

    p_value = > TEST.

    p_list_values = > ' Y; Y, N; NO

    ) 'test' for DEMO_CUSTOMERS

    I had a "Override" button on the page. I try to get the modified values (for the field "test") and the customer ID selected as a semicolon-separated list just by clicking on the ignore"" button. The process code on submit is

    : P8_TEST_VALUE: = NULL;

    BECAUSE me in 1... APEX_APPLICATION. G_F01. COUNTING LOOP

    : P8_TEST_VALUE: =: P8_TEST_VALUE | « ; » || APEX_APPLICATION. G_F01 (i) | APEX_APPLICATION. G_F02 (i);

    END LOOP;

    But I still get the data value, not the value for column 'test '.

    For example if I'm changing the value of "N" to 'Y' after selecting the checkbox (client code corresponds to "6") and click on 'Ignore' button. I get the value '; 6n 'instead of '; 6Y'. is it possible that I can get the value of seelectlist has changed?.

    Thank you

    JJ

    Your problem is in the values of the selection list. The element is not sent to use in PL/SQL, best way to do it is with jQuery

    try adding this to your report:

    SELECT APEX_ITEM.checkbox (1, CUSTOMER_ID, NULL, NULL, 'onclick = "javascript:setvalue (this.value)" ') as "-",

    CUST_FIRST_NAME,

    CUST_LAST_NAME,

    APEX_ITEM. SELECT_LIST)

    p_idx-online 2

    p_item_id => CUSTOMER_ID,

    p_value => TEST,

    p_list_values => ' Y; Y, N; NO

    ) 'test' for DEMO_CUSTOMERS

    and to add actions to the lick... button or other trigger.

    $x("P8_TEST_VALUE").value ="";

    $("input: checkbox[name='f01']:checked").each(function())

    {var val = $("select [id ='" + $(this) .val () + "']") .val ();}

    $x("P8_TEST_VALUE").value = $x ("P8_TEST_VALUE") .value + $(this) .val () + val + ";". " » ;

    });

    Hope that this post will be useful for you.
    Andrej Grlica

  • A statement UPDATE changes the line if the update changes the column even value?

    HI -.

    I have a main classification and the corresponding audit table. I have a trigger. I created using the suggestion:http://www.runningoracle.com/product_info.php?products_id=211

    Now the problem that I am facing is that: if I run the same query (same value) update on the main table for n times (with the same data)... my audit table is updated with a new record every time. He is not able to determine that the value is the same.

    My goal is to load the audit table data if the value in a cell in the main table is really have changed.

    A statement UPDATE changes the line if the update changes the column even value?

    Best regards

    I have a main Table and the corresponding Audit Table. I have a trigger. I created using the suggestion:http://www.runningoracle.com/product_info.php?products_id=211

    Why?

    You try to resolve what made you what are the PROBLEM that select as the solution?

    Now the problem that I am facing is that: if I run the same query (same value) update on the main table for n times (with the same data)... my audit table is updated with a new record every time.

    Yes - it is EXACTLY what you say that you wanted to do and EXACTLY what the code does in this article.

    He is not able to determine that the value is the same.

    I think you mean that the code does NOT check if the value is the same. You can certainly change the code to do this check. But I have a question to start with your need for such a solution.

    My goal is to load the audit table data if the value in a cell in the main table is really have changed.

    OK - then modify the code to check EACH COLUMN and compare its NEW value to the OLD value and insert only the table of audit if SOME (or columns you care specifically) have changed.

    A statement UPDATE changes the line if the update changes the column even value?

    It depends on what you mean by 'change the line '. Of course to update a column with the SAME value does not change the resulting data value.

    But the physical structure of the line, the location of the pieces of line and information in the header block (YVERT, etc.) will change. And, as others have said Oracle doesn't know and doesn't care, so if the new value of a column is the same as the old value will create redo, undo and the rest.

    Start over and tell us what PROBLEM you're trying to solve. Then we can help you find the best way to solve it.

  • Update the column values with the new user who has changed the data in the current line

    I have a table, the following structure.

    CREATE TABLE FILTERCALENDAR1
    (DATE OF THE "C_DATE',
    NUMBER (1,0) 'DAY_OF_WEEK ',.
    NUMBER (1.0) "WEEK_WINDOW."
    NUMBER (1.0) "MONTH_WINDOW."
    NUMBER (1.0) "YEAR_WINDOW."
    NUMBER (1.0) "DATE_YEAR_WINDOW."
    NUMBER (1.0) "ONCE_WINDOW."
    VARCHAR2 (25 BYTE) "USERNAME."
    "LASTUPDATED" DATE
    );

    Problem:
    If a user changes the value of one of the columns I want to write his name to user and sysdate in the 'USERNAME' and LASTUPDATED' columns.

    * Tried: *.
    I tried an update trigger for this problem, but I get an error table mutation.

    The one you suggest how can I achieve this.

    Concerning

    Use BEFORE the UPDATE trigger

    CREATE OR REPLACE TRIGGER myTrigger
    before UPDATE ON FILTERCALENDAR1 FOR EACH ROW
    BEGIN
    :new.USERNAME := user;
    :new.LASTUPDATED := sysdate;
    END;
    
  • How do I enter a value based on condition in a pass with using the trigger.

    Hello
    I am new bie.

    When replicating form mssql 2005 he enters space for null in col oracle clob.
    so I wanted to know.
    (1) can check constaint change the contents of the column on which it is defined?

    as I want to buried null in a column, if entered date is later than the current date on the other the date entered.
    I don't want to use triggers or script on the client side.


    Yours sincerely

    944768 wrote:
    Hello
    I am new bie.

    When replicating form mssql 2005 he enters space for null in col oracle clob.
    so I wanted to know.
    (1) can check constaint change the contents of the column on which it is defined?

    as I want to buried null in a column, if entered date is later than the current date on the other the date entered.
    I don't want to use triggers or script on the client side.

    # This is not what is a constraint. Constraints to ensure that the data meet the criteria, it does not modify data.
    Triggers have been designed to allow the manipulation of data, as it was inserted or changed, allowing access to the Interior: NEW structure they provide.

    What is the problem with the help of a trigger for this?
    Otherwise, why not change the way in which the 'replicated form' works so that it does not provide a space when she expects a null value?

    Without more details, it is difficult to help you, because we do not know which provides the data, what looks like at your table or ultimately what you're trying to reach.

    Read: {message identifier: = 9360002}

  • Date column updated with trigger update of the geometry

    Hello

    I have a column named "GEO_MOD_DATE" which is supposed to be updated every time that my geometry column is updated. My trigger code is below. Currently the trigger is fired when other than my column of geometry columns are updated. I searched the forum and many other sites. As far as I know, my trigger is written correctly. But I can't understand why it is taken when the columns except my geometry column are updated. You have any ideas? Thanks in advance! Note that the trigger fires when I update the geometry column. However, it is also SHOOTING when the other columns are updated. I have also tried adding 'OF GDO_GEOMETRY' from "BEFORE UPDATE" paragraph and which did not help.

    Jeff

    Triggering factor:

    CREATE OR REPLACE TRIGGER OPER_ZONE_VALVE_GEO_BU_T
    BEFORE THE UPDATE
    ON OPER_ZONE_VALVE
    REFERRING AGAIN AS NINE OLD AND OLD
    FOR EACH LINE
    DECLARE
    v_foo NUMBER (9);
    BEGIN
    -Comment from below if you do not want to assign GEO_MOD_DATE
    BEGIN
    IF the UPDATE ("GDO_GEOMETRY") and: NEW.gdo_geometry IS NOT NULL
    THEN
    : NEW.geo_mod_date: = SYSDATE;
    ON THE OTHER
    : NEW.geo_mod_date: = NULL;
    END IF;
    EXCEPTION
    WHILE OTHERS
    THEN
    raise_application_error
    (- 20013,
    "Cannot be autoassign field OPER ZONE VALVE".
    );
    END;

    /*****/
    NULL;
    EXCEPTION
    WHILE OTHERS
    THEN
    raise_application_error
    (- 20013,
    'error in executing BEFORE INSERT TRIGGER OPER_ZONE_VALVE_GEO_BU_T;'
    );
    END;
    /

    --------------------------------------------
    And here is my table structure:

    CREATE TABLE OPER_ZONE_VALVE
    (
    MSLINK NUMBER (38),
    VALVE_NUMBER VARCHAR2 (8 BYTE),
    ECM_NUMBER VARCHAR2 (8 BYTE),
    VALVE_SIZE VARCHAR2 (4 BYTE),
    CONNECTION_TYPE VARCHAR2 (100 BYTE),
    HEADER_STREET VARCHAR2 (100 BYTE),
    HEADER_FEET VARCHAR2 (8 BYTE),
    HEADER_DIR VARCHAR2 (4 BYTE),
    HEADER_PROP VARCHAR2 (4 BYTE),
    SUB_STREET VARCHAR2 (100 BYTE),
    SUB_FEET VARCHAR2 (8 BYTE),
    SUB_DIR VARCHAR2 (4 BYTE),
    SUB_PROP VARCHAR2 (4 BYTE),
    PLAT_MAP_NUMBER VARCHAR2 (4 BYTE),
    USER DEFAULT CREATED_BY VARCHAR2 (50 BYTES)
    CREATED_DATE DATE DEFAULT SYSDATE,
    MODIFIED_BY VARCHAR2 (50 BYTE),
    MODIFIED_DATE DATE,
    DATE OF GEO_MOD_DATE,
    NOTE VARCHAR2 (40 BYTE),
    MDSYS GDO_GEOMETRY. SDO_GEOMETRY
    )

    I read that FORWARD updated TO does not work with data as CLOB types

    Yes. But what does this mean for the SDO_GEOMETRY objects is that you cannot directly use a WHEN clause in the definition of the trigger and you cannot compare two geometries directly via If (: old.geom =: new.geom) then.

    So, in your trigger update of your business rules conditions require the trigger to implement are not enough.

    Try to check if the geometry column has actually changed.

    DROP TABLE oper_zone_valve;
    
    CREATE TABLE oper_zone_valve
    (
      mslink            NUMBER (38),
      valve_number      VARCHAR2 (8 BYTE),
      ecm_number        VARCHAR2 (8 BYTE),
      valve_size        VARCHAR2 (4 BYTE),
      connection_type   VARCHAR2 (100 BYTE),
      header_street     VARCHAR2 (100 BYTE),
      header_feet       VARCHAR2 (8 BYTE),
      header_dir        VARCHAR2 (4 BYTE),
      header_prop       VARCHAR2 (4 BYTE),
      sub_street        VARCHAR2 (100 BYTE),
      sub_feet          VARCHAR2 (8 BYTE),
      sub_dir           VARCHAR2 (4 BYTE),
      sub_prop          VARCHAR2 (4 BYTE),
      plat_map_number   VARCHAR2 (4 BYTE),
      created_by        VARCHAR2 (50 BYTE) DEFAULT USER,
      created_date      DATE DEFAULT SYSDATE,
      modified_by       VARCHAR2 (50 BYTE),
      modified_date     DATE,
      geo_mod_date      DATE,
      remark            VARCHAR2 (40 BYTE),
      gdo_geometry      MDSYS.sdo_geometry
    );
    
    CREATE OR REPLACE TRIGGER air_valve_geo_bu_t
      BEFORE UPDATE OF gdo_geometry
      ON oper_zone_valve
      REFERENCING NEW AS new OLD AS old
      FOR EACH ROW
    BEGIN
       IF ( NOT UPDATING('GDO_GEOMETRY') ) THEN
        RETURN;
      END IF;
      IF ( :old.gdo_geometry is not null and :new.gdo_geometry IS not NULL ) THEN
        -- Check if geometry has changed internally
         IF ( sdo_geom.relate(:old.gdo_geometry,'DETERMINE',:new.gdo_geometry,0.005) != 'EQUAL' ) Then
           :new.geo_mod_date := SYSDATE;
         End If;
      ELSIF ( ( :old.gdo_geometry is null and :new.gdo_geometry IS NOT NULL ) OR
           ( :old.gdo_geometry is not null and :new.gdo_geometry IS NULL ) ) THEN
         :new.geo_mod_date := SYSDATE;
      ELSE
        :new.geo_mod_date := NULL;
      END IF;
    END;
    /
    SHOW ERRORS
    

    Some tests

    SET NULL NULL
    INSERT INTO oper_zone_valve ( remark, gdo_geometry) VALUES ('remark', MDSYS.sdo_geometry(2001,NULL,SDO_POINT_TYPE(0,0,0), NULL,NULL)); COMMIT;
    1 rows inserted.
    commited.
    SELECT remark,  to_char(geo_mod_date,'YYYY-MM-DD HH24:MI:SS') as geo_mod_date, gdo_geometry FROM oper_zone_valve;
    REMARK GEO_MOD_DATE        GDO_GEOMETRY
    ------ ------------------- -------------------------------------------------------
    remark NULL                SDO_GEOMETRY(2001,NULL,SDO_POINT_TYPE(0,0,0),NULL,NULL)
    
    update oper_zone_valve set gdo_geometry = sdo_geometry(2001, NULL,SDO_POINT_TYPE( 0,0,0),NULL,NULL) where remark = 'remark'; COMMIT;
    1 rows updated.
    commited.
    SELECT remark,  to_char(geo_mod_date,'YYYY-MM-DD HH24:MI:SS') as geo_mod_date, gdo_geometry FROM oper_zone_valve;
    REMARK GEO_MOD_DATE        GDO_GEOMETRY
    ------ ------------------- -------------------------------------------------------
    remark NULL                SDO_GEOMETRY(2001,NULL,SDO_POINT_TYPE(0,0,0),NULL,NULL)
    
    update oper_zone_valve set gdo_geometry = sdo_geometry(2001, NULL,SDO_POINT_TYPE(10,0,0),NULL,NULL) where remark = 'remark'; COMMIT;
    1 rows updated.
    commited.
    SELECT remark,  to_char(geo_mod_date,'YYYY-MM-DD HH24:MI:SS') as geo_mod_date, gdo_geometry FROM oper_zone_valve;
    REMARK GEO_MOD_DATE        GDO_GEOMETRY
    ------ ------------------- --------------------------------------------------------
    remark 2012-10-16 09:24:53 SDO_GEOMETRY(2001,NULL,SDO_POINT_TYPE(10,0,0),NULL,NULL)
    
    execute dbms_lock.sleep(5);
    anonymous block completed
    update oper_zone_valve set gdo_geometry = NULL  where remark = 'remark'; COMMIT;
    1 rows updated.
    commited.
    SELECT remark,  to_char(geo_mod_date,'YYYY-MM-DD HH24:MI:SS') as geo_mod_date, gdo_geometry FROM oper_zone_valve;
    REMARK GEO_MOD_DATE        GDO_GEOMETRY
    ------ ------------------- --------------------------------------------------------
    remark 2012-10-16 09:24:58 NULL
    

    This seems to be the answer you are looking for or puts you on a path to achieve the correct execution of your business rules in the trigger.

    Shows please!

    concerning
    Simon

    Published by: Simon Greener on 17 October 2012 15:39, fixed a display issue does not

  • change the color of the data in a column

    Hello experts,

    I'm trying to change the color of the data displayed in a column in function on the condition that it is set to 0, then it should be in red

    I tried the following, but it doesn't work.

    When-validate-item trigger on the level of data block
    if forecast_cnt = 0 then
    
    SET_ITEM_PROPERTY('FORECAST_CNT',foreground_color,'R255g0b0');
    
    end if;
    I'm doing something wrong?

    There is no problem with the code. There is problem with the trigger. WHEN-VALIDATE-ITEM work when there are changes in the field. If you want to the time of the query. Then use the QUERY post at the level of the blocks. If it is multi record block using SET_ITEM_INSTANCE_PROPERTY with Visual attribute.

    -Clément

  • How to change the rows and columns of newtabs?

    I can't change the rows and columns to mozilla version 33

    From topic: config browser.newtabpage.columns shows 5 by default, but these 5 columns appear not only 3 as before. Don't know why, but I use generally not even the default new tab page in my profile daily.

    Still works this - https://addons.mozilla.org/en-US/firefox/addon/new-tab-tools/ - extension to change the page of newTab via a user accessible interface name in the Addons, rather than routing autour Manager inside Firefox. I use this add-on in a second profile that I use for my favorite sites

  • Display the icon change the number of columns

    I'm sure it must be a way to change the number of columns in the display icon, not the space between columns, not the size of the icons, but the number of columns, for example, that dumpster has 4 columns and I want to see those hidden on the right I have to use the scroll bar, I want to do I want to see ONLY for columns of the filling finder window?

    Thank you very much

    Roger

    "BTW that seems to only happen when I consult with ANY ' arrange by" or "sort by"!

Maybe you are looking for