WITH clause unexpectedly causes ORA-00942 in Reports Builder

I'm posting this in the hope that:
a) My workaround might help someone if they ever run into the same problem, and/or,
b) Someone might have a better workaround.
The problem is that I get unexpected ORA-00942 (table or view does not exist) errors when I try to set the SQL Query Statement property of a Query object in Reports Builder to certain SELECT statements that contain a WITH clause (aka subquery factoring clause).
For example, the following SELECT statement executes as expected in SQL*Plus...
SQL> WITH
  2      SUB_QUERY AS
  3      (
  4          SELECT
  5              1 AS X
  6          FROM
  7              DUAL
  8      )
  9  SELECT
10      INLINE_VIEW.X
11  FROM   
12      (
13          SELECT
14              NESTED_INLINE_VIEW.X
15          FROM
16              (
17                  SELECT
18                      SUB_QUERY.X
19                  FROM
20                      SUB_QUERY
21              ) NESTED_INLINE_VIEW
22      ) INLINE_VIEW;
         X
         1...but when I try to use it as the SQL Query Statement for a Query object in Reports Builder, I get the following error:
ORA-00942: table or view does not exist
==>SUB_QUERY
My Reports Builder version is 10.1.2.0.2 version and my database version is 10.2.0.3.0.
The "real" query I have been trying to use is much more complex than this -- this is just the simplest statement I have been able to come up with that causes the problem. In fact, I have some queries that have a similar structure (a WITH clause subquery referenced inside a nested inline view, along with some other things), but strangely do not cause the problem.
I spent some time researching the problem on Google and Metalink but did not come up with any satisfactory answers. The problem sounds similar to bug 3896963, but bug 3896963 involved UNION ALL, and is supposedly fixed in my version(s).
I tried various ways of restructuring my "real" query, but with no success -- it's going to be hard to get rid of the WITH clauses. As a "wild guess", I tried various hints (MATERIALIZE, NO_PUSH_PRED, NO_MERGE), again with no success.
I ended up working around the problem by creating a database package with a function that returns a REF CURSOR based on the query, and then used that in a REF CURSOR query in Reports Builder. It might not be a very elegant workaround, but it works. I just wish I had "given up" and tried it sooner -- I might have saved myself some grief.

Well, for what it's worth, I didn't end up using a REF CURSOR query after all because...
If I ran a REP file based on a REF CURSOR query against a different database, or if I ran the REP file after the database package had been dropped and re-created, it failed with the following error:
REP-8: Run time error in the PL/SQL development environment (DE).
PDE-PSD001 Could not resolve reference to <Unknown Program Unit> while loading <Unknown> <Unknown>.
REP-0008: Unexpected memory error while initializing preferences.
It seems that Reports "binds" the REP file to the timestamp of the database package that defines the REF CURSOR type in order to validate the package at run time. If the timestamp is different, running the REP file will fail with this error. This is apparently bug 1275333 and is described in Metalink Note 272936.1.
The bug reference and Metalink Note offerred the following workarounds:
1. Export the database schema that contains the package from one database and import it into the other.
In some versions, import and export preserve the timestamp, so this would avoid the problem. I didn't try this because it would not be a practical workaround in my situation (upgrade vs. new install).
2. Recompile the package and manually set the timestamp using the seemingly undocumented ALTER PACKAGE...COMPILE BODY REUSE SETTINGS TIMESTAMP... syntax.
I didn't try this because I didn't like the idea of having to: a) rely on an undocumented feature, and, b) manually keep track and maintain the timestamps of all the affected packages across several databases (e.g., development, test, and production).
3. Put the package into a Reports library or into the report itself.
This didn't work for me because Reports does not understand WITH clauses in PL/SQL. For example, with the example query in my previous post, I get an error like this:
Error 103 at line {line defining name of factored subquery}, column {first column in line defining name of factored subquery}
Encountered the symbol "SUB_QUERY" when expecting one of the following:
&lt;a SQL statement&gt;
4. Use an RDF file instead of a REP file.
I didn't use this workaround because I wanted to protect the design of the report by using a REP file instead of an RDF file.
So instead, I:
1. Created a database package containing a pipelined function that returned the results of the WITH clause query that Reports did not "understand".
2. Used an SQL query in my report of the form
SELECT * FROM TABLE(MY_PACKAGE.MY_PIPELINED_FUNCTION(arg1, arg2, ...))
I can drop and re-create the package and run the REP file against another database both without leading to the REP-8 error.

Similar Messages

  • Scheduling error causing - ORA-00942: table or view does not exist

    Hello
    I have the following problem, I created an scenario that its supposed to run every 1 hour, it has an interface that moves an amount of records from one table to another (the amount of records is not fixed it changes). The problem arises when the amount of data to move is so big that the hour between executions is not enough and the scenario is still running when a second execution of the same scenario starts to run (as scheduled), so in the interface when the second process is trying to run the loading step it fails and I got the error ODI-1228 Caused By: java.sql.BatchUpdateException: ORA-00942: table or view does not exists. So the scenario fails and it logs this error. I think the error is due to the table in stage being locked by the first execution of the scenario.
    I don't want to change the amount of time between executions because it is usually enough, I just want to avoid the execution of a scenario when there is another execution of the same scenario still running, is there any way to do this?.
    Thanks
    LJ

    Hello
    Thanks for your answer, I already have the "Interval between repetitions" property set to 1 hour, but when one execution takes more than one hour the scheduler starts another and I have 2 processes accessing the same table and it is when I have a concurrence error on the staging table.
    How can I ensure that I wont have two or more executions of the same scenario running at the same time?.
    Thanks,
    LJ

  • Error at "spacechk_ini" phase with SQL ERROR 942: ORA-00942

    Dear support,
    I am posting this problem again in upgrade forum as i am still dont have proper answer.
    We are performing upgrade from 4.0B (4.0B Ext kernel level 996 , windows 2000 Oracle 9.2.0.5  ) to 4.7 Ext 2.00 SR1. I have upgraded my database from 8.1.7.4 to 9.2.0.5 as prerequisite for upgrade.
    While performing Initialization module we got below error
    " No DB freespace check possible code -4 "
    When i analyzed slog found below error
    Phase SPACECHK_INI:
    ERROR: Statement: SELECT "TABLESPACE_NAME", "BYTES"/1048576 FROM SYS."DBA_TEMP_FILES" WHERE "BYTES" >= 1048576
    ERROR: SQL ERROR 942: ORA-00942: table or view does not exist
    ERROR: Statement: SELECT "TABLESPACE_NAME", "BYTES"/1048576 FROM SYS."DBA_TEMP_FILES" WHERE "BYTES" >= 1048576
    ERROR: ERROR 256: invalid cursors id
    ERROR: SQL ERROR 942: ORA-00942: table or view does not exist
    have observed one more thing at my database ( which is now upgraded to 9.2.0.5 as prerequisite for upgrade to 4.7)
    select * from dba_temp_files;
    no rows selected.
    But when i run same querry to my another server which is 4.7 oracle 9.2.0.5 i get output as list of datafiles with PSAPTEMP tablespace.
    I think problem might be this fixed tables/view dba_temp_files is showing no rows as PSAPTEMP tablespace.Also we cannot add any value to this table as it is fixed tabel/view.
    How we can troubleshoot this?
    I would also like to inform in my 40 B database PSAPTEMP tablespace is dictionary managed after upgrade to 9.2.0.5 but
    In another server which is 4.7 9.2.0.5 , PSAPTEMP tablespace is locally managed
    May be this is the problem why my dba_temp_files showing nothing.
    Do i need to perform DMTS to LMTS for psaptemp tablespace.so that my dba_temp_files view will show me psaptemp tablespace under it?
    Can anybody suggess something on the same at earliest ?
    Best Regards,
    AjitR

    Markus ,
    Thanks for reply but i have performed database refresh of my DEV server long time back. Now as part of upgrade i have also performed Oracle upgrade from 8.1.7.4 to 9.2.0.6 . Now how can i bring data in dba_temp_files.
    Shouls i go for drop and recreate PSAPTEMP tablespace option.
    Please guide me in detail as i cannot restore backup from any other server to DEV because database already upgraded.
    Best Regards,
    AjitR

  • WITH Clause query doesn't work in Oracle Reports.

    Hi Gurus,
    I'm using a WITH clause query and need to build a report using the same query.
    But when i'm trying to build a report, query is giving error as "WITH clause table or view doesn't exists".
    But the same query perfectly works in sql prompt.
    Oracle Reports doesn't supports WITH clause query?
    Please suggest.
    Thanks,
    Onkar

    I ran into a similar problem before and worked around it by moving the query to a pipelined function in the database as described at WITH clause unexpectedly causes ORA-00942 in Reports Builder
    Hope this helps.

  • Impdp with error ORA-39083,ORA-00942,ORA-00959,ORA-39112,help!!!

    Hi,Friends,
    I did import a dump file, should be a schema by data pump.Got these errors:
    ORA-39083: Object type TABLE failed to create with error
    followed error:
    ORA-00942: table or view does not exist
    or
    ORA-00959: tablespace 'USERS2' does not exist
    ORA-39112: Dependent object type %s skipped, base object type %s creation failed ORA-39082: Object type created with compilation warnings
    Would anybody here can help me out?Thanks!

    Either pre-create the users2 tablespace in the target database, or use remap_tablespace parameter to specify the target tablespace instead of users2.
    As usual, complete syntax is in the doc - http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_import.htm#sthref342

  • 'Missing select' error for update statement using WITH clause

    Hi,
    I am getting the below error for update statement using WITH clause
    SQL Error: ORA-00928: missing SELECT keyword
      UPDATE A
      set A.col1 = 'val1'
         where
      A.col2 IN (
      WITH D AS
      SELECT col2 FROM
      (SELECT col2, MIN(datecol) col3 FROM DS
      WHERE <conditions>
        GROUP BY PATIENT) D2
      WHERE
      <conditions on A.col4 and D2.col3>

    Hi,
    The format of a query using WITH is:
    WITH  d  AS
        SELECT  ...  -- sub_query
    SELECT  ...   -- main query
    You don't have a main query.  The keyword FROM has to come immediately after the right ')' that ends the last WITH clause sub-query.
    That explains the problem based on what you posted.  I can't tell if the real problem is in the conditions that you didn't post.
    I hope this answers your question.
    If not, post a complete test script that people can run to re-create the problem and test their ideas.  Include a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
    In the case of a DML operation (such as UPDATE) the sample data should show what the tables are like before the DML, and the results will be the contents of the changed table(s) after the DML.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • ORA-00942 error in simple stored proc

    Guys,
    I'm trying to learn to write some procedures in oracle and have started with the following;
    CREATE OR REPLACE PROCEDURE sp__who
    IS
    BEGIN
    FOR rec IN (SELECT s.SID, s.serial#, p.spid, s.osuser, s.program,
    s.status
    FROM v$process p, v$session s
    WHERE p.addr = s.paddr)
    LOOP
    DBMS_OUTPUT.put_line ('SID: ' || rec.SID);
    DBMS_OUTPUT.put_line ('Serial Nbr: ' || rec.serial);
    DBMS_OUTPUT.put_line ('SPID: ' || rec.spid);
    DBMS_OUTPUT.put_line ('OS User: ' || rec.osuser);
    DBMS_OUTPUT.put_line ('Program: ' || rec.program);
    DBMS_OUTPUT.put_line ('Status: ' || rec.status);
    DBMS_OUTPUT.put_line ('------------------------------');
    END LOOP;
    END sp__who;
    SHOW ERRORS;
    This is failing with a PL/SQL: ORA-00942: table or view does not exist - it seems to be complaining about v$session and v$process - I do have access to these as I can run the select by itself fine...
    Any ideas why?
    Also, can anyone suggest a good website for learning PL/SQL and oracle procedure writing?
    Cheers!
    Pete

    I'm a DBA (Sybase / SQL Server DBA!) and I'm learning to support oracle instances in my current role.
    The stored procedure will be used to extract a list of users active or otherwise in the database... Ideally giving enough information to make decisions easier when it comes to killing processes, etc. Replicating in part, the sybase equivalent stored procedures. (long term plan will be to recreate all the sybase sp_ procedures in oracle)
    What's written so far is obviously very basic and will need further enhancements to make it useful as intended - but having zero experience of writing procs in Oracle I thought it best to start with a simple select :-)

  • How To Pass Multiple Parameters In URL with Report Builder

    Hi,
    I use apex 4.2 with database xe 11g and i use report builder to build my report i use this link to call report
    function runrep(){
    var vurl = 'http://192.168.0.57:8889/reports/rwservlet?userid=retail/1@xe&destype=cache&desformat=PDF&paramform=no&report=item_cost&P_BATCH_NO='+$v('P138_BATCH_NO');
    popupURL(vurl);
    now i want to pass Multiple Parameters like P138_ITEM_CODE , P138_UOM_CODE
    how can i add this Parameters in URL ?
    Regards
    Ahmed

    Ramani_vadakadu wrote:
    window.open("http://hq-orapp-03.kuf.com:9704/xmlpserver/~weblogic/kufpec/BTA/KUF_CONF_ITINUD.xdo?_xpf=&_xpt=1&_xdo=%2F~weblogic%2Fkuf%2FBTA%2FKUF_CONF_ITINUD.xdo&_xmode=&_paramsP_BTM_ID="+parseInt(document.getElementById('P3_BTA_ID').value)+"&_xt=KUF_CONF_ITINUD&_xf=pdf&_xautorun=true&id=weblogic&passwd=kuf2011","_blank");
    the above code we are using apex JS to BI publisher calling for report as PDF
    i don't know exactly where your parameters , did you customize my link to multiple parameters
    'http://192.168.0.57:8889/reports/rwservlet?userid=retail/1@xe&destype=cache&desformat=PDF&paramform=no&report=item_cost&P_BATCH_NO='+$v('P138_BATCH_NO'); 

  • Report Builder 2012 - Omit Certain Fields

    I'm using SQL Server Report Builder 2012 to make a bar chart from a query I ran off. The table is great but the nature of it causes some problems in Report Builder without some tweaking which I've never used before (new to SQL in fact). Apologies for what
    is a difficult question to put into words and in fact took me a while to grasp in my mind.
    I've got a table with three date fields in it:
    REC_NO OPEN IN_PROGRESS CLOSED
    000111 01/01/2000 01/01/2000 01/01/2000
    000112 01/01/2000
    000113 01/01/2000 01/01/2000
    If there's a value in OPEN in all three cases in the above then it will count that three records are open. However, one is CLOSED and one is IN_PROGRESS. In the case above, record 00111 is closed, 000112 is open and 000113 is in progress.
    My question is, is there a way to filter the results of a query in Report Builder 2012 so that if a field is populated, not to use the previous in the chart? E.g. if IN_PROGRESS is populated but CLOSED isn't, don't use OPEN.
    I know that was probably a very convoluted and difficult explanation but I don't know how else to explain it.
    Thanks in advance
    Adam

    Hi Adam-M,
    As per my understanding, there are four fields in the table, three fields’ data type is date. You want to add a field named status, when all the three fields have values, the status is closed, if only Open field has value, the status is open, else, the status
    is in_progress. You want to create a bar chart using Report Builder 3.0, the data of status displays on x-axis and count of status displays on y-axis. If so, we can achieve your goal using reporting service. Please refer to the following steps:
    1. In the left pane in Report Builder, verify that New Report is selected.
    2. In the right pane, click Chart Wizard.
    3. On the Choose a dataset page, click Create a dataset, and then select an existing data source or browse to the report server and select a data source, then paste your query into the query pane.
    4. On the Choose a chart type page, the column chart is the default chart type. Click Bar, and then click Next.
    5. Right click the dataset used to retrieve data and click Add Calculated field, type Status in the field name text box, click the expression (Fx) button, then type the following expression:
    =IIf(IsNothing(Fields!CLOSED.Value)=0 and IsNothing(Fields!IN_PROGRESS.Value)=0,"CLOSED",IIF((Fields!CLOSED.Value)IS NOTHING AND ISNOTHING(Fields!IN_PROGRESS.Value)=0,"IN_PROGRESS","OPEN"))
    6. Drag Status to the Categories pane.
    7. Drag Status to the Values pane. The Values pane displays [Sum(Status)] because the chart displays the aggregate for each status, click the arrow right to the aggregation, click Expression and type the expression:
    =Count(Fields!Status.Value)
    8. Click Run to preview the report.
    For more information about Add a Bar Chart to Your Report (Report Builder), please refer to the following document:
    http://msdn.microsoft.com/en-us/library/dd255225(v=sql.110).aspx
    If you have any questions, please feel free to let me know.
    Best Regards,
    Wendy Fu

  • Report Builder 10g does not start on Windows 7 (stays minimized)

    When i run the report builder 10g in my Windows 7 machine, the splash screen appears for some time and then it minimizes to the task bar. Thinking that it has loaded and gone to task bar, if i click the icon on task bar, it shows another splash screen and loads another copy of Report Builder, which also minimizes to same icon.
    On right-clicking the icon there is no maximize button. I tried running it as administrator and also fix the compatibility, but nothing worked.
    This issue starts only after some days of installing the developer 10g. It worked ok for some days and then it started behaving like this. Seen this twice now, both times on re-installing the developer suite the issue goes away.
    Is there any way to solve this other than re-install the Oracle Developer ?

    Hello,
    Did you check the files cagprefs.oar and cauprefs.ora ?
    Re: report builder
    regards

  • Oracle Report Builder Bugs

    If the JSP file generated by Report Builder contains the statement,
    <systemParameter name="DESTYPE" initialValue="Screen" display="yes"/>
    you will receive the following error message when you try to run the report in Web Layout:
    javax.servlet.jsp.JspException: REP-56092: No class defined for destination type Screen
    I found the only solution to be to remove the offending statement, or set its display parameter to no. (The statement can be found in the JSP file under the <data> tag.)
    This statement displays the Runtime Parameter Form dialog which is intended only for Paper Layouts. Seems as if Report Builder is reading a Paper Layout statement from the JSP file when it is executing a Web Layout command.
    Another minor problem occurs when you open a report and attempt to display it in Web Layout before connecting to the database. When the Connect dialog appears, the mouse pointer remains as an hour glass.
    The Report Builder came packaged with Oracle Developer Suite 10g, but the Report Builder's Help About shows version 9.0.4.2.0. However, I noticed that other copies of Oracle Developer Suite 10g came packaged with Report Builder version 10g. I can't say whether the above problems apply to these later versions of Oracle Builder or not.

    Hi,
    There's a dedicated forum for Oracle Reports and I would suggest you to post your questions there to get answered by those who are experienced in Oracle Reports.
    I did work with Oracle Reports a long time ago, so as I remember, you have to create a link between colb and colc fields. When colb is null then this link will pull over colc and print it in place of colb.
    Hope this helps.
    Regards
    Asif Momen
    http://momendba.blogspot.com

  • Event reports fail to execute (ora-00942, new install, database error?)

    This is my first time working with Oracle software, and I am trying to use the Sensor Edge Server to test an RFID implementation. I am using OAS and SES 10.1.3.1 with Database 10.2.0. I followed many guides, I believe the database install instructions were from the database documentation library, and the OAS/SES instructions from the flash demo found here:
    http://www.oracle.com/technology/products/sensor_edge_server/tutorials.html
    My initial installation did not link to the Data repository, so I used manual configuration instructions from here:
    http://www.oracle.com/technology/obe/1013/fusion_middleware/integration/ses/manualconfig/manualconfig.htm
    At certain points I had to enter the SQL commands manually to ensure the Edge user's password was set, but all the outputs were as expected.
    Now that all this was done, I used the simulator with a simple xml file (as in the example) and confirmed it was loading via the "Monitor Events" tab in the SES. When I went to the "Event Reports" tab, the "Fetch Results" button caused an error message reading "Unable to Process Request / The query failed to execute: ORA-00942: table or view does not exist"
    In the log, sometimes I catch "OracleArchiverWorkerImpl: Cannot insert event into SDR:>>"
    and "java.sql.SQLException: ORA-06550: Line 1 Column 7: PLS-00201: identifier 'EDG_SDA.ON_EVENT" must be declared"
    I've done a fair bit of searching through the whole forum (not just the RFID area), checked on the 00942 error and so on, but what I've done wrong isn't jumping out at me. Anyone care to give input?
    Thanks sincerely,
    Andrew

    To clarify, I used the sql*plus instructions:
       sqlplus edge/<password>@<service_name>
       select count(*) from edg_event_vw
       select count(*) from sda_observationsfrom the server guide and both inititally returned "2", and made no updates, despite resetting devices (causing events in the "monitor events" tab)
    Andrew
    Message was edited by:
    user582280

  • Report with multiplying columns  and WITH clause

    Hello
    I saw sth strange in my report. I assume that it could happens very often.
    I have report with few columns which two of them ar most complicated (many joins subqueries aggreagations on joined values etc.) These two columns (i.e C3,C4) should be multiplied (C3*C4).
    When i do pure report without multiplying only columns C1,C2,C3,C4 everything is ok - duration about 15 sec. but... when I put next column on report which multiply these columns (in Answers C5=C3*C4)
    I wait 3-4 minutes and my database hungs :(. After investigation I saw that in first case to databese goes pure "SELECT" statement it means:
    "Select ... as C1, ... as C2, max(...) as C3, sum(xxx)... C4 from yyy,sss,ttt WHERE aaa"
    but in second case BI uses WITH clause it means:
    WITH SAWITH0 AS
    ( Select ... as C1, ... as C2, max(...) as C3, sum(xxx)... C4 from yyy,sss,ttt WHERE aaa )
    SELECT SAWITH0.C1 as C1,
    SAWITH0.C2 as C2,
         SAWITH0.C3 as C3,
         SAWITH0.C4 as C4,
         SAWITH0.C3*SAWITH0.C4 as C5 FROM SSS
    and this statement is long runninq query and kills my database :(.
    I checked that SQL like this:
    Select ... as C1, ... as C2, max(...) as C3, sum(xxx)... C4, max(...)*sum(xxx)... As C5 from yyy,sss,ttt WHERE aaa" -
    runs few times faster than that above
    I know that I can do this multiply in business model layer but sometimes users can multiply(or other operations) on columns in reports without my knowledge and it kills my db :(. Where is bug? Why SQLs with WITH clause takes so much db time?
    Thank you for each kind of help

    WITH clause or Subquery Factoring allows the set of data to be reused multiple times within the SQL. Oracle will usually materialize the data into a temporary table (you will see it if you take an explain plan of the SQL).
    I would be surprised if it was the actual WITH clause that was causing the performance issue, however you can test this by turning the WITH clause feature off. Go to the Physical model, right mouse click on your Database > Properties > Features Tab, scroll down to WITH_CLAUSE_SUPPORTED and switch it off.
    I'd be interested to know if you do see actual improvement.
    Good Luck.

  • OAF Update of Custom Table causing ORA-600 with database block corruption?

    Using OA Framework 12.1.3, running under EBusiness Suite 12.1.3
    Created Custom Web page operating against Custom Tables
    ISSUE
    On about 2% of new records, when OAF is UPDATING a record in a certain table, it  is failing with
    java.sql.SQLException: ORA-00607: Internal error occurred while making a change to a data block
    ORA-00600: internal error code, arguments: [kddummy_blkchk], [815], [26412], [6110], [], [], [], []
    ORA-06512: at line 1
    Before the DBA turned on 10.2.0.4.0 DB_BLOCK_CHECKING parameter, this actually
    resulted in corrupted data blocks in the database and corrupted indexes that
    eventually crashed the database and we had to do a full recovery with 2 days downtime.
    Now that we have turned on DB_BLOCK_CHECKING, it simply errors out and puts things
    in the alert log, but the records still fail to update as the writes are blocked.
    Then oddly, a few days later.. the records become editable.  And others fail.
    This is ONLY happening on the one particular table being updated by OAF.  Other custom pages
    posting to other custom tables are having no problems.   We've CTAS'd the table back and
    forth and recreated the indexes, and that did not help.
    Support says to post to the Forum  ( So I am! ) or hire Oracle consulting.. which doesn't make
    much sense given the error.  The Recovery Team that helped us in a separate SR ( we had
    to do db_repairs not just recovery ) felt it was an important problem the OAF team needed to
    strongly review.
    Anyone else encounter this already and know of a solution?
    TIA
    Karl

    After MANY hours of trial and error and research, we've identified ONE use case that seems to apply to 90% of the issue we have encountered.
    YMMV.
    The BC4J generated SQL which is generating the ORA-600 is
    BEGIN UPDATE XXRETURNHEADER ReturnHeaderEO SET INTERNAL_TEXT=?,LAST_MOD_USERNAME=?,OBJECT_VERSION_NUMBER=?,LAST_UPDATE_DATE=?,LAST_UPDATED_BY=?,LAST_UPDATE_LOGIN=? WHERE RMA_NUMBER=? AND ORGANIZATION_ID=? RETURNING TROUBLESHOOT_DATE, FAA_TAG_DATE, FAILURE_ANALYSIS_DATE, LAST_MOD_DATE, FAA_REVISED_DATE, TTE_TECH_SEND_DATE, TTE_REP_RESPONSE_DATE, TTE_REP_APPROVED, TTE_RMA_RANDOM_KEY, OBJECT_VERSION_NUMBER, LAST_UPDATE_DATE, LAST_UPDATED_BY, LAST_UPDATE_LOGIN INTO ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?; END;".
    We determined that if TTE_RMA_RANDOM_KEY was not a null value, we would get an ORA-600 error whenever we did an APPLY from the OAF Page to update the record.
    If we set that table attribute to NULL for the record using SQL.. then used the  OAF Page to APPLY.. it worked fine and the record saved without error.
    We then modified the EO to NOT   "Refresh After Update"  ( thus removing it from the RETURNING clause generated )... and even if the TTE_RMA_RANDOM_KEY
    had a value... the OAF Page APPLY worked and the record saved without error.
    I cannot identify anything from the User programming side that is wrong ( and neither could Oracle ), and it REALLY should be in the RETURNING clause list of
    attributes.. but this is the only workaround I've found that doesn't crash the Page and irritate the user to no end.
    I have reported my findings via the SR back to Oracle to do with it what they may... but it looks strongly ,to me, to be an error in the BC4J/JDBC/Database
    coordination and passing data between those black boxes.

  • ORA-00942 error on truncating a table with a XML Index

    Oracle Version: 11.2.0.1.0
    When truncate command fails with error "ORA-00942: table or view does not exist" when run against a table with an XML Index defined
    SQL> CREATE TABLE XML_TEST
    2 (
    3 ID INTEGER,
    4 TESTXML SYS.XMLTYPE
    5 );
    Table created.
    SQL> truncate table XML_TEST;
    Table truncated.
    SQL> CREATE INDEX xmlindex ON XML_TEST(TESTXML)
    2 indextype IS xdb.xmlindex
    3 parameters ('PATH TABLE MY_PATH_TABLE');
    Index created.
    SQL> truncate table XML_TEST;
    truncate table XML_TEST
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> Drop Index xmlindex;
    Index dropped.
    SQL> truncate table XML_TEST;
    Table truncated.

    No, I don't think that explanation is correct. I don't think it has to do with user privs. besides, we don't
    adjust rowids on an import -- we recreate the index, just like a b-tree index import would.
    This should be working. It's most likely a bug in our (i.e. Text) import code -- SYS.XMLTYPE is a little
    strange because under the covers it's actually a function-based index.
    I will test it out and file a bug if I can reproduce the behavior on solaris.

Maybe you are looking for

  • Problem using the PDF Printer driver in LC ES 8.2

    Hi all, I have a problem making the PDF Generator Printer driver work. I am able to print a document, and it is successfully converted to pdf, but the send email service fails. The error message is: 2008-08-27 15:22:21,671 INFO [com.adobe.ipp.pdfgcli

  • Titles that worked in FCP5 don't work in FCP6

    All, I made some snazzy titles in FCP5 by playing with the tracking in the text controls. Very simple - just made the text expand and contract and it did so smoothly and looked great. I upgraded to FCP6 and updated the file, and the same effect plays

  • BPM bugs

    Hello guys, I have developed an Idoc to Idoc interface for material master that makes use of BPM. XI receives an ARTMAS Idoc from source SAP system and through a simple business process that has a sequence of 4 Receive/Transform/Send/Wait steps, it s

  • How to use u sb in i pad, how to use u sb in i pad

    how to use u sb in i pad, how to use u sb in i pad

  • IPhine 5s won't download app updates

    IPhone 5s 7.1.2 can't download app updates today. I have 1.9g available space and Apple support says the apps store is working. I'm at home on my wifi router and I can download updates on my iPad. I keep getting the popup message that the app cannot