CLOB value is null INSERTALL

I'm trying to use GG to create an audit table and am having some problems with the CLOB values return null.

Basic structure is:

Table has columns:

ID number not Null

CLOB, Not null, comments

COMMENTS_CONTACT NUMBER OF NON-NULL,

LAST_MODIFIED TIMESTAMP (6) NOT NULL

Audit table is the same with some other columns of metadata.

I use the INSERTALL command to track the changes that occur. The problem that I am running is if a user performs:

UPDATE TABLE_A

SET COMMENTS_CONTACT = '5' where ID = 1

I receive an error to null on the insert constraint in my table of audit because Golden Gate is not picking up the CLOB (I guess that's not in the REDO log because the column is not updated).

Any ideas on that?

Currently on GR 11, 2 and the latest patches of GoldenGate.

You are right in assuming where it is not to remake it, probably because you have a primary or unique key on this table and therefore only the PK over the update column will in do it again / trail file.

If you want to connect each column in your table of audit then you can recreate the Group of additional log on the source with the ALLCOLS clause.  This will force each column in your file to redo/trail and it will be replicated to your audit table.

However, you're duplicating a lot of data out there.  You could just let it drop NOT NULL constraints on the target and then accept that a NULL value in your audit table means that this column has not been updated.

Tags: Business Intelligence

Similar Questions

  • CLOB values are displayed as 'weblogic.jdbc.wrapper.Clob_oracle_sql_CLOB@46c '.

    My Clob values are displayed in the UI as "weblogic.jdbc.wrapper.Clob_oracle_sql_CLOB@46c".  When I try to change a value or to add a new line I get this exception on the validation:

    < RichExceptionHandler > < _logUnhandledException > ADF_FACES - 60098:Faces life cycle receives exceptions that are unhandled in phase 5 of INVOKE_APPLICATION

    javax.faces.el.EvaluationException: oracle.jbo.JboException: [oracle.jbo.DMLException: Houston-26041: cannot display the results to the database during "Update": "null" SQL statement.]

    at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:58)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1545)

    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)

    In my OE the column Type is set to ClobDomain.  I created the ClobConverter class in my draft opinion (com.mtg.fwd.view.converter.ClobConverter), such as discussed in this thread (Re: using CLOB in adf).  I added this code to the faces - config.xml:

    <>converter

    < description > convert clob to string and vice versa < / description >

    Converter < id > convert. CLOB < / converter-id >

    > class converter < com.mtg.fwd.view.converter.ClobConverter < / converter-class >

    < / converter >

    In the jsff I put the attribute of converter to convert. CLOB for the column.  Initially, I had this game at oracle.ordDomain and it does not work so I am trying the method.

    < af:inputText value = "#{bindings." Gvsql.inputValue}.
    label = "SQL query"
    required = "#{bindings." Gvsql.hints.Mandatory}.
    columns = '100 '.
    maximumLength = "#{bindings." Gvsql.hints.Precision}.
    shortDesc = "#{bindings." Gvsql.hints.ToolTip}.
    ID = "IT7."
    lines = "10".
    Converter = "convert. CLOB">
    < f: validator binding = "#{bindings." Gvsql.Validator} "/ >"
    < / af:inputText >

    What should I look at next?

    With the help of JDev 11.1.2.4.0

    Thank you

    Rudy

    I wanted to follow for anyone interested.  I created a new model and the view within the same application to test with and clob values showed correctly.  I've recreated the form using the original model and the problem was there.  I've looked everywhere and didn't find anything.  This morning, I decided to delete the files of user JDeveloper in C:\Users\Rudy\AppData\Roaming\JDeveloper\system11.1.2.4.39.64.36.1.  I have restarted JDev, ran my jspx, the problem disappeared.  I went back to the original draft of the view, he ran, it was fine.  I cleaned everything and he is always very good.  So there was something up cached data of the user that it was blocking work correctly.

  • no borders in the report whose value is NULL

    Hello
    I have the problem in my reports are without borders around the field, if the value is NULL. When I put a see the Null value like "-" for example then there are still borders. But I can't use this solution every time. I tried to export the theme. When I Inported theme to another Application, it worked greate, but when I re-imported it to the main Application has not changed. Im not sure where to look for the error.
    Thank you
    Niko

    Edited by: Niko_Bu the 01.10.2010 08:08

    Niko,

    It looks like you use tables in the basis of your report. A standard HTML table will not make a cell in Internet Explorer (Google Chrome, however, will) if there is no value in it, and so there will be a border.

    Three solutions:
    (1) that big, scary: modify your template and replace it with a presentation based on the div. This will require a good amount of CSS work as well.
    (2) CSS can also specify "empty-cells: show ' in the style of your table. This may or may not work for all of your users - some browsers do not fully support.
    (3) a boring: change your model to have '& nbsp; "#COLUMN_VALUE #" (without the quotes) in the column templates. This puts an invisible space more or less in the cell, but unlike a space Euclidean (' '), HTML, it recognizes and makes the cell borders.

    Heremuch more detailed discussion of the problem.

    -David

  • How to check if the value is NULL in the script

    Please, tell which function should I use to check if the value is NULL
    as: If some_member = NULL then...

    Thank you very much

    If you mean #missing:

    Commission (IF (sales <> #MISSING))
    Commission = sales *. 1;
    Another Commission = #MISSING;
    ENDIF ;);

    This example is from the SER60

    PLEASE NOTE: For some reason, the not equals sign does not appear on the first line of the IF statement. (i.e. IF (SALES does not #MISSING))

  • Inputfile value is null

    Good afternoon

    The case I have is this: I have a table with records and for each line, there is the possibility to download files. Therefore, for each row there is a button that when pressed displays a pop up with the input file and the OK and CANCEL buttons.

    The problem here is that whenever I try to add the file to the value of the input file has the value null, even if I chose a file. In other words, when I press the OK button the value of the input file is clean and doesn't know why.

    The value of the input file is:

        private UploadedFile uploadedFile;
    
    
        public void setUploadedFile(UploadedFile uploadedFile) {
            this.uploadedFile = uploadedFile;
        }
    
    
        public UploadedFile getUploadedFile() {
         
      System.out.println("uploadedFile: " +  uploadedFile);
            return uploadedFile;
        }
    
    
    
    
    
    
    
    
    

    And the error is the following:

    inputFile.png

    The popup have default properties.

    My version of jdev is 11.2.4.0

    Exactly. A fragment of jsff resides on a page, a jsf or file jspx, as a region. Set the property on the page where you use the jsff as a region.

    Timo

  • update the values, the NULL values by another value

    Hi all

    Item_Id Item_Flag    

    1               Y

    NULL       Y


    If the Item_id values are like above(1,), will have to update with Item_Id = 2


    How to do this?


    Thank you

    Update t set item_id = 2 where nvl(item_id,1) = 1

  • What is the syntax to judge a binding value is null?

    Hello

    12.1.3 JDev is used.

    I want to judge #{bindings. ReviewerA.inputValue} is null or not, what is the syntax? I use this to control the visibility of a tab, however no matter the value actually is zero or not, the tab will appear, I am currently using "#{bindings." ReviewerA.inputValue} is empty", it works very well, thank you

    -Liang Yi

    I want to judge #{bindings. ReviewerA.inputValue} is null or not, what is the syntax?

    #{bindings. ReviewerA.inputValue == null} or #{bindings. ReviewerA.inputValue! = null}

    I am currently using "#{bindings." ReviewerA.inputValue} is empty. "

    As far as I KNOW, 'empty' syntax is: #{empty links. ReviewerA.inputValue}.

    Dario

  • ORA-03113 when inserting a CLOB value cast as an XMLType of a SELECT query in a table

    I have a table that contains a CLOB column with pseudo-XML in it. I want to keep these data in an XMLType column so that I can take advantage of some of the built-in XML features of Oracle to analyze more easily.

    The source table is defined as:

    CREATE TABLE "TSS_SRM_CBEBRE_LOGS_V"

    ( ) NUMBER of 'INCIDENT_ID',

    ACTIVATE THE "EVENT_TYPE" VARCHAR2 (100 BYTE) NOT NULL,

    VARCHAR2 (100 BYTE) "EVENT_KEY."

    ACTIVATE THE 'CREATION_DATE' STAMP (6) NOT NULL,

    ACTIVATE THE 'CREATED_BY' VARCHAR2 (100 BYTE) NOT NULL,

    'LOG_MSG' CLOB) ;


    The target table (to test this problem) is defined as:

    CREATE TABLE 'TESTME '.

    ("LOG_MSG" "XMLTYPE"

    )

    My query is:

    Insert / * + APPEND * / into testme ("LOG_MSG")

    Select XMLTYPE.createXML ("LOG_MSG") as "TSS_SRM_CBEBRE_LOGS_V" b LOG_MSG;

    In SQL * Developer, my error is: error report:

    SQL error: No more data to read from socket

    In SQL * MORE and Toad, my error is:

    ORA-03113: end of file on communication channel

    Process ID: 13903

    Session ID: serial number 414: 32739

    Thank you!

    I made an ALTER SESSION SET EVENTs = 10046 trace name forever, context level 12'; and ran the query. At the bottom of the trace file, I found the two following exceptions of ORA-07445:

    * 13:43:32.760 2013-08-15

    Exception [type: SIGSEGV, SI_KERNEL (general_protection)] [ADDR:0 x 0] [PC:0 x 2652500, LpxMemFree () + 200] [flags: 0x0, count: 1]

    Incident 493726 created the dump file: /u01/app/oracle/diag/rdbms/gtcdwd1/gtcdwd1/incident/incdir_493726/gtcdwd1_ora_8577_i493726.trc

    [ORA-07445: exception encountered: core dump [LpxMemFree () + 200] [SIGSEGV] [ADDR:0 x 0] [PC:0 x 2652500] [SI_KERNEL (general_protection)]]

    Incident 493727 created the dump file: /u01/app/oracle/diag/rdbms/gtcdwd1/gtcdwd1/incident/incdir_493727/gtcdwd1_ora_8577_i493727.trc

    [ORA-07445: exception encountered: core dump [dbgtrReserveSpace () + 77] [SIGSEGV] [ADDR:0 x 0] [PC:0x938E91F] [SI_KERNEL (general_protection)]]

    ORA-07445: exception encountered: core dump [LpxMemFree () + 200] [SIGSEGV] [ADDR:0 x 0] [PC:0 x 2652500] [SI_KERNEL (genres

    ksdbgcra: base of writing to the directory file ' / u01/app/oracle/diag/rdbms/gtcdwd1/gtcdwd1/cdump ".

    If I replace the XMLTYPE molded with the xmlparse function, I get the error ORA-19010 you mentioned. Read more in the Oracle documentation, I see that it says that I can not insert XML fragments into an XMLType column. I can use sys_XMLGen to create a well-formed document.

    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28369/xdb13gen.htm#i1026349

    We'll see!

  • error checking the value of NULL attribute on viewObject

    Hello
    am on jdev 11.1.2.3
    in my case I would check whether or not a viewObject attribute is null, an error pops up when the value of the attribute is null and this for all types of data in all locations (bean, ViewRowImpl class class EntityImpl):

    < BuildFacesMessage > ADF: addition of the following JSF error: java.lang.NullPointerException

    for example:
    I've used this control but even pbs
    If (! this.getDatRem () m:System.NET.SocketAddress.ToString () .isEmpty ()) {}
    .....
    }

    Thank you

    Copy the following code

    if (!this.getDatRem==null) {
    //---------------------------
    .....
    }
    
  • How to assign a value zero if the value is null.

    I have a package, procedure and many functions. I'm trying to get the result of DBMS to list a value for each, if it is null, assign it a zero and move.
    I can't find examples where I can do. Any ideas on how I can assign a zero when there is no value in the table?
    CREATE OR REPLACE PACKAGE emp_net_pay IS
      PROCEDURE emp_tot_sal  (v_empno IN NUMBER);
      FUNCTION find_emp      (v_empno IN NUMBER) RETURN BOOLEAN;
      FUNCTION tot_sal_com   (v_empno IN NUMBER) RETURN NUMBER;
      FUNCTION bef_tax_ded   (emp_no IN NUMBER)  RETURN NUMBER;
      FUNCTION temp_sal_btd  (emp_no IN NUMBER)  RETURN NUMBER;
      FUNCTION tax_emp_sal   (emp_no IN NUMBER)  RETURN NUMBER;
      FUNCTION sal_aft_tax   (emp_no IN NUMBER)  RETURN NUMBER;
      FUNCTION aft_tax_ded   (emp_no IN NUMBER)  RETURN NUMBER;
      FUNCTION tot_net_sal   (emp_no IN NUMBER)  RETURN NUMBER;
    END emp_net_pay;
    /
    CREATE OR REPLACE PACKAGE BODY emp_net_pay IS
    --Procedure calculates totals: Salary plus commission
    PROCEDURE emp_tot_sal (v_empno IN NUMBER)
    IS
      v_tot_sal  NUMBER;
      v_bef_ded  NUMBER;
      v_temp_sal NUMBER;
      v_tot_tax  NUMBER;
      v_sal_tax  NUMBER;
      v_aft_ded  NUMBER;
      v_net_sal  NUMBER;
     BEGIN
      v_tot_sal  := tot_sal_com (v_empno);
      v_bef_ded  := bef_tax_ded (v_empno);
      v_temp_sal := temp_sal_btd(v_empno);
      v_tot_tax  := tax_emp_sal (v_empno);
      v_sal_tax  := sal_aft_tax (v_empno);
      v_aft_ded  := aft_tax_ded (v_empno);
      v_net_sal  := tot_net_sal (v_empno);
         DBMS_OUTPUT. PUT_LINE ('Salary before deductions for employee # ' || v_empno || ' equal: ' || to_char(v_tot_sal,'$999,999.99'));
         DBMS_OUTPUT. PUT_LINE ('Before tax deductions for    employee # ' || v_empno || ' equal: ' || to_char(v_bef_ded,'$999,999.99'));
         DBMS_OUTPUT. PUT_LINE ('Salary minus deductions for  employee # ' || v_empno || ' equal: ' || to_char(v_temp_sal,'$999,999.99'));
         DBMS_OUTPUT. PUT_LINE ('Total taxes for              employee # ' || v_empno || ' equal: ' || to_char
    (v_tot_tax,'$999,999.99'));
         DBMS_OUTPUT. PUT_LINE ('Salary minus taxes for       employee # ' || v_empno || ' equal: ' || to_char
    (v_sal_tax,'$999,999.99'));
         DBMS_OUTPUT. PUT_LINE ('After tax deductions for     employee # ' || v_empno || ' equal: ' || to_char(v_aft_ded,'$999,999.99'));
         DBMS_OUTPUT. PUT_LINE ('Net salary for               employee # ' || v_empno || ' equal: ' || to_char
    (v_net_sal,'$999,999.99'));
     END emp_tot_sal; 
    ..................................................
    Salary before deductions for employee # 7369 equal:      $900.00
    Before tax deductions for    employee # 7369 equal:       $95.34
    Salary minus deductions for  employee # 7369 equal:      $804.66
    Total taxes for                   employee # 7369 equal:       $56.33
    Salary minus taxes for          employee # 7369 equal:      $748.33
    After tax deductions for       employee # 7369 equal:        $8.00
    Net salary for                      employee # 7369 equal:      $740.33
    *******************************************************
    
    alary before deductions for employee # 7654 equal:    $2,650.00
    efore tax deductions for    employee # 7654 equal:
    alary minus deductions for  employee # 7654 equal:
    otal taxes for                    employee # 7654 equal:
    alary minus taxes for          employee # 7654 equal:
    fter tax deductions for       employee # 7654 equal:
    et salary for                      employee # 7654 equal:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

    NVL looking for [url http://docs.oracle.com/cd/B28359_01/olap.111/b28126/dml_functions_2048.htm]?

  • Cell borders disappear when the value is null

    I'm now a PL/SQL report. When the value of a column is null, the cell borders disappear. I would have preferred that they do not disappear.

    Any suggestions?
  • XMLAGG seperator return twice if the value is null

    Hi all

    I use the xmlagg function to concatenate the values. If the concatenated field is set to NULL, the separator is to come twice.
    Please see the sample data below.

    CREATE TABLE emp
    (
    EmpNo NUMBER,
    DEPTNO NUMBER (2)
    );

    INSERT INTO EMP VALUES (1, 10);
    INSERT INTO EMP VALUES (1, 20);
    INSERT INTO EMP (empno) VALUES (1);
    INSERT INTO EMP VALUES (1, 30);

    INSERT INTO EMP VALUES (2, 10);
    INSERT INTO EMP VALUES (2, 20);
    INSERT INTO EMP (empno) VALUES (2);
    INSERT INTO EMP VALUES (2, 40);

    Select rtrim (xmlagg (xmlelement (e, deptno |))) (('; .extract ')) ('/ / text()'), '; ') group by empno emp
    Output-> 10; 30; 20
    * 10; 40; 60.

    Oracle version is
    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE Production 11.2.0.3.0
    AMT for 64-bit Windows: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production

    I don't want to display the separator twice, if the NULL value is there in the concatenated column.

    Thanks in advance.

    Tahnks,
    PAL

    You can simply add:

    where deptno is not null
    

    but it will filter a single occurrence of empno having no deptno, so this should be better:

    select rtrim (
             xmlagg (
               case when deptno is not null then
                 xmlelement (e,  deptno || '; ')
               end
             ).extract ('//text()')
           , '; '
           )
    from emp
    group by empno
    ;
    

    But perhaps a simpler solution is to use LISTAGG (the aggregate string is however limited to 4 k characters):

    select empno
         , listagg(deptno, '; ') within group (order by null) as grp
    from emp
    group by empno
    ;
    

    Edited by: odie_63 Apr 30. 2012 10:19

  • Concatenate values Ignore Nulls

    Worm to the database: Oracle Database 10g Enterprise Edition Release 10.1.0.5.0
    create table dm(spec_inst_1 varchar2(30),spec_inst_2 varchar2(30), spec_inst_3 varchar2(30), spec_inst_4 varchar(30), spec_inst_5 varchar2(30))
    
    
    insert into dm
      (spec_inst_1, spec_inst_2, spec_inst_3, spec_inst_4, spec_inst_5)
    values
      ('THIS WILL BE', NULL, 'A TEST', NULL, 'EXAMPLE');
    
    SELECT spec_inst_1 || chr(10) || spec_inst_2 || chr(10) || spec_inst_3 ||
            chr(10) || spec_inst_4 || chr(10) || spec_inst_5
    FROM   dm
    output

    IT COMES

    A TEST

    EXAMPLE OF
    SELECT regexp_replace(regexp_replace(spec_inst_1 || ' ' || spec_inst_2 || ' ' || spec_inst_3 || ' ' || spec_inst_4 || ' ' || spec_inst_5,
                                                  ',+(,|$)',
                                                  '\1'),
                               '^,')
    FROM   dm
    Output:
    THIS IS A SAMPLE TEST

    What I really want is

    IT COMES
    A TEST
    EXAMPLE OF

    Any help would be greatly appreciated.

    Thanks in advance.

    ?

    SELECT nullif(spec_inst_1 || chr(10),chr(10)) ||
           nullif(spec_inst_2 || chr(10),chr(10)) ||
           nullif(spec_inst_3 || chr(10),chr(10)) ||
           nullif(spec_inst_4 || chr(10),chr(10)) ||
           spec_inst_5
    FROM   dm
    
  • Export of values vs. null empty

    I created a form with a Submit button that generates an email with the form of an attachment. The problem is that if there is an empty field, the e-mail contains the value "null" where I want to remain a Virgin. Question: How can I format the JavaScript below to let the empty fields remain blank in the email and not display as "null". ?

    SubmitNulls.png

    Questions of syntax, the main issue is you have = + (which is assignment) instead of += (which is concat). A correct should be +=

  • The selection of two different tables when a value is null or zero in one

    Hi friends,
    I have two tables where the data of...
    so now I have to display the value of tab1.value and if the value that it is) or null I should poster from another table viceversa
    tab1. Value 100 tab2.value 0

    now I get the value of tab1.value

    tab1. Value null tab2.value 200
    now, I should get the value of tab2.value

    If tab1.value is 0 and tab2.value is 0 then display 0

    How to do this

    Thank you
    select  prrv.result_value,
            pg.attribute3,
            case
              when prrv.result_value is null or prrv.result_value = 0 then pg.attribute3,
              else prrv.result_value
            end
    from per_grades pg,pay_run_results prrv
    where prrv.id=pg.id
    /
    

    SY.

Maybe you are looking for