query on the error of column other_xml...

Hi all

I am running the below query to retrieve the data outline of v$ sql_plan (mark other_xml column), but I get the error... below, this works perfectly well on 10.2.0.4 + version... but on 10.2.0.2 and and 10.2.0.1 I get the error... below any idea how to solve this problem?


SQL > @sql_hint
Enter the value of sql_id: d15cdr0zt3vtp
Enter the value for child_no: 0
ExtractValue (value (d), ' / hint ') as outline_hints
*
ERROR on line 2:
ORA-00904: "D": invalid identifier


the request is made by below...
http://kerryosborne.Oracle-guy.com/scripts/sql_hints.SQL

Select
ExtractValue (value (d), ' / hint ') as outline_hints
Of
XMLTable ("'/ * / outline_data/suggestion")
by the way)
Select
XmlType (other_xml) as xmlval
Of
v$ sql_plan
where
sql_id as nvl ('& sql_id', sql_id)
child_number = & child_no
and other_xml is not null
)
) d ;

user8363520 wrote:

I am running the below query to retrieve the data outline of v$ sql_plan (mark other_xml column), but I get the error... below, this works perfectly well on 10.2.0.4 + version... but on 10.2.0.2 and and 10.2.0.1 I get the error... below any idea how to solve this problem?

This suggests a dependency of the version or the bug.
Here is an alternative that might work on older versions - I think I wrote it when 10.2.0.1 is out:

select
     extractvalue(value(t),'.') hint
from
     table(
          select
               xmlsequence(
                    extract(xmltype(other_xml),'/other_xml/outline_data/hint')
               )
          from
               v$sql_plan
          where
               sql_id = '&m_sql_id'
          and     child_number = &m_child_no
          and     other_xml is not null
     )     t
/

Concerning
Jonathan Lewis

Tags: Database

Similar Questions

  • Query for the value of column combinations

    -- Input Data
    with t as (select 'H' as symbol, 1 as id from dual union all
              select 'H' as symbol, 2 as id from dual union all
              select 'H' as symbol, 3 as id from dual union all
              select 'H' as symbol, 4 as id from dual
              )
    ,s as (select 'L' as symbol, 1 as id from dual union all
              select 'L' as symbol, 2 as id from dual union all
              select 'L' as symbol, 3 as id from dual union all
              select 'L' as symbol, 4 as id from dual
              )         
    --select * from t,s

    [pre]
    -- Required output is four columns with the below values. The column headings are the ids from the original query. Therefore I suspect the solution would have some sort of crosstab..

    id1---id2---id3---id4
    HHHH     
    HHHL          
    HHLH     
    HHLL                    
    HLHH     
    HLHL          
    HLLH     
    HLLL     
    LHHH     
    LHHL          
    LHLH     
    LHLL                    
    LLHH     
    LLHL          
    LLLH     
    LLLL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   


    Select sys_connect_by_path (symbol) "id1 - id2 - id3 - id4.
    from (select * from t union all)
    Select * s)
    where connect_by_isleaf = 1
    Start with id = 1
    Connect prior ID = ID - 1;

  • Classic report shows wrong "could not parse the SQL query: ORA-00942" error after migrating app to the new environment

    After migrating my APEX 4.1 application to a new environment, one classic report displays a "cannot parse the SQL query: ORA-00942: table or view does not exist" error when the page is displayed. Change the region to report SQL source to somehow (e.g., remove spaces, changing the order of the variables in the WHERE clause) immediately solves the problem, but by returning to the source of the region causes the report error again (the source region valid code without error, however).

    Throw the error message:

    Select v.id,

    v.Col1

    of view_vw v

    where (: P1_FILTER is null or)

    v.col2 = :P1_FILTER)

    Do not throw error:

    Select v.id,

    v.Col1

    of view_vw v

    where (:P1_FILTER is null or)

    v.col2 = :P1_FILTER)

    Changing the order of column in the report has the same effect; i.e. He arranges, but return back to the original column order causes the error to display.

    It's as if a cached result for the correct select statement used by the report is displayed. However, the application does not use the caching of page/region. Any ideas of what could be the cause?

    He solved. Ultimately, all that was necessary was to clear the DB cache using:

    alter system flush shared_pool;

  • Error in query of the ordered result query contained CFSCRIPT in CF10

    I came across a very interesting error when you perform a query of a query within a CFSCRIPT tag...

    I get a result in withdrawal of a SQL Server stored procedure.  This is a list of metric names (METRIC_ID) and the metric measures themselves.

    I need to pull the METRIC_ID for this outcome, plans to make a JOIN on another query having display and other attributes of formatting for display in a web page.

    The following code runs without error when the query is not ordered:

    var displayDataQuery = new Query();

    displayDataQuery.setName ("joinedQuery");

    displayDataQuery.setDBType ("query");

    displayDataQuery.setAttributes (qry1 = fullMetricsListQuery);

    displayDataQuery.setAttributes (qry2 = arguments.cubeData);

    displayDataQuery.setSQL ("SELECT METRIC_ID FROM qry2");

    var tempResultSet = displayDataQuery.execute ();

    var cubeMetricIDList = tempResultSet.getResult ();

    When I take the same results of exact query of the same stored procedure, but it is controlled by an ORDER BY clause, this statement;

    var tempResultSet = displayDataQuery.execute ();

    get the following error: "value" cannot be converted to a number.»   It is 2 apostrophes, meaning an empty string between 'value' and 'impossible.'


    Wait, what?  I want to just a list of names metrics, varchars.  Why is there a conversion error...?


    The error in the end pprovided back to ColdFusion10\cfusion\CustomTags\com\adobe\coldfusion\base.cfc, line 445

    OK, this is where it takes an interesting twist...

    Starting at line 444, in base.cfc, line 445 bolded in red:

    "< cfif sqlType NEQ" "and arraylen (sqlParams) gt 0 >."

    < cfloop index = "i" = "2" to = "#ArrayLen (sqlArray) #" >

    < arraylen (sqlParams) of lte cfif (i-1) >

    < cfqueryparam attributeCollection = "#sqlParams [i-1] #" / >

    < / cfif >

    #getPreserveSingleQuotes (sqlArray [i]) #.

    < / cfloop >

    < / cfif >

    So if I understand correctly, when I have a query, unordered, copy the following code in base.cfc bed the SQL code in displayDataQuery.setSQL ("SELECT METRIC_ID FROM qry2"), but is not when the query is controlled by METRIC_ID... ?

    Oh, wait... the CFDUMP when using an ordered set of data says something else...

    query
    RESULTSET
    CACHINGfake
    EXECUTIONTIME4
    SQLSELECT * FROM qry1 ORDER OF METRIC_ID, LOCATION

    I'm a bit confused why the same data in works set ordered, while an ordered set causes this error.

    All useful suggestions or clues would be greatly appreciated!

    Do you mean that the error has occurred without the order by clause?

    Given that the error only occurs with one unsorted data set, I'm a bit confused why you ask this...?

    I've followed your suggestion:

    Run the same code, but use the cfquery instead of cfscript tag. The error persists there?

    My assumption was that your suggestion is to test it against a set of ordered data because that is what caused the original error.

    Unfortunately, the error occurs in the scenarios the tag and script-based.

    There is absolutely no sense why this happens.  The order of a set of data should have no impact on a query of a query on a column defined as varchar.

    If there are null values in the other columns defined as a type of digital, big deal, the code in question does not seek to assess these columns.  Still more interesting thing is why disorderly orderly vs makes a difference.

  • End of the file has detected the error for more than one column of a PDM file playback

    Hello fans of LabVIEW,.

    I write the data in several columns of a PDM file. After that, I would like to read the data in each column to treat it.

    writing data works without any problem, if I get a PDM file with say 4 columns of data. When I try to read these columns now, LabVIEW always gives me error 4 "end of file" for all but a PDM read functions. Regardless of the number of columns I've read or how big they are, its still the same. LabVIEW reads a column and gives the error for all other tdms read functions.

    Does anyone has an idea how to solve this problem?

    A picture of my VI and the error is attached.

    Pls find attached extract

  • An error occurred when querying for the pending operations

    Original title: sysprep problem
    I have an acer aspire 5738Z, I use windows 7 (64 bit) I try to open sysprep.exe and it does not open, a text box appears saying "an error occurred when querying for the pending operations. What can I do to fix this?

    Hello

    Thanks for posting the request in the Microsoft community forums.
    I understand that you receive the error "an error has occurred when querying for outstanding operations" when trying to open sysprep.exe on the computer.

    You can try the solutions provide and check if it helps solve the issue.

    Method 1:
    You can scan System File Checker to fix corrupted files.
    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
    http://support.Microsoft.com/kb/929833

    Method 2:
    If the steps above fail then you can try the steps and check.

    a. run regedit by typing regedit in start search by pressing ENTER.
    b navigate to the following key:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
    Key: RegistrySizeLimit
    Type: REG_DWORD
    Value: 0xffffff (4294967295)
    c. reset.

    If you need help with Windows, keep us informed. We will be happy to help you.

  • Need help to build the query/pl-sql block to get the query result and the name of column from DB table in the form of key-value pairs.

    Hi Experts,

    I have a DB table has columns of more than 50.

    I question this table, it should only return one line at any time. as sqldeveloper below image.

    here, I need to build block pl/sql-query, Discover the column in the table as a key and query result as values.

    Eg:     Key                         -  Value

    TASK_EVENT_ID - 1765

    EVENT_TYPE - ASR_UPDATE

    ... etc until all of the columns in my table.

    Experts please comment on that point, appreciate your help on this.

    Thank you

    -Vincent.

    Here is an approach using DBMS_SQL to iterate over the columns of key / value to assign... (Little code snipped for brevity)

    create or replace procedure (task_expired)

    v_store_id in full,

    v_task_action_id in full,

    v_job_id in full

    )

    as

    -[SNIP code...]

    v_sql VARCHAR2 (4000): = ' select * from my_table where PK = 123';  -Your SQL here!

    v_v_val VARCHAR2 (4000);

    v_n_val NUMBER;

    v_d_val DATE;

    v_ret NUMBER;

    c NUMBER;

    d NUMBER;

    col_cnt INTEGER.

    f BOOLEAN;

    rec_tab DBMS_SQL. DESC_TAB;

    col_num NUMBER;

    vAsString VARCHAR2 (4000);

    BEGIN

    -[SNIP code...]

    Message_properties. CORRELATION: = "EDF_EVENT";

    MSG: = SYS. AQ$ _JMS_BYTES_MESSAGE. Construct();

    Msg.set_string_property ('queueName', ' shipping/csi_cth');

    Msg.set_string_property ('MODE', 'CR8');

    c: = DBMS_SQL. OPEN_CURSOR;

    DBMS_SQL. PARSE (c, v_sql, DBMS_SQL. NATIVE);

    d: = DBMS_SQL. Execute (c);

    DBMS_SQL. DESCRIBE_COLUMNS (c, col_cnt, rec_tab);

    1.col_cnt J

    LOOP

    CASE rec_tab (j) .col_type

    WHEN 2 THEN

    DBMS_SQL. DEFINE_COLUMN (c, j, v_n_val);      -Number

    WHEN 12 CAN

    DBMS_SQL. DEFINE_COLUMN (c, j, v_d_val);      -Date

    ON THE OTHER

    DBMS_SQL. DEFINE_COLUMN (c, j, v_v_val, 2000);   -Else treat as varchar2

    END CASE;

    END LOOP;

    LOOP

    v_ret: = DBMS_SQL. FETCH_ROWS (c);

    WHEN OUTPUT v_ret = 0;

    1.col_cnt J

    LOOP

    -Fetch each column to the correct data type based on coltype

    CASE rec_tab (j) .col_type

    WHEN 2 THEN

    DBMS_SQL. COLUMN_VALUE (c, j, v_n_val);

    vAsString: = to_char (v_n_val);

    WHEN 12 CAN

    DBMS_SQL. COLUMN_VALUE (c, j, v_d_val);

    vAsString: = to_char (v_d_val, ' DD/MM/YYYY HH24:MI:SS');

    ON THE OTHER

    DBMS_SQL. COLUMN_VALUE (c, j, v_v_val);

    vAsString: = v_v_val;

    END CASE;

    Msg.set_string_property (rec_tab (j) .col_name, vAsString);

    END LOOP;

    END LOOP;

    DBMS_SQL. CLOSE_CURSOR (c);

    DBMS_AQ. ENQUEUE (queue_name-online 'cbus.aqjms_common',

    Enqueue_options => Enqueue_options,

    Message_properties => Message_properties,

    Payload-online msg,

    Msgid => Message_handle);

    dbms_output.put_line ('00 Msgid =' |) Message_handle);

    dbms_output.put_line('===Done=');

    -[SNIP code...]

    END;

    /

  • Why I don't have the error: ORA-14551: cannot perform a DML operation inside a query

    Hello

    create table table_1 (phone number)

    create or replace function function_a return number
      is
        l_rv number;
      begin
        l_rv := dbms_random.value();
        insert into table_1 values(l_rv);
        return l_rv;
      end;
    
    

    Select double function_a

    Now, I get the error:

    ORA-14551: cannot perform a DML operation inside a query

    ORA-06512: at "FUNCTION_A", line 6

    create the table table_2 (phone number)

    insert into table_2 select function_a from dual
    
    

    Now, I make the same mistake. It is to insert records into table_2

    Can someone please clarify this?

    Database Oracle 12 c Enterprise Edition Release 12.1.0.1.0 - 64 bit Production

    Post edited by: O - O added: (select double function_a)

    O - O wrote:

    To be called from instructions SQL, stored function must obey "purity" following rules, which are intended to control the side effects:

    • rule1) When it is called from a SELECT statement or a parallelized INSERT , UPDATE , or DELETE statement, the function cannot change database tables.
    • rule2) When it is called from a INSERT , UPDATE , or DELETE statement, the function cannot query or modify database tables modified by that statement.

    Can you please explain this? I think that these statements are contradicted with

    insert into select double function_a table_2

    Now, I make the same mistake. It is to insert records into table_2

    When your function is called by a select statement, an error is triggered because of rule1).

    When your function is called in an insert statement, no error is raised. The insert does not work in parallel (this is an insert row after all). So rule1) is also not infringed. The insert is on the table2, change table1. Because it does not modify the same table rule2) is not violated. So no reason to trigger an error.

  • Query the number of columns have data in a Collection

    Hello

    Apex 4.2.

    I use the EXCEL2COLLECTIONS plugin to import csv data into a collection.

    I am now validate the collection and would like to know the number of columns in the collection were given.

    For example, if my collection has less than 10 columns with data, then I want to generate an error

    Is there a way to do it

    Concerning

    Gus

    Gus C wrote:

    How and where is the best place to use this code.

    What type of validation

    You said:

    I am now validate the collection and would like to know the number of columns in the collection were given.

    and

    Otherwise, I should raise an error or enter an error indicator and the error message in columns 11 and 12

    So one could assume that aspect was already developed.

    The short answer is that without knowing the details of what you are trying to do, how your do it, and how you have reached: don't know.

    I expect this kind of import of data includes several pages forming a multi-step wizard, so there are a lot of possibilities. For example, use it in a cursor FOR loop to set the above error flag and message columns, then conditionally branch to a report with errors page if error indicators exist in the collection, or the next page of the wizard, if they are not.

  • 404 error when the lowest selection (column name) for the metadata 11 g dictionary


    Hi all

    I get a 404 error when I select a column name and click the link for dictionary of metadata. I get the 404 because obiee is allowing more 179 characters for the web link. You do not get a 404 error if you click on one of the shorter column names.

    When you select the number of offices with commands and then click the metadata dictionary button you get the error 404 below and the web address is truncated causing the 404

    This is the product link

    http / / self/analyticsRes/SampleAppLite_BI0024/SubjectArea/PRCAT_Sample_Sales_Lite80cb6a2e /.

    PRT_Calculated_Facts80cb6aa9/PRC_N_of_Offices_with_Or80cb6cfb.x

    If you type the ml at the end, you can see the Web page you want. Also if you click on the area in question and then click the dictionary of metadata and access the column from here the link works.


    otn screen shot2.png

    We receive this error in our Dictionary of metadata generated, but I can also reproduce the problem with the sample app, we have placed the dictionary in the folder anlyticsRes.

    I just wanted to check to see if someone else has this problem.

    Thanks in advance!

    S. Clark

    I opened a SR and a bug has already been reported, and the solution is in the latest patch.

    Solution

    The fix for the Bug 17449036

    is included in the bundle 20124371 Patch (patch bundle 11.1.1.7.150120). See this note for more information:

    Note 1488475.1: OBIEE 11 g: required and recommended patches and Patch Sets

    There is also a one-off Patch 17449036 on top of previous patch bundle for different platforms.
    It is advisable to be in the latest patch bundle. In this case, you prefer to apply exceptional measures, you can do but
    It is not for all platforms and all the patches together.

  • When I try to change the interactive report columns, then triggers the error: "unable to change column attributes. "ORA-01403: no data found. Pls tell me why?

    When I try to change the interactive report columns, then triggers the error: "unable to change column attributes. "ORA-01403: no data found. Pls tell me why?

    You use listener EA3 ADR?

  • How to add a 'hint' in my query to resolve the error "hash aggregation can be done."

    I have a query Oracle 10 SQL that works very well in the environment of train, but fails live (presumably because of the volume). I get the error. "ORA-00600: internal error code, arguments: [32695] [hash aggregation cannot be done.  Google suggests that I can use a trick to fix this if I'm luckey (i.e. "NO_USE_HASH_AGGREGATION"). How to incorperate a 'hint' in my query?  (where in my query I would put the suspicion and what kind of syntax)?  Thank you!!!

    Optimizer tips shouln can't be used to try to solve the problems, they should be used to analyze issues.

    Before attempting to apply patches of poor to an unknown cause, you'd be btter to identify what is the real problem.

    ORA-00600 errors indicate an internal error and should be reported to Oracle via My Oracle Support (it is also a search tool of ORA-00600 on My Oracle Support, which can help to tell you if it is a known problem that is fixed by a solution of workaround or bug fix/patch etc..)

    Do not use the tips where they should not be used.  Correct the cause of the problem, not the symptom.

  • DAC 11.1.1.6.4 fails with the error cannot get columns: ORA-01403: no data found

    Hello

    We strive to run a full charge in DAC, but it is a failure.

    The S_ASSET table is empty and therefore, we get the error

    Could not get column: ORA-01403: no data found

    We were not facing this error in DAC 10 g but after upgrade to DCA 11 g, this task has no place if the array is empty. How remove this restriction and DAC will work perfectly even if the tables are empty to full charge?

    CAD DETAILS

    Console Administration Oracle BI DW

    CAD build a 11.1.1.6.4.20121119.2022 Build date: November 19, 2012

    Management Console to install, configure, and administer the Warehouse Analytics of Oracle Business

    Schema version - 47, Index version - 36, repository version - 6, data version Seed - 16

    INFORMATICA - VERSION9.0.1 HF2


    Here's the log of IMG_BUILD - S_ASSET when this task was running in DAC 10 g. The task facing any problem when S_ASSET table was empty.

    [code]

    2013-12-23 15:34:29.644 CHANGE CAPTURE: IMG_BUILD - internal S_ASSET began.

    the number of days of prunes: 4

    After change data capture: 2013-12-19 12:23:19.332 in full Mode.

    2013-12-23 15:34:29.69 - execution:

    TRUNCATE TABLE S_ETL_I_IMG_6

    2013-12-23 15:34:29.89 - executed successfully.

    2013-12-23 15:34:29.9 - execution:

    TRUNCATE TABLE S_ETL_R_IMG_6

    2013-12-23 15:34:30.145 - executed successfully.

    2013-12-23 15:34:30.16 - execution:

    TRUNCATE TABLE S_ETL_D_IMG_6

    2013-12-23 15:34:30.198 - executed successfully.

    2013-12-23 15:34:30.236 - execution:

    INSERT / * + APPEND * / INTO S_ETL_R_IMG_6

    (ROW_ID, MODIFICATION_NUM, LAST_UPD)

    SELECT

    ROW_ID

    MODIFICATION_NUM

    LAST_UPD

    Of

    S_ASSET

    WHERE

    LAST_UPD > TO_DATE ('2013-12-19 12:23:19 ',' ' YYYY-MM-DD HH24:MI:SS)

    2013-12-23 15:34:30.968 - executed successfully.

    2013 12-23 15:34:30.989 - execution of deleting duplicates rowid.

    2013-12-23 15:34:31.01 - successfully deleting duplicates rowid.

    2013-12-23 15:34:31.27 - execution:

    DROP VIEW V_ASSET

    2013-12-23 15:34:31.566 - executed successfully.

    2013-12-23 15:34:31.569 - execution:

    CREATE VIEW V_ASSET AS

    SELECT

    *

    Of

    S_ASSET

    2013-12-23 15:34:31.743 - executed successfully.

    2013-12-23 15:34:31.78 - execution:

    SELECT COUNT (*) IN S_ASSET

    The County is: 0

    Executed successfully: CHANGE CAPTURE: IMG_BUILD - internal S_ASSET

    (Number of attempts: 1).

    Executed orders:

    IMG_BUILD - internal

    2013-12-23 15:34:31.851 CHANGE CAPTURE: IMG_BUILD - internal S_ASSET has finished running with the completed state.

    The same task, IMG_BUILD - S_ASSET fails when it is running in DAC 11 g, because the table is empty. Here is the log for the failure of the task to 11g.

    [code]

    2013-12-27 21:21:47.497 acquisition of resources

    2013-12-27 21:22:20.33 acquired resources

    2013-12-27 21:22:20.787 CHANGE CAPTURE: IMG_BUILD - internal S_ASSET began.

    the number of days of plum: 5760

    After change data capture: 2013-12-23 21:19:19.233 in full Mode.

    21:22:21.211 2013-12-27 - execution:

    TRUNCATE TABLE S_ETL_I_IMG_6

    2013-12-27 21:22:22.384 - executed successfully.

    21:22:22.389 2013-12-27 - execution:

    TRUNCATE TABLE S_ETL_R_IMG_6

    2013-12-27 21:22:22.532 - executed successfully.

    21:22:22.534 2013-12-27 - execution:

    TRUNCATE TABLE S_ETL_D_IMG_6

    2013-12-27 21:22:22.546 - executed successfully.

    21:22:22.55 2013-12-27 - execution:

    INSERT / * + APPEND * / INTO S_ETL_R_IMG_6

    (ROW_ID, MODIFICATION_NUM, LAST_UPD)

    SELECT

    ROW_ID

    MODIFICATION_NUM

    LAST_UPD

    Of

    S_ASSET

    WHERE

    LAST_UPD > TO_DATE ('2013-12-23 21:19:19 ',' ' YYYY-MM-DD HH24:MI:SS)

    2013-12-27 21:22:22.614 - executed successfully.

    2013 12-27 21:22:22.616 - execution of deleting duplicates rowid.

    2013-12-27 21:22:24.72 - successfully deleting duplicates rowid.

    Could not get column: ORA-01403: no data found

    FAULT INFO: Error executing: CHANGE CAPTURE: IMG_BUILD - internal S_ASSET

    MESSAGE: com. Siebel.Analytics.etl.Execution.exceptions.ChangeCaptureTaskFailedException: Change Capture failed.

    EXCEPTION CLASS: java.lang.RuntimeException

    com.siebel.analytics.etl.etltask.GenericTaskImpl.doExecuteWithRetries(GenericTaskImpl.java:536)

    com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:372)

    com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:253)

    com.siebel.analytics.etl.etltask.GenericTaskImpl.run(GenericTaskImpl.java:655)

    com.siebel.analytics.etl.taskmanager.XCallable.call(XCallable.java:63)

    java.util.concurrent.FutureTask$ Sync.innerRun (FutureTask.java:303)

    java.util.concurrent.FutureTask.run(FutureTask.java:138)

    java.util.concurrent.Executors$ RunnableAdapter.call (Executors.java:441)

    java.util.concurrent.FutureTask$ Sync.innerRun (FutureTask.java:303)

    java.util.concurrent.FutureTask.run(FutureTask.java:138)

    java.util.concurrent.ThreadPoolExecutor$ Worker.runTask (ThreadPoolExecutor.java:886)

    java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:908)

    java.lang.Thread.run(Thread.java:619)

    : CAUSE:

    MESSAGE: change Capture failed.

    EXCEPTION CLASS: com.siebel.analytics.etl.execution.exceptions.ChangeCaptureTaskFailedException

    com.siebel.analytics.etl.etltask.ChangeCaptureTask.executeChangeCapture(ChangeCaptureTask.java:93)

    com.siebel.analytics.etl.etltask.ChangeCaptureTask.doExecute(ChangeCaptureTask.java:46)

    com.siebel.analytics.etl.etltask.GenericTaskImpl.doExecuteWithRetries(GenericTaskImpl.java:477)

    com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:372)

    com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:253)

    com.siebel.analytics.etl.etltask.GenericTaskImpl.run(GenericTaskImpl.java:655)

    com.siebel.analytics.etl.taskmanager.XCallable.call(XCallable.java:63)

    java.util.concurrent.FutureTask$ Sync.innerRun (FutureTask.java:303)

    java.util.concurrent.FutureTask.run(FutureTask.java:138)

    java.util.concurrent.Executors$ RunnableAdapter.call (Executors.java:441)

    java.util.concurrent.FutureTask$ Sync.innerRun (FutureTask.java:303)

    java.util.concurrent.FutureTask.run(FutureTask.java:138)

    java.util.concurrent.ThreadPoolExecutor$ Worker.runTask (ThreadPoolExecutor.java:886)

    java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:908)

    java.lang.Thread.run(Thread.java:619)

    (Number of attempts: 1).

    IMG_BUILD - internal

    2013-12-27 21:22:31.526 CHANGE CAPTURE: IMG_BUILD - internal S_ASSET has finished running with the Failed state.

    [[code


    The CREATE VIEW privilege was missing from the CAD database user, therefore, was not to create the step. I have granted CREATE VIEW and all is well.

  • The number of columns in a query

    All,

    Could someone tell me please, how we can count the columns that were used in a query.

    Ex: SELECT ENAME, EMPNO, SAL, USE of EMP;

    -Here, in the query above, I took 4 columns (counted manually). Instead of counting it manually is there another way.

    Thank you

    Marty wrote:

    Sorry knani, it'll work for ITO?  I can not test... I just wanted to know.

    See you soon,.

    Manik

    You mean Index Organized Table? Of course it will check.

    SQL > create table emp_iot
    () 2
    3 empno number,
    4 ename varchar2 (6).
    5 use varchar2 (9).
    6 number of mgr,
    7 hiredate date,
    Number 8 sal,
    9 number of com,
    number of deptno 10,
    11 (empno) constraint empno_pk_iot primary key
    12)
    Organization index 13;

    Table created.

    SQL > insert into emp_iot select * from emp;

    11 rows created.

    SQL > select column_value
    2, to_number
    3         (
    4 xmlquery
    5           (
    6 content back "count($doc/descendant::*)" column_value as 'doc' passage
    7           )
    (8) - column_count 1
    xmltable 9
    10         (
    11 ' / LINES/LINES "adoption dbms_xmlgen.getxmltype
    12                            (
    13 "select ename, empno, sal, emp_iot work.
    14                            )
    15         );

    COLUMN_VALUE COLUMN_COUNT
    -------------------------------------------------- ------------
    SMITH 7369 1            4
    2975
    CLERK

    ALLEN 7499 1            4
    1600
    SELLER

    WARD 7521 11            4
    250
    SELLER

    JONES 7566 1            4
    2975
    MANAGER

    MARTIN 7654             4
    11250
    SELLER

    BLAKE 7698 1            4
    2850
    MANAGER

    CLARK 7782 1            4
    2450
    MANAGER

    SCOTT 7788 1            4
    3000
    ANALYST

    KING 7839 50            4
    00
    PRESIDENT

    TURNER 7844             4
    11500
    SELLER

    ADAMS 7876 1            4
    1101
    CLERK

    11 selected lines.

    SQL >

  • Using NVL in the query in the query resulting in error

    I always use CF8 and Oracle 11 G back.

    When I use NVL in the query in the query, I got error... I can't use NVL to check the value null? Help, please

    Here are my codes:

    < name cfquery = "GetC2" datasource = "#Trim (application." OracDSN) #">"

    SELECT CamID2, rel2_2, p_ln2, p_fn2, ins, l_year

    OF prt_temp

    WHERE Ins = 'CC '.

    AND l_year = '1481'

    AND NVL (Child_LN2,' ') <>' '
    AND NVL (Child_FN2,' ') <>' '

    < / cfquery >

    < cfif GetC2.Recordcount NEQ 0 >
    < cfquery name = "CheckRel2C2", dbtype = "QUERY" >
    SELECT CamID2, rel2_2
    OF GetC2
    WHERE NVL (Rel2_2,' ') <>' '
    AND NVL (p_ln2,' ') = ' '
    AND NVL (p_fn2,' ') = ' '
    AND Ins = 'CC '.
    AND l_year = '1481'
    < / cfquery >

    < / cfif >

    The error:

    Run database query error.

    Query of queries syntax error.

    Met «NVL (Rel2_2.» Incorrect conditional expression, waiting for an a [as | null | between | in | comparison] condition,.

    NVL is an Oracle function and it is not available in ColdFusion query of query.  If you try to check the values null, use IS NULL or IS NOT NULL.  Then

    WHERE NVL (Rel2_2,' ') <> ' '

    AND NVL (p_ln2,' ') = ' '

    AND NVL (p_fn2,' ') = ' '

    becomes

    WHERE Rel2_2 IS NOT NULL

    AND p_ln2 IS NULL

    AND p_fn2 IS NULL

    -Carl V.

Maybe you are looking for

  • Qosmio G20: Feedback speaker + HD DVD will not play

    I usually don't use the internal sound on the laptop it is normally plugged into my hi-fi using optics and a creative labs USB device. However, I am experimenting with playing a DVD hd through my TV using the hdmi output connection. The two DVDs, DVD

  • iMac suddenly beach balling a lot

    Especially with Lightroom CC when it opens files. I see a few HD errors in the audit of the being. Does this mean I have to replace the drive? EtreCheck version: 2.9.6 (256) Report generated 2016-02-22 15:32:37 Download EtreCheck from http://etrechec

  • Vista keeps restarting after the installation of updates

    I have IBM laptop computer a customer T61, Vista Home Premium. Starts and goes to the "Configuring updates 3 of 3, then it goes to"shutting down"and keeps restarting." I tried safe mode, last good, from CD and repair of Windows, nothing worked. Any i

  • my virtual memory is very low. Is it possible to fix it?

    I have 2 g but only available in virtual memory 1.96

  • Almost complete hard drive

    I use the backup engineering program 9 with an external drive.  I sent by mistake the backup to disk C (local disk).  Now it is almost full, and I need advice on how to get off the backup. Thank you.