PLS-00905: object SCOTT.DO_COMMISIONS is invalid

I tried to create a procedure,i didn't get any errors when created.But,when i am executing it i am getting the error
object SCOTT.DO_COMMISIONS is invalid
-- This procedure computes the commissions for salespersons.
-- It prints out the salesperson's code,his or her total sales,
-- and corresponding commission.
-- No inputs. No errors are reported and no exceptions are raised.
/* Logic: A cursor to create a join between PLSQL101_PRODUCT and
PLSQL101_PURCHASE on PRODUCT_NAME column is done.
The result is ordered by salesperson.
Outer loop starts with a new salesperson and inner loop
processes all rows for one salesperson.
CREATE OR REPLACE PROCEDURE do_commissions IS
   commission_rate NUMBER := 2  ;
   total_sale     NUMBER := 0  ;
   current_person CHAR(3):= ' ';
   next_person    CHAR(3)      ;
   quantity_sold  NUMBER := 0  ;
   item_price     NUMBER := 0  ;
   CURSOR sales_cur IS
      SELECT tab1.salesperson,
             tab1.quantity,
             tab2.product_price
      FROM   plsql101_purchase tab1,
             plsql101_product  tab2
      WHERE  tab1.product_name = tab2.product_name
      ORDER BY salesperson;
  BEGIN
       OPEN sales_cur;
       LOOP
         FETCH sales_cur INTO
               next_person, quantity_sold, item_price;
         WHILE (next_person = current_person
                AND
                sales_cur%FOUND)
         LOOP
              total_sale :=
                   total_sale + (quantity_sold * item_price);
              FETCH sales_cur INTO
                   next_person, quantity_sold, item_price;
         END LOOP;
         IF (sales_cur%FOUND)
         THEN
              IF(current_person != next_person)
              THEN
                  IF(current_person != ' ')
                  THEN
                     dbms_output.put_line
                        (current_person ||
                         ' ' ||
                         total_sale ||
                         ' ' ||
                         total_sale * commission_rate / 100);
                  END IF;
                  total_sale := quantity_sold * item_price;
                  current_person := next_person;
               END IF;
            ELSE IF (current_person != ' ')
            THEN
                 dbms_output.put_line(current_person ||
                                   ' ' ||
                                   total_sale ||
                                   ' ' ||
                                   total_sale * commission_rate / 100);
                   END IF;
                END IF;
                EXIT WHEN sales_cur%NOTFOUND;
                END LOOP;
                CLOSE sales_cur;
             END do_commissions;
SQL> @do_commisions
Procedure created.
SQL> EXEC do_commisions;
BEGIN do_commisions; END;
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00905: object SCOTT.DO_COMMISIONS is invalid
ORA-06550: line 1, column 7:
PL/SQL: Statement ignoredCan someone explain me why i am getting that error,i did nothing wrong in the coding part

Error message
SQL> select * from dba_errors where name='DO_COMMISIONS';
OWNER                          NAME                           TYPE           SEQUENCE       LINE   POSITION
TEXT
ATTRIBUTE MESSAGE_NUMBER
SCOTT                          DO_COMMISIONS                  PROCEDURE             1         59      14
PLS-00113: END identifier 'DO_COMMISSIONS' must match 'DO_COMMISIONS' at line 1, column 11
ERROR                113

Similar Messages

  • 11.5.10.2 to R12.1.1 upgrade: jtfpfstart.sql : PLS-00905: object APPS.JTF_PF_CONV_PKG is invalid

    Hello,
    EBS version : 11.5.10.2
    DB version : 11.2.0.3
    OS version : AIX 6.1
    As a part of 11.5.10.2 to R12.1.1 upgrade, while applying merged 12.1.1 upgrade driver(u6678700.drv), we got below error :
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    ATTENTION: All workers either have failed or are waiting:
               FAILED: file jtfpfstart.sql on worker  1.
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Worker LOG :
    Start time for file is: Wed Aug 07 2013 14:53:36
    sqlplus -s APPS/***** @/fmstop/r12apps/apps/apps_st/appl/jtf/12.0.0/patch/115/sql/jtfpfstart.sql &un_apps &un_jtf
                dbms_aqadm.drop_queue_table(queue_table=>JTF_PF_CONV_PKG.QTABLENAME, force=>true);
    ERROR at line 23:
    ORA-06550: line 23, column 47:
    PLS-00905: object APPS.JTF_PF_CONV_PKG is invalid
    ORA-06550: line 23, column 6:
    PL/SQL: Statement ignored
    ORA-06550: line 27, column 45:
    PLS-00905: object APPS.JTF_PF_CONV_PKG is invalid
    ORA-06550: line 27, column 2:
    PL/SQL: Statement ignored
    ORA-06550: line 28, column 38:
    PLS-00905: object APPS.JTF_PF_CONV_PKG is invalid
    ORA-06550: line 28, column 2:
    PL/SQL: Statement ignored
    ORA-06550: line 29, column 39:
    PLS-00905: object APPS.JTF_PF_CONV_PKG is invalid
    ORA-06550: line 29, column 2:
    PL/SQL: Statement ignored
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    So far I have done below :
    SQL> ALTER PACKAGE APPS.JTF_PF_CONV_PKG compile;
    Warning: Package altered with compilation errors.
    SQL> show error
    Errors for PACKAGE APPS.JTF_PF_CONV_PKG:
    LINE/COL ERROR
    30/3     PL/SQL: Declaration ignored
    30/39    PLS-00201: identifier 'JTF_PF_PAGE_OBJECT_TABLE' must be declared
    66/3     PL/SQL: Declaration ignored
    66/33    PLS-00201: identifier 'JTF_PF_TABLETYPE' must be declared
    SQL> ALTER PACKAGE APPS.JTF_PF_CONV_PKG compile body;
    Warning: Package Body altered with compilation errors.
    Found Upgrade 11i to R12.1.3 worker fails on jtfpfstart.sql PLS-00905: object APPS.JTF_PF_CONV_PKG is invalid (Doc ID 1463373.1) which has fixed JTF_PF_TABLETYPE.
    drix10:/fmstop/r12apps/apps/apps_st/appl/admin/FMSTEST/log>cd $JTF_TOP/patch/115/xdf
    drix10:/fmstop/r12apps/apps/apps_st/appl/jtf/12.0.0/patch/115/xdf>tnsping $TWO_TASK
    TNS Ping Utility for IBM/AIX RISC System/6000: Version 10.1.0.5.0 - Production on 07-AUG-2013 15:03:59
    Copyright (c) 1997, 2003, Oracle.  All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=drix10)(PORT=1541)) (CONNECT_DATA=(SID=FMSTEST)))
    OK (0 msec)
    drix10:/fmstop/r12apps/apps/apps_st/appl/jtf/12.0.0/patch/115/xdf>
    drix10:/fmstop/r12apps/apps/apps_st/appl/jtf/12.0.0/patch/115/xdf>adjava -mx512m -nojit oracle.apps.fnd.odf2.FndXdfCmp apps apps \
    > apps apps thin drix10:1541:FMSTEST type \
    > jtf_pf_tabletype.xdf $FND_TOP/patch/115/xdf/xsl
                         Copyright (c) 2002 Oracle Corporation
                            Redwood Shores, California, USA
                                        AD Java
                                     Version 12.0.0
    NOTE: You may not use this utility for custom development
          unless you have written permission from Oracle Corporation.
    Reading product information from file...
    Reading language and territory information from file...
    Reading language information from applUS.txt ...
      Temporarily resetting CLASSPATH to:
      "/fmstop/r12apps/apps/apps_st/appl/ad/12.0.0/java/adjava.zip:/fmstop/r12apps/apps/tech_st/10.1.3/appsutil/jdk/lib/dt.jar:/fmstop/r12apps/apps/tech_st/10.1.3/appsutil/jdk/lib/tools.jar:/fmstop/r12apps/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/rt.jar:/fmstop/r12apps/apps/apps_st/comn/java/lib/appsborg.zip:/fmstop/r12apps/apps/tech_st/10.1.2/forms/java:/fmstop/r12apps/apps/tech_st/10.1.2/forms/java/frmall.jar:/fmstop/r12apps/apps/tech_st/10.1.2/jlib/ewt3.jar:/fmstop/r12apps/apps/tech_st/10.1.2/j2ee/OC4J_BI_Forms/applications/formsapp/formsweb/WEB-INF/lib/frmsrv.jar:/fmstop/r12apps/apps/apps_st/comn/java/classes"
      Calling /fmstop/r12apps/apps/tech_st/10.1.3/appsutil/jdk/jre/bin/java ...
    XDF file application started. Current time is: Wed Aug 07 15:04:40 CDT 2013
    ================================================================================
    Applying XDF file : jtf_pf_tabletype.xdf
    ================================================================================
                  Copyright (c) 2003 Oracle Corporation
                     Redwood Shores, California, USA
             XDF(XML Object Description File) Comparison Utility
                            Version 1
    NOTE: You may not use this utility for custom development
          unless you have written permission from Oracle Corporation.
    Type JTF_PF_TABLETYPE does not exist in APPS
    Creating Type
          CREATE OR REPLACE TYPE "APPS"."JTF_PF_TABLETYPE" as table of varchar2(2000);
    Start time for statement above is Wed Aug 07 15:04:40 CDT 2013
    End time for statement above is Wed Aug 07 15:04:41 CDT 2013
    SQL> ALTER PACKAGE APPS.JTF_PF_CONV_PKG compile;
    Warning: Package altered with compilation errors.
    SQL> show error
    Errors for PACKAGE APPS.JTF_PF_CONV_PKG:
    LINE/COL ERROR
    30/3     PL/SQL: Declaration ignored
    30/39    PLS-00201: identifier 'JTF_PF_PAGE_OBJECT_TABLE' must be declared
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    I could not see any doc on metalink or google talking about JTF_PF_PAGE_OBJECT_TABLE.
    Please help.

    Please try the following:
    1. Drop the following objects (take a backup of the tables first) using:
    SQL> create table JTF.JTF_PF_REPOSITORY_TMP_BKP as select * from JTF.JTF_PF_REPOSITORY_TMP;
    SQL> create table JTF.JTF_PF_REPOSITORY_BKP as select * from JTF.JTF_PF_REPOSITORY;
    SQL> drop table JTF.JTF_PF_REPOSITORY_TMP;
    SQL> drop table JTF.JTF_PF_REPOSITORY;
    SQL> drop synonym APPS.JTF_PF_REPOSITORY_TMP;
    SQL> drop synonym APPS.JTF_PF_REPOSITORY;
    2. Run the jtfpfcreate command:
    $ sqlplus -s apps/<apps_pws> @$JTF_TOP/patch/115/sql/jtfpfcreate.sql APPS JTF
    3. Recreate the missing objects:
    $ adjava -mx512m -nojit oracle.apps.fnd.odf2.FndXdfCmp apps apps apps apps thin "<hostname>:<port>:<SID>" all $JTF_TOP/patch/115/xdf/jtf_pf_tabletype.xdf $FND_TOP/patch/115/xdf/xsl
    $ adjava -mx512m -nojit oracle.apps.fnd.odf2.FndXdfCmp apps apps apps apps thin "<hostname>:<port>:<SID>" all $JTF_TOP/patch/115/xdf/jtf_pf_page_object_table.xdf $FND_TOP/patch/115/xdf/xsl
    $ adjava -mx512m -nojit oracle.apps.fnd.odf2.FndXdfCmp apps apps apps apps thin "<hostname>:<port>:<SID>" all $JTF_TOP/patch/115/xdf/jtf_pf_techstack_table.xdf $FND_TOP/patch/115/xdf/xsl
    $ adjava -mx512m -nojit oracle.apps.fnd.odf2.FndXdfCmp apps apps apps apps thin "<hostname>:<port>:<SID>" all $JTF_TOP/patch/115/xdf/jtf_pf_trackpurpose_table.xdf $FND_TOP/patch/115/xdf/xsl
    4. Drop unused queue objects:
    begin
    DBMS_AQADM.DROP_QUEUE_TABLE (queue_table => 'JTF_PF_LOGGING_TABLE', force => TRUE);
    end;
    5. Restart the failed worker using adctrl
    Regards,
    Hussein

  • PLS-00905: object XDB.DBMS_XDBUTIL_INT is invalid

    While exporting a user using exp i am receiving this error
    . exporting triggers
    EXP-00056: ORACLE error 6550 encountered
    ORA-06550: line 1, column 30:
    PLS-00905: object XDB.DBMS_XDBUTIL_INT is invalid
    ORA-06550: line 1, column 14:
    PL/SQL: Statement ignored
    EXP-00056: ORACLE error 6550 encountered
    ORA-06550: line 1, column 30:
    PLS-00905: object XDB.DBMS_XDBUTIL_INT is invalid
    ORA-06550: line 1, column 14:
    PL/SQL: Statement ignored
    EXP-00000: Export terminated unsuccessfully
    Database server is 10g RH Linux 7.3.
    Oracle Client is 10g on Windows XP.
    Please help me out.

    ?

  • PLS-00905: object SYS.DBMS_DATAPUMP is invalid

    环境如下:
    OS:AIX 6.1
    DB:11.2.0.2
    数据库被同事执行了如下操作:
    connect / as sysdba;
    SQL> startup upgrade;
    SQL> @catalog.sql <--------------$ORACLE_HOME/rdbms/admin
    SQL> @catproc.sql <--------------$ORACLE_HOME/rdbms/admin
    SQL> @utlrp.sql <--------------$ORACLE_HOME/rdbms/admin
    SQL> shutdown immediate;
    SQL> startup;
    在执行catalog.sql时发现大量错误就ctrl+C,强行中断了。现在数据库重新启动后发现如下问题:
    1、expdp进行备份报错
    UDE-06550: operation generated ORACLE error 6550
    ORA-06550: line 1, column 104:
    PLS-00905: object SYS.DBMS_DATAPUMP is invalid
    ORA-06550: line 1, column 100:
    PL/SQL: Statement ignored
    ORA-06550: line 1, column 206:
    PLS-00905: object SYS.DBMS_DATAPUMP is invalid
    ORA-06550: line 1, column 202:
    PL/SQL: Statement ignored
    alter package SYS.DBMS_DATAPUMP compile;
    报错
    2、DBA_REGISTERY视图失效
    SQL> select comp_name, version, status from dba_registry;
    ORA-04063: package body "SYS.DBMS_REGISTRY" has errors
    3、数据库可以的基本读写功能还正常
    可以正常启动、关闭,alert文件在关闭、启动过程无异常
    数据库可以正常的支撑业务系统,ERP系统
    请高手指点下解决办法。
    想重新执行catalog.sql 、catproc.sql 、utlrp.sql 一次脚本,会不会变得更糗呢。

    I'm truly grateful for your help, my Englist is poor.
    The system environment is listed as follows:
    OS:AIX 6.1
    DB:11.2.0.2
    My Oracle database has been performed those script:
    connect / as sysdba;
    SQL> startup upgrade;
    SQL> @catalog.sql <--------------$ORACLE_HOME/rdbms/admin
    SQL> @catproc.sql <--------------$ORACLE_HOME/rdbms/admin
    SQL> @utlrp.sql <--------------$ORACLE_HOME/rdbms/admin
    SQL> shutdown immediate;
    SQL> startup;
    When catalog.sql was going, lots of error printed, then dba press "CTRL+C".
    After restart,the database became abnoral.
    1、expdp command error
    UDE-06550: operation generated ORACLE error 6550
    ORA-06550: line 1, column 104:
    PLS-00905: object SYS.DBMS_DATAPUMP is invalid
    ORA-06550: line 1, column 100:
    PL/SQL: Statement ignored
    ORA-06550: line 1, column 206:
    PLS-00905: object SYS.DBMS_DATAPUMP is invalid
    ORA-06550: line 1, column 202:
    PL/SQL: Statement ignored
    alter package SYS.DBMS_DATAPUMP compile;
    this also return warnnig
    2、DBA_REGISTERY became invalid
    SQL> select comp_name, version, status from dba_registry;
    ORA-04063: package body "SYS.DBMS_REGISTRY" has errors
    3、the app is running normally,and Oracle database can be manipulated to read and write.

  • Pls-00905 object invalid

    Hi,
    I have a code which drops and creates a job.
    But, while dropping the job i am getting an error -object invalid.
    what could be the possible reason for my job to be invalid.
    The job calls a pl sql block which in turn runs thru a loop and calls a procedure.
    I am using oracle 11 rel2

       FOR cur_date IN (SELECT       TO_DATE (v_prevprocesdte, 'dd-mon-yyyy')
                                   + LEVEL dt
                              FROM DUAL
                        CONNECT BY   TO_DATE (v_prevprocesdte, 'dd-mon-yyyy')
                                   + LEVEL <= v_procesdte)
       LOOP
          DBMS_SCHEDULER.DROP_JOB(JOB_PRC_DROPACQTXN);
          DBMS_SCHEDULER.create_job
             (job_name             => 'JOB_PRC_DROPACQTXN',
              start_date           => SYSDATE + 1 / 1200,
              repeat_interval      => 'FREQ=DAILY; INTERVAL=1',
              end_date             => NULL,
              job_class            => 'DEFAULT_JOB_CLASS',
              job_type             => 'PLSQL_BLOCK',
              job_action           => 'BEGIN FOR cc IN (select * from src_txn)
                                        LOOP
                                v_errm :=null;
                                prc_drop_acq_txn(''cur_date.dt'',''cc.src'',''cc.txn_type'',v_errm);
                                IF v_output=1
                                THEN
                                dbms_output.put_line(v_errm);
                                END IF;
                                END LOOP;
                               END;',
              comments             => NULL,
              enabled              =>TRUE
       END LOOP;

  • Pls-00905

    Hi, everybody!!
    I'm trying to create a table function. I created an object type and a table type. But when I try to create the function, I get the PLS-00905 error code (object string is invalid). What can I do?
    Thank you!
    Fausto

    ?

  • Root object is missing or invalid

    Received the following message when attempting to open a pdf file in an email.  "There was an error opening this document.  The root object is missing or invalid."   I was using MS Outlook 2007.  Unknown what program the email sender was using to create the PDF file or to send the e-mail.  I can open other PDF files from other senders.
    Thanks.

    Ask the sender to resend the file. Sometimes pdfs get corrupted in the mail. If it won't get blocked sending pdfs as zipped files generally prevents the issue. But some companies ban zipped attachments.

  • "there was an error opening this document the root object is missing or invalid" adobe reader 9

    I get the following message every time I try an open some of my saved PDF files in Adobe Reader 9
    "there was an error opening this document. the root object is missing or invalid."
    these files are not down loaded from a website, they are files I greated some time back and I have not opened in a while.
    I am runing window XP and this dos not happen with all my PDF files.
    can you help.
    James

    Sounds like the files are corrupt. Time to restore them from a good backup.

  • ORA-06553: PLS-801: internal error [hshuid:LU invalid]

    DBA refreshed database B from database A (both 64-bit). Database C (also 64-bit) had a link to database B. DBA claims to have rebuilt the link from C to B, but queries now result in:
    SQL> select housing_pkg.f_housing_dep_amt@btest(12540, '200808', 'HEA');
    select housing_pkg.f_housing_dep_amt@btest(12540, '200808', 'HEA')
    ERROR at line 1:
    ORA-06553: PLS-801: internal error [hshuid:LU invalid]
    Can anyone provide some insight into what the error message is saying?

    Hi,
    Most the error is due to the 32 bit datafiles being running on a 64 bit version of oracle.
    Running utlirp.sql (this is going to invalidate most and then recompiles them again )
    I suppose..that is the problem with your DB.
    - Pavan Kumar N
    Edited by: Pavan Kumar on Oct 2, 2008 11:59 PM

  • Blu-ray Object: "Sept-Nov_2008", Error: "invalid format", Code: "14", Note: "ERROR: This stream does

    I am trying to transcode a self contained FCP quicktime movie file and I get the message - Blu-ray Object: "Sept-Nov_2008", Error: "invalid format", Code: "14",
    Note: "ERROR: This stream doesn't include Picture timing SEI, Unit Offset = 785835706". I am going to use quicktime pro 7 to import  a quicktime movie instead of FCP self contained file into encore. But if anybody has any suggestions, please let me know. I have read about wrong field orders but I am using a custom preset with the field order set to upper (odd) - since I am using a Apple ProRes 422 (proxy) for the FCP sequence.

    This thread might be helpful:
    http://adobe.hosted.jivesoftware.com/message/3460426
    -Ramesh

  • Websheet objects non-existent or invalid -- how to correct?

    OS: RHEL 5.4
    DB: 11gR2
    APEX: 4.1
    After upgrade of APEX to 4.1, websheet objects non-existent or invalid -- hence, can not create Websheet app. Any clues on how to correct and/or what may be wrong? Sample database applications imported and working fine.
    Cheers!

    Got this figured out...
    Just had to install the sample Websheets from the Application.
    Cheers!

  • OEHR Sample Objects Installation - ORA-00902: invalid datatype

    When I was trying to install the supporting objects, I received a CREATE TYPE privilege error previously. Then the DBA updated APEX to 2.2.1 to fix the problem. It did but know I'm gettingn ORA-00901:invalid datatype and othere errors with creating the tables, views,etc. Can somebody help me. I'm running APEX with database version 9.2

    Can somebody help me? I can not install the database objects. I get an invalid datatype error when the install script attempts to install the tables.
    Please help!

  • Mailer object error message "SMTP: invalid from address. SMTP error 530 5.7.0 Must issue a STARTTLS command first. d5sm35857280yhl.19".

    I am trying to send an email from Lookout V6.6 using the Mailer object.  I have an email address setup through GMAIL and have verified it works.  Also, Lookout Mailer object is able to verify GMAIL server.  I get the following error message when trying to send the email: "SMTP: invalid from address. SMTP error 530 5.7.0 Must issue a STARTTLS command first. d5sm35857280yhl.19".  Anyone know what is causing this?

    Another method is to use a SMTP relayer, we have deployed them in the past.
    http://www.hmailserver.com/index.php?page=welcome
    Mike
    Forshock - Consult.Develop.Solve.

  • Object Fields Mysteriously Becoming Invalid

    I am not exactly sure what code to post with this considering the nature of what's going on, so I'll do my best to explain and then perhaps I can provide code based on your responses.
    When my application loads in the AppDelegate I create 3 objects of the "Item" type and then create an array out of those objects and add that array to an ItemListController which has a property for an NSMutableArray. The program then loads a UINavigationController with each of those objects in it being drawn with a subClass of UITableViewCell. As it stands now, if I click on any one of those objects more than 3 times, the object itself does not become nil, but all of the fields within it do.
    - (void)applicationDidFinishLaunching:(UIApplication *)application {
    Item *sword = [[Item alloc] initWithName:@"Sword" description:@"This is a sword"];
    //sword.itemPrice = (int *)524;
    Item *shield = [[Item alloc] initWithName:@"Shield" description:@"This is a shield"];
    //shield.itemPrice = (int *)322;
    Item *subligar = [[Item alloc] initWithName:@"Subligar" description:@"This is a subligar"];
    //subligar.itemPrice = (int *)1034;
    [subligar setImageWithPath:@"Hello.png"];
    if(self.itemListController == nil) {
    ItemListController *controller = [[ItemListController alloc] init];
    self.itemListController = controller;
    [controller release];
    NSMutableArray *itemArray = [[NSMutableArray alloc] initWithObjects:sword, shield, subligar, nil];
    self.itemListController.items = itemArray;
    [itemArray release];
    // Configure and show the window
    [window addSubview:[navigationController view]];
    [window makeKeyAndVisible];
    The click handler of my TableView right now simply calls the AppDelegate's instance of ItemListController and then gets the object back from the items array at the index at which the user clicked. From there, I set a few properties and load a view tailored to that Item.
    Presently, all of the logic that sets properties with the Item and loads the view for that object is commented out and so the only behavior occurring is the Item being retrieved from the AppDelegate's ItemListController.items and then being stored in a temporary object which is later released. But like I said above, *after 3 requests for my object all of its fields become invalid*. I have no idea what is causing it because the object itself is never being released within that time. Below is the code from the click event of the table cell:
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    calls++;
    NSLog(@"Hit Count: %d", calls);
    iPhoneHelloWorldAppDelegate *appDelegate = (iPhoneHelloWorldAppDelegate *)[[UIApplication sharedApplication] delegate];
    Item *item = (Item *)[appDelegate.itemListController.items objectAtIndex:indexPath.row];
    //lastItem = item;
    if(self.itemView == nil) {
    ItemViewController *viewController = [[ItemViewController alloc] initWithNibName:@"ItemViewController" bundle:[NSBundle mainBundle]];
    self.itemView = viewController;
    [viewController release];
    if(calls > 3) {
    NSLog(@"item retainCount = %d", [item retainCount]);
    [item release];
    Here's a snapshot from the debugger after my Item object dies:
    http://img514.imageshack.us/img514/4567/picture2az5.png

    Hi,
    Item *item = (Item *)[appDelegate.itemListController.items objectAtIndex:indexPath.row];
    //lastItem = item;
    if(self.itemView == nil) {
    ItemViewController *viewController = [[ItemViewController alloc] initWithNibName:@"ItemViewController" bundle:[NSBundle mainBundle]];
    self.itemView = viewController;
    [viewController release];
    if(calls > 3) {
    NSLog(@"item retainCount = %d", [item retainCount]);
    // Why do you relase item? I don't see any retain or method wich increases the retain-count.
    [item release];

  • Objects using dblinks become invalid

    I am using numerous functions / procedures / synonyms which point to other databases via dblinks. All was well when the dbLinks / synonyms were public. Last week I was asked to put up a test schema on the same database so I duly made all the public dblinks & synonyms private. All seemed well, everything compiled so I made it live.
    Now we get intermittent problems whereby the procedures using the synonyms & dblinks suddenly become invalid. They refuse to automatically compile, causing errors in the applications using the database. SOmetimes they automatically recompile after a time, sometimes they refuse to compile until I do them manually in SQL developer.
    anybody have any idea why this should be happening?
    Main database is Oracle Enterprise 11.1.0.7 64 bit, connecting to one of same version, one of 10.2.0.4 64 bit. All running on AIX 6.1.

    Hi,
    Same thing is happening here.
    DB A with PROC_SP (Strore procedure)
    DB B with 2 users; user TEST1 referencing PROC_SP@A and user TEST2 referencing also PROC_SP@A.
    When compiling code on user TEST1 that uses PROC_SP@A, the code on TEST2 becames invalid, and vice-versa.
    Did you solve your problem ?
    My Database version is 11.2.0.2.0, both DB (A and B) use the same version (Exadata with 11R2)
    Thanks in advance.

Maybe you are looking for