Optional Parameter - Oracle Package Throws an Error

Hi there,
I have an Oracle Package & it has a stored procedure with optional parameter. The calling code is in ColdFusion.
When I run my webpage the Oracle throws below error.
" [Macromedia][Oracle JDBC Driver][Oracle]ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'GET_CONTRACT_BY_DYN_SQL' ORA-06550: line 1, column 7: PL/SQL: Statement ignored "
Calling Code (ColdFusion)
<cfstoredproc procedure="CONTRACTS_PKG.GET_CONTRACT_BY_DYN_SQL" datasource="#REQUEST.dsn#">
     <cfprocparam cfsqltype="CF_SQL_INTEGER" type="in" value="1" variable="P_CONTRACTID">     
     <cfprocresult name="qDataDynSQL" resultset="1">
</cfstoredproc>
<br>Dynamic SQL Query:
<cfdump var="#qDataDynSQL#" label="Dynamic SQL Query">
Oracle Package
create or replace
PACKAGE CONTRACTS_PKG AS
TYPE T_CURSOR IS REF CURSOR;
PROCEDURE GET_CONTRACT_BY_DYN_SQL(P_CONTRACTID IN NUMBER, P_COLS IN VARCHAR2 DEFAULT '*', IO_CURSOR IN OUT T_CURSOR);
END CONTRACTS_PKG;
create or replace
PACKAGE BODY CONTRACTS_PKG AS
-- Get Contract Using Dynamic SQL
PROCEDURE GET_CONTRACT_BY_DYN_SQL(P_CONTRACTID IN NUMBER, P_COLS IN VARCHAR2 DEFAULT '*', IO_CURSOR IN OUT T_CURSOR)
IS
V_CURSOR T_CURSOR;
V_SQL VARCHAR2(200);
BEGIN
IF p_contractid > 0 THEN
V_SQL := 'SELECT '|| P_COLS || ' FROM CONTRACTS WHERE contract_id = ' || P_CONTRACTID ;
ELSE
V_SQL := 'SELECT '|| P_COLS || ' FROM CONTRACTS';
END IF;
OPEN V_CURSOR FOR V_SQL;
IO_CURSOR := V_CURSOR;
END GET_CONTRACT_BY_DYN_SQL;
END CONTRACTS_PKG;
Does anyone knows why it throws an error? As you can see in the package header & body the parameter P_COLS has the default value as '*'.
Looking forward to hear from someone.
Thanks,
Hitesh Patel

931198 wrote:
I have an Oracle Package & it has a stored procedure with optional parameter. The calling code is in ColdFusion.
When I run my webpage the Oracle throws below error.Never mind the error - your approach is most definitely a candidate for Oracle WTF.
Nothing sane about this approach. Especially the decision not to use bind variables and slowing down cursor processing significantly by burning a lot more CPU cycles on hard parsing and fragmenting the SQL Shared Pool in the process.
Why not used MS Access instead? It is far more suited as a mickey mouse database for a goofy application?
Why am I badmouthing your approach to Oracle? Because that is exactly the primary cause, the #1 reason, for poor Oracle performance and run-time problems dealing with Shared Pool fragmentation. It is something that many Oracle experts blog about, talk about, write about. It is addressed in numerous books, Oracle documentation, and even Oracle Support Notes.
And despite the amount of information available on how to get the basics rights in using Oracle... this approach you are pursuing still refuses to die. So it deserves to be beaten with a lead pipe when it rears its ugly head here in this forum..

Similar Messages

  • Oracle Explorer throws "Unspecified Error"

    Hi,
    I just installed OPD 10.2.01. And it said installation was successful. But when I goto IDE and click on oracle explorer an "Unspecified Error" message box appears. And also I am unable to exit the IDE after this, the message reappears when I try to exit IDE.
    Could anyone please help me with this.
    Thanks.

    ok to answer my own question. I reinstalled the opd.net. even though it threw an error that it was not able to update some rar file, the oracle explorer seems promising.

  • OPMN Agent throwing error while running ODIOSCOMMAND parameter in package

    Hello,
    I have installed OPMN to run my standalone agent as windows service. I am able to run all objects except it fails to run ODIOSCOMMAND parameter in package at this step it is failing.
    Now I stopped OPMN instance from services and started agent manually by running the batch file and ran same package that has ODIOSCOMMAND it ran successfully.
    I tested my environmental_variables has oracle_home set in it.
    Error message is error file:
    Error 6 initializing SQL*Plus
    Message file sp1<lang>.msb not found
    SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
    Operator error:
    ODI-1217: Session INCREMENTAL_UPDATE_WITH_NEW_TABLE (14067001) fails with return code 7000.
    ODI-1226: Step Load INV Values fails after 1 attempt(s).
    ODI-1241: Oracle Data Integrator tool execution fails.
    Caused By: com.sunopsis.dwg.function.SnpsFunctionBaseException: ODI-30038: OS command returned 1.
         at com.sunopsis.dwg.tools.OSCommand.actionExecute(OSCommand.java:294)
         at com.sunopsis.dwg.function.SnpsFunctionBase.execute(SnpsFunctionBase.java:276)

    1. Appended to the default paths database client and tnsnames locations to the opmn.xml file.
    2- Add the ORACLE_HOME to the opmn.xml file.

  • ORACLE 10g : Datapump-Import : Error: unknown parameter name 'REMAP_TABLE'

    Hi,
    I am working on Oracle 10g. When executed import datapump script in the UNIX box with option “RMAP_TABLE” I received the error “unknown parameter name 'REMAP_TABLE' “Can you please give me solution for it?
    Scripts :-
    impdp eimsexp/xyz TABLES=EIMDBO.DIVISION DIRECTORY=DATAMART_DATA_PUMP_DIR DUMPFILE=expdp_DATAMART_tables_%u_$BATCH_ID.dmp LOGFILE=impdp_DATAMART_tables.log REMAP_TABLE=EIMDBO.DIVISION:EIM2DBO:YR2009_DIM_DIVISION
    Note :- The YR2009_DIM_DIVISION table is available in the target database. It is without partition table. The EIMDBO.DIVISION is partition table.
    Thanks,

    See your post here
    ORACLE 10g : Datapump-Import : Error: unknown parameter name 'REMAP_TABLE'
    Srini

  • Error when calling a Oracle package with length 30 (ORA-01948)

    Hi...,
    When I call a Oracle package I get this error message.
    java.sql.SQLException: ORA-01948: identifier's name length (39) exceeds maximum (30)
    ORA-06512: at "SYS.DBMS_PICKLER", line 18
    ORA-06512: at "SYS.DBMS_PICKLER", line 58
    ORA-06512: at line 1
    There is not way we can change the package name. How do we fix it on the java side?
    Regards,
    Praveen

    The statement 'ORA-01948' is coming from the database and not your java program. Therefore you cant fix it on the java side. There is some stored procedure, stored function, or other such code on the database that is too long. Use a database utility tool such as 'Toad' to examine the database and see if you can find what SYS.DBMS_PICKLER means.
    Here is a definition of ORA-01948 I found on the internet:
    ORA-01948: identifier's name length (string) exceeds maximum (string)
    Cause: A name has been specified that is too long. For example, dbms_session.is_role_enabled() specifies a role name that is too long.
    Action: Change the application or command to use a correct identifier.

  • Show filter choice option in SharePoint List throws error

    Hi,
    I have a list in SharePoint 2010 site. I tried to put a filter on one of the columns, I got the 'Show Filter Choice' option. When I clicked on it, this was the error message I got:
    Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator.
    Same activity on a different list in the same site did not throw this error and worked just fine. What could be the possible reason?

    After a lot of research and googling, I found the root cause:
    If the XSLT transforming takes longer tham 1 sec (Defult setting), this error will be thrown. This issue is present in RTM and a fix to it is was released in FEB 2014 CU. After applying the patch I had to run this powershell script:
    $farm = Get-SPFarm
    $farm.XsltTransformTimeOut = 5
    $farm.Update()
    To check the current timeout value, run this:
    $farm = Get-SPFarm
    $farm.XsltTransformTimeOut
    Reference: http://blogs.msdn.com/b/bkr_sharepoint/archive/2014/06/09/no-xslttransformtimeout-found-property-in-sharepoint-farm.aspx

  • BPC75NW: DM package throws run time error

    Hi,
    Execution of a DM package throws a run time error.
    A parallel run through UJKT tcode does not give any such error.
    Following is the DM package error:
    "Member () of dimension (ACCOUNT) is not a valid member"
    What can be the possible causes of this error?
    Regards,
    Pankaj

    Hi,
    Do you have any script logic run by the DM package? If yes, please check if you are using %ACCOUNT_SET% in the script. In that case, you need to pass the account member from the DM package. In addition to this, make sure that the default logic is validated, even if its empty.
    Hope this helps.

  • Solve oracle multimedia post upgrade errors

    Hello,
    I performed and out of place upgrade from oracle 10.2.0.4 to 11.2.0.4.
    when I run the postupgrade script i have issues on oracle multimedia that i cannot solve.. it is about shared memory. I followed all the recommendations suggested on the pre-upgrade script.
    SQL>  @/oracle/product/11.2.0.4/dbhome_1/rdbms/admin/utlu112s.sql
    Oracle Database 11.2 Post-Upgrade Status Tool           10-03-2014 15:06:57
    Component                               Current      Version     Elapsed Time
    Name                                    Status       Number      HH:MM:SS
    Oracle Server
    .                                         VALID      11.2.0.4.0  00:14:07
    JServer JAVA Virtual Machine
    .                                         VALID      11.2.0.4.0  00:11:08
    Oracle Workspace Manager
    .                                         VALID      11.2.0.4.0  00:00:48
    Oracle Enterprise Manager
    .                                         VALID      11.2.0.4.0  00:09:58
    Oracle XDK
    .                                         VALID      11.2.0.4.0  00:02:48
    Oracle Text
    .                                         VALID      11.2.0.4.0  00:00:59
    Oracle XML Database
    .                                         VALID      11.2.0.4.0  00:05:45
    Oracle Database Java Packages
    .                                         VALID      11.2.0.4.0  00:00:20
    Oracle Multimedia
    .   ORA-00604: error occurred at recursive SQL level 1 ORA-04031: unable to
    allocate 32 bytes of shared memory ("shared pool","select col#, grantee#,
    privi...","KGLH0^34b96f2","kglHeapInitialize:temp")
    ORA-06512: at
    "SYS.DBMS_JAVA", line 655
    ORA-06512: at line 1
    .   ORA-04031: unable to allocate 32 bytes of shared memory ("shared
    pool","select col#, grantee#,
    privi...","KGLH0^34b96f2","kglHeapInitialize:temp")
    ORA-06512: at
    "SYS.DBMS_JAVA", line 655
    ORA-06512: at line 1
    .   col#, grantee#, privi...","KGLH0^34b96f2","kglHeapInitialize:temp")
    ORA-06512: at "SYS.DBMS_JAVA", line 655
    ORA-06512: at line 1
    .   ORA-06512: at "SYS.DBMS_JAVA", line 655 ORA-06512: at line 1
    .   ORA-06512: at line 1
    .   ORA-00604: error occurred at recursive SQL level 1 ORA-04031: unable to
    allocate 136 bytes of shared memory ("shared pool","select
    i.obj#,i.ts#,i.file#,...","KGLH0^4006e26c","wds: qksmmGetWorkArea")
    ORA-06512:
    at "SYS.DBMS_JAVA", line 655
    ORA-06512: at line 1
    .   ORA-04031: unable to allocate 136 bytes of shared memory ("shared
    pool","select i.obj#,i.ts#,i.file#,...","KGLH0^4006e26c","wds:
    qksmmGetWorkArea")
    ORA-06512: at "SYS.DBMS_JAVA", line 655
    ORA-06512: at line 1
    .   i.obj#,i.ts#,i.file#,...","KGLH0^4006e26c","wds: qksmmGetWorkArea")
    ORA-06512: at "SYS.DBMS_JAVA", line 655
    ORA-06512: at line 1
    .   ORA-06512: at "SYS.DBMS_JAVA", line 655 ORA-06512: at line 1
    .   ORA-06512: at line 1
    .   ORA-04045: errors during recompilation/revalidation of
    ORDSYS./f87ac59f_DicomEngine
    ORA-04031: unable to allocate 32 bytes of shared
    memory ("shared pool","ALTER JAVA CLASS
    "ORDSYS"."/...","KGLH0^1182baa5","kglHeapInitialize:temp")
    ORA-06512: at
    "ORDSYS.ORD_DICOM_ADMIN_PRV", line 6945
    ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN",
    line 276
    ORA-06512: at line 1
    .   ORDSYS./f87ac59f_DicomEngine ORA-04031: unable to allocate 32 bytes of
    shared memory ("shared pool","ALTER JAVA CLASS
    "ORDSYS"."/...","KGLH0^1182baa5","kglHeapInitialize:temp")
    ORA-06512: at
    "ORDSYS.ORD_DICOM_ADMIN_PRV", line 6945
    ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN",
    line 276
    ORA-06512: at line 1
    .   ORA-04031: unable to allocate 32 bytes of shared memory ("shared
    pool","ALTER JAVA CLASS
    "ORDSYS"."/...","KGLH0^1182baa5","kglHeapInitialize:temp")
    ORA-06512: at
    "ORDSYS.ORD_DICOM_ADMIN_PRV", line 6945
    ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN",
    line 276
    ORA-06512: at line 1
    .   JAVA CLASS "ORDSYS"."/...","KGLH0^1182baa5","kglHeapInitialize:temp")
    ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN_PRV", line 6945
    ORA-06512: at
    "ORDSYS.ORD_DICOM_ADMIN", line 276
    ORA-06512: at line 1
    .   ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN_PRV", line 6945 ORA-06512: at
    "ORDSYS.ORD_DICOM_ADMIN", line 276
    ORA-06512: at line 1
    .   ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN", line 276 ORA-06512: at line 1
    .   ORA-06512: at line 1
    .   ORA-53051: no editDataModel session found ORA-06512: at
    "ORDSYS.ORD_DICOM_ADMIN_PRV", line 6306
    ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN",
    line 125
    ORA-06512: at line 14805
    .   ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN_PRV", line 6306 ORA-06512: at
    "ORDSYS.ORD_DICOM_ADMIN", line 125
    ORA-06512: at line 14805
    .   ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN", line 125 ORA-06512: at line 14805
    .   ORA-06512: at line 14805
    .   ORA-53051: no editDataModel session found ORA-06512: at
    "ORDSYS.ORD_DICOM_ADMIN_PRV", line 6306
    ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN",
    line 125
    ORA-06512: at line 67
    .   ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN_PRV", line 6306 ORA-06512: at
    "ORDSYS.ORD_DICOM_ADMIN", line 125
    ORA-06512: at line 67
    .   ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN", line 125 ORA-06512: at line 67
    .                                       INVALID      11.2.0.4.0  00:55:05
    Spatial
    .                                    OPTION OFF      10.2.0.4.0  00:00:00
    Oracle Expression Filter
    .                                         VALID      11.2.0.4.0  00:00:16
    Oracle Rules Manager
    .                                         VALID      11.2.0.4.0  00:00:14
    Final Actions
    .                                                                00:01:34
    Total Upgrade Time: 01:43:11
    PL/SQL procedure successfully completed.
    thank you
    Mario.

    I explicity set up the sga_target to 668MB as suggested by the pre-upgrade script.
    see  the output of preugrade tool:
    SQL> @/oracle/utlu112i.sql
    Oracle Database 11.2 Pre-Upgrade Information Tool 10-02-2014 17:24:25
    Script Version: 11.2.0.4.0 Build: 001
    Database:
    --> name:          FUELPLUS
    --> version:       10.2.0.4.0
    --> compatible:    10.2.0.3.0
    --> blocksize:     8192
    --> platform:      Solaris Operating System (x86-64)
    --> timezone file: V4
    Tablespaces: [make adjustments in the current environment]
    --> SYSTEM tablespace is adequate for the upgrade.
    .... minimum required size: 1071 MB
    --> UNDOTBS1 tablespace is adequate for the upgrade.
    .... minimum required size: 400 MB
    --> SYSAUX tablespace is adequate for the upgrade.
    .... minimum required size: 804 MB
    --> TEMP tablespace is adequate for the upgrade.
    .... minimum required size: 60 MB
    Flashback: OFF
    Update Parameters: [Update Oracle Database 11.2 init.ora or spfile]
    Note: Pre-upgrade tool was run on a lower version 64-bit database.
    --> If Target Oracle is 32-Bit, refer here for Update Parameters:
    WARNING: --> "sga_target" needs to be increased to at least 484 MB
    --> If Target Oracle is 64-Bit, refer here for Update Parameters:
    WARNING: --> "sga_target" needs to be increased to at least 668 MB
    Renamed Parameters: [Update Oracle Database 11.2 init.ora or spfile]
    -- No renamed parameters found. No changes are required.
    Obsolete/Deprecated Parameters: [Update Oracle Database 11.2 init.ora or spfile]
    --> cursor_space_for_time        11.1       DEPRECATED
    --> background_dump_dest         11.1       DEPRECATED   replaced by  "diagnostic_dest"
    --> user_dump_dest               11.1       DEPRECATED   replaced by  "diagnostic_dest"
    --> cursor_space_for_time        11.2       DEPRECATED
    Components: [The following database components will be upgraded or installed]
    --> Oracle Catalog Views         [upgrade]  VALID
    --> Oracle Packages and Types    [upgrade]  VALID
    --> JServer JAVA Virtual Machine [upgrade]  VALID
    --> Oracle XDK for Java          [upgrade]  VALID
    --> Oracle Workspace Manager     [upgrade]  VALID
    --> EM Repository                [upgrade]  VALID
    --> Oracle Text                  [upgrade]  VALID
    --> Oracle XML Database          [upgrade]  VALID
    --> Oracle Java Packages         [upgrade]  VALID
    --> Oracle interMedia            [upgrade]  VALID
    --> Spatial                      [upgrade]  VALID
    --> Data Mining                  [upgrade]  VALID
    --> Expression Filter            [upgrade]  VALID
    --> Rule Manager                 [upgrade]  VALID
    Miscellaneous Warnings
    WARNING: --> Database is using a timezone file older than version 14.
    .... After the release migration, it is recommended that DBMS_DST package
    .... be used to upgrade the 10.2.0.4.0 database timezone version
    .... to the latest version which comes with the new release.
    WARNING: --> Database contains INVALID objects prior to upgrade.
    .... The list of invalid SYS/SYSTEM objects was written to
    .... registry$sys_inv_objs.
    .... The list of non-SYS/SYSTEM objects was written to
    .... registry$nonsys_inv_objs.
    .... Use utluiobj.sql after the upgrade to identify any new invalid
    .... objects due to the upgrade.
    .... USER PUBLIC has 1 INVALID objects.
    WARNING: --> EM Database Control Repository exists in the database.
    .... Direct downgrade of EM Database Control is not supported. Refer to the
    .... Upgrade Guide for instructions to save the EM data prior to upgrade.
    WARNING: --> Your recycle bin is turned on and currently contains no objects.
    .... Because it is REQUIRED that the recycle bin be empty prior to upgrading
    .... and your recycle bin is turned on, you may need to execute the command:
            PURGE DBA_RECYCLEBIN
    .... prior to executing your upgrade to confirm the recycle bin is empty.
    WARNING: --> JOB_QUEUE_PROCESS value must be updated
    .... Your current setting of "10" is too low.
    .... Starting with Oracle Database 11g Release 2 (11.2), setting
    .... JOB_QUEUE_PROCESSES to 0 causes both DBMS_SCHEDULER and
    .... DBMS_JOB jobs to not run. Previously, setting JOB_QUEUE_PROCESSES
    .... to 0 caused DBMS_JOB jobs to not run, but DBMS_SCHEDULER jobs were
    .... unaffected and would still run. This parameter must be updated to
    .... a value greater than 48  (default value is 1000) prior to upgrade.
    .... Not doing so will affect the running of utlrp.sql after the upgrade
    Recommendations
    Oracle recommends gathering dictionary statistics prior to
    upgrading the database.
    To gather dictionary statistics execute the following command
    while connected as SYSDBA:
        EXECUTE dbms_stats.gather_dictionary_stats;
    Oracle recommends reviewing any defined events prior to upgrading.
    To view existing non-default events execute the following commands
    while connected AS SYSDBA:
      Events:
        SELECT (translate(value,chr(13)||chr(10),' ')) FROM sys.v$parameter2
          WHERE  UPPER(name) ='EVENT' AND  isdefault='FALSE'
      Trace Events:
        SELECT (translate(value,chr(13)||chr(10),' ')) from sys.v$parameter2
          WHERE UPPER(name) = '_TRACE_EVENTS' AND isdefault='FALSE'
    Changes will need to be made in the init.ora or spfile.
    SQL> SPOOL OFF
    here are the last 100 lines of upgrade.log
    ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN",
    line 276
    ORA-06512: at line 1
    .   JAVA CLASS "ORDSYS"."/...","KGLH0^1182baa5","kglHeapInitialize:temp")
    ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN_PRV", line 6945
    ORA-06512: at
    "ORDSYS.ORD_DICOM_ADMIN", line 276
    ORA-06512: at line 1
    .   ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN_PRV", line 6945 ORA-06512: at
    "ORDSYS.ORD_DICOM_ADMIN", line 276
    ORA-06512: at line 1
    .   ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN", line 276 ORA-06512: at line 1
    .   ORA-06512: at line 1
    .   ORA-53051: no editDataModel session found ORA-06512: at
    "ORDSYS.ORD_DICOM_ADMIN_PRV", line 6306
    ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN",
    line 125
    ORA-06512: at line 14805
    .   ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN_PRV", line 6306 ORA-06512: at
    "ORDSYS.ORD_DICOM_ADMIN", line 125
    ORA-06512: at line 14805
    .   ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN", line 125 ORA-06512: at line 14805
    .   ORA-06512: at line 14805
    .   ORA-53051: no editDataModel session found ORA-06512: at
    "ORDSYS.ORD_DICOM_ADMIN_PRV", line 6306
    ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN",
    line 125
    ORA-06512: at line 67
    .   ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN_PRV", line 6306 ORA-06512: at
    "ORDSYS.ORD_DICOM_ADMIN", line 125
    ORA-06512: at line 67
    .   ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN", line 125 ORA-06512: at line 67
    .                                       INVALID      11.2.0.4.0  00:55:05
    Spatial
    .                                    OPTION OFF      10.2.0.4.0  00:00:00
    Oracle Expression Filter
    .                                         VALID      11.2.0.4.0  00:00:16
    Oracle Rules Manager
    .                                         VALID      11.2.0.4.0  00:00:14
    Final Actions
    .                                                                00:01:34
    Total Upgrade Time: 01:43:11
    PL/SQL procedure successfully completed.
    SQL>
    SQL> SET SERVEROUTPUT OFF
    SQL> SET VERIFY ON
    SQL> commit;
    Commit complete.
    SQL>
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL>
    SQL>
    SQL>
    SQL> DOC
    DOC>#######################################################################
    DOC>#######################################################################
    DOC>
    DOC>   The above sql script is the final step of the upgrade. Please
    DOC>   review any errors in the spool log file. If there are any errors in
    DOC>   the spool file, consult the Oracle Database Upgrade Guide for
    DOC>   troubleshooting recommendations.
    DOC>
    DOC>   Next restart for normal operation, and then run utlrp.sql to
    DOC>   recompile any invalid application objects.
    DOC>
    DOC>   If the source database had an older time zone version prior to
    DOC>   upgrade, then please run the DBMS_DST package.  DBMS_DST will upgrade
    DOC>   TIMESTAMP WITH TIME ZONE data to use the latest time zone file shipped
    DOC>   with Oracle.
    DOC>
    DOC>#######################################################################
    DOC>#######################################################################
    DOC>#
    SQL>
    SQL> Rem Set errorlogging off
    SQL> SET ERRORLOGGING OFF;
    SQL>
    SQL> REM END OF CATUPGRD.SQL
    SQL>
    SQL> REM bug 12337546 - Exit current sqlplus session at end of catupgrd.sql.
    SQL> REM                This forces user to start a new sqlplus session in order
    SQL> REM                to connect to the upgraded db.
    SQL> exit

  • Is it possible to call a oracle packaged storedprocedure through

    Is it possible to call a oracle packaged storedprocedure through
    Deski?
    Also
    Receiving error when creating desktop intelligence report while using a
    stored procedure that retrieves data from globaltemporary table. Error
    message is " Object no longer exists". This same procedure can be
    successfully executed from eitherOracle SQL Plus or Crystal Reports.
    Any ideas , please help?

    It is possible to report off Stored Procedures in BusinessObjects Desktop Intelligence XIR2.  What you need to do is to configure your Stored Procedure as a data source. If you use parameter please make sure  that the default database is set to the database that contains the stored procedure.
    e.g. Click the correct DSN for the stored procedure. Click Configure.Click Next until the Change the default database to option appears.Change the default database to the database that contains the stored procedure.
    I hope this helps,
    Regards,
    Tim

  • JRC - Oracle 10 Concurrent reporting Error

    <p>Hello,</p><p> We have a J2EE ERP application and we are evaluating Crystal Reports XI Release 2 as the reporting tool for this ERP. We have created several reports in Crystal Reports XI Release 2, with "New Connection - Oracle Server" option. We have integrated those reports in the application with JRC and created a JNDI context in Tomcat 5.0.27 with the same name as the Oracle SID. The reports worked perfectly both in CR and in the ERP application, if executed one at a time. The problem appears when we put the ERP application in a real-like environment, with three users accessing it.</p><p>   I will try to describe the problem the best way I can. If you need some more details, please feel free to contact me.</p><p> When two users tried to access the same report or different ones at the same time (I mean, without waiting for some answer from the first and already requesting the second one), the first report throws an error like: "JDBC Error: Closed Resultset: next" and the second one shows the right data.</p><p> It is as if the JRC could not treat more than one report request at the same time... Does anyone have any idea about what is causing this error? Is there a maximum number of connections permited by JRC at the same time? Does it not treat requests in line or have a connection pool? Is there some kind of connection parameter that deals with number of connections allowed? </p><p> I am really lost and have not found any answers to this problem yet. I have followed the two connections (for the first and the second report request) and the first is killed when the second is requested, without any reason.</p><p>   Hope to hear from you ASAP.</p><p>   Thank you!</p><p>Mario<br />   </p>

    I would recommend you try a different forum, like this one: BPEL
    This forum is more for WebCenter Interaction/ALUI products.

  • Starting Oracle 11gr2 Im getting Error: ORA-03135: connection lost contact

    Hi Guys!
    Thanks for your advises. I still working toward a resolution.
    But I encountered another issue from Enterp Manager :
    ERROR : Please correct the following error: Connection string must be specified.
    My connection has this format:
    //using connection string attributes to connect to Oracle Database
      con.ConnectionString = "User Id=scott;Password=tiger;Data Source=oracle";
      con.Open();
      Console.WriteLine("Connected to Oracle" + con.ServerVersion);
    Please tell me what is wrong here. Thanks. Dan.
    Hi all !
    I need help please for resolving the following :
    Problem:
    Im having frequent disconnection after abnormal shutdown due to power failure.
    starting Oracle 11gr2 Im getting Error: ORA-03135: connection lost contact
    Im on Laptop running Linux Centos 6.3 Host.
    and Im running Oracle 11gr2 on Oracle Enterprise Linux in VMware (Guest).
    When attempting login from the Oracle Enterprise Manager Database Control
    I got  Error: "Your username and/or password are invalid."
    The alert.log is at the bottom
    [test@localhost ~]$ xhost +
    access control disabled, clients can connect from any host
    [test@localhost ~]$
    [test@localhost ~]$ su - root
    Password:
    [root@localhost ~]#
    [root@localhost ~]# su - oracle
    [oracle@localhost ~]$
    [oracle@localhost ~]$ export ORACLE_SID=db11gr2
    [oracle@localhost ~]$
    [oracle@localhost ~]$ echo $ORACLE_HOME
    /u01/app/oracle/product/11.2.0/db_1
    [oracle@localhost ~]$
    [oracle@localhost ~]$ echo $ORACLE_BASE
    /u01/app/oracle
    [oracle@localhost ~]$
    [oracle@localhost ~]$ echo $ORACLE_SID
    db11gr2
    [oracle@localhost ~]$
    [oracle@localhost ~]$ lsnrctl start
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 04-DEC-2013 12:23:07
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Starting /u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
    Log messages written to /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                04-DEC-2013 12:23:08
    Uptime                    0 days 0 hr. 0 min. 0 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
    Services Summary...
    Service "db11gr2" has 1 instance(s).
      Instance "db11gr2", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@localhost ~]$
    [oracle@localhost ~]$ emctl start dbconsole
    Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
    Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
    https://localhost.localdomain:1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 11g Database Control ............... started.
    Logs are generated in directory /u01/app/oracle/product/11.2.0/db_1/localhost.localdomain_db11gr2/sysman/log
    [oracle@localhost ~]$
    [oracle@localhost ~]$ sqlplus "/as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 12:26:38 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> shutdown abort;
    ORACLE instance shut down.
    SQL>
    SQL> startup;
    ORACLE instance started.
    Total System Global Area  799313920 bytes
    Fixed Size                  1339484 bytes
    Variable Size             318771108 bytes
    Database Buffers          473956352 bytes
    Redo Buffers                5246976 bytes
    Database mounted.
    ORA-00600: internal error code, arguments: [4194], [: no
    SQL> startup;
    ORA-24324: service handle not initialized
    ORA-01041: internal error. hostdef extension doesn't exist
    SQL>
    SQL>
    SQL> quit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@localhost ~]$
    [oracle@localhost ~]$ sqlplus "/as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 12:59:23 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> startup;
    ORACLE instance started.
    Total System Global Area  799313920 bytes
    Fixed Size                  1339484 bytes
    Variable Size             318771108 bytes
    Database Buffers          473956352 bytes
    Redo Buffers                5246976 bytes
    Database mounted.
    Database opened.
    SQL>
    SQL>
    ERROR at line 1:
    ORA-03135: connection lost contact
    Process ID: 8973
    Session ID: 1 Serial number: 5
    SQL> startup;
    ORA-24324: service handle not initialized
    ORA-01041: internal error. hostdef extension doesn't exist
    SQL>
    SQL> quit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@localhost ~]$
    [oracle@localhost ~]$ sqlplus "/as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 13:12:03 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> startup;
    ORACLE instance started.
    Total System Global Area  799313920 bytes
    Fixed Size                  1339484 bytes
    Variable Size             318771108 bytes
    Database Buffers          473956352 bytes
    Redo Buffers                5246976 bytes
    Database mounted.
    Database opened.
    SQL>
    SQL> select STATUS, DATABASE_STATUS from v$instance;
    STATUS       DATABASE_STATUS
    OPEN         ACTIVE
    SQL>
    SQL> SELECT * FROM v$instance;
    ERROR:
    ORA-03114: not connected to ORACLE
    [oracle@localhost ~]$
    [oracle@localhost ~]$ sqlplus "/as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 13:17:37 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> startup;
    ORACLE instance started.
    Total System Global Area  799313920 bytes
    Fixed Size                  1339484 bytes
    Variable Size             318771108 bytes
    Database Buffers          473956352 bytes
    Redo Buffers                5246976 bytes
    Database mounted.
    Database opened.
    SQL>
    SQL> SELECT * FROM v$instance;
    INSTANCE_NUMBER INSTANCE_NAME
    HOST_NAME
    VERSION           STARTUP_T STATUS       PAR    THREAD# ARCHIVE LOG_SWITCH_WAIT
    LOGINS     SHU DATABASE_STATUS   INSTANCE_ROLE      ACTIVE_ST BLO
                  1 db11gr2
    localhost.localdomain
    11.2.0.1.0        04-DEC-13 OPEN         NO           1 STOPPED
    ALLOWED    NO  ACTIVE            PRIMARY_INSTANCE   NORMAL    NO
    SQL>
    alert log file
    [oracle@localhost ~]$
    [oracle@localhost ~]$ adrci
    ADRCI: Release 11.2.0.1.0 - Production on Wed Dec 4 17:09:47 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    ADR base = "/u01/app/oracle"
    adrci> set editor emacs
    adrci> show alert
    Choose the alert log from the following homes to view:
    1: diag/rdbms/unknown/DB11G
    2: diag/rdbms/db11gr2/db11gr2
    3: diag/tnslsnr/localhost/listener
    Q: to quit
    Please select option: 2
    *** glibc detected *** adrci: malloc(): memory corruption: 0x09de7160 ***
    ======= Backtrace: =========
    /lib/libc.so.6[0x1d42dd]
    /lib/libc.so.6(__libc_malloc+0x67)[0x1d5e97]
    /lib/ld-linux.so.2[0x331f8a]
    /lib/ld-linux.so.2[0x33215a]
    /lib/ld-linux.so.2[0x32e3ce]
    /lib/libc.so.6[0x272550]
    /lib/libc.so.6(_dl_sym+0x1a)[0x2728fa]
    /lib/libdl.so.2[0x110e08]
    /lib/ld-linux.so.2[0x331e66]
    /lib/libdl.so.2[0x1112cc]
    /lib/libdl.so.2(dlsym+0x63)[0x110d93]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(sskgds_save_text_start_end+0x47)[0xa0fb37]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(skgdsinit+0xb7)[0xa0a909]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x15edea8]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(kgdsdsts+0x26)[0x15ef8c2]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgemdGetCallStackWFlag+0x102)[0x198961a]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgemdGetCallStack+0x2d)[0x198950d]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1989250]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgemdFillIncCtx+0x72)[0x1989088]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgexPopulateIncCtx+0x67)[0x1994d25]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgexProcessError+0x75)[0x1996437]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x19601c5]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgePostErrorDirect+0x650)[0x1960b3c]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c58fb6]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x183c44e]
    [0x3bb440]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1cf7966]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrlrReadAlertMsg+0x562)[0x1cf7126]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrxae_alert_ext+0x2d4)[0xbbcf44]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0xb9f25c]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrmqmf_fetch_real+0x23f)[0xb9bc1f]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrmqmf_fetch+0xee)[0xb9b520]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0xb53c3e]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrip_relation_iterator+0x16c)[0xb531bc]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgripricm_rltniter_wcbf_mt+0x1f7)[0xb52709]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgripritc_rltniter_wcbf+0xe6)[0xb585f2]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvm_query+0x3f2)[0x1abe62c]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvm_query_wcmd+0x36f)[0x1abf053]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c3e116]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c3f5b7]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c4e2ae]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvciec_exec_cmd+0x4a2)[0x1c4d640]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvci_main_int+0x43b)[0x1c59e61]
    adrci[0x8048c5b]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(lpmcall+0x363)[0x1496ec3]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(lpmpmai+0x15c)[0x1497904]
    adrci[0x8048aa5]
    /lib/libc.so.6(__libc_start_main+0xdc)[0x17fe9c]
    adrci[0x8048811]
    ======= Memory map: ========
    00110000-00112000 r-xp 00000000 08:03 5925240    /lib/libdl-2.5.so
    00112000-00113000 r-xp 00001000 08:03 5925240    /lib/libdl-2.5.so
    00113000-00114000 rwxp 00002000 08:03 5925240    /lib/libdl-2.5.so
    00114000-00139000 r-xp 00000000 08:03 5925284    /lib/libm-2.5.so
    00139000-0013a000 r-xp 00024000 08:03 5925284    /lib/libm-2.5.so
    0013a000-0013b000 rwxp 00025000 08:03 5925284    /lib/libm-2.5.so
    0013b000-0014f000 r-xp 00000000 08:03 5925246    /lib/libpthread-2.5.so
    0014f000-00150000 r-xp 00013000 08:03 5925246    /lib/libpthread-2.5.so
    00150000-00151000 rwxp 00014000 08:03 5925246    /lib/libpthread-2.5.so
    00151000-00153000 rwxp 00151000 00:00 0
    00153000-00166000 r-xp 00000000 08:03 5925301    /lib/libnsl-2.5.so
    00166000-00167000 r-xp 00012000 08:03 5925301    /lib/libnsl-2.5.so
    00167000-00168000 rwxp 00013000 08:03 5925301    /lib/libnsl-2.5.so
    00168000-0016a000 rwxp 00168000 00:00 0
    0016a000-002a9000 r-xp 00000000 08:03 5925233    /lib/libc-2.5.so
    002a9000-002aa000 --xp 0013f000 08:03 5925233    /lib/libc-2.5.so
    002aa000-002ac000 r-xp 0013f000 08:03 5925233    /lib/libc-2.5.so
    002ac000-002ad000 rwxp 00141000 08:03 5925233    /lib/libc-2.5.so
    002ad000-002b0000 rwxp 002ad000 00:00 0
    002b0000-002b1000 r-xp 00000000 08:03 3905250    /usr/lib/libaio.so.1.0.1
    002b1000-002b2000 rwxp 00000000 08:03 3905250    /usr/lib/libaio.so.1.0.1
    002b2000-002bb000 r-xp 00000000 08:03 5925256    /lib/libnss_files-2.5.so
    002bb000-002bc000 r-xp 00008000 08:03 5925256    /lib/libnss_files-2.5.so
    002bc000-002bd000 rwxp 00009000 08:03 5925256    /lib/libnss_files-2.5.so
    002bd000-002c8000 r-xp 00000000 08:03 5925425    /lib/libgcc_s-4.1.2-20080825.so.1
    002c8000-002c9000 rwxp 0000a000 08:03 5925425    /lib/libgcc_s-4.1.2-20080825.so.1
    00324000-0033e000 r-xp 00000000 08:03 5925219    /lib/ld-2.5.so
    0033e000-0033f000 r-xp 00019000 08:03 5925219    /lib/ld-2.5.so
    0033f000-00340000 rwxp 0001a000 08:03 5925219    /lib/ld-2.5.so
    003bb000-003bc000 r-xp 003bb000 00:00 0          [vdso]
    003bc000-01fc3000 r-xp 00000000 08:03 4984633    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1
    01fc3000-020a7000 rwxp 01c07000 08:03 4984633    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1
    020a7000-020c1000 rwxp 020a7000 00:00 0
    025b1000-027ce000 r-xp 00000000 08:03 5006042    /u01/app/oracle/product/11.2.0/db_1/lib/libnnz11.so
    027ce000-027fc000 rwxp 0021d000 08:03 5006042    /u01/app/oracle/product/11.2.0/db_1/lib/libnnz11.so
    027fc000-027fe000 rwxp 027fc000 00:00 0
    08048000-08049000 r-xp 00000000 08:03 1407670    /u01/app/oracle/product/11.2.0/db_1/bin/adrci
    08049000-0804a000 rw-p 00000000 08:03 1407670    /u01/app/oracle/product/11.2.0/db_1/bin/adrci
    09d62000-09e0d000 rw-p 09d62000 00:00 0          [heap]
    b7e00000-b7e21000 rw-p b7e00000 00:00 0
    b7e21000-b7f00000 ---p b7e21000 00:00 0
    b7f68000-b7f90000 rw-p b7f68000 00:00 0
    bfc54000-bfc6d000 rwxp bffe5000 00:00 0          [stack]
    bfc6d000-bfc6e000 rw-p bfffe000 00:00 0
    starting Oracle 11gr2 Im getting Error: ORA-03135: connection lost contact
    Im on Laptop running Linux Centos 6.3 Host.
    and Im running Oracle 11gr2 on Oracle Enterprise Linux in VMware (Guest).
    Im having frequent disconnection after abnormal shutdown due to power failure.
    When attempting login from the Oracle Enterprise Manager Database Control
    I got  Error: "Your username and/or password are invalid."
    [test@localhost ~]$ xhost +
    access control disabled, clients can connect from any host
    [test@localhost ~]$
    [test@localhost ~]$ su - root
    Password:
    [root@localhost ~]#
    [root@localhost ~]# su - oracle
    [oracle@localhost ~]$
    [oracle@localhost ~]$ export ORACLE_SID=db11gr2
    [oracle@localhost ~]$
    [oracle@localhost ~]$ echo $ORACLE_HOME
    /u01/app/oracle/product/11.2.0/db_1
    [oracle@localhost ~]$
    [oracle@localhost ~]$ echo $ORACLE_BASE
    /u01/app/oracle
    [oracle@localhost ~]$
    [oracle@localhost ~]$ echo $ORACLE_SID
    db11gr2
    [oracle@localhost ~]$
    [oracle@localhost ~]$ lsnrctl start
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 04-DEC-2013 12:23:07
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Starting /u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
    Log messages written to /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                04-DEC-2013 12:23:08
    Uptime                    0 days 0 hr. 0 min. 0 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
    Services Summary...
    Service "db11gr2" has 1 instance(s).
      Instance "db11gr2", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@localhost ~]$
    [oracle@localhost ~]$ emctl start dbconsole
    Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
    Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
    https://localhost.localdomain:1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 11g Database Control ............... started.
    Logs are generated in directory /u01/app/oracle/product/11.2.0/db_1/localhost.localdomain_db11gr2/sysman/log
    [oracle@localhost ~]$
    [oracle@localhost ~]$ sqlplus "/as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 12:26:38 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> shutdown abort;
    ORACLE instance shut down.
    SQL>
    SQL> startup;
    ORACLE instance started.
    Total System Global Area  799313920 bytes
    Fixed Size                  1339484 bytes
    Variable Size             318771108 bytes
    Database Buffers          473956352 bytes
    Redo Buffers                5246976 bytes
    Database mounted.
    ORA-00600: internal error code, arguments: [4194], [: no
    SQL> startup;
    ORA-24324: service handle not initialized
    ORA-01041: internal error. hostdef extension doesn't exist
    SQL>
    SQL>
    SQL> quit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@localhost ~]$
    [oracle@localhost ~]$ sqlplus "/as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 12:59:23 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> startup;
    ORACLE instance started.
    Total System Global Area  799313920 bytes
    Fixed Size                  1339484 bytes
    Variable Size             318771108 bytes
    Database Buffers          473956352 bytes
    Redo Buffers                5246976 bytes
    Database mounted.
    Database opened.
    SQL>
    SQL>
    ERROR at line 1:
    ORA-03135: connection lost contact
    Process ID: 8973
    Session ID: 1 Serial number: 5
    SQL> startup;
    ORA-24324: service handle not initialized
    ORA-01041: internal error. hostdef extension doesn't exist
    SQL>
    SQL> quit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@localhost ~]$
    [oracle@localhost ~]$ sqlplus "/as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 13:12:03 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> startup;
    ORACLE instance started.
    Total System Global Area  799313920 bytes
    Fixed Size                  1339484 bytes
    Variable Size             318771108 bytes
    Database Buffers          473956352 bytes
    Redo Buffers                5246976 bytes
    Database mounted.
    Database opened.
    SQL>
    SQL> select STATUS, DATABASE_STATUS from v$instance;
    STATUS       DATABASE_STATUS
    OPEN         ACTIVE
    SQL>
    SQL> SELECT * FROM v$instance;
    ERROR:
    ORA-03114: not connected to ORACLE
    [oracle@localhost ~]$
    [oracle@localhost ~]$ sqlplus "/as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 4 13:17:37 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> startup;
    ORACLE instance started.
    Total System Global Area  799313920 bytes
    Fixed Size                  1339484 bytes
    Variable Size             318771108 bytes
    Database Buffers          473956352 bytes
    Redo Buffers                5246976 bytes
    Database mounted.
    Database opened.
    SQL>
    SQL> SELECT * FROM v$instance;
    INSTANCE_NUMBER INSTANCE_NAME
    HOST_NAME
    VERSION           STARTUP_T STATUS       PAR    THREAD# ARCHIVE LOG_SWITCH_WAIT
    LOGINS     SHU DATABASE_STATUS   INSTANCE_ROLE      ACTIVE_ST BLO
                  1 db11gr2
    localhost.localdomain
    11.2.0.1.0        04-DEC-13 OPEN         NO           1 STOPPED
    ALLOWED    NO  ACTIVE            PRIMARY_INSTANCE   NORMAL    NO
    SQL>
    alert log file
    [oracle@localhost ~]$
    [oracle@localhost ~]$ adrci
    ADRCI: Release 11.2.0.1.0 - Production on Wed Dec 4 17:09:47 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    ADR base = "/u01/app/oracle"
    adrci> set editor emacs
    adrci> show alert
    Choose the alert log from the following homes to view:
    1: diag/rdbms/unknown/DB11G
    2: diag/rdbms/db11gr2/db11gr2
    3: diag/tnslsnr/localhost/listener
    Q: to quit
    Please select option: 2
    *** glibc detected *** adrci: malloc(): memory corruption: 0x09de7160 ***
    ======= Backtrace: =========
    /lib/libc.so.6[0x1d42dd]
    /lib/libc.so.6(__libc_malloc+0x67)[0x1d5e97]
    /lib/ld-linux.so.2[0x331f8a]
    /lib/ld-linux.so.2[0x33215a]
    /lib/ld-linux.so.2[0x32e3ce]
    /lib/libc.so.6[0x272550]
    /lib/libc.so.6(_dl_sym+0x1a)[0x2728fa]
    /lib/libdl.so.2[0x110e08]
    /lib/ld-linux.so.2[0x331e66]
    /lib/libdl.so.2[0x1112cc]
    /lib/libdl.so.2(dlsym+0x63)[0x110d93]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(sskgds_save_text_start_end+0x47)[0xa0fb37]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(skgdsinit+0xb7)[0xa0a909]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x15edea8]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(kgdsdsts+0x26)[0x15ef8c2]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgemdGetCallStackWFlag+0x102)[0x198961a]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgemdGetCallStack+0x2d)[0x198950d]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1989250]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgemdFillIncCtx+0x72)[0x1989088]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgexPopulateIncCtx+0x67)[0x1994d25]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgexProcessError+0x75)[0x1996437]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x19601c5]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgePostErrorDirect+0x650)[0x1960b3c]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c58fb6]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x183c44e]
    [0x3bb440]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1cf7966]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrlrReadAlertMsg+0x562)[0x1cf7126]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrxae_alert_ext+0x2d4)[0xbbcf44]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0xb9f25c]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrmqmf_fetch_real+0x23f)[0xb9bc1f]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrmqmf_fetch+0xee)[0xb9b520]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0xb53c3e]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgrip_relation_iterator+0x16c)[0xb531bc]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgripricm_rltniter_wcbf_mt+0x1f7)[0xb52709]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgripritc_rltniter_wcbf+0xe6)[0xb585f2]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvm_query+0x3f2)[0x1abe62c]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvm_query_wcmd+0x36f)[0x1abf053]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c3e116]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c3f5b7]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1[0x1c4e2ae]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvciec_exec_cmd+0x4a2)[0x1c4d640]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(dbgvci_main_int+0x43b)[0x1c59e61]
    adrci[0x8048c5b]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(lpmcall+0x363)[0x1496ec3]
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1(lpmpmai+0x15c)[0x1497904]
    adrci[0x8048aa5]
    /lib/libc.so.6(__libc_start_main+0xdc)[0x17fe9c]
    adrci[0x8048811]
    ======= Memory map: ========
    00110000-00112000 r-xp 00000000 08:03 5925240    /lib/libdl-2.5.so
    00112000-00113000 r-xp 00001000 08:03 5925240    /lib/libdl-2.5.so
    00113000-00114000 rwxp 00002000 08:03 5925240    /lib/libdl-2.5.so
    00114000-00139000 r-xp 00000000 08:03 5925284    /lib/libm-2.5.so
    00139000-0013a000 r-xp 00024000 08:03 5925284    /lib/libm-2.5.so
    0013a000-0013b000 rwxp 00025000 08:03 5925284    /lib/libm-2.5.so
    0013b000-0014f000 r-xp 00000000 08:03 5925246    /lib/libpthread-2.5.so
    0014f000-00150000 r-xp 00013000 08:03 5925246    /lib/libpthread-2.5.so
    00150000-00151000 rwxp 00014000 08:03 5925246    /lib/libpthread-2.5.so
    00151000-00153000 rwxp 00151000 00:00 0
    00153000-00166000 r-xp 00000000 08:03 5925301    /lib/libnsl-2.5.so
    00166000-00167000 r-xp 00012000 08:03 5925301    /lib/libnsl-2.5.so
    00167000-00168000 rwxp 00013000 08:03 5925301    /lib/libnsl-2.5.so
    00168000-0016a000 rwxp 00168000 00:00 0
    0016a000-002a9000 r-xp 00000000 08:03 5925233    /lib/libc-2.5.so
    002a9000-002aa000 --xp 0013f000 08:03 5925233    /lib/libc-2.5.so
    002aa000-002ac000 r-xp 0013f000 08:03 5925233    /lib/libc-2.5.so
    002ac000-002ad000 rwxp 00141000 08:03 5925233    /lib/libc-2.5.so
    002ad000-002b0000 rwxp 002ad000 00:00 0
    002b0000-002b1000 r-xp 00000000 08:03 3905250    /usr/lib/libaio.so.1.0.1
    002b1000-002b2000 rwxp 00000000 08:03 3905250    /usr/lib/libaio.so.1.0.1
    002b2000-002bb000 r-xp 00000000 08:03 5925256    /lib/libnss_files-2.5.so
    002bb000-002bc000 r-xp 00008000 08:03 5925256    /lib/libnss_files-2.5.so
    002bc000-002bd000 rwxp 00009000 08:03 5925256    /lib/libnss_files-2.5.so
    002bd000-002c8000 r-xp 00000000 08:03 5925425    /lib/libgcc_s-4.1.2-20080825.so.1
    002c8000-002c9000 rwxp 0000a000 08:03 5925425    /lib/libgcc_s-4.1.2-20080825.so.1
    00324000-0033e000 r-xp 00000000 08:03 5925219    /lib/ld-2.5.so
    0033e000-0033f000 r-xp 00019000 08:03 5925219    /lib/ld-2.5.so
    0033f000-00340000 rwxp 0001a000 08:03 5925219    /lib/ld-2.5.so
    003bb000-003bc000 r-xp 003bb000 00:00 0          [vdso]
    003bc000-01fc3000 r-xp 00000000 08:03 4984633    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1
    01fc3000-020a7000 rwxp 01c07000 08:03 4984633    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1
    020a7000-020c1000 rwxp 020a7000 00:00 0
    025b1000-027ce000 r-xp 00000000 08:03 5006042    /u01/app/oracle/product/11.2.0/db_1/lib/libnnz11.so
    027ce000-027fc000 rwxp 0021d000 08:03 5006042    /u01/app/oracle/product/11.2.0/db_1/lib/libnnz11.so
    027fc000-027fe000 rwxp 027fc000 00:00 0
    08048000-08049000 r-xp 00000000 08:03 1407670    /u01/app/oracle/product/11.2.0/db_1/bin/adrci
    08049000-0804a000 rw-p 00000000 08:03 1407670    /u01/app/oracle/product/11.2.0/db_1/bin/adrci
    09d62000-09e0d000 rw-p 09d62000 00:00 0          [heap]
    b7e00000-b7e21000 rw-p b7e00000 00:00 0
    b7e21000-b7f00000 ---p b7e21000 00:00 0
    b7f68000-b7f90000 rw-p b7f68000 00:00 0
    bfc54000-bfc6d000 rwxp bffe5000 00:00 0          [stack]
    bfc6d000-bfc6e000 rw-p bfffe000 00:00 0

    Hi,
    Please check Oracle support id : Troubleshooting ORA-3135 Connection Lost Contact (Doc ID 787354.1)

  • Endeca : multi invoice pay throwing correct error for internal user but it is failing to throw the same error for external user

    Hi,
    1) Internal User expected exception:
    Exception: Payments,apply credits,disputes and print are not supported when multiple customer/currency transactions are selected
    2) External User is throwing below error instead of throwing above exception.
    Error
      You are trying to access a page that is no longer active.
      The referring page may have come from a previous session. Please select Home
       to proceed.
    found this MACCHECK from fnd logs of external user payment.
    MACCHECK: . Parameter failing validation is :mode. The parameter mode with value MultiPay could not be recognized as part of Server's response on the previous request.  Incoming URL is : /OA_HTML/OA.jsp?page=/oracle/apps/ar/irec/endeca/webui/EndecaDummyPG . Current URL is : /OA_HTML/OA.jsp?page=/oracle/apps/ar/irec/endeca/webui/OIREndecaCustHomePG&akRegionApplicationId=222&_ti=1125493452&oapc=10&retainAM=Y&addBreadCrumb=N&oas=6-LL4ndIUFLX-2zjQAQD6A.. . Referer URL is : https://<hostname>:4443/endeca/web/ar/customer?doAsUserLanguageId=en_US&languageId=en_US . HTTP Request Method is : POST
    can someone please help.
    Thanks,
    RRS

    Well, I compared my classpath between my windows batch file and the
    makefile (that comes with the samples installation) on Solaris and realized
    that I am using different sets of jars.
    So, I removed the extra jars from the makefile to narrow down the
    problem. If I remove the /opt/SUNWam/lib/servlet.jar from the makefile,
    I can reproduce this problem on the Solaris box as well.
    When I include this servlet.jar on my windows machine the program works!
    Only jars I have in my classpath are amclientsdk.jar and servlet.jar which
    I have copied from my installation (/opt/SUNWam/lib) on the Solaris box.
    Just the same way, by copying the am_services.jar, saaj-api.jar, and jaxm-api.jar,
    from the Solarix box to the windows machine,
    I am also able to pull the assertions from the Access Manager.
    I installed Sun Java Enterprise System 2005Q1 on a Solaris 10 machine.
    During the installation, I configured to install the Access Manager
    in Sun Application Server.
    Why do I need to have different set of jars on the windows machine
    for the Access Manager client SDK ?
    Could you please point me to a download link where I could download
    the correct Windows Access Manager Client SDK for
    Sun Java System Access Manager 6.0 (Sun JES 2005Q1)?
    Thanks.

  • How to enable olap option in oracle enterprise edition 10g?

    what are the settings/steps one should take in enabling OLAP option in oracle enterprise edition 10g?
    If we have an installation of Oracle EE 10g,how can we know that OLAP is enabled or not?
    Can anyone throw light on OLAP_TABLE function?
    In Analytic Workspace manager 10g,i have created a workspace ,under that i am having some dimensions,cubes,as well.
    After mapped to source table,and maintained,when i do a right click on measures, to view data, i get a error ORA-06553:PLS-222:no function with the name 'OLAP_TABLE' exists in this scope

    The Export function is disabled when the responsibility is opened initially .
    When we enter into a specific form its automatically enabled .
    Login to a user who has Application Developer responsibility & to Application >Register & press f11 and Ctrl f11 .

  • Create view throwing an error

    Hello guys, I am trying to create a view from the result set of a sql query. The sql when run independently works fine, but when I try to create a view on it it throws an error saying that the table does not exist. below is the create view I am using.
    create view ops$oracle.pci_view as SELECT
         (select name from v$database@dwdev) database_name,
          (select host_name from v$instance) host_name,
          (select version from v$instance) dbversion,
           o.owner,
           o.object_name table_name,
           o.CREATED table_created,
           o.last_ddl_time table_last_ddl_time,
           t.tablespace_name,
           t.last_analyzed,
           t.partitioned,
           t.num_rows,
           T.COMPRESSION,
           t.compress_for,
           t.read_only,
           tb.status tablespace_status,
           tb.encrypted tablespace_encrypted,
           tb.compress_for tablespace_compress,
           tb.contents,
           TC.COLUMN_NAME,
           tc.data_type,
           TC.DATA_LENGTH,
           tc.data_precision,
           tc.data_scale,
           tc.nullable,
           tc.column_id,
           tc.num_distinct,
           tc.avg_col_len,
           tc.density,
           tc.num_nulls,
           tc.low_value,
           tc.high_value,
           tc.last_analyzed col_last_analyzed,
           ec.encryption_alg,
           ec.salt,
           ec.integrity_alg,
           (SELECT tcm.comments
              FROM dba_tab_comments tcm
             WHERE tcm.owner = T.OWNER AND tcm.table_name = t.table_name)
              table_comments,
           (SELECT ccm.comments column_comments
              FROM dba_col_comments ccm
             WHERE     ccm.owner = TC.OWNER
                   AND ccm.table_name = tc.table_name
                   AND ccm.column_name = tc.column_name)
              column_comments
      FROM dba_objects o,
           dba_tables T,
           dba_tablespaces tb,
              dba_tab_columns tc  
            LEFT JOIN
              dba_encrypted_columns ec      ***********************************************
           ON     ec.owner = TC.OWNER
              AND ec.table_name = tc.table_name
              AND ec.column_name = tc.column_name
    WHERE o.owner NOT IN
              ('APPQOSSYS',
               'DBSNMP',
               'EXFSYS',
               'GGAPP',
               'OPS$ORACLE',
               'ORACLE_OCM',
               'OUTLN',
               'SYS',
               'SYSTEM',
               'WMSYS',
               'XDB')
           AND o.object_type = 'TABLE'
           AND NOT EXISTS
                      (SELECT 1
                         FROM dba_mviews mv
                        WHERE mv.owner = o.owner
                              AND mv.container_name = o.object_name)
           AND t.owner = o.owner
           AND t.table_name = o.object_name
           AND tb.tablespace_name = t.tablespace_name
           AND tc.owner = o.owner
           AND tc.table_name = o.object_name
           AND tc.owner = t.owner
           AND tc.table_name = t.table_name
           AND tc.data_length > 15
           AND tc.data_type NOT LIKE ('TIMESTAMP%')
           AND (tc.data_precision IS NULL OR tc.data_precision > 15);(The line containing the string of astrixes, that is the table that the error says does not exist)
    can someone help me where I am going wrong.
    Thanks

    969224 wrote:
    what if I create the view in SYS for few minutes until i can complete the task i was assigned and after that drop the view I created in SYS schema, would that have any effect on the database?Uh, yeah .. SYS isn't any better an option than SYSTEM.
    Those schemas are "off limits" to us ... ignore them .. pretend they do not exist. (seriously ..)
    Sounds like you need a new schema to store your application objects.

  • Oracle packages - nested table cursor - 11g upgrade testing

    I have a package call Crisis_Contacts. This package has a function(generate_file) in it that has a create cusor statement which calls on another function(split) in another package called NCF_UTL. In testing our code for a 11g upgrade the cursor statement calling on the split function is throwing a Error: ORA-00600: internal error code, arguments: [4814], [5], [0], [0], [], [], [], [], [], [], [], [] when compiling the package, which it was not doing prior to upgrade. Can you suggest a possible workaround or mod to this code to stop the error from occuring.
    Basically, this code is reading html files and spliting them into section and loading them into the cursor. Then the cursor is read to write them to a table. Then it reads the table and transmits the lines of html to another location.
    CREATE OR REPLACE package body ACADMGR.crisis_contacts as
    function generate_file( file_type in varchar2,
    person_pidm in integer := null,
    person_id in varchar2 := null,
    dry_run in varchar2 := 'N',
    pidm_filter in varchar2 := null,
    include_placeholders in varchar2 := 'N',
    comments in varchar2 := null ) return integer is
    cursor typeDef is
    select * from crisis_contact_file_type ccft
    where ccft.file_type = generate_file.file_type;
    file_type_def typeDef%rowtype;
    cursor fieldDef is
    select * from crisis_contact_file_field ccff
    where ccff.file_type = generate_file.file_type
    order by seq asc;
    type r_typ is ref cursor;
    r r_typ;
    datasel varchar2(32767) := '';
    r_pidm integer;
    pers_pidm integer := person_pidm;
    prev_pidm integer;
    r_tag varchar2(255);
    r_val varchar2(4000);
    type field_list is table of varchar2(256);
    type field_index is table of integer index by varchar2(256);
    type val_list is table of varchar2(4000);
    type req_tbl is table of boolean index by varchar2(256);
    req_fields field_list := field_list();
    all_req_seen boolean;
    fields field_list := field_list();
    vals val_list := val_list();
    field_idx field_index;
    out_id integer;
    out_line integer := 0;
    buf varchar2(4000);
    saved_out_line integer := 0;
    xml_section_lf_delims ncf_utl.split_tbl := ncf_utl.split_tbl( ncf_utl.crlf, chr(13), chr(10) );
    cursor splitcur( txt in varchar2 ) is
    select column_value line from table(ncf_utl.split( txt, xml_section_lf_delims ));
    cursor get_output is
    select text from crisis_contact_file_line
    where output_id = out_id
    order by line_no asc;
    log_time date := sysdate;
    log_seq integer := 1;
    procedure outp( txt in varchar2 ) is
    begin
    --dbms_output.put_line( txt );
    insert into crisis_contact_file_line
    ( output_id, line_no, text )
    values
    ( out_id, out_line, txt );
    out_line := out_line + 1;
    end;
    procedure split_outp( txt in varchar2 ) is
    begin
    if txt is not null then
    for r in splitCur( txt ) loop
    outp( r.line );
    end loop;
    end if;
    end;
    begin
    open typeDef;
    fetch typeDef into file_type_def;
    close typeDef;
    if pers_pidm is null and person_id is not null then
    select distinct(spriden_pidm) into pers_pidm from spriden
    where spriden_id = person_id;
    end if;
    insert into crisis_contact_file_out ( file_type, comments ) values ( file_type, comments )
    returning output_id into out_id;
    datasel := gen_outfile_sql( file_type, pers_pidm, pidm_filter, include_placeholders );
    if dry_run = 'Y' then
    ncf_utl.output_text( datasel );
    else
    split_outp( file_type_def.preamble );
    buf := '';
    for f in fieldDef loop
    fields.extend;
    fields(fields.last) := f.alias;
    field_idx(f.output_field) := fields.last;
    vals.extend();
    if f.mandatory = 'Y' then
    req_fields.extend;
    req_fields(req_fields.last) := f.output_field;
    end if;
    if file_type_def.file_mode = 'DELIM' and file_type_def.print_heading = 'Y' then
    buf := buf || case when fieldDef%rowcount > 1 then nvl(file_type_def.delimiter,',') else '' end ||
    nvl(file_type_def.quote,'') || nvl(f.alias,f.output_field) || nvl(file_type_def.quote,'');
    end if;
    end loop;
    if length(buf) > 0 then
    outp(buf);
    end if;
    --outp( '<?xml version="1.0" encoding="UTF-8"?>' );
    --outp( '<recipients>' );
    open r for datasel;
    loop
    fetch r into r_pidm, r_tag, r_val;
    exit when r%notfound;
    if prev_pidm is null or prev_pidm != r_pidm then
    if prev_pidm is not null then
    split_outp( file_type_def.record_end );
    all_req_seen := true;
    --check and reset 'seen' flags for required fields
    for i in 1..req_fields.count loop
    if vals(field_idx(req_fields(i))) is null then
    all_req_seen := false;
    end if;
    end loop;
    --if not all_req_seen then
    -- rollback to USER_START;
    -- out_line := saved_out_line;
    --end if;
    if all_req_seen then
    buf := '';
    for i in 1..fields.count loop
    if file_type_def.file_mode = 'XML' then
    outp( ' <' || fields(i) || '>' || vals(i) || '</' || fields(i) || '>' );
    elsif file_type_def.file_mode = 'DELIM' then
    buf := buf || case when i > 1 then nvl(file_type_def.delimiter,',') else '' end ||
    nvl(file_type_def.quote,'') || vals(i) || nvl(file_type_def.quote,'');
    end if;
    end loop;
    if file_type_def.file_mode = 'DELIM' then
    outp(buf);
    end if;
    end if;
    end if;
    --savepoint USER_START;
    --saved_out_line := out_line;
    if r_tag != 'endofdata' then
    split_outp( file_type_def.record_start );
    end if;
    for i in 1..fields.count loop
    vals(i) := null;
    end loop;
    end if;
    prev_pidm := r_pidm;
    if field_idx.exists(r_tag) then
    if r_val is not null then
    vals(field_idx(r_tag)) := r_val;
    end if;
    end if;
    end loop;
    if pers_pidm is not null then
    split_outp( file_type_def.record_end );
    end if;
    split_outp( file_type_def.postamble );
    --for o in get_output loop
    -- dbms_output.put_line( o.text );
    --end loop;
    end if;
    return out_id;
    end generate_file;
    procedure gen_and_transmit( file_type in varchar2,
    username in varchar2, pass in varchar2,
    pidm_filter in varchar2 := null,
    include_placeholders in varchar2 := 'N',
    comments in varchar2 := null,
    url_base in varchar2 := null, url_path in varchar2 := null,
    ssl_wallet_path in varchar2 := null, ssl_wallet_pass in varchar2 := null ) is
    out_id integer;
    begin
    out_id := generate_file( file_type, pidm_filter => pidm_filter,
    include_placeholders => include_placeholders,
    comments => comments );
    --transmit_file( out_id, username, pass,
    transmit_file( out_id, 'mhaywood', '------------',
    url_base => url_base, url_path => url_path,
    ssl_wallet_path => ssl_wallet_path, ssl_wallet_pass => ssl_wallet_pass );
    end gen_and_transmit;
    begin
    UTL_HTTP.set_persistent_conn_support( true, 10 );
    end;
    create or replace
    PACKAGE BODY NCF_UTL IS
    PROCEDURE OUTPUT_TEXT( BUFFER IN VARCHAR2, LINE_LEN IN INTEGER := 80 ) IS
    TYPE CHRLIST IS TABLE OF VARCHAR2(1);
    cr VARCHAR2(1) := CHR(13);
         lf VARCHAR2(1) := CHR(10);
         tab VARCHAR2(1) := CHR(9);
         whitespace CHRLIST := CHRLIST( ' ', tab );
         pos INTEGER := 1;
         len INTEGER;
         brk INTEGER;
         curbrk INTEGER;
         lnbrk INTEGER;
         whtbrk INTEGER;
         i INTEGER;
    BEGIN
    len := LENGTH(BUFFER);
         WHILE pos <= len
         LOOP
         WHILE SUBSTR( BUFFER, pos, 1 ) IN ( cr, lf )
         LOOP
         pos := pos + 1;
         END LOOP;
         --find the next newline type char, or pos+250 if one isn't found
    lnbrk := LEAST( NVL(NULLIF(INSTR( BUFFER, cr, pos ),0),pos+250),
                             NVL(NULLIF(INSTR( BUFFER, lf, pos ),0),pos+250) );
         --after the loop:
         -- whtbrk should be the last whitespace char before LINE_LEN + pos
         -- (or == pos, if none found)
         -- curbrk should be == 0 or the 1st whitespace after LINE_LEN + pos
         whtbrk := pos;
         curbrk := pos;
         FOR i IN 1..whitespace.COUNT
         LOOP
         LOOP
         curbrk := INSTR( BUFFER, whitespace(i), whtbrk + 1 );
              IF curbrk <= pos + LINE_LEN AND curbrk >= whtbrk THEN
              whtbrk := curbrk;
              END IF;
              EXIT WHEN curbrk > pos + LINE_LEN OR curbrk = 0;
              END LOOP;
              EXIT WHEN curbrk > pos + LINE_LEN;
         END LOOP;
         brk := LEAST( len + 1, lnbrk, NVL( NULLIF( whtbrk, pos ), pos + 250 ),
                        NVL( NULLIF( curbrk, 0 ), pos + 250 ), pos + 250 );
         dbms_output.put_line( SUBSTR( BUFFER, pos, brk - pos ) );
         pos := brk;
         END LOOP;
    END;
    function split( str in varchar2, d0 in varchar2, d1 in varchar2 := null,
    d2 in varchar2 := null, d3 in varchar2 := null,
    d4 in varchar2 := null, d5 in varchar2 := null,
    d6 in varchar2 := null, d7 in varchar2 := null,
    d8 in varchar2 := null, d9 in varchar2 := null )
    return split_tbl pipelined is
    pos integer := 1;
    curidx integer;
    idx integer;
    delims split_tbl;
    idx_delim varchar2(32767);
    len integer := length( str );
    begin
    if d0 is null then
    --split on whitespace
    delims := split_tbl( ' ', chr(9), chr(10), chr(13) );
    else
    delims := split_tbl( d0, d1, d2, d3, d4, d5, d6, d7, d8, d9 );
    end if;
    loop
    idx := -1;
    --we want the lowest value of IDX > 0
    for i in 1..delims.count loop
    curidx := instr( str, delims(i), pos, 1 );
    if curidx > 0 then
    if idx = -1 or curidx < idx then
    idx := curidx;
    idx_delim := delims(i);
    end if;
    end if;
    end loop;
    if idx > 0 then
    --if splitting on whitespace, treat any amount of it as
    --a single delimiter
    if d0 is not null or idx > pos then
    pipe row( substr( str, pos, idx - pos ) );
    end if;
    else
    -- also make sure to ignore trailing whitespace
    if d0 is not null or pos <= len then
    pipe row( substr( str, pos ) );
    end if;
    exit;
    end if;
    pos := idx + length( idx_delim );
    end loop;
    return;
    end split;
    function split( str in varchar2, delimiters in split_tbl := null )
    return split_tbl pipelined is
    i integer;
    cursor spcur( d0 in varchar2 := null, d1 in varchar2 := null,
    d2 in varchar2 := null, d3 in varchar2 := null,
    d4 in varchar2 := null, d5 in varchar2 := null,
    d6 in varchar2 := null, d7 in varchar2 := null,
    d8 in varchar2 := null, d9 in varchar2 := null ) is
    select column_value v from table (split(str,d0,d1,d2,d3,d4,d5,d6,d7,d8,d9));
    function x( i in integer ) return varchar2 is
    begin
    if delimiters.exists(i) then
    return delimiters(i);
    else
    return null;
    end if;
    end;
    begin
    for r in spcur( x(0),x(1),x(2),x(3),x(4),x(5),x(6),x(7),x(8),x(9) ) loop
    pipe row( r.v );
    end loop;
    end split;
    END;
    Thanks

    Curious behavior, but irrelevant, IMHO, since one never switches back and forth between two releases in the real world. All that STARTUP UPGRADE does is that it enables upgrade scripts to be run - it does not prevent statements like CREATE USER from being executed since the upgrade may create new needed accounts
    http://docs.oracle.com/cd/E11882_01/server.112/e16604/ch_twelve045.htm#SQPUG128
    HTH
    Srini

Maybe you are looking for