ORA-00980 Synonym Translation Error caused by WebUtil?

I have setup WebUtil and applied some CLIENT_TEXT_IO code to a form. Everything worked perfectly running through 9iDS so I configured 9iAS to do the same.
When running the form through 9iAS I am getting the ORA-00980 error about synonym translation. The same database instance was used so so webutil_db shouldn't be the problem but I cannot see how this error could be related to WebUtil - anyone have any ideas.
The CLIENT_TEXT_IO code still works even though this error is reported.

Since you are on 10g did you try flashback table feature - http://tonguc.wordpress.com/2007/01/01/oracle-10g-flashback-versions-query-drop-table-and-recyclebin-management/
FLASHBACK TABLE <tabname> TO BEFORE DROP;
If you didnt use purge option, the dropped object is on your recyclebin - http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_9018.htm#sthref9593
Best regards.

Similar Messages

  • Error ORA-00980: synonym translation is no longer valid when i issue

    i accidentally drop one of my table. To bring it back i used Imp tool. But it gives an error ORA-00980: synonym translation is no longer valid when i issue
    Select * from ship_sched_fact_notice_det
    Action taken using Imp
    Username: erpdada
    Password:
    Connected to: Oracle Database 10g Release 10.1.0.2.0 - Production
    Import file: EXPDAT.DMP > e:\erpdada_august13.dmp
    Enter insert buffer size (minimum is 8192) 30720> 30720
    Export file created by EXPORT:V10.01.00 via conventional path
    Warning: the objects were exported by SYSTEM, not by you
    import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    import server uses AL32UTF8 character set (possible charset conversion)
    List contents of import file only (yes/no): no > y
    Import entire export file (yes/no): no > n
    Username: erpdada
    Enter table(T) or partition(T:P) names. Null list means all tables for user
    Enter table(T) or partition(T:P) name or . if done: ship_sched_fact_notice_det
    Enter table(T) or partition(T:P) name or . if done: .
    "CREATE PUBLIC SYNONYM "XMLTYPE" FOR "SYS"."XMLTYPE""
    "CREATE TABLE "SHIP_SCHED_FACT_NOTICE_DET" ("SSFND_ITEM_NOT_DET_ID" NUMBER, "
    ""SSFN_FACTORY_ID" VARCHAR2(40) NOT NULL ENABLE, "SSFN_FAC_NOTICE_ID" NUMBER"
    " NOT NULL ENABLE, "SSD_SHIP_ITEM_ID" NUMBER NOT NULL ENABLE, "OI_ITEM_ID" N"
    "UMBER NOT NULL ENABLE, "ORDER_TYPE" VARCHAR2(1), "SSFND_ITEM_CODE" VARCHAR2"
    "(300), "SSFND_QTY" NUMBER, "SSFND_CTN" NUMBER, "SSFND_TOT_CBM" NUMBER, "SSF"
    "ND_REM1" VARCHAR2(256), "SSFND_REM2" VARCHAR2(256), "SSFND_UNIT_ID" VARCHAR"
    "2(40), "SSFND_IS_EXCL_SUMMARY" VARCHAR2(1))  PCTFREE 10 PCTUSED 40 INITRANS"
    " 1 MAXTRANS 255 STORAGE(INITIAL 81920 FREELISTS 1 FREELIST GROUPS 1 BUFFER_"
    "POOL DEFAULT) TABLESPACE "ORDER_DATA01" LOGGING NOCOMPRESS"
    . . skipping table "SHIP_SCHED_FACT_NOTICE_DET"
    "GRANT DELETE ON "SHIP_SCHED_FACT_NOTICE_DET" TO "SHIPMENT_NOTICE""
    "GRANT INSERT ON "SHIP_SCHED_FACT_NOTICE_DET" TO "SHIPMENT_NOTICE""
    "GRANT SELECT ON "SHIP_SCHED_FACT_NOTICE_DET" TO "SHIPMENT_NOTICE""
    "GRANT UPDATE ON "SHIP_SCHED_FACT_NOTICE_DET" TO "SHIPMENT_NOTICE""
    "CREATE UNIQUE INDEX "PK_SHIP_SCHED_FACT_NOTICE_DET" ON "SHIP_SCHED_FACT_NOT"
    "ICE_DET" ("SSFND_ITEM_NOT_DET_ID" )  PCTFREE 10 INITRANS 2 MAXTRANS 255 STO"
    "RAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLE"
    "SPACE "ORDER_DATA01" LOGGING"
    "ALTER TABLE "SHIP_SCHED_FACT_NOTICE_DET" ADD  CONSTRAINT "PK_SHIP_SCHED_FAC"
    "T_NOTICE_DET" PRIMARY KEY ("SSFND_ITEM_NOT_DET_ID") USING INDEX PCTFREE 10 "
    "INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1"
    " BUFFER_POOL DEFAULT) TABLESPACE "ORDER_DATA01" LOGGING ENABLE "
    "ALTER TABLE "SHIP_SCHED_FACT_NOTICE_DET" ADD CONSTRAINT "SHIP_SCHED_FACT_NO"
    "TICE_DE_FK1" FOREIGN KEY ("SSD_SHIP_ITEM_ID") REFERENCES "SHIPPING_SCHEDULE"
    "_DETAILS" ("SSD_SHIP_ITEM_ID") ENABLE NOVALIDATE"
    "ALTER TABLE "SHIP_SCHED_FACT_NOTICE_DET" ADD CONSTRAINT "SHIP_SCHED_FACT_NO"
    "TICE_DE_FK2" FOREIGN KEY ("SSFN_FAC_NOTICE_ID") REFERENCES "SHIP_SCHED_FACT"
    "ORY_NOTICE" ("SSFN_FAC_NOTICE_ID") ENABLE NOVALIDATE"
    "ALTER TABLE "SHIP_SCHED_FACT_NOTICE_DET" ENABLE CONSTRAINT "SHIP_SCHED_FACT"
    "_NOTICE_DE_FK1""
    "ALTER TABLE "SHIP_SCHED_FACT_NOTICE_DET" ENABLE CONSTRAINT "SHIP_SCHED_FACT"
    "_NOTICE_DE_FK2""
    Import terminated successfully with warnings.
    I drop the old synonym and re-create it but still it gives the same error...

    Since you are on 10g did you try flashback table feature - http://tonguc.wordpress.com/2007/01/01/oracle-10g-flashback-versions-query-drop-table-and-recyclebin-management/
    FLASHBACK TABLE <tabname> TO BEFORE DROP;
    If you didnt use purge option, the dropped object is on your recyclebin - http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_9018.htm#sthref9593
    Best regards.

  • ORA-00980: synonym translation is no longer valid

    Hi
    I get the following error when try to insert xml
    SQL> ed
    Wrote file afiedt.buf
    1 insert into "bulkCmConfigDataFile_TAB"
    2 values(
    3 XDB_UTILITIES.getXMLFromFile('Test.xml','DATA_DIR').
    4 createSchemaBasedXML('http://127.0.0.1:8081/public/xsds/configData.xsd')
    5* )
    SQL> /
    XDB_UTILITIES.getXMLFromFile('Test.xml','DATA_DIR').
    ERROR at line 3:
    ORA-00980: synonym translation is no longer valid
    I ran the following sql
    SQL> select STATUS from dba_objects where object_name = 'XDB_UTILITIES';
    STATUS
    VALID
    The directory was created using
    SQL> show user
    USER is "XMLUSER"
    SQL> create or replace directory data_dir as 'c:\xml';
    Directory created.
    What could be the problem here?
    Thanks
    Devashish
    10g Rel2

    Devashish
    Unfortunately the way your XML Schema are designed I do not think XML DB is going to be able to handle them. The problem is the substituion group for vsData. Basically it defines a very flat structure which will require a table with more than 1000 columns to persist. Since the structure is very flat we cannot use the technique of pushing sections of the structure into out-of-line tables to store it, which is the normal workaround.
    This looks to me like a case of the classic mistake of modeling a Java Object structure directly into XML. In general this makes no sense. There is no common information between all of the different elements of the substition group or the vsData type, so there is no point in having all the members of the substition grouip descend from a single abstract type. You could just as easily model your XML Structure as a choice of any of the elements defined in the substition group. If new elements need to be introduced this could be done using extension of the existing complexType with new choices.
    The advantage of this approach is that you can push each of the possible chocies into a seperate table, and avoid the 1000 column limit..
    Sorry for the bad news, hope you have flexibility to re-architect the XML Schema. Note that this should not affect the instance documents

  • Form - Remote DB - Link - Synonym - ORA-00980: synonym translation invalid

    All,
    I have created a PUBLIC LINK AND SYNONYM on a table in a remote DB using the Navigator/Wizard. I then tried to create a FORM using the Wizard. In the Wizard I press enter to FINISH and I receive the error listed below.
    Note I have read and read and re-read all info available to me on the subject. Some posts on MetaLink and these forums suggested that the Link and Synonym made Public - they are as they live in the Public Schema. Another doc stated the "Returning" statement was the problem.
    I have tested this in SQLPLus and it works fine.
    What is the is problem with this and how do I fix it?????
    Thanks,
    Bill G...
    Error creating package PORTAL_DEMO.FORM_1
    Line/Column Error
    242/18 PL/SQL: ORA-00980: synonym translation is no longer valid
    236/65530 PL/SQL: SQL Statement ignored
    284/65 PL/SQL: ORA-00980: synonym translation is no longer valid
    284/28 PL/SQL: SQL Statement ignored
    284/16 PLS-00341: declaration of cursor '_tc' is incomplete or malformed
    290/25 PL/SQL: Item ignored
    321/30 PLS-00320: the declaration of the type of this expression is incomplete or malformed
    321/13 PL/SQL: SQL Statement ignored
    357/38 PLS-00320: the declaration of the type of this expression is incomplete or malformed
    354/13 PL/SQL: Statement ignored
    369/34 PLS-00320: the declaration of the type of this expression is incomplete or malformed
    369/17 PL/SQL: SQL Statement ignored
    380/30 PLS-00320: the declaration of the type of this expression is incomplete or malformed
    380/13 PL/SQL: SQL Statement ignored
    387/38 PLS-00320: the declaration of the type of this expression is incomplete or malformed
    384/13 PL/SQL: Statement ignored
    400/26 PLS-00320: the declaration of the type of this expression is incomplete or malformed
    400/9 PL/SQL: SQL Statement ignored
    464/63 PL/SQL: ORA-00980: synonym translation is no longer valid
    464/26 PL/SQL: SQL Statement ignored

    Yeah, it is pretty simple really. Metalink note 174618.1 covers it. The note is for Rel1, but the same works with Rel2.
    Cut and paste doesnt work well here, but if you cant access the note, I can reformat it and paste it in here.

  • SQL Developer BUG - ORA-00980 Synonym Translation No Longer Valid

    We have a read only database of our Production and when I try to access any data using the SQL Developer, I'm getting the following Error.
    Error at Command Line:1 Column:14
    Error report:
    SQL Error: ORA-00980: synonym translation is no longer valid
    If I access the same from SQL Plus, Toad or SQL Station, It works fine. Seems some error in SQL Developer.
    Any one with Ideas or suggestions.

    we have DB cloned from Prod everynight and is available for us on readonly access. No read /write privs to any user including DBA.
    I think the DB is opened with ALTER DATABASE OPEN READ ONLY;
    Also to mention, all the tables in the db can be accessible only by read only user who was given select permission on synonyms.
    --VB                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • PL/SQL:ORA-00980: synonym translation is no longer valid

    Hi,
    I have imported the full database (9i) and import terminated succefully.But
    I got the followinf errors:
    ORA-04098: trigger 'UNITE.CAPT_FEE' is invalid and failed re-validation .
    There are number of triggers where we got the same error.
    Please help
    Thanks
    Harinder

    Hi ,
    There are problems in the views as well as in triggers.
    the db links are same but tnsname.ora was different.
    so i have made an entry in tnsnames.ora file.
    Used parameter files:
    /raid1/app/oracle/product/9.2/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    )SERVICE_NAME = ocklive.world)ST = ock)(PORT = 1529))
    OK (10 msec)
    But when i have executed this sql query
    select * from tab@ocklive
    i have recieved the following error :
    ORA-12154: TNS:could not resolve service name
    but this is working fine on another system from where i have imported data.
    Thanks
    Harinder

  • Has anyone else seen ORA-00980 synonym errors when using XMLConcat?

    Hi,
    Using 10.2.0.2 ( as shown by select * from v$instance), I get an ORA-00980 "Synonym translation is no longer valid" message.
    This occurs for any attempt to use XMLConcat, for a simple example:
    SELECT XMLConcat(XMLElement("first", 'Steve'),
    XMLElement("last", 'Jones'))
    AS "RESULT"
    FROM dual;
    I'm guessing that there is/was a problem with an upgrade since I've found a few vague references to a bug fixed in 9.2 that seems to point in that direction.
    Our DBA team is looking into it, but it would be interesting to hear if other developers hit the same problem and if there was a relatively easy fix.
    Thanks!

    SQL> conn / as sysdba
    SQL> @catnoqm
    SQL> @catqmTry to fix it first though manually. The upgrade probably went wrong somehow...
    On the FAQ on this forum Mark states:
    XML DB FAQ
    How do I uninstall XML DB ? How do I re-install XML DB ?
    Posted: Sep 11, 2006 10:28 PM    mdrake in response to: mdrake    
    To uninstall XML DB run the sql script $ORACLE_HOME/rdbms/admin/catnoqm.
    Note that running this script will
    1. DELETE ALL INFORMATION STORED IN THE ORACLE XML DB REPOSITORY AND XDB DATABASE SCHEMA
    2. PERMANENTLY INVALIDATE ANY XMLTYPE TABLES OR COLUMNS THAT ARE ASSOCIATED WITH A REGISTERED XML SCHEMA.
       IF THE XDB USER IS DROPPED THERE IS NO WAY TO RECOVER THE DATA IN THESE XMLTYPE TABLES OR COLUMNS.
    Please do not uninstall XML DB in a production database without explicit instructions from Oracle Support to do so.
    To re-install XDB, after running catnoqm.sql, stop and restart the instance and then run catqm as described in the previous post. Backup your database first via RMAN...
    Edited by: Marco Gralike on Feb 13, 2009 8:11 PM

  • Invalid synonym translation error

    Hi,
    I'm runnng Oracle 11.1.0.6 and I get the alert below on and intermittent basis:
    ORA 600 [kzxccparentread-8] [kzxccparentread-8] [980] [ORA-00980: synonym translation is no longer valid ] [] [] [] [] []
    Should I drop all "dangling" synonyms?

    You can use the following SQL to identify invalid synonyms.
    select owner,object_name from dba_objects where object_type = 'SYNONYM' and status = 'INVALID' and owner not in ('SYS','SYSTEM');
    You can use thie statement to make the script to create drop synonym.
    Regards

  • ORA-00980 error when clicking schema's and synonyms tab.

    We just moved our DEV database to a 64bit box and now when going into OEM and clicking on any of the schema's we get ORA-00980 synonym translation is no longer valid. Clicking Ok will get us through but then clicking on synonyms tab we get the same error and no information is in the right frame. SQL plus and Toad are working fine connecting to the same database.

    Provide Details:
    - Database Target Version / Plattform
    - OMS Version / Plattform
    - Agent Version
    Regards,
    Martin

  • BR error  BR0301W SQL error -980 at location BrDbfInfoGet-33  ,  ORA-00980

    Hi  <br/>
    i get this error by all kind backup and by checkdb, verify db<br/>
    <br/>
    Oracle 10.2.0.4, RHEL 4 32bit, <br/>
    Netweaver 2004s (7)<br/>
    <br/>
    I have one Oracle NW7  for Netweaver PI (NW7) and Portal  (EP7)<br/>
    <br/>
    <br/>
    <br/>
    BR0051I BRBACKUP 7.00 (18)<br/>
    BR0055I Start of database backup: bedxcwak.afd 2010-08-15 12.21.54<br/>
    BR0477I Oracle pfile /oracle/NW7/102_32/dbs/initNW7.ora created from spfile /oracle/NW7/102_32/dbs/spfileNW7.ora<br/>
    <br/>
    BR0925I Public synonym SAP_SDBAH created successfully for table SAPSR9DB.SDBAH<br/>
    BR0925I Public synonym SAP_SDBAD created successfully for table SAPSR9DB.SDBAD<br/>
    BR0925I Public synonym SAP_MLICHECK created successfully for table SAPSR9DB.MLICHECK<br/>
    BR0925I Public synonym SAP_SAPLIKEY created successfully for table SAPSR9DB.SAPLIKEY<br/>
    BR0280I BRBACKUP time stamp: 2010-08-15 12.21.55<br/>
    BR0301W SQL error -980 at location BrbDbLogOpen-5, SQL statement:<br/>
    'INSERT INTO SAP_SDBAH (BEG, FUNCT, SYSID, OBJ, RC, ENDE, ACTID, LINE) VALUES ('20100815122154', 'afd', 'NW7', ' ', '9999', ' ', 'bedxcwak', ' ')'<br/>
    ORA-00980: synonym translation is no longer valid<br/>
    BR0324W Insertion of database log header failed<br/>
    BR0280I BRBACKUP time stamp: 2010-08-15 12.21.56<br/>
    BR0301W SQL error -980 at location BrDbfInfoGet-32, SQL statement:<br/>
    'DELETE FROM SAP_SDBAH WHERE BEG > '10000000000000' AND BEG < '20090711000000''<br/>
    ORA-00980: synonym translation is no longer valid<br/>
    BR0280I BRBACKUP time stamp: 2010-08-15 12.21.56<br/>
    BR0301W SQL error -980 at location BrDbfInfoGet-33, SQL statement:<br/>
    'DELETE FROM SAP_SDBAD WHERE BEG > '10000000000000' AND BEG < '20090711000000''<br/>
    ORA-00980: synonym translation is no longer valid<br/>
    BR0280I BRBACKUP time stamp: 2010-08-15 12.21.56<br/>
    BR0301E SQL error -980 at location BrComprDurGet-1, SQL statement:<br/>
    'OPEN curs_6 CURSOR FOR'<br/>
    'SELECT FUNCT, POS, LINE FROM SAP_SDBAD WHERE BEG = '00000000000001' AND (FUNCT = 'CMP' OR FUNCT = 'CMP' OR FUNCT = 'DUS' OR FUNCT = 'DUM') ORDER BY FUNCT'<br/>
    ORA-00980: synonym translation is no longer valid<br/>
    BR0314E Collection of information on database files failed<br/>
    BR0280I BRBACKUP time stamp: 2010-08-15 12.21.56<br/>
    BR0301W SQL error -980 at location BrbDbLogOpen-5, SQL statement:<br/>
    'INSERT INTO SAP_SDBAH (BEG, FUNCT, SYSID, OBJ, RC, ENDE, ACTID, LINE) VALUES ('20100815122154', 'afd', 'NW7', ' ', '9999', ' ', 'bedxcwak', ' ')'
    ORA-00980: synonym translation is no longer valid<br/>
    BR0324W Insertion of database log header failed<br/>
    <br/>
    BR0056I End of database backup: bedxcwak.afd 2010-08-15 12.21.56<br/>
    BR0280I BRBACKUP time stamp: 2010-08-15 12.21.56<br/>
    BR0054I BRBACKUP terminated with errors<br/>
    <br/>
    ###############################################################################<br/>
    <br/>
    <br/>
    Please help<br/>
    <br/>
    BR <br/>
    Dawid<br/>

    after aply this Snote i get this by trying backup my DB <b/>
    Job log
    Job started
    Step 001 started (program RSDBAJOB, variant &0000000000029, user ID GLOMBDAW)
    Execute logical command BRBACKUP On host nw2004s
    Parameters:-u / -jid ALL__20100815175009 -c force -t online -m all -p initNW7.sap
    BR0051I BRBACKUP 7.00 (18)
    BR0055I Start of database backup: bedxdzeb.and 2010-08-15 17.50.13
    BR0280I BRBACKUP time stamp: 2010-08-15 17.50.13
    BR0301E SQL error -942 at location BrDbConnect-4,SQL statement:
    'SELECT NAME, NVL(RESETLOGS_CHANGE#, 0), NVL(TO_NUMBER(TO_CHAR(RESETLOGS_TIME, 'YYYYMMDDHH24MISS')), 0), NVL(TO_NUMBER(TO_CHAR(C
    ORA-00942: table or view does not exist
    BR0310E Connect to database instance NW7 failed
    BR0280I BRBACKUP time stamp: 2010-08-15 17.50.13
    BR0301E SQL error -942 at location BrDbConnect-4,SQL statement:
    'SELECT NAME, NVL(RESETLOGS_CHANGE#, 0), NVL(TO_NUMBER(TO_CHAR(RESETLOGS_TIME, 'YYYYMMDDHH24MISS')), 0), NVL(TO_NUMBER(TO_CHAR(C
    ORA-00942: table or view does not exist
    BR0310E Connect to database instance NW7 failed
    BR0056I End of database backup: bedxdzeb.and 2010-08-15 17.50.13
    BR0280I BRBACKUP time stamp: 2010-08-15 17.50.13
    BR0054I BRBACKUP terminated with errors
    External program terminated with exit code 3
    BRBACKUP returned error status E
    Job finished

  • ORA-00980 during ValidStruct

    Hi Oracle-experts!
    After ValidStruct job I get the following errors:
    BR0301E SQL error -980 at location stats_tab_validate-2, SQL statement:                  
    'ANALYZE TABLE "SYS"."STREAMS$_APPLY_SPILL_MSGS_PART" VALIDATE STRUCTURE CASCADE ONLINE' 
    ORA-00980: synonym translation is no longer valid                                        
    BR0893E Validating structure failed for table/cluster SYS.STREAMS$_APPLY_SPILL_MSGS_PART 
    Can some one help me to solve this error?

    Hello,
    What is your Oracle release?
    If you are at 10.2.0.1 then you have to upgrade to the latest 10.2.0.4, if you are already in the correct release then follow the note
    provided in the previous post.
    Regards,
    Yoganand.V

  • Ora-00980

    hi,
    i m working on oracle 9i.i am having prob
    ora-00980 synonym translation is no longer valid.
    how to resolve it ?

    i m getting this kind of example every where but no one providing what to do neaxt ?
    ORA-00980: synonym translation is no longer valid
    SQL>create table release as select * from tab;
    Table created.
    SQL> create synonym s_release for release;
    Synonym created.
    SQL> select * from s_release;
    TNAME TABTYPE CLUSTERID
    ATT TABLE
    BONUS TABLE
    CAR TABLE
    DEPT TABLE
    DUMMY TABLE
    EMP TABLE
    PLAN_TABLE TABLE
    RELEASE TABLE
    SALGRADE TABLE
    TWIST TABLE
    10 rows selected.
    SQL> drop table release;
    Table dropped.
    SQL> select * from s_release;
    select * from s_release
    ERROR at line 1:
    ORA-00980: synonym translation is no longer valid

  • I am getting ORA-20001: Seed insert error while seed translatable text step

    Hi,
    I am getting this error while English to Arabic translation in the Seed translatable text step
    ORA-20001: Seed insert error: WWV_FLOW_ICON_BAR.ICON_IMAGE_ALT ORA-00001: unique constraint (APEX_030200.WWV_FLOW_TRANSLATABLE_TEXT_PK) violated
    Can i get any suggetion from your side.
    Thanks,
    nar

    Did you ever figure this out. Because I also have this error.

  • ORA-22902 CURSOR expression not allowed Error Cause: CURSOR on a subquery..

    Hi,
    I found same issue in a metalink thread which is addressed in Oracle 12.1 which doesn't help me now. I need to rewrite the below query. Does anyone have any suggestions how to go about it?
    thanks,
    April
    working in Oracle 11.2.0.3.1, windows server, doing an upgrade from 10g to 11g. Piece of code is failing with following error via TOAD
    Oracle Database Error Code ORA-22902 Description :
    CURSOR expression not allowed
    Error Cause:
    CURSOR on a subquery is allowed only in the top-level SELECT list of a query.
    The below code is returning a tree of data for projects, units within the buildings.
    Code as follows:
    SELECT LEVEL
    , p.project_id
    || NVL (p.file_ref, ' ')
    || '] ['
    || NVL (p.project_ref, ' ')
    || '] '
    || p.project_name
    || ' ( '
    || (SELECT COUNT (*)
    FROM PROJECT p1
    WHERE p1.parent_project_id = p.project_id)
    || ' sub-projects, '
    || (SELECT COUNT (*)
    FROM PROJECT_ELEMENT pe2
    WHERE pe2.project_id = p.project_id)
    || ' elements)' AS project_description
    CURSOR
    (SELECT pe.element_id
    || pe.element_ref
    || '] '
    || pe.element_name
    || ' ('
    || pe.unit_count
    || ')' AS element_description
    CURSOR
    (SELECT hu.hu_id
    || hu.hu_ref
    || '] '
    || CASE
    WHEN hu.bedroom_count IS NOT NULL
    THEN ', Bedrooms: ' || hu.bedroom_count
    ELSE NULL
    END
    || CASE
    WHEN hu.bedspace_count IS NOT NULL
    THEN ', Bedspaces: ' || hu.bedspace_count
    ELSE NULL
    END AS hu_descripton
    FROM HOUSING_UNIT hu
    WHERE hu.element_id = pe.element_id
    ORDER BY hu.hu_ref
    ) AS housing_units
    FROM PROJECT_ELEMENT pe
    WHERE pe.project_id = p.project_id
    ORDER BY pe.element_ref, pe.element_name
    ) elements
    FROM PROJECT p
    START WITH p.project_id = l_root_project_id
    CONNECT BY PRIOR p.project_id = p.parent_project_id -- connect by used with LEVEL keyword
    ORDER SIBLINGS BY p.file_ref DESC
    , p.project_ref DESC
    , p.project_name DESC;
    Edited by: AprilM on Jul 17, 2012 10:28 AM

    Interesting. I am getting even worse results on 11.2.0.1.0:
    SQL> select * from v$version
      2  /
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    SQL> select dname,cursor(select ename from emp e where e.deptno = d.deptno) from dept d
      2  /
    select dname,cursor(select ename from emp e where e.deptno = d.deptno) from dept d
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-00905: missing keyword
    SQL> connect scott
    Enter password: *****
    Connected.
    SQL> select * from v$version
      2  /
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for 32-bit Windows: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    SQL> select dname,cursor(select ename from emp e where e.deptno = d.deptno) from dept d
      2  /
    DNAME          CURSOR(SELECTENAMEFR
    ACCOUNTING     CURSOR STATEMENT : 2
    CURSOR STATEMENT : 2
    ENAME
    CLARK
    KING
    MILLER
    RESEARCH       CURSOR STATEMENT : 2
    CURSOR STATEMENT : 2
    ENAME
    SMITH
    JONES
    SCOTT
    ADAMS
    FORD
    SALES          CURSOR STATEMENT : 2
    CURSOR STATEMENT : 2
    ENAME
    ALLEN
    WARD
    MARTIN
    BLAKE
    TURNER
    JAMES
    6 rows selected.
    OPERATIONS     CURSOR STATEMENT : 2
    CURSOR STATEMENT : 2
    no rows selected
    SQL> And double CURSOR also works fine in 10g:
    SQL> select cursor(select dname,cursor(select ename from emp e where e.deptno = d.deptno) from dept d) from dual
      2  /
    CURSOR(SELECTDNAME,C
    CURSOR STATEMENT : 1
    CURSOR STATEMENT : 1
    DNAME          CURSOR(SELECTENAMEFR
    ACCOUNTING     CURSOR STATEMENT : 2
    CURSOR STATEMENT : 2
    ENAME
    CLARK
    KING
    MILLER
    RESEARCH       CURSOR STATEMENT : 2
    CURSOR STATEMENT : 2
    ENAME
    SMITH
    JONES
    SCOTT
    ADAMS
    FORD
    SALES          CURSOR STATEMENT : 2
    CURSOR STATEMENT : 2
    ENAME
    ALLEN
    WARD
    MARTIN
    BLAKE
    TURNER
    JAMES
    6 rows selected.
    OPERATIONS     CURSOR STATEMENT : 2
    CURSOR STATEMENT : 2
    no rows selectedSY.
    Edited by: Solomon Yakobson on Jul 17, 2012 1:27 PM

  • If you see ORA-00980 during RPM 13.1.6 install

    While upgrading from 13.1.5.1 to 13.1.6 the compile invlaid object step of the rpm install failed.
    The cause was in invalid package RECLASS_SQL.
    The error that was being shown in the compile of RECLASS_SQL was ORA-00980
    The reason for the error was a bad synonym obj_rcls_cost_event_rec.
    When I looked at the source for the synonym it was pointing at SYS instead of RMS13 schema
    I rebuild the Synonym and all was good.
    Hope this helps someone else.
    Edited by: user9083531 on Sep 29, 2012 9:16 AM

    While upgrading from 13.1.5.1 to 13.1.6 the compile invlaid object step of the rpm install failed.
    The cause was in invalid package RECLASS_SQL.
    The error that was being shown in the compile of RECLASS_SQL was ORA-00980
    The reason for the error was a bad synonym obj_rcls_cost_event_rec.
    When I looked at the source for the synonym it was pointing at SYS instead of RMS13 schema
    I rebuild the Synonym and all was good.
    Hope this helps someone else.
    Edited by: user9083531 on Sep 29, 2012 9:16 AM

Maybe you are looking for

  • 4.3 Upgrade - 3G No Longer Working

    I have an iphone4 and it was running 4.2.1 without problem. Yesterday i decided to upgrade to 4.3 because I wanted to take advantage of the new personal hotspot feature. Anyway - no problems during uograde, except now my 3G does not work. I am not in

  • How do I get rid of the three SEO apps that are now on my computer?

    I'm not into internet marketing-building websites etc., at this time. I would like to remove the SEO apps that are on my desktop etc. I believe there are three of them, and I don't need them.

  • Reconnecting sound clips

    I did something a little bit stupid in the my sequence and am wondering if there is a magical little button that will help me out! I orginally dragged clips into the timeline with the idea that I would be redoing the sound from these clips in post as

  • Error installing SQL 2005 SP4

    Hi Guys, When i am installing SQL 2005 SP4 in windows 2008r2 cluster i get following error message "your account information could not be verified. Press OK to return to Authentication Mode screen to determine reason for failure.For setup to verify y

  • "reproc: Insert and Update failed on" replicated table

    Hello, I've published a new publication item on an Oracle Lite Server (9i and mobile server 5.0.2.10). After inserting records on the server replicated table (Table1), when I try to sync some devices, I have the following error message on the client