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

?

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 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

  • 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-00304: cannot compile body of package without its specification

    Hi all,
    While compiling the below pasted package , I got the following error msg.
    PL/SQL: Compilation unit analysis terminated
    PLS-00304: cannot compile body of 'EDR_RPT_CLASS_BY_TAWT_PACKAGE'
    without its specification
    PLS-00905: object HDOT.EDR_RPT_CLASS_BY_TAWT_PACKAGE is invalidBut I believe that have declared package and ppackage body specification correctly. Please could anyone help me to find out the error
    CREATE OR REPLACE PACKAGE edr_rpt_class_by_tawt_package AS
    PROCEDURE edr_rpt_gen_class_by_tawt (
      in_report_parameter_id   IN      report_tasks.report_task_id%TYPE,
      report_data              OUT     SYS_REFCURSOR,
      chart_data               OUT     SYS_REFCURSOR,
      footer_data              OUT     SYS_REFCURSOR
    PROCEDURE edr_rpt_gen_class_by_fawt (
      in_report_parameter_id   IN      report_tasks.report_task_id%TYPE,
      report_data              OUT     SYS_REFCURSOR,
      chart_data               OUT     SYS_REFCURSOR,
      footer_data              OUT     SYS_REFCURSOR
    PROCEDURE edr_rpt_gen_class_by_sawt (
      in_report_parameter_id   IN      report_tasks.report_task_id%TYPE,
      report_data              OUT     SYS_REFCURSOR,
      chart_data               OUT     SYS_REFCURSOR,
      footer_data              OUT     SYS_REFCURSOR
    PROCEDURE edr_rpt_gen_class_by_triawt (
      in_report_parameter_id   IN      report_tasks.report_task_id%TYPE,
      report_data              OUT     SYS_REFCURSOR,
      chart_data               OUT     SYS_REFCURSOR,
      footer_data              OUT     SYS_REFCURSOR
    PROCEDURE edr_rpt_gen_class_by_qawt (
      in_report_parameter_id   IN      report_tasks.report_task_id%TYPE,
      report_data              OUT     SYS_REFCURSOR,
      chart_data               OUT     SYS_REFCURSOR,
      footer_data              OUT     SYS_REFCURSOR
    FUNCTION  class_count
      in_lane_id                  edr_rpt_by_ranges_output.lane_id%TYPE,
      in_direction_id             edr_rpt_by_ranges_output.direction_id%TYPE,
      in_interval_start_date_time edr_rpt_by_ranges_output.interval_start_date_time%TYPE,
      in_interval_end_date_time   edr_rpt_by_ranges_output.interval_start_date_time%TYPE,
      in_axle_wt_min              edr_cls_by_tawt_report_data.group_weight%TYPE,
      iin_axle_wt_max             edr_cls_by_tawt_report_data.group_weight%TYPE,
      in_class_min                edr_cls_by_tawt_report_data.vehicle_class%TYPE,
      in_class_max                edr_cls_by_tawt_report_data.vehicle_class%TYPE
    RETURN VARCHAR2;
    END edr_rpt_class_by_tawt_package;
    CREATE OR REPLACE PACKAGE BODY edr_rpt_class_by_tawt_package AS
       c_front_axle_only         CONSTANT axle_class.group_type%TYPE := -1;
       c_axle_single_group_type  CONSTANT axle_class.group_type%TYPE := 1;
       c_axle_tandem_group_type  CONSTANT axle_class.group_type%TYPE := 2;
       c_axle_tridem_group_type  CONSTANT axle_class.group_type%TYPE := 3;
       c_axle_quadrem_group_type CONSTANT axle_class.group_type%TYPE := 4;
       c_kips_conversion_unit_id CONSTANT units.unit_id%TYPE         := 8;
       v_report_axle_group_type  axle_class.group_type%TYPE := 0;
    FUNCTION  class_count
      in_lane_id                  edr_rpt_by_ranges_output.lane_id%TYPE,
      in_direction_id             edr_rpt_by_ranges_output.direction_id%TYPE,
      in_interval_start_date_time edr_rpt_by_ranges_output.interval_start_date_time%TYPE,
      in_interval_end_date_time   edr_rpt_by_ranges_output.interval_start_date_time%TYPE,
      in_axle_wt_min              edr_cls_by_tawt_report_data.group_weight%TYPE,
      in_axle_wt_max              edr_cls_by_tawt_report_data.group_weight%TYPE,
      in_class_min                edr_cls_by_tawt_report_data.vehicle_class%TYPE,
      in_class_max                edr_cls_by_tawt_report_data.vehicle_class%TYPE
    RETURN NUMBER
    IS
      my_count_result NUMBER(18);
    BEGIN
       SELECT NVL(SUM(vehicle_count), 0 )
       INTO my_count_result
       FROM
            SELECT site_lane_id
            FROM   edr_rpt_tmp_report_lanes
            WHERE  edr_rpt_tmp_report_lanes.output_lane_id        = in_lane_id
              AND  edr_rpt_tmp_report_lanes.output_direction_id   = in_direction_id
           ) report_lanes
       JOIN edr_cls_by_tawt_report_data
         ON edr_cls_by_tawt_report_data.site_lane_id          = report_lanes.site_lane_id
       WHERE edr_cls_by_tawt_report_data.bin_start_date_time >= in_interval_start_date_time
         AND edr_cls_by_tawt_report_data.bin_start_date_time <  in_interval_end_date_time
         AND edr_cls_by_tawt_report_data.group_weight >= in_axle_wt_min
         AND edr_cls_by_tawt_report_data.group_weight  < in_axle_wt_max 
         AND edr_cls_by_tawt_report_data.vehicle_class >= in_class_min
         AND edr_cls_by_tawt_report_data.vehicle_class <= in_class_max
       RETURN my_count_result;
    END;
    FUNCTION get_row_class_counts_text
    RETURN VARCHAR2
    IS
       my_row_counts_text  VARCHAR2(10000);
       my_row_counts_entry  VARCHAR2(10000);
       CURSOR row_counts_text IS
         SELECT 'edr_rpt_class_by_tawt_package.class_count('
                           ||'lane_id, '
                           ||'direction_id, '
                           ||'interval_start_date_time, '
                           ||'interval_end_date_time, '
                           ||'range_low, '
                           ||'range_high, '
                           || class_id || ', '
                           || class_id || ') "'|| class_id || '"'
         FROM edr_rpt_tmp_report_classes
         ORDER BY class_id;
    BEGIN
      my_row_counts_text   := '';
      my_row_counts_entry  := '';
      -- generate the speed ranges function calls
      OPEN row_counts_text;
      LOOP
        FETCH row_counts_text INTO my_row_counts_entry;
        EXIT WHEN row_counts_text%NOTFOUND;
        my_row_counts_text := my_row_counts_text || ', ' || my_row_counts_entry;
      END LOOP;
      CLOSE row_counts_text;
      RETURN my_row_counts_text;
    END;
    FUNCTION get_row_totals_text
    RETURN VARCHAR2
    IS
       my_row_count_total_text  VARCHAR2(10000);
    BEGIN
      my_row_count_total_text := '';
      -- generate the 'total' column function call
      SELECT 'edr_rpt_class_by_tawt_package.class_count('
                           ||'lane_id, '
                           ||'direction_id, '
                           ||'interval_start_date_time, '
                           ||'interval_end_date_time, '
                           ||'range_low, '
                           ||'range_high, '
                           || MIN(class_id) || ', '
                           || MAX(class_id) || ') " "'
      INTO my_row_count_total_text
      FROM edr_rpt_tmp_report_classes;
      RETURN ', ' || my_row_count_total_text;
    END;
    PROCEDURE apply_default_awt_ranges(in_report_parameter_id   IN   NUMBER)
    IS
      my_awt_ranges_count NUMBER(4);
    BEGIN
    SELECT nvl(count(1),0)
    INTO my_awt_ranges_count
    FROM report_range_parameters
    WHERE REPORT_PARAMETER_ID = in_report_parameter_id
       AND REPORT_PARAMETER_GROUP = 'AXLE_GROUP'
       AND REPORT_PARAMETER_NAME = 'AXLE_NAME';
    IF  ( my_awt_ranges_count = 0 )
    THEN
      INSERT INTO report_range_parameters (REPORT_PARAMETER_ID, REPORT_PARAMETER_GROUP, REPORT_PARAMETER_NAME, REPORT_PARAMETER_MIN_VALUE, REPORT_PARAMETER_MAX_VALUE)
        VALUES (in_report_parameter_id, 'AXLE_GROUP', 'AXLE_NAME', '0', '2');
        VALUES (in_report_parameter_id, 'AXLE_GROUP', 'AXLE_NAME', '30', '32');
    END IF;
    END;
    PROCEDURE edr_class_by_tawt_use_per_veh
       in_report_parameter_id   IN      report_tasks.report_task_id%TYPE,
       in_good_status_mask      IN      NUMBER
    IS
    max_axle_group_value NUMBER(12);
    BEGIN
      DELETE FROM edr_cls_by_tawt_report_data;
      COMMIT;
      INSERT INTO edr_cls_by_tawt_report_data
                      site_id,
                      site_lane_id,
                      site_direction_id,
                      site_direction_name,
                      bin_start_date_time,
                      group_weight,
                      bin_id,
                      bin_value
      SELECT site_id,
             site_lane_id,
             site_direction_id,
             site_direction_name,
             date_time,
             group_weight,
             vehicle_class,
             COUNT(vehicle_class)
      FROM
               SELECT edr_cls_by_tawt_per_veh_data.*
                 FROM edr_cls_by_tawt_per_veh_data          
         GROUP BY date_time,
               site_lane_id,
               group_weight,
               vehicle_class,
               site_id,
               site_direction_id,
               site_direction_name;
    END edr_class_by_tawt_use_per_veh;
    PROCEDURE edr_class_by_tawt_data_type
      in_report_parameter_id   IN      report_tasks.report_task_id%TYPE,
      in_good_status_mask      IN      NUMBER,
      in_data_type             IN      VARCHAR2,
      out_data_type_used          OUT  VARCHAR2
    IS
      my_bin_entry_count   NUMBER(12,0);
      my_veh_entry_count   NUMBER(12,0);
    BEGIN
      IF(UPPER(in_data_type) = 'BINNED') THEN
        --  Axle information can only be read from Per Vehicle data records
        --   - using bins-only is not a supported option
        RAISE_APPLICATION_ERROR(-20101,'Binned data cannot be used for this report.');
      ELSIF    (UPPER(in_data_type) = 'PERVEHICLE')
            OR (UPPER(in_data_type) = 'COMBINED')
      THEN
        out_data_type_used := 'Per Vehicle (All Vehicles)';
        edr_class_by_tawt_use_per_veh( in_report_parameter_id, in_good_status_mask );
      ELSE
         RAISE_APPLICATION_ERROR(-20101,'The data type specified is not recognized.');
      END IF;
    END edr_class_by_tawt_data_type;
    PROCEDURE edr_class_by_tawt_get_veh_data
      in_report_parameter_id   IN   NUMBER,
      in_site_id               IN   NUMBER,
      in_start_date_time       IN   TIMESTAMP,
      in_end_date_time         IN   TIMESTAMP,
      in_report_level_min      IN   NUMBER,
      in_report_level_max      IN   NUMBER
    IS
    BEGIN
      DELETE FROM edr_cls_by_tawt_per_veh_data;
      INSERT INTO edr_cls_by_tawt_per_veh_data
              site_id,
              site_lane_id,
              site_direction_id,
              site_direction_name,
              record_id,
              date_time,
              group_weight,
              vehicle_class,
              group_number,
              vehicle_status,
              vehicle_error_count,
              axle_violations_count,
              group_type         
      SELECT axle_info.site_id,
             axle_info.site_lane_id,
             axle_info.site_direction_id,
             axle_info.site_direction_name,
             axle_info.record_id,
             axle_info.datetime,
             axle_info.group_weight,
             axle_info.v_class,
             axle_info.group_number,
             NVL((SELECT SUM(status_code)
                    FROM traffic_status
                   WHERE traffic_status.record_id = axle_info.record_id), 0) vehicle_status,
             NVL((SELECT COUNT(error_code)
                    FROM traffic_error
                   WHERE traffic_error.record_id = axle_info.record_id), 0) vehicle_error_count,
             NVL((SELECT COUNT(1)
                    FROM axle_weight_violation
                   WHERE axle_weight_violation.record_id = axle_info.record_id), 0) axle_violations_count,
             axle_info.group_type           
        FROM (SELECT site_to_data_source_lane_v.site_id,
                     site_to_data_source_lane_v.site_lane_id,
                     site_to_data_source_lane_v.site_direction_id,
                     site_to_data_source_lane_v.site_direction_name,
                     traffic_record.record_id,
                     traffic_record.datetime,
                     NVL(traffic_class.v_class, 0)   v_class,
                     NVL(axle_class.group_type, 0)   group_type,
                     NVL(axle_class.group_number, 0) group_number,               
                     NVL(TRUNC(sum(convert_units(axle.weight_unit_id,
                                             c_kips_conversion_unit_id,
                                             axle.axle_weight
                           0
                         ) group_weight
               FROM  traffic_record
               JOIN  site_to_data_source_lane_v
                 ON  traffic_record.data_source_id = site_to_data_source_lane_v.data_source_id
                AND  traffic_record.lane = site_to_data_source_lane_v.data_source_lane_id                   
           GROUP BY site_to_data_source_lane_v.site_id,
                     site_to_data_source_lane_v.site_lane_id,
                     site_to_data_source_lane_v.site_direction_id,
                     site_to_data_source_lane_v.site_direction_name,
                     traffic_record.record_id,
                     traffic_record.datetime,
                     traffic_class.v_class,                
                     axle_class.group_type,
                     axle_class.group_number
            ) axle_info
    END edr_class_by_tawt_get_veh_data;
    PROCEDURE gen_class_by_axle_type
      in_report_parameter_id   IN      report_tasks.report_task_id%TYPE,
      report_data              OUT     SYS_REFCURSOR,
      chart_data               OUT     SYS_REFCURSOR,
      footer_data              OUT     SYS_REFCURSOR
    AS
    BEGIN
      apply_default_awt_ranges(in_report_parameter_id);
      my_date_format_mask   := edr_rpt_generic_package.edr_rpt_get_date_format_mask(in_report_parameter_id);
      my_start_date_time    := edr_rpt_generic_package.edr_rpt_get_start_date_time(in_report_parameter_id, my_date_format_mask);
      my_end_date_time      := edr_rpt_generic_package.edr_rpt_get_end_date_time(in_report_parameter_id, my_date_format_mask);
      my_lane_grouping      := edr_rpt_generic_package.edr_rpt_get_lane_grouping(in_report_parameter_id);
      my_site_id            := edr_rpt_generic_package.edr_rpt_get_site_id(in_report_parameter_id);
      my_selected_data_type := edr_rpt_generic_package.edr_rpt_get_data_type(in_report_parameter_id);
      -- ensure selected classes and lanes temp tables have been populated
      edr_rpt_generic_package.edr_rpt_gen_tmp_lanes(in_report_parameter_id);
      edr_rpt_generic_package.edr_rpt_gen_tmp_classes(in_report_parameter_id);
      edr_rpt_generic_package.edr_rpt_gen_tmp_speed_ranges(in_report_parameter_id);
      my_good_weight_statuses_mask   := edr_rpt_generic_package.get_good_weight_status_mask(in_report_parameter_id);
      edr_rpt_generic_package.edr_rpt_gen_inclusion_table
        in_report_parameter_id,
        my_date_format_mask,
        my_start_date_time,
        my_end_date_time
      edr_rpt_generic_package.edr_rpt_gen_grouping_table
        in_report_parameter_id,
        my_date_format_mask,
        my_start_date_time,
        my_end_date_time
      edr_class_by_tawt_get_veh_data
        in_report_parameter_id,
        my_site_id,
        my_start_date_time,
        my_end_date_time,
        0,                          --Hardcoded until reclassification is supported.
        0                           --Hardcoded until reclassification is supported.
      edr_class_by_tawt_data_type
        in_report_parameter_id,
        my_good_weight_statuses_mask,
        my_selected_data_type,
        my_used_data_type
      edr_rpt_generic_package.gen_rpt_by_ranges_output_table
        in_report_parameter_id,
        'AXLE_GROUP',
        'AXLE_NAME'
      COMMIT;
      my_report_data_statement :=
          ' SELECT rank "Rank", '
        ||       ' row_type "Row Type", '
        ||       ' interval_start_date_time "Date", '
        ||       ' interval_start_date_time, '
        ||       ' range_label "Chart X-Axis", '
        ||       ' lane_id "Group Id" , '
        ||       ' ''None'' "Group Name", '
        ||       ' range_label "Speed (mph)" '
        ||         get_row_class_counts_text
        ||         get_row_totals_text
        ||       ' FROM edr_rpt_by_ranges_output '
        ||       ' ORDER BY lane_id, '
        ||                ' direction_id, '
        ||                ' interval_start_date_time, '
        ||                ' range_high, '
        ||                ' rank, '
        ||                ' range_low'
      dbms_output.put_line('SQL start------------------------');
      dbms_output.put_line(my_report_data_statement);
      dbms_output.put_line('SQL end--------------------------');
      my_chart_data_statement :=
           ' SELECT range_low "X Axis", '
        ||        ' lane_id "Group" '
        ||         get_row_class_counts_text
        || ' FROM '
        || ' ( '
        || ' SELECT lane_id, '
        ||        ' direction_id, '
        ||        ' range_low, '
        ||        ' range_high, '
        ||        ' min(interval_start_date_time) interval_start_date_time, '
        ||        ' max(interval_end_date_time) interval_end_date_time '
        || ' FROM edr_rpt_by_ranges_output '
        || ' WHERE rank = 1 '
        || ' GROUP BY lane_id, direction_id, range_low,  range_high '
        || ' ) '
        || ' order by "Group", range_low '
      dbms_output.put_line('SQL start------------------------');
      dbms_output.put_line(my_chart_data_statement);
      dbms_output.put_line('SQL end--------------------------');
      SELECT my_used_data_type
        INTO my_data_type_used
        FROM SYS.DUAL;
      SELECT NVL(COUNT(DISTINCT record_id), 0)
        INTO my_per_vehicle_total
        FROM edr_cls_by_tawt_per_veh_data;
      SELECT NVL(COUNT(DISTINCT record_id), 0)
        INTO my_status_vehicle_total
        FROM edr_cls_by_tawt_per_veh_data
       WHERE vehicle_status > 0
         AND vehicle_error_count = 0;
      SELECT NVL(COUNT(DISTINCT record_id), 0)
        INTO my_error_vehicle_total
        FROM edr_cls_by_tawt_per_veh_data
       WHERE vehicle_error_count > 0;
      SELECT NVL(COUNT(DISTINCT record_id), 0)
        INTO my_status_clear_total
        FROM edr_cls_by_tawt_per_veh_data
       WHERE vehicle_status = 0
         AND vehicle_error_count = 0;
      SELECT NVL(COUNT(1), 0)
        INTO my_binned_vehicle_total
        FROM edr_cls_by_tawt_per_veh_data;
      SELECT NVL(COUNT(1), 0)
        INTO my_good_weight_total
        FROM edr_cls_by_tawt_per_veh_data
       WHERE vehicle_error_count = 0
         AND BITAND(vehicle_status, my_good_weight_statuses_mask) = 0;
      -- insert vehicle totals into the temporary table
      DELETE FROM edr_rpt_tmp_veh_totals_table;
      INSERT INTO edr_rpt_tmp_veh_totals_table
      SELECT my_data_type_used,
             my_per_vehicle_total,
             my_binned_vehicle_total,
             my_error_vehicle_total,
             my_status_vehicle_total,
             my_good_weight_total,
             my_status_clear_total
        FROM SYS.DUAL;
      -- execute the query into the output refcursor
      OPEN report_data FOR
        my_report_data_statement;
      OPEN chart_data FOR
        my_chart_data_statement;
      OPEN footer_data FOR
        SELECT data_type_used,
               per_vehicle_total,
               binned_vehicle_total,
               error_vehicle_total,
               status_vehicle_total,
               good_weight_total,
               status_clear_total
          FROM edr_rpt_tmp_veh_totals_table;
    END gen_class_by_axle_type;
    PROCEDURE edr_rpt_gen_class_by_sawt (
      in_report_parameter_id   IN      report_tasks.report_task_id%TYPE,
      report_data              OUT     SYS_REFCURSOR,
      chart_data               OUT     SYS_REFCURSOR,
      footer_data              OUT     SYS_REFCURSOR
    AS
    BEGIN
      v_report_axle_group_type := c_axle_single_group_type;
      gen_class_by_axle_type(in_report_parameter_id, report_data, chart_data, footer_data);
    END;
    PROCEDURE edr_rpt_gen_class_by_fawt (
      in_report_parameter_id   IN      report_tasks.report_task_id%TYPE,
      report_data              OUT     SYS_REFCURSOR,
      chart_data               OUT     SYS_REFCURSOR,
      footer_data              OUT     SYS_REFCURSOR
    AS
    BEGIN
      v_report_axle_group_type := c_front_axle_only ;
      gen_class_by_axle_type(in_report_parameter_id, report_data, chart_data, footer_data);
    END;
    PROCEDURE edr_rpt_gen_class_by_tawt (
      in_report_parameter_id   IN      report_tasks.report_task_id%TYPE,
      report_data              OUT     SYS_REFCURSOR,
      chart_data               OUT     SYS_REFCURSOR,
      footer_data              OUT     SYS_REFCURSOR
    AS
    BEGIN
      v_report_axle_group_type := c_axle_tandem_group_type;
      gen_class_by_axle_type(in_report_parameter_id, report_data, chart_data, footer_data);
    END;
    PROCEDURE edr_rpt_gen_class_by_triawt (
      in_report_parameter_id   IN      report_tasks.report_task_id%TYPE,
      report_data              OUT     SYS_REFCURSOR,
      chart_data               OUT     SYS_REFCURSOR,
      footer_data              OUT     SYS_REFCURSOR
    AS
    BEGIN
      v_report_axle_group_type := c_axle_tridem_group_type;
      gen_class_by_axle_type(in_report_parameter_id, report_data, chart_data, footer_data);
    END;
    PROCEDURE edr_rpt_gen_class_by_qawt (
      in_report_parameter_id   IN      report_tasks.report_task_id%TYPE,
      report_data              OUT     SYS_REFCURSOR,
      chart_data               OUT     SYS_REFCURSOR,
      footer_data              OUT     SYS_REFCURSOR
    AS
    BEGIN
      v_report_axle_group_type :=  c_axle_quadrem_group_type;
      gen_class_by_axle_type(in_report_parameter_id, report_data, chart_data, footer_data);
    END;
    END edr_rpt_class_by_tawt_package;
    LIST
    SHOW ERROR

    Hi,
    PLS-00304: cannot compile body of 'EDR_RPT_CLASS_BY_TAWT_PACKAGE'
    without its specificationThis error usually indicates an issue with used datatypes in a package spec. that differs from a package body.
    Check your spec:
    FUNCTION  class_count
      in_lane_id                  edr_rpt_by_ranges_output.lane_id%TYPE,
      in_direction_id             edr_rpt_by_ranges_output.direction_id%TYPE,
      in_interval_start_date_time edr_rpt_by_ranges_output.interval_start_date_time%TYPE,
      in_interval_end_date_time   edr_rpt_by_ranges_output.interval_start_date_time%TYPE,
      in_axle_wt_min              edr_cls_by_tawt_report_data.group_weight%TYPE,
      iin_axle_wt_max             edr_cls_by_tawt_report_data.group_weight%TYPE,
      in_class_min                edr_cls_by_tawt_report_data.vehicle_class%TYPE,
      in_class_max                edr_cls_by_tawt_report_data.vehicle_class%TYPE
    RETURN VARCHAR2; However in your package body:
    FUNCTION  class_count
      in_lane_id                  edr_rpt_by_ranges_output.lane_id%TYPE,
      in_direction_id             edr_rpt_by_ranges_output.direction_id%TYPE,
      in_interval_start_date_time edr_rpt_by_ranges_output.interval_start_date_time%TYPE,
      in_interval_end_date_time   edr_rpt_by_ranges_output.interval_start_date_time%TYPE,
      in_axle_wt_min              edr_cls_by_tawt_report_data.group_weight%TYPE,
      in_axle_wt_max              edr_cls_by_tawt_report_data.group_weight%TYPE,
      in_class_min                edr_cls_by_tawt_report_data.vehicle_class%TYPE,
      in_class_max                edr_cls_by_tawt_report_data.vehicle_class%TYPE
    RETURN NUMBERReturn number in spec. vs. return varchar2 in body..
    That won't compile, either return a number or a varchar2 in both. (spec and body).

  • PLS-00049: bad bind variable 'IN_DPC_CODE'

    Hi,
    I am gettig following errors while creating a stored procedure. please help me.
    BEGIN
    EXECUTE IMMEDIATE sql_stmt
    INTO OUT_ROWNUM, OUT_DPC_CODE_ORIG, OUT_SENSOR_ID, OUT_HEADER_DATE,OUT_FIRST_BLOCK_NUMBER, LAST_BLOCK_NUMBER, OUT_RECORD_QUANTITY,OUT_FILE_ID, OUT_FILE_NAME, OUT_TRACE_SEQUENCE_NO, OUT_TRAILER_DATE, OUT_PROCESSED_DATE, OUT_ROW_NUMBER
    USING :IN_DPC_CODE, :IN_SENSOR_ID, :IN_TRAILER_DATE, :IN_LAST_BLOCK_NUMBER;

    Hi,
    Here i am sending total code. Please suggest me accordingly.
    After executing this i am getting following errors.
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00905: object NRUPWEIS.TAB_SELECT is invalid
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    SQL> show errors
    Errors for PROCEDURE TAB_SELECT:
    LINE/COL ERROR
    92/19 PLS-00049: bad bind variable 'IN_DPC_CODE'
    92/33 PLS-00049: bad bind variable 'IN_SENSOR_ID'
    92/48 PLS-00049: bad bind variable 'IN_TRAILER_DATE'
    92/66 PLS-00049: bad bind variable 'IN_LAST_BLOCK_NUMBER'
    116/3 PLS-00103: Encountered the symbol "END"
    code:
    -- -- Input parameters:
    -- -- ALBQ 602071 20050913153100 53290
    -- -- exec tab_select('ALBQ', '602071', '053290', '20050912153100')
    -- CREATE or REPLACE PROCEDURE tab_select IS
    -- type curTyp is ref cursor;
    -- tab_cv curTyp;
    CREATE or REPLACE PROCEDURE tab_select (IN_DPC_CODE IN CHAR, IN_SENSOR_ID IN NUMBER, IN_LAST_BLOCK_NUMBER IN NUMBER,
    IN_TRAILER_DATE IN CHAR) IS
    sql_stmt varchar2(2000);
    sql_stmt2 varchar2(2000);
    IN_DPC_CODE CHAR(4);
    IN_SENSOR_ID CHAR(6);
    IN_TRAILER_DATE CHAR(14);
    IN_LAST_BLOCK_NUMBER number;
         OUT_ROWNUM number(8) := 0;
    OUT_DPC_CODE_ORIG CHAR(4);
    OUT_SENSOR_ID CHAR(6);
    OUT_HEADER_DATE CHAR(14);
    OUT_FIRST_BLOCK_NUMBER number(9) := 0;
    OUT_LAST_BLOCK_NUMBER number(9) := 0;
    OUT_RECORD_QUANTITY number(8) := 0;
    OUT_FILE_ID CHAR(10);
    OUT_FILE_NAME CHAR(30);
    OUT_TRACE_SEQUENCE_NO number(5) := 0;
    OUT_TRAILER_DATE CHAR(14);
    OUT_PROCESSED_DATE CHAR(14);
    OUT_ROW_NUMBER number(8) := 0;
    BEGIN
    DBMS_OUTPUT.DISABLE;
    DBMS_OUTPUT.ENABLE(1000000);
    DBMS_OUTPUT.PUT_LINE('**** ' );
    DBMS_OUTPUT.PUT_LINE('**** BEFORE sql_stmt Line: ' || ' ' ||
    IN_DPC_CODE || ' ' ||
    IN_SENSOR_ID || ' ' ||
    IN_TRAILER_DATE || ' ' ||
    IN_LAST_BLOCK_NUMBER);
    DBMS_OUTPUT.PUT_LINE('**** ' );
    sql_stmt := 'SELECT rNum, dpcCode, sID, hDate, fBlock, ' ||
    'lBlock, recQty, fID, fName, ' ||
    'tSeqNo, sType, tDate, fStatCode, pDate, recCount, r ' ||
    'FROM (SELECT rownum rNum, DPC_CODE_ORIG dpcCode, ' ||
    'SENSOR_ID sID, ' ||
    'to_char(HEADER_DATE, ''YYYYMMDDHH24MISS'') hDate, ' ||
    'FIRST_BLOCK_NUMBER fBlock, ' ||
    'LAST_BLOCK_NUMBER lBlock, ' ||
    'RECORD_QUANTITY recQty, ' ||
    'FILE_ID fID, ' ||
    'substr(FILE_NAME,1,30) fName, ' ||
    'TRACE_SEQUENCE_NO tSeqNo, ' ||
    'SENSOR_TYPE sType, ' ||
    'to_char(TRAILER_DATE, ''YYYYMMDDHH24MISS'') tdate, ' ||
    'NVL(FILE_STATUS_CODE, ''NL'') fStatCode, ' ||
    'to_char(PROCESSED_DATE, ''YYYYMMDDHH24MISS'') pDate, '||
    'NVL(RECIRCULATE_COUNT, 0) recCount, ' ||
    'ROW_NUMBER() ' ||
    'OVER(ORDER BY LAST_BLOCK_NUMBER, TRAILER_DATE) r ' ||
    'FROM logfc10t ' ||
    'WHERE DPC_CODE_ORIG = :IN_DPC_CODE ' ||
    'AND SENSOR_ID = :IN_SENSOR_ID ' ||
    'AND (((TRAILER_DATE >= TO_DATE(:IN_TRAILER_DATE, ''YYYYMMDDHH24MISS''))' ||
    'AND (LAST_BLOCK_NUMBER > :IN_LAST_BLOCK_NUMBER)) ' ||
    ' OR (TRAILER_DATE > TO_DATE(:IN_TRAILER_DATE, ''YYYYMMDDHH24MISS'')))) ' ||
    'WHERE r = 1 ';
    DBMS_OUTPUT.PUT_LINE('**** ' );
    DBMS_OUTPUT.PUT_LINE('**** BEFORE execute immediate Line: ');
    -- p(sql_stmt);
    -- Put_Xl_line(sql_stmt);
    DBMS_OUTPUT.PUT_LINE('**** ' );
    BEGIN
    EXECUTE IMMEDIATE sql_stmt
    INTO OUT_ROWNUM, OUT_DPC_CODE_ORIG, OUT_SENSOR_ID, OUT_HEADER_DATE,
    OUT_FIRST_BLOCK_NUMBER, OUT_LAST_BLOCK_NUMBER, OUT_RECORD_QUANTITY,
    OUT_FILE_ID, OUT_FILE_NAME, OUT_TRACE_SEQUENCE_NO, OUT_TRAILER_DATE,
    OUT_PROCESSED_DATE, OUT_ROW_NUMBER
    USING :IN_DPC_CODE, :IN_SENSOR_ID, :IN_TRAILER_DATE, :IN_LAST_BLOCK_NUMBER;
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('**** ' );
    DBMS_OUTPUT.PUT_LINE('**** IMMED ' || sqlcode || ' ' || substr(sqlerrm,1,200));
    DBMS_OUTPUT.PUT_LINE('**** ' );
    END;
    DBMS_OUTPUT.PUT_LINE('**** ' );
    DBMS_OUTPUT.PUT_LINE('**** AFTER execute immediate Line: ');
    DBMS_OUTPUT.PUT_LINE('**** ' );
    DBMS_OUTPUT.PUT_LINE ('*** Next Line: ' || OUT_ROWNUM || OUT_DPC_CODE_ORIG || OUT_SENSOR_ID ||
    OUT_HEADER_DATE || OUT_FIRST_BLOCK_NUMBER || OUT_LAST_BLOCK_NUMBER ||
    OUT_RECORD_QUANTITY || OUT_FILE_ID || OUT_FILE_NAME ||
    OUT_TRACE_SEQUENCE_NO || OUT_TRAILER_DATE || OUT_PROCESSED_DATE || OUT_ROW_NUMBER);
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('**** ' );
    DBMS_OUTPUT.PUT_LINE('**** ERROR ' || sqlcode || ' ' || substr(sqlerrm,1,200));
    DBMS_OUTPUT.PUT_LINE('**** ' );
    end;
    end tab_select;
    set serveroutput on
    exec tab_select('OMAN', '612628', '993610', '20070214141700')
    --exec tab_select('OMAN', '612628', '6434', '20070214144700')
    --exec tab_select('OMAN', '612628', '13098', '20070214150200')
    --exec tab_select('OMAN', '612628', '19874', '20070214151700')
    --exec tab_select('OMAN', '612628', '33398', '20070214154700')
    -- quit

  • PLS-00304 Circular reference

    Hi all,
    thanks for helping me in resolving the follwoing error
    USER234@dev>Create or replace package a2
    2 is
    3
    4 TYPE a2_rectype is RECORD
    5 (drop_no varchar2(100));
    6
    7 TYPE a2_tabtype IS TABLE OF a2_rectype
    8 INDEX BY BINARY_INTEGER;
    9
    10 Procedure a2_proc1;
    11
    12 End;
    13 /
    Package created.
    Elapsed: 00:00:00.06
    USER234@dev>Create or replace package body a2
    2 is
    3 Procedure a2_proc1
    4 is
    5 begin
    6 null;
    7 end;
    8
    9 End;
    10 /
    Package body created.
    Elapsed: 00:00:00.04
    USER234@dev>Create or replace package a1
    2 is
    3 TYPE a1_rectype IS RECORD ( order_no varchar2(100));
    4 TYPE a1_tabtype IS TABLE OF a1_rectype INDEX BY BINARY_INTEGER;
    5
    6 Procedure a1_proc1;
    7 Procedure a1_proc2(r_cd a2.a2_tabtype);
    8
    9 End;
    10 /
    Package created.
    Elapsed: 00:00:00.07
    USER234@dev>Create or replace package body a1
    2 is
    3 Procedure a1_proc1
    4 is
    5 begin
    6 null;
    7 end;
    8
    9 Procedure a1_proc2(r_cd a2.a2_tabtype)
    10 is
    11 begin
    12 null;
    13 end;
    14 End;
    15 /
    Package body created.
    Elapsed: 00:00:00.07
    USER234@dev>Create or replace package a2
    2 is
    3
    4 TYPE a2_rectype is RECORD
    5 (drop_no varchar2(100));
    6
    7 TYPE a2_tabtype IS TABLE OF a2_rectype
    8 INDEX BY BINARY_INTEGER;
    9
    10 Procedure a2_proc1;
    11 Procedure a2_proc2(p_tabtype a1.a1_tabtype);
    12
    13 End;
    14 /
    Package created.
    Elapsed: 00:00:00.06
    USER234@dev>Create or replace package body a2
    2 is
    3 Procedure a2_proc1
    4 is
    5 begin
    6 null;
    7 end;
    8
    9
    10 Procedure a2_proc2(p_tabtype a1.a1_tabtype)
    11 is
    12 begin
    13 null;
    14 end;
    15
    16 End;
    17 /
    Warning: Package Body created with compilation errors.
    Elapsed: 00:00:00.09
    USER234@dev>show error
    Errors for PACKAGE BODY A2:
    LINE/COL ERROR
    0/0 PL/SQL: Compilation unit analysis terminated
    1/14 PLS-00304: cannot compile body of 'A2' without its specification
    1/14 PLS-00905: object USER234.A2 is invalid

    The correct approach is to instead do the following:
    create or replace package CustomTypes as
      type a1_rectype IS RECORD ( order_no varchar2(100) );
      type a1_tabtype IS TABLE OF a1_rectype INDEX BY BINARY_INTEGER;
      type a2_rectype is RECORD(drop_no varchar2(100) );
      type a2_tabtype IS TABLE OF a2_rectype INDEX BY BINARY_INTEGER;
    end;And then define packages A1 and A2 that refers to this CustomTypes package.
    Not only is circular referencing eliminating, but this provides a modular approach where custom types that are global (ito PL/SQL), are defined and maintained and referenced in/from a single place.
    Another approach, and one that I prefer, is to eliminate PL/SQL custom types as far as possible and use custom SQL data types instead. This is a lot more flexible as these types are object orientated (better feature set) and can be used in both SQL and PL/SQL languages. PL/SQL custom types are not object orientated (equivalent to C struct and Pacal record types) and are restricted to PL/SQL use only.
    For the above custom types, I would define a single SQL data type:
    create or replace type TStrings is table of varchar2(4000);This can be used for dealing with any collection of strings - instead of having a string collection type for order numbers and the same type definition with a different name for drop numbers.
    Of course if these are actual number data, then a collection of number() should be defined, e.g.
    create or replace type TNumbers is table of number;

  • PLS-00304: cannot compile body of 'PA_TIME_CLIENT_EXTN' without its specifi

    Hi expert,
    We are trying the validate the PA_TIME_CLIENT_EXTN package body. It is giving the below error.
    0/0 PL/SQL: Compilation unit analysis terminated
    1/14 PLS-00905: object APPS.PA_TIME_CLIENT_EXTN is invalid
    1/14 PLS-00304: cannot compile body of 'PA_TIME_CLIENT_EXTN' without
    its specification
    My environment details are as below.
    Oracle apps version: 11.5.10.2
    DB version : 11.2.0.1
    OS version : IBM AIX 6.1
    Please help me on this.
    Thanks

    This error is usually seen when you have a different datatype specification in your package specification and your package body. I think that is some thing you might want to check first.
    Regards,
    Johan Louwers

  • Getting PLS-00507 during generation of the API

    Hello,
    I have to build up an application on a objectrelational Structure, which was designed in
    Oracle Designer6 (6.0.3.9.0) and runs on Oracle8i EE (8.1.5) for WinNT.
    During generating the Table API from Design Editor I`ve got on all nested tables and Varrays
    based tables a Error Message:
    CDI-11307 Warning: (compilation error in PACKAGE 'CG$KANALKONFIGURATIONEN' at 39/32): PLS-00507: Tabellen/Datensdtze mit zusammengesetzten Feldern sind in
    PLSQL-Tabellen nicht erlaubt
    CDI-11307 Warning: (compilation error in PACKAGE 'CG$KANALKONFIGURATIONEN' at 39/1): PL/SQL: Declaration ignored
    and:
    CDI-11307 Warning: (compilation error in PACKAGE BODY 'CG$KANALKONFIGURATIONEN' at 1/14): PLS-00905: Objekt CARDIO.CG$KANALKONFIGURATIONEN ist ung|ltig
    CDI-11307 Warning: (compilation error in PACKAGE BODY 'CG$KANALKONFIGURATIONEN' at 1/14): PLS-00304: Rumpf von 'CG$KANALKONFIGURATIONEN' nicht ohne die Spezifikation kompilierbar
    the Line causing the problem is:
    TYPE cg$table_type IS TABLE OF KANALKONFIGURATIONEN%ROWTYPE
    Unfortunately is this all generated by the Server Generator and I have no Idea how to fix it..
    Thanks in advance
    Frank

    Hi,
      it is purely problem with the start routine, may be the sorce structure and target structure are not same
    u can check with your Abapers.
    once the start routine and update routine are ok it will not be a problem.
    take care of start routine and End routine, when ever u do the migration.
    where ever the start and Update routines are there at that time of migration take help of Abaprs.also.
    Thanks & Regards,
    sathish

  • PLS-00923: native compilation failed: Visual Studio not

    hi,
    I'm using oracle 10g version 10.2.0.1 running on windows xp pro service pack 3. I'm trying to switch from interpreted to native compilation, and here are the parameters I've set:
    plsql_native_library_dir = D:\oracle\product\10.2.0\db_1\plsql
    plsql_code_type = NATIVE
    plsql_native_library_subdir_count = 0
    plsql_compiler_flags = NATIVE, NON_DEBUG
    Now I'm trying to run the following statements:
    ALTER SESSION SET plsql_code_type = 'NATIVE';
    CREATE OR REPLACE PROCEDURE test_speed AS
    v_number NUMBER;
    BEGIN
    FOR i IN 1 .. 1000000 LOOP
    v_number := i / 1000;
    END LOOP;
    END;
    SET TIMING ON
    SQL> EXEC test_speed;
    BEGIN test_speed; END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00905: object SYS.TEST_SPEED is invalid
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Elapsed: 00:00:00.03
    SQL> show err
    Errors for PROCEDURE TEST_SPEED:
    LINE/COL ERROR
    0/0 PLS-00923: native compilation failed: Visual Studio not
    found::Could not open registry key
    HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\VISUALSTUDIO\7.1\SETUP:No
    error
    I have search for the error in google but I can't find anything useful. What do I need to set-up/change to achieve my goals.
    Thanks and God bless,
    Chris

    hi,
    I'm using oracle 10g version 10.2.0.1 running on windows xp pro service pack 3. I'm trying to switch from interpreted to native compilation, and here are the parameters I've set:
    plsql_native_library_dir = D:\oracle\product\10.2.0\db_1\plsql
    plsql_code_type = NATIVE
    plsql_native_library_subdir_count = 0
    plsql_compiler_flags = NATIVE, NON_DEBUG
    Now I'm trying to run the following statements:
    ALTER SESSION SET plsql_code_type = 'NATIVE';
    CREATE OR REPLACE PROCEDURE test_speed AS
    v_number NUMBER;
    BEGIN
    FOR i IN 1 .. 1000000 LOOP
    v_number := i / 1000;
    END LOOP;
    END;
    SET TIMING ON
    SQL> EXEC test_speed;
    BEGIN test_speed; END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00905: object SYS.TEST_SPEED is invalid
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Elapsed: 00:00:00.03
    SQL> show err
    Errors for PROCEDURE TEST_SPEED:
    LINE/COL ERROR
    0/0 PLS-00923: native compilation failed: Visual Studio not
    found::Could not open registry key
    HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\VISUALSTUDIO\7.1\SETUP:No
    error
    I have search for the error in google but I can't find anything useful. What do I need to set-up/change to achieve my goals.
    Thanks and God bless,
    Chris

  • PLSQL Problem: PLS-00103

    I have sucessfully compiled the following....
    CREATE OR REPLACE PROCEDURE instrument_ids_proc
    IS
    BEGIN
    INSERT INTO schema1.record_cat
    SELECT z.id
    , z.opened
    , z.closed
    , y.shop_name
    FROM (
    SELECT id, opened, closed
    FROM schema2.shop_details_all
    WHERE digitised IS NOT NULL
    AND NVL(closed,2009)- opened >=150
    MINUS
    SELECT DISTINCT id, opened, closed
    FROM (
    SELECT a.id
    , b.rec_date
    , LEAD(b.rec_date) OVER(ORDER BY a.id,b.rec_date) le_dat
    , LEAD(a.id) OVER(ORDER BY a.id,b.rec_date) le_id
    , a.opened
    , a.closed
    FROM schema2.shop_details_all a
    , schema1.shop_sales b
    WHERE NVL(closed,2009)- opened >=150
    AND a.digitised IS NOT null
    AND a.id=b.id
    WHERE le_dat-rec_Date >365 AND le_id=id
    ) z
    JOIN schema2.shop_details_all y
    ON z.id = y.id;
    END instrument_ids_proc;
    Now I can compile the code fine and if I take it out of the PL SQL block and just run it as stand alone SQL it works fine.
    But when I try to run the PLSQL by doing - execute gauge_ids_proc, I get the following error...
    08:44:25 Error executing statement: ORA-06550: line 3, column 1:
    08:44:25 PLS-00103: Encountered the symbol "END" when expecting one of the following:
    08:44:25 := . ( @ % ;
    08:44:25 The symbol ";" was substituted for "END" to continue
    No idea why this is happening, any help?
    Cheers

    Hi,
    Could you please post what you are doing, exactly like below.
    I.e. formatted code, enclosed in {noformat}{noformat} tags, along with line numbers from SQL*Plus and the exact error message, including line number.SQL>create or replace procedure instrument_ids_proc
    2 is
    3 begin
    4 insert into schema1.record_cat
    5 select z.id
    6 ,z.opened
    7 ,z.closed
    8 ,y.shop_name
    9 from (select id, opened, closed
    10 from schema2.shop_details_all
    11 where digitised is not null
    12 and nvl(closed, 2009) - opened >= 150
    13 minus
    14 select distinct id, opened, closed
    15 from (select a.id
    16 ,b.rec_date
    17 ,lead(b.rec_date) over (order by a.id, b.rec_date)
    18 le_dat
    19 ,lead(a.id) over (order by a.id, b.rec_date) le_id
    20 ,a.opened
    21 ,a.closed
    22 from schema2.shop_details_all a, schema1.shop_sales b
    23 where nvl(closed, 2009) - opened >= 150
    24 and a.digitised is not null
    25 and a.id = b.id)
    26 where le_dat - rec_date > 365
    27 and le_id = id) z join schema2.shop_details_all y
    28 on z.id = y.id;
    29 end instrument_ids_proc;
    30 /
    Warning: Procedure created with compilation errors.
    SQL>
    SQL>exec instrument_ids_proc
    BEGIN instrument_ids_proc; END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00905: object SCOTT.INSTRUMENT_IDS_PROC is invalid
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    SQL>
    Edit:
    Looks like Max might have a point. Please look at my error message, it says line 1, column 7.
    Yours say line 3 column 1.
    Regards
    Peter
    Edited by: Peter on Dec 9, 2009 2:23 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to update Portal 10.1.2 to 10.1.4 under multiportal environment ?

    I install two portal and one infra.
    And Configuring Multiple Middle Tiers with a Load Balancing Router successfully.
    The origin portal virsion is 10.1.2.
    Now i want to update to 10.1.4 but have somthing wrong after I enter the update commond.
    Error message is java.SQLException: IO Exception : connection is reset.
    Then I run de upgrade command again , get the different error message
    ### ERROR: OracleAS Portal 10.1.4 upgrade precheck failed. See /raid/product/OraHome_1/upgrade/temp/portal/precheck.log for details.
    Error: Component upgrade failed PORTAL
    Error: PORTAL component version is: 10.1.2.0.2 INVALID
    FAILURE: Some OracleAS plug-ins report failure during upgrade.
    The Portal Upgrade precheck log is follow:
    -- Portal Upgrade release information: 10.1.4 Release 1
    Upgrade Started in -precheck -force mode at Wed Oct 18 21:22:19 2006
    ### PHASE 1: Initial setup
    Existing temporary directory /raid/product/OraHome_1/upgrade/temp/portal/prechktmp renamed to /raid/product/OraHome_1/upgrade/temp/portal/prechktmp.Wed-Oct-18-21.14.10-2006
    Existing log file /raid/product/OraHome_1/upgrade/temp/portal/precheck.log renamed to /raid/product/OraHome_1/upgrade/temp/portal/precheck.log.Wed-Oct-18-21.14.10-2006
    Creating /raid/product/OraHome_1/upgrade/temp/portal/prechktmp directory
    Creating /raid/product/OraHome_1/upgrade/temp/portal/prechktmp/gen directory
    Welcome to the Oracle Portal Production Upgrade
    The script will lead you through the upgrade step by step.
    For questions asked in this script that have appropriate defaults
    those defaults will be shown in square brackets after the question.
    To accept a default value, simply hit the Return key.
    ### Set New Variables and Validate Environment Variables
    Step started at Wed Oct 18 21:22:19 2006
    PERL5LIB set to ../../../perl/lib/site_perl/5.6.1/i686-linux:../../../perl/lib:../../../perl/lib/5.6.1
    Check SQL*Plus version
    Running upg/frwk/upchkpls.sql### Log shared and environment variables
    Step started at Wed Oct 18 21:22:19 2006
    Log file: /raid/product/OraHome_1/upgrade/temp/portal/precheck.log
    Log dir: /raid/product/OraHome_1/upgrade/temp/portal/prechktmp
    Profile dir: /raid/product/OraHome_1/upgrade/temp/portal/prechktmp/gen
    Verbose flag: 0
    Debug mode: 0
    Force flag: 1
    Nosave flag: 0
    Save flag: 1
    Repos flag: 0
    Compile flag: 0
    Oldver flag: 0
    isPatch flag: 0
    Will save Tables: 1
    Environment variables:
    ===========================================================
    DISPLAY: :0
    G_BROKEN_FILENAMES: 1
    HISTSIZE: 1000
    HOME: /home/oracle
    HOSTNAME: portal1.bizmatch.com.cn
    IBPATH: /usr/bin
    INPUTRC: /etc/inputrc
    KDEDIR: /usr
    LANG: en_US.UTF-8
    LC_CTYPE: en_US.UTF-8
    LD_ASSUME_KERNEL: 2.4.19
    LD_LIBRARY_PATH: /raid/product/OraHome_1/lib32:/raid/product/OraHome_1/lib:/raid/tmp/jdk/jre/lib/i386/client:/raid/tmp/jdk/jre/lib/i386:/raid/tmp/jdk/jre/../lib/i386:/raid/product/OraHome_1/lib32:/raid/product/OraHome_1/network/lib32:/raid/product/OraHome_1/lib:/raid/product/OraHome_1/network/lib:/raid/product/OraHome_1/lib:/usr/lib:/usr/local/lib
    LD_LIBRARY_PATH_64: /raid/product/OraHome_1/lib:/raid/product/OraHome_1/lib32:/raid/product/OraHome_1/network/lib32:/raid/product/OraHome_1/lib:/raid/product/OraHome_1/network/lib:
    LESSOPEN: |/usr/bin/lesspipe.sh %s
    LIBPATH: /raid/product/OraHome_1/lib32:/raid/product/OraHome_1/lib
    LOGNAME: oracle
    LS_COLORS: no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
    MAIL: /var/spool/mail/oracle
    NLSPATH: /usr/dt/lib/nls/msg/%L/%N.cat
    ORACLE_BASE: /raid/product
    ORACLE_HOME: /raid/product/OraHome_1
    ORACLE_SID:
    PATH: /raid/product/OraHome_1/bin:../../../perl/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/oracle/bin:/raid/product/OraHome_1/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/home/oracle/bin:/bin:/sbin:/usr/bin
    PERL5LIB: ../../../perl/lib/site_perl/5.6.1/i686-linux:../../../perl/lib:../../../perl/lib/5.6.1
    PWD: /raid/tmp/mrua
    QTDIR: /usr/lib/qt-3.3
    REPCA_ORACLE_HOME: /raid/tmp
    SHELL: /bin/bash
    SHLIB_PATH: /raid/product/OraHome_1/lib32:/raid/product/OraHome_1/lib
    SHLVL: 3
    SQLPATH: .:owa:/raid/product/OraHome_1/upgrade/temp/portal/prechktmp/gen:upg/frwk:sql:wwc
    SSH_ASKPASS: /usr/libexec/openssh/gnome-ssh-askpass
    TERM: xterm
    USER: oracle
    XAUTHORITY: /root/.Xauthority
    XFILESEARCHPATH: /usr/dt/app-defaults/%L/Dt
    _: /raid/tmp/jdk/bin/java
    ### PHASE 2: User inputs
    Upgrade phase started at Wed Oct 18 21:22:19 2006
    Processing Metadata File: upg/common/inputchk/inputchk.met Running upg/common/inputchk/inputchk.pl ### Verify that the database has been backed up
    Step started at Wed Oct 18 21:22:19 2006
    Before beginning the upgrade, it is important that you backup your database.
    Have you backed up your database (y/n)? [y]: y
    Ask user for schema and database details
    Enter the name of schema that you would like to upgrade [PORTAL]: portal
    Enter the password for the schema that you would like to upgrade [portal]:
    Enter the password for the SYS user of your database [CHANGE_ON_INSTALL]:
    Enter the TNS connect string to connect to the database [ORCL]: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=portaldb.bizmatch.com.cn)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=IASDB.bizmatch.com.cn)))
    Responses to the above questions will now be recorded in the file
    upgrade.in. Placeholders are recorded instead of actual passwords,
    for security reasons. If you wish, this file can be edited and used
    as the standard input for a subsequent run of upgrade.pl.
    ### Verify database connection information.
    Step started at Wed Oct 18 21:22:19 2006
    Validating the connection information supplied by the user
    Running CheckConnections()Check connection to the Portal repository.
    Check connection as SYS to the Portal repository.
    Ending CheckConnections() Wed Oct 18 21:22:19 2006
    ### PHASE 3: Setup
    Upgrade phase started at Wed Oct 18 21:22:19 2006
    Processing Metadata File: upg/common/setup/setup.met Running upg/common/setup/setup.pl Analyzing the product schema
    Running upg/common/setup/upgettbs.sqlPortal SQL script started at Wed Oct 18 21:22:19 2006
    Connected.
    ### Install messaging framework
    Step started at Wed Oct 18 21:22:19 2006
    Portal SQL script started at Wed Oct 18 21:22:19 2006
    Connected.
    No errors.
    No errors.
    Creating sequence 'wwpof_output_id_seq'
    Creating sequence 'wwpof_output_script_run_id_seq'
    Creating table 'wwpof_output$'
    Creating table 'wwpof_msg$'
    Creating index 'wwpof_output_idx1' in tablespace PORTAL
    Creating index 'wwpof_output_idx2' in tablespace PORTAL
    Creating index 'wwpof_output_idx3' in tablespace PORTAL
    Creating index 'wwpof_msg_uk1' in tablespace PORTAL
    No errors.
    No errors.
    Granting privileges on POF objects to SYS
    Loading /raid/product/OraHome_1/upgrade/temp/portal/prechktmp/upgus.ctl using sqlldr
    Copying scripts to de-install message objects.
    Get Portal version and determine upgrade sequence
    Running upg/common/setup/upgetver.sqlPortal SQL script started at Wed Oct 18 21:22:22 2006
    Connected.
    Upgrading to version 10.1.4.0.0
    Version directories to be traversed: upg/10140
    Running upg/common/setup/setseq.pl Set the correct Traversal Sequence
    ### PHASE 4: Pre upgrade checks
    Upgrade phase started at Wed Oct 18 21:22:22 2006
    Processing Metadata File: upg/common/prechk/prechk.met Running upg/common/prechk/prechk.pl Set up subscriber iteration
    Running upg/common/prechk/upgetsub.sqlPortal SQL script started at Wed Oct 18 21:22:22 2006
    Connected.
    ### Perform pre upgrade checks
    Step started at Wed Oct 18 21:22:22 2006
    Running upg/frwk/utlchvpd.sqlPortal SQL script started at Wed Oct 18 21:22:22 2006
    Connected.
    Calling DoPreChecks()Starting precheck at Wed Oct 18 21:22:23 2006
    Calling upg/common/prechk/sysuppre.sql
    Connected.
    Running upg/common/prechk/upgtabs.sqlPortal SQL script started at Wed Oct 18 21:22:23 2006
    Connected.
    ### ERROR: WWU-00013: Tables with UPG_ prefix were found in the OracleAS Portal
    ### schema.
    ### Table Name
    ### UPG_PTL_OBJECTS$
    ### UPG_PTL_TABLES$
    ### UPG_WWV_DOCINFO
    ### CAUSE: The upgrade is terminated when UPG_ prefix tables are present in the
    ### OracleAS Portal schema.
    ### ACTION: Back up all tables with the UPG_ prefix, then delete them from the
    ### OracleAS Portal schema. The script
    ### /raid/product/OraHome_1/upgrade/temp/portal/prechktmp/dropupg.sql can
    ### be used for this purpose.
    ### Check Failed at Wed Oct 18 21:22:23 2006 Continuing as PreCheck mode is specified
    Calling upg/common/prechk/wwvcheck.sql
    Portal SQL script started at Wed Oct 18 21:22:23 2006
    Connected.
    # Beginning outer script: prechk/wwvcheck
    # Check for invalid Portlet Builder (webview) components.
    # Checking if there are too many archive components.
    # Checking for missing application schemas.
    # Ending outer script: prechk/wwvcheck, 0.31 seconds
    Ending precheck at Wed Oct 18 21:22:24 2006
    Running upg/common/prechk/upchkobj.sqlPortal SQL script started at Wed Oct 18 21:22:24 2006
    Connected.
    Running upg/common/prechk/chkmrreg.sqlPortal SQL script started at Wed Oct 18 21:22:24 2006
    Connected.
    # Beginning outer script: prechk/chkmrreg
    # Pre-check to determine that OracleAS Portal is registered with OracleAS Internet Directory
    # OracleAS Portal has been wired with OracleAS Internet Directory
    # Ending outer script: prechk/chkmrreg, 0.10 seconds
    ### Connect to OID as Application Entry
    Running upg/common/prechk/bindapp.sql . Portal SQL script started at Wed Oct 18 21:22:24 2006
    Connected.
    # Beginning outer script: prechk/bindapp
    #-- Beginning inner script: prechk/bindapp
    # Pre-check to test bind to OracleAS Internet Directory Server
    # Connecting to OracleAS Internet Directory as the Application Entry
    # Connecting to OracleAS Internet Directory as the Application Entry was successful
    #-- Ending inner script: prechk/bindapp, 0.14 seconds
    # Ending outer script: prechk/bindapp, 0.20 seconds
    ### Display Tablespace and Parameter Settings
    Running upg/common/prechk/../../frwk/upshoset.sql .
    Subscriber independent Processing.
    Portal SQL script started at Wed Oct 18 21:22:24 2006
    Connected.
    # Beginning outer script: prechk/upshoset
    Tablespace Usage
    TABLESPACE BYTES_USED BYTES_FREE TOTAL BYTES CREATE_BYTES AUT FILE STAT STATUS     ENABLED BLOCKS BLOCK_SIZE FILE_NAME
    B2B_DT     63766528     20054016 83886080          0 YES AVAILABLE ONLINE     READ WRITE     10240     8192 /raid/product/oradata/IASDB/b2b_dt.dbf
    B2B_IDX 14942208     26935296 41943040          0 YES AVAILABLE ONLINE     READ WRITE     5120     8192 /raid/product/oradata/IASDB/b2b_idx.dbf
    B2B_LOB 11141120     30736384 41943040          0 YES AVAILABLE ONLINE     READ WRITE     5120     8192 /raid/product/oradata/IASDB/b2b_lob.dbf
    B2B_RT     39780352     12582912 52428800          0 YES AVAILABLE ONLINE     READ WRITE     6400     8192 /raid/product/oradata/IASDB/b2b_rt.dbf
    BAM     6553600     3866624 10485760          0 YES AVAILABLE ONLINE     READ WRITE     1280     8192 /raid/product/oradata/IASDB/bam.dbf
    DCM     237174784     20709376 257949696          0 YES AVAILABLE ONLINE     READ WRITE     31488     8192 /raid/product/oradata/IASDB/dcm.dbf
    DISCO_PTM5 1310720     1769472 3145728          0 YES AVAILABLE ONLINE     READ WRITE     384     8192 /raid/product/oradata/IASDB/discopltc1.dbf
    _CACHE
    DISCO_PTM5 1310720     1769472 3145728          0 YES AVAILABLE ONLINE     READ WRITE     384     8192 /raid/product/oradata/IASDB/discopltm1.dbf
    _META
    DSGATEWAY_ 5701632     1572864 7340032          0 YES AVAILABLE ONLINE     READ WRITE     896     8192 /raid/product/oradata/IASDB/oss_sys01.dbf
    TAB
    IAS_META 210567168     30539776 241172480          0 YES AVAILABLE ONLINE     READ WRITE     29440     8192 /raid/product/oradata/IASDB/ias_meta01.dbf
    OCATS     1769472     5505024 7340032          0 YES AVAILABLE ONLINE     READ WRITE     896     8192 /raid/product/oradata/IASDB/oca.dbf
    OLTS_ATTRS 2555904     917504 3538944          0 YES AVAILABLE ONLINE     READ WRITE     432     8192 /raid/product/oradata/IASDB/attrs1_oid.dbf
    TORE
    OLTS_BATTR 262144     131072 516096          0 YES AVAILABLE ONLINE     READ WRITE     63     8192 /raid/product/oradata/IASDB/battrs1_oid.dbf
    STORE
    OLTS_DEFAU 3997696     851968 4915200          0 YES AVAILABLE ONLINE     READ WRITE     600     8192 /raid/product/oradata/IASDB/gdefault1_oid.dbf
    LT
    ORABPEL 11993088     29884416 41943040          0 YES AVAILABLE ONLINE     READ WRITE     5120     8192 /raid/product/oradata/IASDB/orabpel.dbf
    PORTAL     74383360     6946816 78643200          0 YES AVAILABLE ONLINE     READ WRITE     9600     8192 /raid/product/oradata/IASDB/portal.dbf
    PORTAL_DOC 851968     3276800 4194304          0 YES AVAILABLE ONLINE     READ WRITE     512     8192 /raid/product/oradata/IASDB/ptldoc.dbf
    PORTAL_IDX 11206656     41156608 52428800          0 YES AVAILABLE ONLINE     READ WRITE     6400     8192 /raid/product/oradata/IASDB/ptlidx.dbf
    PORTAL_LOG 262144     3866624 4194304          0 YES AVAILABLE ONLINE     READ WRITE     512     8192 /raid/product/oradata/IASDB/ptllog.dbf
    SYSAUX     235732992     5373952 241172480          0 YES AVAILABLE ONLINE     READ WRITE     29440     8192 /raid/product/oradata/IASDB/sysaux01.dbf
    SYSTEM     834404352     4390912 838860800          0 YES AVAILABLE SYSTEM     READ WRITE 102400     8192 /raid/product/oradata/IASDB/system01.dbf
    TEMP     6291456     18874368 25165824     25165824 YES AVAILABLE ONLINE     READ WRITE     3072     8192 /raid/product/oradata/IASDB/temp01.dbf
    UDDISYS_TS 19988480     28180480 48234496          0 YES AVAILABLE ONLINE     READ WRITE     5888     8192 /raid/product/oradata/IASDB/uddisys01.dbf
    UNDOTBS1 247201792     4390912 251658240          0 YES AVAILABLE ONLINE     READ WRITE     30720     8192 /raid/product/oradata/IASDB/undotbs01.dbf
    USERS     327680     4849664 5242880          0 YES AVAILABLE ONLINE     READ WRITE     640     8192 /raid/product/oradata/IASDB/users01.dbf
    WCRSYS_TS 1703936     15007744 16777216          0 YES AVAILABLE ONLINE     READ WRITE     2048     8192 /raid/product/oradata/IASDB/wcrsys01.dbf
    Sort Segment Data
    TABLESPACE EXTENT_SIZE TOTAL_EXTENTS USED_EXTENTS FREE_EXTENTS MAX_USED_SIZE
    TEMP          128          5          0     5          1
    SGA Allocation Stats
    POOL     NAME                    BYTES
    java pool free memory               67108864
    Total                              67108864
    SGA Allocation Stats
    POOL     NAME                    BYTES
    large pool free memory               8388608
    Total                              8388608
    SGA Allocation Stats
    POOL     NAME                    BYTES
    shared pool fixed allocation callback               344
    shared pool pl/sql source               1156
    shared pool table definiti               1712
    shared pool alert threshol               2648
    shared pool trigger inform               3048
    shared pool joxs heap                    4220
    shared pool policy hash ta               4220
    shared pool trigger defini               5980
    shared pool KQR S SO                    7176
    shared pool PLS non-lib hp               12208
    shared pool trigger source               18652
    shared pool KQR L SO                    44032
    shared pool repository                76264
    shared pool KQR M SO                    81408
    shared pool parameters                105696
    shared pool type object de               194164
    shared pool KQR S PO                    207136
    shared pool VIRTUAL CIRCUITS               649340
    shared pool FileOpenBlock               746704
    shared pool kmgsb circular statistics          821248
    shared pool KSXR pending messages que          841036
    shared pool KSXR receive buffers          1032500
    shared pool KQR M PO                    1675892
    shared pool sessions                    1835204
    shared pool PL/SQL DIANA               2910560
    shared pool private strands               2928640
    shared pool KTI-UNDO                    3019632
    shared pool KGLS heap                    3105320
    shared pool PL/SQL MPCODE               3705484
    shared pool row cache                    3707272
    shared pool ASH buffers               4194304
    shared pool event statistics per sess          9094400
    shared pool sql area                    9234624
    shared pool library cache               10361688
    shared pool miscellaneous               15820288
    shared pool free memory               74540744
    Total                              150994944
    SGA Allocation Stats
    POOL     NAME                    BYTES
         log_buffer                524288
         fixed_sga                    778968
         buffer_cache               50331648
    Total                              51634904
    Database Parameters
    NAME                    VALUE
    O7_DICTIONARY_ACCESSIBILITY     FALSE
    active_instance_count
    aq_tm_processes           1
    archive_lag_target          0
    asm_diskgroups
    asm_diskstring
    asm_power_limit           1
    audit_file_dest           /raid/product/OraHome_1/rdbms/audit
    audit_sys_operations          FALSE
    audit_trail               NONE
    background_core_dump          partial
    background_dump_dest          /raid/product/admin/IASDB/bdump
    backup_tape_io_slaves          FALSE
    bitmap_merge_area_size          1048576
    blank_trimming               FALSE
    buffer_pool_keep
    buffer_pool_recycle
    circuits
    cluster_database          FALSE
    cluster_database_instances     1
    cluster_interconnects
    commit_point_strength          1
    compatible               10.1.0.2.0
    control_file_record_keep_time     7
    control_files               /raid/product/oradata/IASDB/control01.ctl, /raid/product/oradata/IASDB/control02
                        .ctl, /raid/product/oradata/IASDB/control03.ctl
    core_dump_dest               /raid/product/admin/IASDB/cdump
    cpu_count               2
    create_bitmap_area_size      8388608
    create_stored_outlines
    cursor_sharing               EXACT
    cursor_space_for_time          FALSE
    db_16k_cache_size          0
    db_2k_cache_size          0
    db_32k_cache_size          0
    db_4k_cache_size          0
    db_8k_cache_size          0
    db_block_buffers          0
    db_block_checking          FALSE
    db_block_checksum          TRUE
    db_block_size               8192
    db_cache_advice           ON
    db_cache_size               50331648
    db_create_file_dest
    db_create_online_log_dest_1
    db_create_online_log_dest_2
    db_create_online_log_dest_3
    db_create_online_log_dest_4
    db_create_online_log_dest_5
    db_domain               bizmatch.com.cn
    db_file_multiblock_read_count     16
    db_file_name_convert
    db_files               200
    db_flashback_retention_target     1440
    db_keep_cache_size          0
    db_name                IASDB
    db_recovery_file_dest          /raid/product/flash_recovery_area
    db_recovery_file_dest_size     2147483648
    db_recycle_cache_size          0
    db_unique_name               IASDB
    db_writer_processes          1
    dbwr_io_slaves               0
    ddl_wait_for_locks          FALSE
    dg_broker_config_file1          /raid/product/OraHome_1/dbs/dr1IASDB.dat
    dg_broker_config_file2          /raid/product/OraHome_1/dbs/dr2IASDB.dat
    dg_broker_start           FALSE
    disk_asynch_io               TRUE
    dispatchers               (PROTOCOL=TCP)(PRE=oracle.aurora.server.GiopServer), (PROTOCOL=TCP)(PRE=oracle.a
                        urora.server.SGiopServer)
    distributed_lock_timeout     60
    dml_locks               1760
    drs_start               FALSE
    enqueue_resources          1980
    event
    fal_client
    fal_server
    fast_start_io_target          0
    fast_start_mttr_target          0
    fast_start_parallel_rollback     LOW
    file_mapping               FALSE
    fileio_network_adapters
    filesystemio_options          none
    fixed_date
    gc_files_to_locks
    gcs_server_processes          0
    global_context_pool_size
    global_names               FALSE
    hash_area_size               131072
    hi_shared_memory_address     0
    hs_autoregister           TRUE
    ifile
    instance_groups
    instance_name               IASDB
    instance_number           0
    instance_type               RDBMS
    java_max_sessionspace_size     0
    java_pool_size               67108864
    java_soft_sessionspace_limit     0
    job_queue_processes          5
    large_pool_size           8388608
    ldap_directory_access          NONE
    license_max_sessions          0
    license_max_users          0
    license_sessions_warning     0
    local_listener
    lock_name_space
    lock_sga               FALSE
    log_archive_config
    log_archive_dest
    log_archive_dest_1
    log_archive_dest_10
    log_archive_dest_2
    log_archive_dest_3
    log_archive_dest_4
    log_archive_dest_5
    log_archive_dest_6
    log_archive_dest_7
    log_archive_dest_8
    log_archive_dest_9
    log_archive_dest_state_1     enable
    log_archive_dest_state_10     enable
    log_archive_dest_state_2     enable
    log_archive_dest_state_3     enable
    log_archive_dest_state_4     enable
    log_archive_dest_state_5     enable
    log_archive_dest_state_6     enable
    log_archive_dest_state_7     enable
    log_archive_dest_state_8     enable
    log_archive_dest_state_9     enable
    log_archive_duplex_dest
    log_archive_format          %t_%s_%r.dbf
    log_archive_local_first      TRUE
    log_archive_max_processes     2
    log_archive_min_succeed_dest     1
    log_archive_start          FALSE
    log_archive_trace          0
    log_buffer               524288
    log_checkpoint_interval      0
    log_checkpoint_timeout          1800
    log_checkpoints_to_alert     FALSE
    log_file_name_convert
    logmnr_max_persistent_sessions     1
    max_commit_propagation_delay     0
    max_dispatchers
    max_dump_file_size          UNLIMITED
    max_enabled_roles          150
    max_shared_servers
    nls_calendar
    nls_comp
    nls_currency
    nls_date_format
    nls_date_language
    nls_dual_currency
    nls_iso_currency
    nls_language               AMERICAN
    nls_length_semantics          BYTE
    nls_nchar_conv_excp          FALSE
    nls_numeric_characters
    nls_sort
    nls_territory               AMERICA
    nls_time_format
    nls_time_tz_format
    nls_timestamp_format
    nls_timestamp_tz_format
    object_cache_max_size_percent     10
    object_cache_optimal_size     102400
    olap_page_pool_size          0
    open_cursors               300
    open_links               4
    open_links_per_instance      4
    optimizer_dynamic_sampling     2
    optimizer_features_enable     10.1.0.5
    optimizer_index_caching      0
    optimizer_index_cost_adj     100
    optimizer_mode               ALL_ROWS
    os_authent_prefix          ops$
    os_roles               FALSE
    parallel_adaptive_multi_user     TRUE
    parallel_automatic_tuning     FALSE
    parallel_execution_message_size 2148
    parallel_instance_group
    parallel_max_servers          40
    parallel_min_percent          0
    parallel_min_servers          0
    parallel_server           FALSE
    parallel_server_instances     1
    parallel_threads_per_cpu     2
    pga_aggregate_target          33554432
    plsql_code_type           INTERPRETED
    plsql_compiler_flags          INTERPRETED, NON_DEBUG
    plsql_debug               FALSE
    plsql_native_library_dir
    plsql_native_library_subdir_count 0
    plsql_optimize_level          2
    plsql_v2_compatibility          FALSE
    plsql_warnings               DISABLE:ALL
    pre_page_sga               FALSE
    processes               150
    query_rewrite_enabled          TRUE
    query_rewrite_integrity      enforced
    rdbms_server_dn
    read_only_open_delayed          FALSE
    recovery_parallelism          0
    remote_archive_enable          true
    remote_dependencies_mode     TIMESTAMP
    remote_listener
    remote_login_passwordfile     EXCLUSIVE
    remote_os_authent          FALSE
    remote_os_roles           FALSE
    replication_dependency_tracking TRUE
    resource_limit               FALSE
    resource_manager_plan
    resumable_timeout          0
    rollback_segments
    serial_reuse               disable
    service_names               IASDB.bizmatch.com.cn
    session_cached_cursors          0
    session_max_open_files          10
    sessions               400
    sga_max_size               281018368
    sga_target               0
    shadow_core_dump          partial
    shared_memory_address          0
    shared_pool_reserved_size     7549747
    shared_pool_size          150994944
    shared_server_sessions
    shared_servers               1
    skip_unusable_indexes          TRUE
    smtp_out_server
    sort_area_retained_size      0
    sort_area_size               65536
    sp_name                IASDB
    spfile                    /raid/product/OraHome_1/dbs/spfileIASDB.ora
    sql92_security               FALSE
    sql_trace               FALSE
    sql_version               NATIVE
    sqltune_category          DEFAULT
    standby_archive_dest          ?/dbs/arch
    standby_file_management      MANUAL
    star_transformation_enabled     FALSE
    statistics_level          TYPICAL
    streams_pool_size          0
    tape_asynch_io               TRUE
    thread                    0
    timed_os_statistics          0
    timed_statistics          TRUE
    trace_enabled               TRUE
    tracefile_identifier
    transactions               440
    transactions_per_rollback_segment 5
    undo_management           AUTO
    undo_retention               900
    undo_tablespace           UNDOTBS1
    use_indirect_data_buffers     FALSE
    user_dump_dest               /raid/product/admin/IASDB/udump
    utl_file_dir
    workarea_size_policy          AUTO
    All Portal DBMS jobs
    JOB LOG_USER          PRIV_USER     SCHEMA_USER
         17 PORTAL          PORTAL          PORTAL
         18 PORTAL          PORTAL          PORTAL
         27 PORTAL          PORTAL          PORTAL
         28 PORTAL          PORTAL          PORTAL
         43 PORTAL          PORTAL          PORTAL
    Details of all Portal DBMS jobs
    JOB WHAT
         17 begin execute immediate     'begin wwctx_sso.cleanup_sessions(
         p_hours_old => 168     ); end;'     ; exception     when others then
         null; end;
         18 wwsec_api_private.rename_users;
         27 wwv_context.sync;
         28 wwv_context.optimize(CTX_DDL.OPTLEVEL_FULL,1440,null);
         43 begin execute immediate     'begin wwutl_cache_sys.process_background_inv
         al;     end;'     ; exception     when others then     wwlog_api.log(p_
         domain=>'utl',     p_subdomain=>'cache',          p_name=>'background
         ',          p_action=>'process_background_inval',      p_information =
         > 'Error in process_background_inval '||          sqlerrm);end;
    Database version details
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.1.0.4.2 - Prod
    PL/SQL Release 10.1.0.4.2 - Production
    CORE     10.1.0.4.0     Production
    TNS for Linux: Version 10.1.0.4.0 - Production
    NLSRTL Version 10.1.0.4.2 - Production
    # Ending outer script: prechk/upshoset, 1.83 seconds
    ### Log invalid DB objects in the temporary directory.
    List count of invalid objects in the database in /raid/product/OraHome_1/upgrade/temp/portal/prechktmp/dbinvob1.log
    Running upg/frwk/dbinvobj.sqlPortal SQL script started at Wed Oct 18 21:22:26 2006
    Connected.
    ### Install Schema Validation Utility
    Running upg/common/prechk/svuver.sql . Portal SQL script started at Wed Oct 18 21:22:26 2006
    Connected.
    # Beginning outer script: prechk/svuver
    #-- Beginning inner script: prechk/svuver
    # Portal Schema Version = 10.1.2.0.2
    # Version of schema validation utility being installed = 101202
    # Load the Schema Validation Utility
    Installed version of schema validation utility: 10.1.2.0.6
    Schema Validation Utility version: 10.1.2.0.6 will be installed.
    No errors.
    No errors.
    No errors.
    No errors.
    No errors.
    No errors.
    No errors.
    No errors.
    No errors.
    No errors.
    No errors.
    No errors.
    No errors.
    No errors.
    No errors.
    No errors.
    No errors.
    Warning: Package Body created with compilation errors.
    Errors for PACKAGE BODY WWUTL_SCHEMA_COMMON:
    44/9     PL/SQL: Statement ignored
    44/16     PLS-00905: object PORTAL.WWSBR_SITE_DB is invalid
    70/9     PL/SQL: Statement ignored
    70/17     PLS-00905: object PORTAL.WWPOB_API_PAGE is invalid
    96/10     PL/SQL: Statement ignored
    96/18     PLS-00905: object PORTAL.WWV_THINGDB is invalid
    122/10     PL/SQL: Statement ignored
    122/18     PLS-00905: object PORTAL.WWV_THINGDB is invalid
    No errors.
    Warning: Package Body created with compilation errors.
    Errors for PACKAGE BODY WWUTL_ATTR_VALIDATION:
    740/9     PL/SQL: SQL Statement ignored
    778/26     PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
         invalid state
    Warning: Package Body created with compilation errors.
    Errors for PACKAGE BODY WWUTL_PAGE_GROUP_VALIDATION:
    366/9     PL/SQL: SQL Statement ignored
    372/31     PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
         invalid state
    1447/13 PL/SQL: SQL Statement ignored
    1458/28 PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
         invalid state
    1624/13 PL/SQL: SQL Statement ignored
    1635/28 PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
         invalid state
    1783/13 PL/SQL: SQL Statement ignored
    1794/28 PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
         invalid state
    1896/13 PL/SQL: SQL Statement ignored
    1907/28 PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
         invalid state
    2009/13 PL/SQL: SQL Statement ignored
    2020/28 PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
         invalid state
    2126/13 PL/SQL: SQL Statement ignored
    2137/28 PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
         invalid state
    No errors.
    No errors.
    Warning: Package Body created with compilation errors.
    Errors for PACKAGE BODY WWUTL_PAGE_VALIDATION:
    137/9     PL/SQL: SQL Statement ignored
    144/53     PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
         invalid state
    258/21     PL/SQL: SQL Statement ignored
    260/43     PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
         invalid state
    277/17     PL/SQL: SQL Statement ignored
    279/39     PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
         invalid state
    322/9     PL/SQL: SQL Statement ignored
    327/25     PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
         invalid state
    353/25     PL/SQL: Statement ignored
    353/40     PLS-00905: object PORTAL.WWPOB_API_PAGE is invalid
    362/29     PL/SQL: SQL Statement ignored
    369/42     PL/SQL: ORA-06575: Package or function WWPOB_API_PAGE is in an
         invalid state
    376/33     PL/SQL: Statement ignored
    376/48     PLS-00905: object PORTAL.WWPOB_API_PAGE is invalid
    385/21     PL/SQL: SQL Statement ignored
    388/39     PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
         invalid state
    1214/21 PL/SQL: SQL Statement ignored
    1216/42 PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
         invalid state
    1262/9     PL/SQL: SQL Statement ignored
    1266/30 PL/SQL: ORA-06575: Package or function WWPOB_API_PAGE is in an
         invalid state
    Warning: Package Body created with compilation errors.
    Errors for PACKAGE BODY WWUTL_REGION_VALIDATION:
    237/9     PL/SQL: SQL Statement ignored
    249/41     PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
         invalid state
    Warning: Package Body created with compilation errors.
    Errors for PACKAGE BODY WWUTL_STYLE_VALIDATION:
    414/9     PL/SQL: SQL Statement ignored
    424/44     PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
         invalid state
    584/21     PL/SQL: Statement ignored
    584/52     PLS-00905: object PORTAL.WWSBR_SITE_DB is invalid
    Warning: Package Body created with compilation errors.
    Errors for PACKAGE BODY WWUTL_THING_VALIDATION:
    2129/32 PL/SQL: Item ignored
    2130/13 PLS-00905: object PORTAL.WWSBR_THING_TYPES is invalid
    2131/32 PL/SQL: Item ignored
    2132/13 PLS-00905: object PORTAL.WWSBR_THING_TYPES is invalid
    2133/32 PL/SQL: Item ignored
    2134/13 PLS-00905: object PORTAL.WWSBR_THING_TYPES is invalid
    2135/31 PL/SQL: Item ignored
    2136/13 PLS-00905: object PORTAL.WWSBR_THING_TYPES is invalid
    2137/31 PL/SQL: Item ignored
    2138/13 PLS-00905: object PORTAL.WWSBR_THING_TYPES is invalid
    2139/31 PL/SQL: Item ignored
    2140/13 PLS-00905: object PORTAL.WWSBR_THING_TYPES is invalid
    2151/32 PL/SQL: Item ignored
    2151/42 PLS-00320: the declaration of the type of this expression is
         incomplete or malformed
    2152/32 PL/SQL: Item ignored
    2152/42 PLS-00320: the declaration of the type of this expression is
         incomplete or malformed
    2153/32 PL/SQL: Item ignored
    2153/42 PLS-00320: the declaration of the type of this expression is
         incomplete or malformed
    2202/17 PL/SQL: SQL Statement ignored
    2212/27 PL/SQL: ORA-06575: Package or function WWSBR_THING_TYPES is in an
         invalid state
    Warning: Package Body created with compilation errors.
    Errors for PACKAGE BODY WWUTL_ITEM_VALIDATION:
    322/9     PL/SQL: SQL Statement ignored
    338/30     PL/SQL: ORA-06575: Package or function WWPOB_API_PAGE is in an
         invalid state
    Warning: Package Body created with compilation errors.
    Errors for PACKAGE BODY WWUTL_PORTLET_VALIDATION:
    155/13     PL/SQL: SQL Statement ignored
    163/36     PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
         invalid state
    170/13     PL/SQL: SQL Statement ignored
    178/36     PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
         invalid state
    459/9     PL/SQL: SQL Statement ignored
    467/31     PL/SQL: ORA-06575: Package or function WWSBR_SITEBUILDER_PROVIDER
         is in an invalid state
    581/9     PL/SQL: SQL Statement ignored
    584/21     PL/SQL: ORA-06575: Package or function WWSBR_SITEBUILDER_PROVIDER
         is in an invalid state
    588/9     PL/SQL: SQL Statement ignored
    591/29     PL/SQL: ORA-06575: Package or function WWSBR_SITEBUILDER_PROVIDER
         is in an invalid state
    Warning: Package Body created with compilation errors.
    Errors for PACKAGE BODY WWUTL_DBPROV_VALIDATION:
    341/25     PL/SQL: Item ignored
    341/45     PLS-00302: component 'URL' must be declared
    559/17     PL/SQL: Statement ignored
    559/17     PLS-00320: the declaration of the type of this expression is
         incomplete or malformed
    562/17     PL/SQL: Statement ignored
    564/40     PLS-00320: the declaration of the type of this expression is
         incomplete or malformed
    No errors.
    No errors.
    ### Invoke Schema Validation Utility in Report Mode
    Running upg/common/prechk/../../frwk/svurun.sql . Portal SQL script started at Wed Oct 18 21:22:31 2006
    Connected.
    # Beginning outer script: prechk/svurun
    #-- Beginning inner script: frwk/svurun
    declare
    ERROR at line 1:
    ORA-20000:
    ORA-06512: at "PORTAL.WWPOF", line 440
    ORA-06512: at line 45
    ORA-20000:
    ORA-06512: at "PORTAL.WWPOF", line 440
    ORA-06512: at "PORTAL.WWUTL_SCHEMA_VALIDATION", line 263
    ORA-04063: package body "PORTAL.WWUTL_PAGE_GROUP_VALIDATION" has errors
    ORA-06508: PL/SQL: could not find program unit being called
    Connected.
    # Run the report mode of the schema validation utility
    #---- Beginning inner script: wwutl_schema_validation.validate_all
    # Running the validation in report mode
    # Schema Validation Utility Version = 10.1.2.0.6
    # Validate Page Groups
    # Handling exception
    # ERROR: When executing schema validation utility
    # ERROR: ORA-06508: PL/SQL: could not find program unit being called
    # ----- PL/SQL Call Stack -----
    object line object
    handle number name
    0x5c4fef28     434 package body PORTAL.WWPOF
    0x5bb96e20     263 package body PORTAL.WWUTL_SCHEMA_VALIDATION
    0x5bb96e20     297 package body PORTAL.WWUTL_SCHEMA_VALIDATION
    0x5b885fe4     18 anonymous block
    # Handling exception
    # ERROR: When running the schema validation utility
    # ERROR: ORA-20000:
    ORA-06512: at "PORTAL.WWPOF", line 440
    ORA-06512: at "PORTAL.WWUTL_SCHEMA_VALIDATION", line 263
    ORA-04063: package body "PORTAL.WWUTL_PAGE_GROUP_VALIDATION" has errors
    ORA-06508: PL/SQL: could not find program unit being called
    # ----- PL/SQL Call Stack -----
    object line object
    handle number name
    0x5c4fef28     434 package body PORTAL.WWPOF
    0x5b885fe4     45 anonymous block
    ### ERROR: Exception Executing upg/common/prechk/../../frwk/svurun.sql REPORT PRECHK for Subscriber: 1
    ### Check Failed at Wed Oct 18 21:22:31 2006 Continuing as PreCheck mode is specified
    ### PHASE 5: Version specific user inputs
    Upgrade phase started at Wed Oct 18 21:22:31 2006
    Processing Metadata File: upg/10140/inputchk/inputchk.met ###
    ### PHASE 6: Version specific pre upgrade checks
    Upgrade phase started at Wed Oct 18 21:22:31 2006
    Processing Metadata File: upg/10140/prechk/prechk.met ###
    ### PHASE 7: Pre upgrade common information gathering
    Upgrade phase started at Wed Oct 18 21:22:31 2006
    Processing Metadata File: upg/common/info/info.met ### Log portal configuration info in the temporary directory.
    Running upg/common/info/ptlinfo.sql . Portal SQL script started at Wed Oct 18 21:22:31 2006
    Connected.
    # Beginning outer script: info/ptlinfo
    # Ending outer script: info/ptlinfo, 0.13 seconds
    Metadata File upg/10140/info/info.met does not exist.
    ### PHASE 8: Verify user inputs
    Upgrade phase started at Wed Oct 18 21:22:32 2006
    Processing Metadata File: upg/common/verfyinp/verfyinp.met Running upg/common/verfyinp/verfyinp.pl The following details have been determined:
    General Details
    ===========================================================
    Log File Name : /raid/product/OraHome_1/upgrade/temp/portal/precheck.log
    RDBMS Version : 10.1.0
    Product Version : 10.1.2.0.2
    Oracle PL/SQL Toolkit Schema : SYS
    Oracle PL/SQL Toolkit version : 10.1.2.0.2
    O7 accessibility : FALSE
    Schema Details
    ===========================================================
    Name : portal
    Connect String : (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=portaldb.bizmatch.com.cn)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=IASDB.bizmatch.com.cn)))
    Tablespace Details
    ===========================================================
    Default Tablespace : PORTAL
    Temporary Tablespace : TEMP
    Document Tablespace : PORTAL_DOC
    Logging Tablespace : PORTAL_LOG
    Index Tablespace : PORTAL
    ### ERROR: WWU-00030: Pre-Check mode encountered the following errors:
    ### 184 : ### ERROR: WWU-00013: Tables with UPG_ prefix were found in the OracleAS Portal
    ### 706 : 44/16     PLS-00905: object PORTAL.WWSBR_SITE_DB is invalid
    ### 708 : 70/17     PLS-00905: object PORTAL.WWPOB_API_PAGE is invalid
    ### 710 : 96/18     PLS-00905: object PORTAL.WWV_THINGDB is invalid
    ### 712 : 122/18     PLS-00905: object PORTAL.WWV_THINGDB is invalid
    ### 719 : 778/26     PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
    ### 727 : 372/31     PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
    ### 731 : 1458/28 PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
    ### 735 : 1635/28 PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
    ### 739 : 1794/28 PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
    ### 743 : 1907/28 PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
    ### 747 : 2020/28 PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
    ### 751 : 2137/28 PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
    ### 761 : 144/53     PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
    ### 765 : 260/43     PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
    ### 769 : 279/39     PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
    ### 773 : 327/25     PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
    ### 777 : 353/40     PLS-00905: object PORTAL.WWPOB_API_PAGE is invalid
    ### 779 : 369/42     PL/SQL: ORA-06575: Package or function WWPOB_API_PAGE is in an
    ### 783 : 376/48     PLS-00905: object PORTAL.WWPOB_API_PAGE is invalid
    ### 785 : 388/39     PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
    ### 789 : 1216/42 PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
    ### 793 : 1266/30 PL/SQL: ORA-06575: Package or function WWPOB_API_PAGE is in an
    ### 801 : 249/41     PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
    ### 809 : 424/44     PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
    ### 813 : 584/52     PLS-00905: object PORTAL.WWSBR_SITE_DB is invalid
    ### 819 : 2130/13 PLS-00905: object PORTAL.WWSBR_THING_TYPES is invalid
    ### 821 : 2132/13 PLS-00905: object PORTAL.WWSBR_THING_TYPES is invalid
    ### 823 : 2134/13 PLS-00905: object PORTAL.WWSBR_THING_TYPES is invalid
    ### 825 : 2136/13 PLS-00905: object PORTAL.WWSBR_THING_TYPES is invalid
    ### 827 : 2138/13 PLS-00905: object PORTAL.WWSBR_THING_TYPES is invalid
    ### 829 : 2140/13 PLS-00905: object PORTAL.WWSBR_THING_TYPES is invalid
    ### 831 : 2151/42 PLS-00320: the declaration of the type of this expression is
    ### 835 : 2152/42 PLS-00320: the declaration of the type of this expression is
    ### 839 : 2153/42 PLS-00320: the declaration of the type of this expression is
    ### 843 : 2212/27 PL/SQL: ORA-06575: Package or function WWSBR_THING_TYPES is in an
    ### 851 : 338/30     PL/SQL: ORA-06575: Package or function WWPOB_API_PAGE is in an
    ### 859 : 163/36     PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
    ### 863 : 178/36     PL/SQL: ORA-06575: Package or function WWSBR_SITE_DB is in an
    ### 867 : 467/31     PL/SQL: ORA-06575: Package or function WWSBR_SITEBUILDER_PROVIDER
    ### 871 : 584/21     PL/SQL: ORA-06575: Package or function WWSBR_SITEBUILDER_PROVIDER
    ### 875 : 591/29     PL/SQL: ORA-06575: Package or function WWSBR_SITEBUILDER_PROVIDER
    ### 883 : 341/45     PLS-00302: component 'URL' must be declared
    ### 885 : 559/17     PLS-00320: the declaration of the type of this expression is
    ### 889 : 564/40     PLS-00320: the declaration of the type of this expression is
    ### 904 : ERROR at line 1:
    ### 905 : ORA-20000:
    ### 906 : ORA-06512: at "PORTAL.WWPOF", line 440
    ### 907 : ORA-06512: at line 45
    ### 908 : ORA-20000:
    ### 909 : ORA-06512: at "PORTAL.WWPOF", line 440
    ### 910 : ORA-06512: at "PORTAL.WWUTL_SCHEMA_VALIDATION", line 263
    ### 911 : ORA-04063: package body "PORTAL.WWUTL_PAGE_GROUP_VALIDATION" has errors
    ### 912 : ORA-06508: PL/SQL: could not find program unit being called
    ### 922 : # ERROR: When executing schema validation utility
    ### 923 : # ERROR: ORA-06508: PL/SQL: could not find program unit being called
    ### 933 : # ERROR: When running the schema validation utility
    ### 934 : # ERROR: ORA-20000:
    ### 935 : ORA-06512: at "PORTAL.WWPOF", line 440
    ### 936 : ORA-06512: at "PORTAL.WWUTL_SCHEMA_VALIDATION", line 263
    ### 937 : ORA-04063: package body "PORTAL.WWUTL_PAGE_GROUP_VALIDATION" has errors
    ### 938 : ORA-06508: PL/SQL: could not find program unit being called
    ### 947 : ### ERROR: Exception Executing upg/common/prechk/../../frwk/svurun.sql REPORT PRECHK for Subscriber: 1
    ### Check Failed at Wed Oct 18 21:22:32 2006 Continuing as PreCheck mode is specified
    Pre-Check Completed at Wed Oct 18 21:22:32 2006

    Hi,
    Its good that u pasted the complete log file. In your environment you have to run this upgrade tool only once from any of the middle tier.
    And with respect to your error that u got in precheck is quite simple. All u have to do is just run this script from by connecting to portal schema using sqlplus.
    Run dropupg.sql
    Location-------- /raid/product/OraHome_1/upgrade/temp/portal/prechktmp/dropupg.sql
    Later you re-run the upgrade tool and let me know the status.
    Good luck
    Tanmai

  • Error encountered during execution of procedure....

    Hi,
    Im new to Oracle..just started with working with Oracle 10g in my company.Im trying to execute a procedure in SQL Developer 1.5.1 but getting this error as shown below.It would be great if anyone could help me out in it.
    Error starting at line 3 in command:
    EXECUTE EMP_PROC;
    Error report:
    ORA-06550: line 1, column 7:
    PLS-00905: object SYSTEM.EMP_PROC is invalid
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    06550. 00000 - "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:
    EMP_PROC is the Procedure im trying to execute.
    **I have 2 tables namely Emp_INFO(emp_name,emp_id,dept_id,salary) and DEPT_INFO(dept_name,dept_id)...Im trying to display names of employess based on the range of salaries(low,mid,high)..
    The code for this procedure is given below which also contains 3 functions...
    /*Procedure EMP_PROC*/
    CREATE OR REPLACE PROCEDURE EMP_PROC (sal_low IN NUMBER,
    sal_mid IN NUMBER,
    sal_high IN NUMBER) AS
    /*Declaring variables to be used inside the Procedure*/
    sal_low NUMBER(10,2) := 80000;
    sal_mid NUMBER(10,2) := 300000;
    sal_high NUMBER(10,2) := 500000;
    s_low VARCHAR2(25);
    s_mid VARCHAR2(25);
    s_high VARCHAR2(25);
    sal_range VARCHAR2(20);
    /*Declaring User Defined Exception*/
    usr_excp EXCEPTION;
    /*Cursor for retrieving Low Salary Employees */
    CURSOR cursor_lowSal IS
    SELECT Emp_Name ,Emp_ID ,Dept_ID ,Dept_Name
    FROM EMP_INFO,DEPT_INFO
    WHERE Salary <= 80000;
    /*Cursor for retrieving Mid Salary Employees */
    CURSOR cursor_midSal IS
    SELECT Emp_Name ,Emp_ID ,Dept_ID ,Dept_Name
    FROM EMP_INFO,DEPT_INFO
    WHERE Salary > 80000 OR Salary < 500000;
    /*Cursor for retrieving High Salary Employees */
    CURSOR cursor_highSal IS
    SELECT Emp_Name ,Emp_ID ,Dept_ID ,Dept_Name
    FROM EMP_INFO,DEPT_INFO
    WHERE Salary > 500000;
    /*Declaring variables that will hold values*/
    e_name EMP_INFO.Emp_Name%TYPE;
    e_id EMP_INFO.Emp_ID%TYPE;
    d_name DEPT_INFO.Dept_Name%TYPE;
    d_id EMP_INFO.Dept_ID%TYPE;
    BEGIN
    /*Enter the Salary range*/
    sal_range := &sal_range;
    /*Checking for Salary Range*/
    IF sal_range == sal_low THEN
    OPEN cursor_lowSal;
    FETCH cursor_lowSal INTO e_name ,e_id ,d_name ,d_id;
    /*Calling Function Low_Sal*/
    s_low := funcLow_sal();
    /*Displaying Output*/
    dbms_output.put_line(s_low||'::'||e_name||','||e_id||','||d_name||','||d_id);
    ELSIF sal_range == mid_sal THEN
    OPEN cursor_midSal;
    FETCH cursor_lowSal INTO e_name ,e_id ,d_name ,d_id;
    /*Calling Function Mid_Sal*/
    s_mid := funcMid_sal();
    /*Displaying Output*/
    dbms_output.put_line(s_mid||'::'||e_name||','||e_id||','||d_name||','||d_id);
    ELSIF sal_range == sal_high THEN
    OPEN cursor_highSal;
    FETCH cursor_lowSal INTO e_name ,e_id ,d_name ,d_id;
    /*Calling Function High_Sal*/
    s_high := funcHigh_sal();
    /*Displaying Output*/
    dbms_output.put_line(s_high||'::'||e_name||','||e_id||','||d_name||','||d_id);
    ELSE
    /*Calling user defined Exception*/
    RAISE usr_excp;
    END IF;
    /*Handling Exceptions*/
    EXCEPTION
    WHEN usr_excp THEN
    dbms_output.put_line('Not in range,please try again!!');
    WHEN OTHERS THEN
    dbms_output.put_line('Exception');
    /*Closing the cursor_lowSal*/
    CLOSE cursor_lowSal;
    /*Closing the cursor_midSal*/
    CLOSE cursor_midSal;
    /*Closing the cursor_highSal*/
    CLOSE cursor_highSal;
    END;
    /*Function funcLow_sal*/
    CREATE OR REPLACE FUNCTION funcLow_sal RETURN VARCHAR2 AS
    BEGIN
    return 'Employees with salary less than 80000'
    END;
    /*Function funcMid_sal*/
    CREATE OR REPLACE FUNCTION funcMid_sal RETURN VARCHAR2 AS
    BEGIN
    return 'Employees with salary within 80000 and 500000'
    END;
    /*Function funcHigh_sal*/
    CREATE OR REPLACE FUNCTION funcHigh_sal RETURN VARCHAR2 AS
    BEGIN
    return 'Employees with salary more than 500000'
    END;
    /*Executing the Procedure*/
    SET SERVEROUTPUT ON
    EXECUTE EMP_PROC;
    Cheers...(')
    Edited by: user10553245 on Nov 7, 2008 3:49 AM

    The current version of code is given below.The 2 compliation errors i mentioned above are coming in the very First line of the procedure..the whole is highlited in red..
    ::Error(1): PL/SQL: Compilation unit analysis terminated
    ::Error(2,1): PLS-00410: duplicate fields in RECORD,TABLE or argument list are not permitted
    create or replace PROCEDURE EMP_PROC (sal_low IN NUMBER , sal_mid  IN NUMBER , sal_high IN NUMBER) AS
    /*Declaring variables to be used inside the Procedure*/
    sal_low NUMBER(10,2) := 80000;
    sal_mid NUMBER(10,2) := 300000;
    sal_high NUMBER(10,2) := 500000;
    s_low VARCHAR2(25);
    s_mid VARCHAR2(25);
    s_high VARCHAR2(25);
    sal_range VARCHAR2(20);
    /*Declaring User Defined Exception*/
    usr_excp EXCEPTION;
    /*Cursor for retrieving Low Salary Employees */
    CURSOR cursor_lowSal IS
    SELECT Emp_Name ,Emp_ID ,Dept_ID ,Dept_Name
    FROM EMP_INFO,DEPT_INFO
    WHERE Salary <= 80000;
    /*Cursor for retrieving Mid Salary Employees */
    CURSOR cursor_midSal IS
    SELECT Emp_Name ,Emp_ID ,Dept_ID ,Dept_Name
    FROM EMP_INFO,DEPT_INFO
    WHERE Salary > 80000 OR Salary < 500000;
    /*Cursor for retrieving High Salary Employees */
    CURSOR cursor_highSal IS
    SELECT Emp_Name ,Emp_ID ,Dept_ID ,Dept_Name
    FROM EMP_INFO,DEPT_INFO
    WHERE Salary > 500000;
    /*Declaring variables that will hold values*/
    e_name EMP_INFO.Emp_Name%TYPE;
    e_id EMP_INFO.Emp_ID%TYPE;
    d_name DEPT_INFO.Dept_Name%TYPE;
    d_id EMP_INFO.Dept_ID%TYPE;
    BEGIN
    /*Enter the Salary range*/
    sal_range := '&sal_range';
    /*Checking for Salary Range*/
    IF sal_range = sal_low THEN
    OPEN cursor_lowSal;
    FETCH cursor_lowSal INTO e_name ,e_id ,d_name ,d_id;
    /*Calling Function Low_Sal*/
    s_low := funcLow_sal();
    /*Displaying Output*/
    dbms_output.put_line(s_low||'::'||e_name||','||e_id||','||d_name||','||d_id);
    ELSIF sal_range = mid_sal THEN
    OPEN cursor_midSal;
    FETCH cursor_lowSal INTO e_name ,e_id ,d_name ,d_id;
    /*Calling Function Mid_Sal*/
    s_mid := funcMid_sal();
    dbms_output.put_line(s_mid||'::'||e_name||','||e_id||','||d_name||','||d_id);
    ELSIF sal_range = sal_high THEN
    OPEN cursor_highSal;
    FETCH cursor_lowSal INTO e_name ,e_id ,d_name ,d_id;
    /*Calling Function High_Sal*/
    s_high := funcHigh_sal();
    dbms_output.put_line(s_high||'::'||e_name||','||e_id||','||d_name||','||d_id);
    ELSE
    /*Calling user defined Exception*/
    RAISE usr_excp;
    END IF;
    EXCEPTION
    WHEN usr_excp THEN
    dbms_output.put_line('Not in range,please try again!!');
    /*Closing the cursor_lowSal*/
    CLOSE cursor_lowSal;
    /*Closing the cursor_midSal*/
    CLOSE cursor_midSal;
    /*Closing the cursor_highSal*/
    CLOSE cursor_highSal;
    END EMP_PROC;
    The 3 functions are just being used to display messages...
    /*Function funcLow_sal*/
    CREATE OR REPLACE FUNCTION funcLow_sal RETURN VARCHAR2 AS
    BEGIN
    return 'Employees with salary less than 80000'
    END;
    /*Function funcMid_sal*/
    CREATE OR REPLACE FUNCTION funcMid_sal RETURN VARCHAR2 AS
    BEGIN
    return 'Employees with salary within 80000 and 500000'
    END;
    /*Function funcHigh_sal*/
    CREATE OR REPLACE FUNCTION funcHigh_sal RETURN VARCHAR2 AS
    BEGIN
    return 'Employees with salary more than 500000'
    END;
    /

Maybe you are looking for

  • Reg.Purchase order against sale order( E )

    Dear Experts I configured PO against cost centre (K - Cost center and G/L A/c is created) and it is working.But I want to configure against sale order (E).what is the configuration required. Pls advise in details Thanks Rajakumar.K

  • Can the iphone 5 be shipped to store for pick-up?

    Will I be able to pre-order the iphone 5 and have it shipped to store for pick-up?

  • IDOC not being sent to XI

    I have configured RFC destination, Port on SAP System. I also done the same on XI as well. I was able to post IDOC from SAP system using we19, and when I look at the status, I see "Transaction Executing" on SAP system and do not see anything on XI sy

  • Help while creating ASM instance on rac environment on Linux

    Help while creating ASM instance on rac environment on Oracle enterprise Linux 4 x84_64 Update 5 (10g2). a) Installed ASMLib 2.0 Packages b) Configured and Loaded the ASMLib 2.0 Packages c) Created ASM Disks for Oracle d) I can see, three volumes alr

  • I chose to boot to os9 now cant go back to osx

    i recently purchased a used g3 ibook with osx tiger installed. i was cleaning up the files and chose the boot option to os9. it is so slow and has useless network program that boggin it down. is there a way i can go back to osx with out a cd?