stmt case

Hello

I have three tables
orders(orderid)
editorders(orderid ,editflag)
vvorders(orderid)
I write 2 case stmts

1 if change flag = 23 editorders table for a job that is present in the orders table, and then see the other the order_id show the works of blank.this fine column with below stmt
select o.order_id,
CASE WHEN eo.editflag=23 THEN o.order_id ELSE NULL END AS editorder
from orders o,editorder eo where o.order_id=eo.order_id
2. now if editflag = 23 and if the present order in vvorders then I need to show empty if I show the ordered.if the command id is not present arrested edit then also shows white
select o.order_id,
CASE WHEN eo.editflag=23 THEN o.order_id ELSE NULL END AS editorder,
CASE WHEN eo.editflag=23 and  o.order_id  =  vo.order_id    THEN null ELSEo.order_id  END As vvorder
from orders o,editorder eo,vvorder vo where o.order_id=eo.order_id(+) and o.order_id=vv.order_id(+)
but the problem is that I get a line in the column vvorder when editflag is not 23 and also away from the table vvorders
what I'm doing wrong here

Hello

What does "order_id is not present" mean in terms of your data?
If eo.orederid is NULL, then you could do soemthing like this:

,     CASE
         WHEN  eo.editflag     = 23
         AND   o.order_id     =  vo.order_id     THEN  NULL
         WHEN  eo.orderid     IS NULL          THEN  NULL
                                       ELSE  o.order_id
     END               AS vvorder

I hope that answers your question.
If not, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all tables and also post the results desired from these data.
Explain, using specific examples, how you get these results from these data.

Tags: Database

Similar Questions

  • need to create a stmt case in SPR

    Hello

    Using obiee 10g,.
    I'm trying to create a SPR collar logic, using a case stmt.

    It's like
    sum (case when a! = 0, then another end b).

    and the problem is a and b columns I get 2 different tables.

    I can't do it in my report as do sum will give erroneous results at level so must be done at the level of the RPD only.

    So first I created a logical neck and expression edit I tried this stmt case but since diff taking 2 table since gives me error no mapping physical collar.
    Then I tried as with existing collar like source-case stmt is not ok no problem, but when I put the SUM his me gives error as using the obsolete?

    Is there a way I can do this in RPD?

    Thank you

    Hello

    In your RPD:

    (1) add TLM (source measurement logic mulptile) as below the screen short.then are you add column to table mulitple you are business condition

    See my screen,
    http://ImageShare.Web.ID/images/n7jxv3qkx87w62xy1kz.jpg

    (2) make a double column of a., b. and apply sum to this double column and
    (3) case now set you are in double column

    as below
    (1) provable:
    -case when table1.column_a! = 0 then other end table2.measure table1.measure

    (2) provable
    -case when 'GPC_DataMart '. "" "" GPC_DataMart '. "" """dbo"."" "" "IW_POSITION '." " Product_Type"NoT IN ('Bond', 'Links',"Redeemable bonds")
    then "GPC_DataMart". "" "" GPC_DataMart '. "" """dbo"."" "" "IW_POSITION '." " ' Nominal_AMT' another' GPC_DataMart '. "" "" GPC_DataMart '. "" """dbo"."" "" "MX_SPOT '." " END OF NON_DISC_SPOT ".

    Thank you

    Deva

  • Stmt case answers column fx syntax error

    Hello

    I want to update the 'Project name' column that is of type VARCHAR to "Undefined" If the "Project_date" column has a value of January 1, 1900 12:00 "." I use the stmt case following answers column Fx of 'Project name' but do syntax error.

    BOX WHEN "hand-made". "" Project_date "= January 1, 1900 12:00 ' THEN 'Undefined' ELSEWHERE 'hand made '. "' Project name ' END

    Thanks for your time and your help.

    Hi Ssk,

    It should work. Please make sure once again that the underside of things in your query:

    (1) 1st January 1900 12:00 - value exists in the column
    (2) and remove all spaces between the column name and values.

    Without spaces:

    BOX WHEN "hand-made". "Project_date" = January 1, 1900 12:00 ' THEN 'Undefined' ELSEWHERE 'hand made' "." " The project name"END;

    I would like to know if that works for you or not.

    Thank you
    -Laurence.

  • How to include stmt cases in a group by clause

    Hi I have a question,

    How can I include a case statement in the group by clause?

    For example:

    Select
    (case when x.ctry is null then y.ctry to another x.ctry end) as chief operating officer.
    sum (x.in_amt)
    Of
    tbl1 x,
    TBL2 y
    where
    x.ID = y.id
    Group
    (case when x.ctry is null then y.ctry to another x.ctry end)

    Assume, I had millions of records in the tables, then my guess is, the above query could take huge time.

    Any other way to do it?

    CD / wrote:
    To delete the expression in the GROUP BY clause. I'm advocating no improvement in performance, I don't have?

    No, you didn't. And your advice can remove in fact the expression in the GROUP BY clause. But I am still confused as to why this would be an end in itself.

    Kind regards
    Rob.

  • Reg: Case Stmt

    Hi Experts,

    I implemented a stmt case to load data from a table to another table (the two tables are same pattern only).

    My source as table spec

    Select * from EMP

    Sal jdate empid EmpName
    Emp1 100 1000 2012
    Emp1 101 5000 2012

    even my table target spec also even called as emp1:


    my code is



    Insert into EMP1
    (
    EMPNAME,
    EMPID,
    SAL,
    JDATE

    )

    Select
    EMPNAME,
    EMPID,
    SAL,
    JDATE

    DE)


    Select
    EMPNAME,
    EMPID,
    SAL,
    EMPNAME CASE
    WHEN 'EMP' THEN TO_DATE (C4_JDATE, 'YYYY')
    WHEN 'EMP1' THEN TO_DATE(C4_JDATE,'dd-mon-yyyy')
    WHEN 'EMP2' THEN TO_DATE(C4_JDATE,'mm/dd/yyyy')
    end JDATE
    from EMP
    where (1 = 1)



    This query above works fine, but when the time to display the basic data in emp1 as of data

    JDate as: July 01, 2012

    data remaining is fine.


    Have that I need to change the date format of database to jdate disaplay as 2012 (yyyy)...

    Please suggest me where I need to change...


    Thank you
    H







    )

    Oracle date formats needs to be in a year, month, day, and hour of the elements. If update us or insert a value into a date column that does not have some of these Oracle components using the default values.

    Thus, if provide us everything a year that oracle will generate a date which is midnight the first day of the current month. It's what you do, and is why you currently values JDATE July 1, 2012. If you run your code on Wednesday you will find the JDATEs will be August 1, 2012.

    Cheers, APC

  • case statement in the dynamics

    I have the following statement in the procedure.
    I need TO CHECK WHEN the USER PASSES in VALUES for P_IN_SERVICE THE CORRESPONDING SELECT STATEMENT SHOULD BE ADDED to the WHERE CLAUSE OF stmt.

    Please see below for p_inservice_date is the input to the procedure parameter.
    When P_IN_SERVICE = "IN_SERVICE", then add the correspondent and the statement.
    The user can move all the value to p_in_service
    The list of p_in_service values are 'IN_SERVICE', 'NOT YET in service', 'All PROJECTS'
    How can I achieve and attached to stmt. and what is the problem with my request.

     stmt          := 'SELECT DISTINCT pta.project_id project_id,
                        pta.project_number project_number,
                        pta.project_name project_name,
                        pta.task_id TASK_ID,
                        pta.Task_number TASK_NUMBER,
                        pta.task_name TASK_NAME,
                        pta.award_id AWARD_ID,
                        pta.award_number AWARD_NUMBER,
                        pta.award_short_name AWARD_SHORT_NAME
                        FROM xxdl.xxdl_cd_pta_all pta
                        WHERE pta.task_id   =pta.top_task_id
                        AND pta.cd_proj_type=''Y'' ';
       IF P_IN_SERVICE IS NOT NULL THEN
        stmt         := stmt || CASE WHEN P_IN_SERVICE = 'IN_SERVICE' THEN ' AND (pta.project_id,pta.task_id,pta .award_id in (SELECT d.project_id,d.task_id,d.award_id
                                                                                                                                FROM xxdl.xxdl_cd_debt_item d,XXDL.xxdl_cd_amortization_status s
                                                                                                                                WHERE d.debt_id = s.debt_id
                                                                                                                                AND   s.active = ''Y''
                                                                                                                               AND   s.amortization_status not in (''CIP'',''NONE'')) '
                                  WHEN P_IN_SERVICE = 'NOT YET IN-SERVICE' THEN ' AND (pta.project_id,pta.task_id,pta .award_id in (SELECT d.project_id,d.task_id,d.award_id
                                                                                                                                FROM xxdl.xxdl_cd_debt_item d,XXDL.xxdl_cd_amortization_status s
                                                                                                                                WHERE d.debt_id = s.debt_id
                                                                                                                                AND   s.active = ''Y''
                                                                                                                               AND   s.amortization_status  in (''CIP'',''NONE'')) '
                                     WHEN P_IN_SERVICE = 'ALL PROJECTS' THEN ' AND (pta.project_id,pta.task_id,pta .award_id in (SELECT d.project_id,d.task_id,d.award_id
                                                                                                                                FROM xxdl.xxdl_cd_debt_item d,XXDL.xxdl_cd_amortization_status s
                                                                                                                                WHERE d.debt_id = s.debt_id
                                                                                                                                AND   s.active = ''Y'''
                             ELSE ' ' END;
                        
      END IF;
    Published by: 893185 on November 29, 2011 23:53

    What is the error message?
    check that it works for me...

    CREATE OR REPLACE PROCEDURE test_proc (P_IN_SERVICE IN VARCHAR2, OUT Varchar2 query)
    AS
    stmt varchar2 (4000);
    Start
    stmt: = "SELECT DISTINCT pta.project_id project,
    PTA.project_number numero_projet,
    PTA. PROJECT_NAME project_name,
    PTA. TASK_ID TASK_ID,
    PTA. Task_number TASK_NUMBER,
    PTA.task_name TASK_NAME,
    PTA.award_id AWARD_ID,
    PTA.award_number AWARD_NUMBER,
    PTA.award_short_name AWARD_SHORT_NAME
    OF xxdl.xxdl_cd_pta_all pta
    WHERE pta.task_id = pta.top_task_id
    AND pta.cd_proj_type = "Y" ';
    IF P_IN_SERVICE IS NOT NULL THEN
    stmt: = stmt. CASE WHEN P_IN_SERVICE = 'IN_SERVICE' THEN ' AND (pta.project_id, pta.task_id, pta .award_id in (SELECT d.project_id, d.task_id, d.award_id
    OF xxdl.xxdl_cd_debt_item d, XXDL.xxdl_cd_amortization_status s
    WHERE d.debt_id = s.debt_id
    AND s.active = "Y"
    AND s.amortization_status not in ("PEAK", "NONE")) '
    WHEN P_IN_SERVICE = 'NOT YET in service' THEN ' AND (pta.project_id, pta.task_id, pta .award_id in (SELECT d.project_id, d.task_id, d.award_id
    OF xxdl.xxdl_cd_debt_item d, XXDL.xxdl_cd_amortization_status s
    WHERE d.debt_id = s.debt_id
    AND s.active = "Y"
    AND s.amortization_status in ("PEAK", "NONE")) '
    WHEN P_IN_SERVICE = 'All THE PROJECTS' THEN "AND (pta.project_id, pta.task_id, pta .award_id in (SELECT d.project_id, d.task_id, d.award_id
    OF xxdl.xxdl_cd_debt_item d, XXDL.xxdl_cd_amortization_status s
    WHERE d.debt_id = s.debt_id
    AND s.active = "Y" '
    ELSE ' ' END;

    END IF;
    dbms_output.put_line (stmt);
    end;

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

  • Need if, if... logic of bpel process

    I need to use if so other logic using bpel. I know that there is a switch of Stmt. But if a case is, then other cases Express are is evaluated.

    Can you please let me know how I can do the bpel process assessing all stmts cases that match?

    Yes you can this

    Simply use sequential switch with only one... By sequential I hear is a switch use put your 1st if condition that switch box.
    After that the switch insert another switch with your condition for the if after then on the second switch...

    Let me know if it does not help to solve your problem

  • Update col value based on an another tbl - update, case stmt, subquery

    I need to
    (1) adds a column col1 existing table tbl1;
    (2) the value of col1 will be updated to the value of column col2 from table tbl2.
    (3) if the tbl2 returns the number of records or no records, the value of col1 will default to 0. otherwise, it will be the unique value of col2 of tbl2

    I'm stuck.

    Thank you.

    Hello

    new2Oracle wrote:
    I need to
    (1) adds a column col1 existing table tbl1;

    Use ALTER TABLE.

    (2) the value of col1 will be updated to the value of column col2 from table tbl2.
    (3) if the tbl2 returns the number of records or no records, the value of col1 will default to 0. otherwise, it will be the unique value of col2 of tbl2

    Use an expression BOX to test if there is a line matching or not and return a value on this basis.
    For example:

    UPDATE  tbl1     t1
    SET     col1     = (
                SELECT  CASE
                        WHEN  COUNT (*) = 1
                        THEN  MIN (col2)
                        ELSE  0
                      END
                FROM       tbl2
                WHERE       common_column_1     = t1.common_column_1
                AND       common_column_2     = t1.common_column_2
                )
    ;
    

    Because the subquery uses an aggregate function (COUNTY), the returned value must be as an aggregate (such as MIN) or a constant (such as 0). In cases where there is only 1 row, we could use MAX, AVG or SUM instead of MIN to get the value of this one line.

  • What is the difference in the case of stmt

    Hello
    I get the same result with the following case
    SQL> select (case when empno=7566 then 100 else empno end)
      2  from emp;
    
    (CASEWHENEMPNO=7566THEN100ELSEEMPNOEND)
    ---------------------------------------
                                       7369
                                       7521
                                        100
                                       7654
                                       7698
    
    
    SQL> select (case empno when 7566 then 100 else empno end)
      2  from emp;
    
    (CASEEMPNOWHEN7566THEN100ELSEEMPNOEND)
    --------------------------------------
                                      7369
                                      7521
                                       100
                                      7654
                                      7698
    Apart from this we have no difference between the 2 above cases

    Thank you

    There is no difference in your two case statements. They represent the same logic, and that's why you get the same result.

    There are two ways to use the case as statements evidenced as well.

    "CASE deptno when 10 then...". "is used when we want to match the exact value by using the equality operator. It's the same as 'BOX when deptno = 10 then... ". »

    "CASE when deptno > 10 then...". "is used when the operator is none other than the equality operator"="like" >,<, like,bewteen="" etc"="">

    I thing you got the point.

    Concerning

    Published by: MYRIAM on November 4, 2008 21:44

  • The server used in the case of BefImport link FDMEE

    Hi Experts, please suggest!

    I am using the link in case BefImport server so I do not get the connection details, my selct statement works very well on the side of the DB FDMEE but not BefImport in Jyhton.

    I made a lot of changes but its getting failed again and again. ODI operaoter connect says: AttributeError: 'str' object has no attribute 'executeQuery' in the script according to.

    Also, I tried to insert values directly wihtout param and by removing all functios FDM (stmt, selectStmt, stmtRS etc.) and which is showing import as a green check mark but warning on validation and process journal said "no line of imported generic data.

    Here's the script:

    If fdmContext ["LOCNAME'] == 'ACT ':

    import java.sql SQL

    batchName = "Batch_" + str (fdmContext ["LOCNAME"])

    "insertStmt = '"

    INSERT INTO AIF_OPEN_INTERFACE (BATCH_NAME

    COL01

    COL02

    COL03

    COL04

    COL05

    YEAR

    PERIOD

    PERIOD_NUM

    CURRENCY

    QUANTITY

    ) (VALUES

    ?

    ,?

    ,?

    ,?

    ,?

    ,?

    ,?

    ,?

    ,?

    ,?

    ,?

    )

    """

    stmt = "select * from [hyperion-financial-dev].» [DB_Link]. [dbo]. "[ALL_USD_EXTRACT] where Fyear = 2014 and LMonth = Jan.

    stmtRS = stmt.executeQuery)

    While (stmtRS.Next ()):

    params = [batchName, stmtRS.getString("account"), stmtRS.getString("entity"), stmtRS.getString("XXX"), stmtRS.getString("XXX"), stmtRS.getString("XXX"), stmtRS.getString("Fyear"), stmtRS.getString("Month"), stmtRS.getString("period_num"), stmtRS.getString("Currency"), stmtRS.getBigDecimal("Data")]

    fdmAPI.executeDML (insertStmt, params, False)

    fdmAPI.commitTransaction)

    stmtRS.close)

    stmt. Close()

    Thank you very much!

    The problem with your statement of stmRS = fdmAPI.executeQuery (stmt, params) which is a failure, it's that params is undefined. He expects an array containing the parameters, obviosly you have not declared / defined one. Try this code:

    import java.sql SQL

    batchName = "Batch_" + str (fdmContext ["LOCNAME"])

    insertStmt = "" "INSERT INTO AIF_OPEN_INTERFACE".

    (BATCH_NAME

    COL01

    COL02

    COL03

    COL04

    COL05

    YEAR

    PERIOD

    PERIOD_NUM

    CURRENCY

    QUANTITY

    )

    SELECT?, account, entity, XXX, XXX, XXX, Fyear, month, period_num, currency, data) [hyperion-financial-dev]. [DB_Link]. [dbo]. [ALL_USD_EXTRACT] where Fyear =? and LMonth =? » » »

    params = [batchName, "2014", "Jan"]

    fdmAPI.executeDML (insertStmt, params, False)

    fdmAPI.commitTransaction)

    Assume of course that a DBLink has been implemented at the source database

  • Remove the intersect stmt

    Hi friends,

    I want to delete the records in the table, that is to say the set of records returned after applying intersect stmt as below

    Select FK_SERIES_ID, FK_SYLLABUS_ID, FK_QUALIFICATION_ID, FK_CANDIDATE_MST_ID, D_REG_CAND_SYL_DIMENSION_test FK_DIMENSION_TYPE_ID

    intersect

    Select M_FK_SERIES_ID, M_FK_SYL_ID, M_FK_QFL_ID, M_FK_CAND_MST_ID, M_FK_DIMENSION_TYP_ID

    of dwh.m_reg_cand_syl_dimension

    The above cross stmt returns records for 1446779... I want to delete those no of records in one table that I used in the stmt above, said D_REG_CAND_SYL_DIMENSION_test.

    It is possible...

    Thanks in advance.

    Kind regards

    Saro

    Hello

    If none of the relevant columns in d_reg_cand_syl_dimension_test have the value NULL, then you can do this:

    DELETE d_reg_cand_syl_dimension_test

    WHERE (FK_SERIES_ID, FK_SYLLABUS_ID, FK_QUALIFICATION_ID, FK_CANDIDATE_MST_ID, FK_DIMENSION_TYPE_ID) IN
    (SELECT M_FK_SERIES_ID, M_FK_SYL_ID, M_FK_QFL_ID, M_FK_CAND_MST_ID, M_FK_DIMENSION_TYP_ID

    of dwh.m_reg_cand_syl_dimension

    );

    You don't need to explicitly use INTERSECT in this case; INTERSECT is implicit in the IN condition.

  • Expression of causing in some cases unexpected dumps core XMLTable

    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, Oracle Label Security, OLAP, Data Mining
    and Real Application Testing options
    I get a core dump when I run the following SQL code:
    select xml.CUSTOMER_EXT_REF_NO,
           xml.TRANS_REF_ID,
           xml.TRADE_NAME,       
           (select nvl2(min(crm_ext_ref_no), 'U', 'I')
            from   TPARTY target 
            where  target.crm_ext_ref_no = xml.customer_ext_ref_no),
           xml.RETAILER_ROLE_NO,
           xml.REL_TRANS_REF_ID,
           xml.LSTG_UPDATE_USER,
           xml.LSTG_UPDATE_DATE,
           :LSTG_CREATE_USER,
           xml.LSTG_CREATE_DATE,
           :LSTG_BATCH_ID,
           xml.LEGAL_NAME,
           xml.GST_NUMBER,
           xml.GST_EXEMPT,
           xml.ERR_MSG 
    from vdata_object_cur vdoc, xmltable('for $i in /TransactionDocument/CogneraTransactions/CogneraTransaction/Customer
    return element row {$i/*[(not(name()="STG_ACTION_TYP") and @Common="Y") or @Lookup="Y"],
                        element CUSTOMER_EXT_REF_NO {data($i/RetailerCustomerID)},
                        (: element STG_ACTION_TYP {if (ora:view("TPARTY")/ROW[CRM_EXT_REF_NO=data($i/RetailerCustomerID)]) then "U" else "I"}, :)                     
                        element LEGAL_NAME {data($i/LegalName)},
                        element TRADE_NAME {if (not(string($i/TradeName))) then data($i/LegalName) else(data($i/TradeName))},
                        element GST_EXEMPT {if (string($i/FederalTaxExempt)="0" or not(string($i/FederalTaxExempt))) then "N" else("Y")},
                        element GST_NUMBER {if (string($i/FederalTaxExempt)="0" or not(string($i/FederalTaxExempt))) then "" else(data($i/FederalTaxExempt))}
                       }
    '
    passing vdoc.xml_content
    columns
    CUSTOMER_EXT_REF_NO VARCHAR2(255) path './CUSTOMER_EXT_REF_NO'
    ,TRANS_REF_ID NUMBER(22,0) path './TRANS_REF_ID'
    ,TRADE_NAME VARCHAR2(255) path './TRADE_NAME'
    ,RETAILER_ROLE_NO VARCHAR2(255) path './RETAILER_ROLE_NO'
    ,REL_TRANS_REF_ID NUMBER(22,0) path './REL_TRANS_REF_ID'
    ,LSTG_UPDATE_USER VARCHAR2(30) path './LSTG_UPDATE_USER'
    ,LSTG_UPDATE_DATE DATE path './LSTG_UPDATE_DATE'
    ,LSTG_CREATE_DATE DATE path './LSTG_CREATE_DATE'
    ,LEGAL_NAME VARCHAR2(255) path './LEGAL_NAME'
    ,GST_NUMBER VARCHAR2(255) path './GST_NUMBER'
    ,GST_EXEMPT VARCHAR2(1) path './GST_EXEMPT'
    ,ERR_MSG VARCHAR2(4000) path './ERR_MSG'
    ) xml 
    where VDOC.DATA_OBJECT_ID = 59293;
    Error of the client (TOAD) is:

    ORA-03113: end of file on communication channel

    Trace says:

    Exception [type: SIGSEGV, address not mapped to object] [ADDR:0xF8] [PC:0 x 2447652, kkqcsiqbcbk () + 172] [flags: 0x0, count: 1]
    Errors in the /oracle/diag/rdbms/vm01/vm01/trace/vm01_ora_6483.trc file (incident = 170590):
    [ORA-07445: exception encountered: core dump [kkqcsiqbcbk () + 172] [SIGSEGV] [ADDR:0xF8] [PC:0 x 2447652] [address not mapped to object]]
    Incident details in: /oracle/diag/rdbms/vm01/vm01/incident/incdir_170590/vm01_ora_6483_i170590.trc

    .. .the current sql for the session statement is the one above.

    If I comment on the inline sql:
    ...
    (select nvl2(min(crm_ext_ref_no), 'U', 'I')
            from   TPARTY target 
           where  target.crm_ext_ref_no = xml.customer_ext_ref_no)
    ...
    OTHERWISE, I use the commented on ora: opinion:
    element STG_ACTION_TYP {if (ora:view("TPARTY")/ROW[CRM_EXT_REF_NO=data($i/RetailerCustomerID)]) then "U" else "I"},
    OR, I've read the XML in a CLOB column rather (to test, I had the same CLOB_CONTENT and XML_CONTENT data in the view 'vdata_object_cur'):
    passing xmltype.createxml(vdoc.clob_content)
    .. the stmt .then DON'T crash and returns the expected data.

    Stranger still, because my SQL statements are dynamically generated from metadata, I have many more cases of the very similar sql that does NOT fall down for example, I use the online display and read data from the xmltype XML_CONTENT column.

    The solution has been in production for about 2 years, 'by the way' the XML as a variable binding (from: v_xml) without any problems (apart from the fact that performance was poor that's why I'm improving the solution to read the xml code in the column XML_CONTENT which is defined as XMLTYPE with binary storage and has a XMLIndex to this topic). The use of the XMLIndex has reduced a file load which would take 8hrs to in just 8 minutes.

    I also tried a "pipe" ORDERLY and LEADER to ensure that Oracle generated rowset XMLTABLE first, but I still get the dump.

    Of course, with some unexpected dumps core, I'd get normally a TAR raised, but my dev env prod a little different and I don't know if this only happens in my dev env (a custom Oracle Developer days VM)...

    Any ideas?

    Thanks in advance.

    Published by: Pollocks01 on March 12, 2013 06:32

    Hello

    Of course, with some unexpected dumps core, I'd get normally a TAR raised, but my dev env prod a little different and I don't know if this only happens in my dev env (a custom Oracle Developer days VM)...

    Any ideas?

    What kind of help do you need?

    As you say, a core dump is a job for Oracle Support, except if the trace shows a well-known problem but that doesn't seem to be the case here.

    If you want someone to confirm the problem on another instance, then you will need to provide a case of test complete with table/index CFDS and, of course, a doc XML example.

  • error XML parsing at insert stmt.

    my xml file having data like this
    <?xml version="1.0" encoding="utf-8"?> 
    <flexcube>
       <contractStatus>      
              <system>TRESTEL</system>        <accessKey>eDealer</accessKey><password>eDealer</password>
              <uuid>eDealer</uuid>        <sequenceNumber>202980100</sequenceNumber>
              <sourceAddress>M@1129800ternal@111698@FX@1</sourceAddress>
            <signature>FEDCBA98765432100123456789ABCDEF</signature>      
           <contractRef>1180100</contractRef>        <branch>018</branch>     
       </contractStatus> 
    </flexcube>
    <flexcube>
       <contractStatus>      
              <system>GRVKSEL</system>        <accessKey>eDealer</accessKey><password>eDealer</password>
              <uuid>eDealer</uuid>        <sequenceNumber>206981112980100</sequenceNumber>
              <sourceAddress>M@1129800002nal@1112980100@20698@FX@1</sourceAddress>
            <signature>FEDCBA98765432100123456789ABCDEF</signature>      
           <contractRef>80100</contractRef>        <branch>018</branch>     
       </contractStatus> 
    </flexcube>
    <flexcube>
       <contractStatus>      
              <system>UTIOSEL</system>        <accessKey>eDealer</accessKey><password>eDealer</password>
              <uuid>eDealer</uuid>        <sequenceNumber>206981112980100</sequenceNumber>
              <sourceAddress>M@2011-10-ternal@1112980100@20698@FX@1</sourceAddress>
            <signature>FEDCBA98765432100123456789ABCDEF</signature>      
           <contractRef>1112980100</contractRef>        <branch>018</branch>     
       </contractStatus> 
    </flexcube>
    
    means having 3 records
    
    i want to insert all three records into the table.
    
    below stmt not working..
    any solutions??
    
    
     INSERT INTO test_1 (q1, q2, q3, q4)
          SELECT q1, q2, q3, q4
    
        FROM XMLTable(flexcube/contractStatus'
               passing xmltype(bfilename(p_directory, p_filename), nls_charset_id('AL32UTF8'))
                columns q1 varchar2(200)  path 'system'
                      , q2            varchar2(500)  path 'accessKey'
                      , q3      varchar2(100) path 'password'
                      , q4               varchar2(800) path 'contractRef'
              )  ;

    Hello

    below stmt does not...

    Useful error message, you can give us?

    In any case... I see two problems here:

    (1) the minor is the obvious syntax error here (no opening quote), but it's probably a typo:

    FROM XMLTable(flexcube/contractStatus'
    

    (2) the major is that your file contains an invalid XML document (no single root), but a fragment of XML instead as such cannot have an XML prologue.
    The contents of your file was really what (no prologue):

    
       
              TRESTEL        eDealereDealer
              eDealer        202980100
              M@1129800ternal@111698@FX@1
            FEDCBA98765432100123456789ABCDEF
           1180100        018
       
    
    
       
              GRVKSEL        eDealereDealer
              eDealer        206981112980100
              M@1129800002nal@1112980100@20698@FX@1
            FEDCBA98765432100123456789ABCDEF
           80100        018
       
    
    
       
              UTIOSEL        eDealereDealer
              eDealer        206981112980100
              M@2011-10-ternal@1112980100@20698@FX@1
            FEDCBA98765432100123456789ABCDEF
           1112980100        018
       
    
    

    This would have worked:

    SQL> SELECT q1, q2, q3, q4
      2  FROM XMLTable('/flexcube/contractStatus'
      3         passing xmlparse( content
      4                           dbms_xslprocessor.read2clob(
      5                             'TEST_DIR'
      6                           , 'flexcubes.xml'
      7                           , nls_charset_id('AL32UTF8')
      8                           ) )
      9         columns q1 varchar2(200) path 'system'
     10               , q2 varchar2(500) path 'accessKey'
     11               , q3 varchar2(100) path 'password'
     12               , q4 varchar2(800) path 'contractRef'
     13       )
     14  ;
    
    Q1          Q2          Q3          Q4
    ----------- ----------- ----------- -------------
    TRESTEL     eDealer     eDealer     1180100
    GRVKSEL     eDealer     eDealer     80100
    UTIOSEL     eDealer     eDealer     1112980100
                                                     
    

    If you have control over the incoming file, I suggest you correct its content is by adding a root element, then you can keep the prologue and use your first query (after correction of typo's fault), or remove the prologue entirely and use the above.

  • 7 leather Apple iPhone case

    Just got the black leather for my iPhone case Black 7.  The finish on the leather is slippery in my hand, will be leather percent and easier to hold after a period of use?

    Hmm, probably not.  You can consider a case for Apple.  They resemble leather cases, but they are more sticky and have a more sticky feeling.  Good luck.

    Let us know what you decide :-)

  • Leather case does not perfectly match iPhone 7

    I recently bought the Apple black leather cover for my new iPhone 7. After putting on the phone, I noticed that it is not firmly on the edges. I can hear the Squeak of leather when I apply a light pressure on the sides (this happens when you hold the phone). I compared it with leather for iphone 6s cases; they do not have this problem. For an expensive case it should perfectly around the phone. -What other people have experienced? Any statement of Apple? It is interesting to go to the Apple store for?

    Thank you

    Hello

    If you are concerned about a manufacturing defect, contact Apple support (mail service may be available) or make a Genius Bar reservation so that your case checked and, according to the decision of Apple, replaced:

Maybe you are looking for

  • Wireless guard disconnection on Satellite T110

    Hi, I just bought a T110. Everything works fine except the wireless, it keeps disconnecting.I've read on the Web from Toshiba site is made to save energy, so I changed the network adapter settings so that it will go to off when running on battery pow

  • Problem of sound events added

    My default sound events work fine but when adding a new wav. a sound event file I don't hear it. When I try to listen to the sound, I get: Windows cannot read the wav.file "xx". The file may be damaged or may use an unrecognized compression format. T

  • My screen went black randomly and I have to restart my computer

    original title: why my screen has gone dark? All of a sudden my screen went dark. I did nothing except restart my computer.

  • Dual Boot Windows 7 & 8.1 problem

    In my pc, dual boot system is generated.Both windows 7 & 8.1 operating system are separately partitioned.I used it several days, but during the 2 days windows 7 was disturbing.For this, I just formatted and reinstalled windows 7.But now I can see tha

  • Can I disable W7 (Vista Upgrade) in my dead computer, then sell W7 upgrade?

    My HP computer no longer works.   He originally had Vista.   I bought the W7 Vista Upgrade and installed. Now this computer no longer works (I do not have the removed disk and it's correct)... can I somehow disable the W7 upgrade can sell the 2 discs