Dbms_session.reset_package or modify_package_state?

I have recently learned that mod_plsql calls dbms_session.reset_package frequently, however it is possible to configure a call to modify_package_state instead. I would like to know which procedure is used by the APEX Listener, whether the choice is configurable and if so how?
I am concerned about the additional parsing that results from calling reset_package.
Thanks in advance for any light you can shed on this.

APEX Listener uses dbms_session.modify_package_state(dbms_session.reinitialize) only.

Similar Messages

  • DBMS_SESSION.RESET_PACKAGE

    Hi Guru's,
    I was using DBMS_SESSION.RESET_PACKAGE in oracle version 9.2.0.6.0.It was working fine.But when that application is tested in after apply patch 9.2.0.8.0, its showing different face.All the global variables are cleared from the memory only after the procedure that called the reset_package exit or returns, where the same was called at first itself in prevoius versions.Can any one put some light on this?Please help me.

    I have tried the
    exec dbms_session.modify_package_state(dbms_session.free_all_resources)
    as well as
    exec dbms_session.modify_package_state(dbms_session.reinitialize )
    or a combination of both without any success.
    This is what I try to achieve:
    I have a stored procedure in a package called several times within a session. Each time the procedure are called I want the global variables specified in the Package specification to be re-set/ re-valued.
    In previous version I have used the dbms_session.reset_package to reinitialize the global variables in then packages spec which force the session to set new values on the global variables every time the procedure in the package are called.
    To generate the pl-sql code for the package I use OWB 9 which makes it pretty hard to put a pragma into the generated pl-sql.

  • Using dbms_session.reset_package inside procedure

    How to use the line dbms_session.reset_package in a procedure.
    I used execute immediate 'dbms_session.reset_package' , but it is not executing.
    How to execute it
    Plese help me

    What do you think should happen when you execute that package?
    Or have you yet again ignored even bothering to RFTM the Oracle® Database PL/SQL Packages and Types Reference to see just what this call does?
    Quote:
    This procedure de-instantiates all packages in this session. It frees the package state.
    Memory used for caching the execution state is associated with all PL/SQL functions, procedures, and packages that were run in a session.
    For packages, this collection of memory holds the current values of package variables and controls the cache of cursors opened by the respective PL/SQL programs. A call to RESET_PACKAGE frees the memory associated with each of the previously run PL/SQL programs from the session, and, consequently, clears the current values of any package globals and closes any cached cursors.
    If you expect PGA to decrease, it will not. Dynamic memory allocation at o/s kernel does not work in such a simplistic way. Memory malloc'ed by an application (like an Oracle dedicated or shared server process) may only be actually freed by the kernel when the process terminates.
    Billy

  • Duplicate sessions with dbms_session.reset_package

    Hi
    In our production instance so many sessions are running with the following package, can anyone please tell this is for what? and why its running such long time, it is showing as ACTIVE status however the last cpu call is 1 month before.
    dbms_session.reset_package
    Can anyone please guide me why there is many duplications in this sessions.
    Venkat

    dbms_session.reset_package is used to reset package states, you will see this call if you are using a stateless application. What is the query you use to see the statuses of these sessions?

  • Application Developed in Apex 3.2 is not working Apex 4.1

    Hi,
    We have few application developed using oracle apex 3.2 and oracle 10g enterprise edition as the database also have a Apache tomcat server configured in the system. These application are running fine have no issue in production instance.
    I recently installed Oracle Apex 4.1 and Oracle 10g Express Edition in my local machine to test these application in oracle 4.1. I took the same database dump and installed in the local machine no issues with the database side. I installed the application that are developed in 3.2 and installed in new local instance but this is not working.
    It show >>Internet Explorer cannot display the webpage
    Please suggest me what might be the issue how to trouble shoot this issue.
    Thanks
    Sudhir

    I don't understand reading so many tract file starting with
    xe_s00??Most of the trace file show about {Embedded PL/SQL Gateway:} it shows is metioned below
    Embedded PL/SQL Gateway: (wppr.c,495) Pl/sql block parsed...
    Embedded PL/SQL Gateway: (wpdenv.c,1528) CGI Environment has 33 vars. Max name len 128, Max Value Len 512
    Embedded PL/SQL Gateway: PLSQL_GATEWAY(14)=(6)WebDb
    Embedded PL/SQL Gateway: GATEWAY_IVERSION(17)=(2)2
    Embedded PL/SQL Gateway: SERVER_SOFTWARE(16)=(42)Oracle >>Embedded PL/SQL Gateway/10.2.0.1.0
    Embedded PL/SQL Gateway: GATEWAY_INTERFACE(18)=(8)CGI/1.1
    Embedded PL/SQL Gateway: SERVER_PORT(12)=(5)8080
    Embedded PL/SQL Gateway: SERVER_NAME(12)=(16)XDB HTTP Server
    Embedded PL/SQL Gateway: REQUEST_METHOD(15)=(4)GET
    Embedded PL/SQL Gateway: QUERY_STRING(13)=(36)p=4000:1500:3165980474173701::NO:::
    Embedded PL/SQL Gateway: PATH_INFO(10)=(3)/f
    Embedded PL/SQL Gateway: SCRIPT_NAME(12)=(6)/apex
    Embedded PL/SQL Gateway: REMOTE_HOST(12)=(1)
    Embedded PL/SQL Gateway: REMOTE_ADDR(12)=(10)127.0.0.1
    Embedded PL/SQL Gateway: SERVER_PROTOCOL(16)=(9)HTTP/1.1
    Embedded PL/SQL Gateway: REQUEST_PROTOCOL(17)=(4)tcp
    Embedded PL/SQL Gateway: REMOTE_USER(12)=(10)ANONYMOUS
    Embedded PL/SQL Gateway: ORACLE_SSO_USER(16)=(1)
    Embedded PL/SQL Gateway: HTTP_CONTENT_LENGTH(20)=(2)0
    Embedded PL/SQL Gateway: HTTP_CONTENT_TYPE(18)=(1)
    Embedded PL/SQL Gateway: HTTP_USER_AGENT(16)=(71)Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
    Embedded PL/SQL Gateway: HTTP_HOST(10)=(15)127.0.0.1:8080
    Embedded PL/SQL Gateway: HTTP_ACCEPT(12)=(10)text/html
    Embedded PL/SQL Gateway: HTTP_ACCEPT_ENCODING(21)=(5)gzip
    Embedded PL/SQL Gateway: HTTP_ACCEPT_LANGUAGE(21)=(6)en-IN
    Embedded PL/SQL Gateway: HTTP_COOKIE(12)=(344)ORA_WWV_REMEMBER_UN=SUDHIR:DEVELOPMENT; PUBLIC_ORA_WWV_USER_63113903525053=-1; ORA_WWV_USER_63113903525053=2AD259DDAF6770BE05FEF29509B68F5F; LOGIN_USERNAME_COOKIE=sudhir; WWV_CUSTOM-F_1638610445865577_111=CC022FAB479054CF32361C22B789D7EE; ORA_WWV_ATTRIBUTE_PAGE=4495%2C%23ALL; WWV_CUSTOM-F_1638610445865577_107=19291B8FC60BA1A47916DE46EE85F01C
    Embedded PL/SQL Gateway: HTTP_REFERER(13)=(127)http://127.0.0.1:8080/apex/f?p=4000:1:3165980474173701::NO:RP:FB_FLOW_ID,F4000_P1_FLOW,P0_FLOWPAGE,RECENT_PAGES:109,109,109;|,
    Embedded PL/SQL Gateway: WEB_AUTHENT_PREFIX(19)=(1)
    Embedded PL/SQL Gateway: DAD_NAME(9)=(5)apex
    Embedded PL/SQL Gateway: DOC_ACCESS_PATH(16)=(5)docs
    Embedded PL/SQL Gateway: DOCUMENT_TABLE(15)=(23)wwv_flow_file_objects$
    Embedded PL/SQL Gateway: PATH_ALIAS(11)=(1)
    Embedded PL/SQL Gateway: REQUEST_CHARSET(16)=(9)AL32UTF8
    Embedded PL/SQL Gateway: REQUEST_IANA_CHARSET(21)=(6)UTF-8
    Embedded PL/SQL Gateway: SCRIPT_PREFIX(14)=(1)
    *** ACTION NAME:() 2012-06-27 16:52:32.213
    *** MODULE NAME:() 2012-06-27 16:52:32.213
    *** CLIENT ID:() 2012-06-27 16:52:32.212
    Embedded PL/SQL Gateway: (wpd.c,1960) Begin header parsing...
    Embedded PL/SQL Gateway: (wpd.c,2009) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
    Embedded PL/SQL Gateway: (wpd.c,2027) X-ORACLE-IGNORE parsed
    Embedded PL/SQL Gateway: (wpd.c,2009) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
    Embedded PL/SQL Gateway: (wpd.c,2027) X-ORACLE-IGNORE parsed
    Embedded PL/SQL Gateway: (wpd.c,2009) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
    Embedded PL/SQL Gateway: (wpd.c,2027) X-ORACLE-IGNORE parsed
    Embedded PL/SQL Gateway: (wpd.c,2009) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
    Embedded PL/SQL Gateway: (wpd.c,2027) X-ORACLE-IGNORE parsed
    Embedded PL/SQL Gateway: (wpd.c,2009) Got a line (77 bytes): Content-type: text/html; charset=utf-8
    Embedded PL/SQL Gateway: (wpd.c,2108) Parsed header - Content-Type:text/html; charset=utf-8
    Embedded PL/SQL Gateway: (wpd.c,2009) Got a line (43 bytes): X-Frame-Options: DENY
    Embedded PL/SQL Gateway: (wpd.c,2168) Parsed header - X-Frame-Options:DENY
    Embedded PL/SQL Gateway: (wpd.c,2009) Got a line (43 bytes): Content-length: 40155
    Embedded PL/SQL Gateway: (wpd.c,2082) Parsed header - Content-Length:40155
    Embedded PL/SQL Gateway: (wpd.c,2009) Got a line (1 bytes):
    Embedded PL/SQL Gateway: (wpd.c,2016) End of headers detected
    Embedded PL/SQL Gateway: (wpd.c,1882) Parsed begin
    owa.get_page(:data__,:ndata__);
    end;
    Embedded PL/SQL Gateway: (wpd.c,1898) Bound drec variablesEmbedded PL/SQL Gateway: (wpcs.c, 76) Executed 'begin dbms_session.reset_package; end;' (rc=0)
    Embedded PL/SQL Gateway: (wpd.c,1818) Going to close cursor
    Embedded PL/SQL Gateway: (wpx.c,660) Normal completion
    Embedded PL/SQL Gateway: (wpx.c,688) Shutdown has been called
    Embedded PL/SQL Gateway: (wpx.c,700) Going to logoff
    *** SESSION ID:(527.737) 2012-06-27 16:52:37.533
    Embedded PL/SQL Gateway: (wpdenv.c,679) script_name='/apex' path_info='/f'script_prefix='' dad_name='apex'
    Embedded PL/SQL Gateway: (wpdenv.c,792) User-Agent is Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
    Embedded PL/SQL Gateway: (wpdenv.c,1412) dadname = 'apex', path_info = 'f'
    Embedded PL/SQL Gateway: (wpdenv.c,1451) Service will NOT use dynamic auth
    Embedded PL/SQL Gateway: (wpx.c,394) Initialized successfully 0
    Embedded PL/SQL Gateway: (wpx.c,316) SetRemoteUser : Remote User set to ANONYMOUS for this request.
    Embedded PL/SQL Gateway: (wpx.c,480) Auth info from .APP file is being used
    Embedded PL/SQL Gateway: (wpd.c,1729) Attempting to logon with '(unknown)'
    Embedded PL/SQL Gateway: (wpu.c,1499) DBCharSet=>AMERICAN_AMERICA.AL32UTF8 OWAVersion=10.1.2.0.4 (101204) OWAMatch=>1 (rc=0)
    Embedded PL/SQL Gateway: (wpd.c,1763) Logged in as (unknown)
    Embedded PL/SQL Gateway: (wpx.c,593) Going to select...
    Embedded PL/SQL Gateway: (wpx.c,647) Have been asked to execute a request
    Embedded PL/SQL Gateway: (wppa.c,335) Building Arglist based on Parsed Content from WRB
    Embedded PL/SQL Gateway: (wppa.c,1015) Enter ParseUrlData
    Embedded PL/SQL Gateway: GET
    Embedded PL/SQL Gateway: (wppa.c,1064) Getting Values from QUERY_STRING
    Embedded PL/SQL Gateway: [headers begin]
    Embedded PL/SQL Gateway: HTTP_COOKIE(11): (343)ORA_WWV_REMEMBER_UN=SUDHIR:DEVELOPMENT; PUBLIC_ORA_WWV_USER_63113903525053=-1; ORA_WWV_USER_63113903525053=2AD259DDAF6770BE05FEF29509B68F5F; LOGIN_USERNAME_COOKIE=sudhir; WWV_CUSTOM-F_1638610445865577_111=CC022FAB479054CF32361C22B789D7EE; ORA_WWV_ATTRIBUTE_PAGE=4495%2C%23ALL; WWV_CUSTOM-F_1638610445865577_107=19291B8FC60BA1A47916DE46EE85F01C
    Embedded PL/SQL Gateway: [headers end]
    Embedded PL/SQL Gateway: p=109:1:3165980474173701:::::
    Embedded PL/SQL Gateway: Identifier legal p(notconverted)
    Embedded PL/SQL Gateway: (wppa.c,1514) indx = 1, entryCnt = 1
    Embedded PL/SQL Gateway: (wppa.c,1834) Listing distinct actual names:
    Embedded PL/SQL Gateway: (wppa.c,1836) p
    Embedded PL/SQL Gateway: (wppa.c,1838) Listing actuals of array with large entries:
    Embedded PL/SQL Gateway: (wppa.c,1843) Listing distinct actual names and values:
    Embedded PL/SQL Gateway: (wppa.c,1875) p, type = 0, value (28) = 109:1:3165980474173701:::::
    Embedded PL/SQL Gateway: (wppa.c,430) Arglist built, 1 unique entries
    Embedded PL/SQL Gateway: (wpx.c,654) Going to wpprodb_OciDoBlock...
    Embedded PL/SQL Gateway: Identifier legal f(notconverted)
    Embedded PL/SQL Gateway: (wppr.c,435) start working with f
    Embedded PL/SQL Gateway: (wppr.c,1017) lcase(procname): f
    Embedded PL/SQL Gateway: (wppr.c,1296) The CALL block: len=1067, bind_count=9What is the next step to make the 3.2 developed application work.
    Thanks
    Sudhir
    Edited by: Sudhir_Meru on Jun 27, 2012 5:09 AM
    Edited by: Sudhir_Meru on Jun 27, 2012 5:11 AM

  • Unable to reach Workspace Login Page

    Hi,
    First some background - I am an Apex developer / administrator. I do not have a DBA background. DBAs install the Apex software and I administer the webserver (although my experience with webservers is that which I've picked up using Apex) and develop applications.
    We are currently upgrading our DEV, QA and PROD APEX installations from 2.2.1 to 3.1.1 (specifically 3.1.1.00.09).
    We are using Oracle HTTP Server from the Oracle 10.1 companion disk.
    We completed this for our DEV and QA environments without a problem. We have not done this for our PROD environment yet.
    We also installed APEXLIB 1.7 in both DEV and QA. This was working successfully in DEV. We had not tried it yet in QA.
    Both 3.1.1 upgraded environments have been running successfully for about 10 days since the upgrade.
    However our QA environment (Oracle 10.2.0.3 running on HP-UX B.11.11 ) experienced a problem yesterday - we can no longer access any Apex applications including the Workspace login pages or application login pages.
    The error we get in the browser is:
    Expecting p_company or wwv_flow_company cookie to contain security group id of application owner.
    Error ERR-7620 Could not determine workspace for application ().
    We experienced a problem with our QA environment before (prior to upgrade) and we needed to flush the shared pool a few months ago as a temporary fix for this as has been noted on this forum. The problem in question was addressed in this forum post: Re: ORA-06502:PL/SQL: numeric or value error: NULL index table key value
    However, with the current problem, flushing the shared pool has not solved the issue. It may not be related.
    When we access the workspace login page: http://our_url/apex/crmqa/f?p=4550:1, I see nothing in the Apache logs to indicate an error.
    The access_log.xxx file in the Apache logs lists this ...
    ip_address_here - apex_public_user [16/Jul/2008:15:15:15 -0500] "GET /apex/crmqa/f?p=4550:1 HTTP/1.1" 200 455
    The error_log.xxx file is empty.
    I temporarily turned on mod_plsql logging
    When I tried to access http://our_url/apex/crmqa/f?p=4550:1
    The cid1.log file contained...
    <337703562 ms>[ReqStartTime: 16/Jul/2008:15:23:43]
    <337703562 ms>Request ID ReqID:6136_1216239823
    <337703562 ms>Connecting to database with connect string : "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=ip_address_here)(PORT=1526)))(CONNECT_DATA=(SID=crmqa1)))"
    <337704171 ms>Doing alter session set nls_language= "AMERICAN" nls_territory= "AMERICA"
    <337704171 ms>OpenCursor
    <337704234 ms>Altered session to nls_language=AMERICAN nls_territory=AMERICA
    <337704234 ms>DeinitCursor
    <337704234 ms>OpenCursor
    <337704453 ms>DBCharSet is AMERICAN_AMERICA.WE8ISO8859P1, OWAVersion 10.1.2.0.6, 1001020006 (rc=0)
    <337704453 ms>DeinitCursor
    <337704453 ms>OpenCursor
    <337704453 ms>(wpd.c,1757) Logged in as (unknown)
    <337704453 ms>(wpx.c,559) Going to select...
    <337704453 ms>(wpx.c,613) Have been asked to execute a request
    <337704453 ms>(wppa.c,326) Building Arglist based on Parsed Content from WRB
    <337704453 ms>(wppa.c,1007) Enter ParseUrlData
    <337704453 ms>GET
    <337704453 ms>(wppa.c,1056) Getting Values from QUERY_STRING
    <337704453 ms>[headers begin]
    <337704453 ms>[headers end]
    <337704453 ms>p=4550:1
    <337704453 ms>(wppa.c,1499) indx = 1, entryCnt = 1
    <337704453 ms>(wppa.c,1849) Listing distinct actual names:
    <337704453 ms>(wppa.c,1851) p
    <337704453 ms>(wppa.c,1853) Listing actuals of array with large entries:
    <337704453 ms>(wppa.c,1858) Listing distinct actual names and values:
    <337704453 ms>(wppa.c,1890) p, type = 0, value (7) = 4550:1
    <337704453 ms>(wppa.c,421) Arglist built, 1 unique entries
    <337704453 ms>(wpx.c,620) Going to wpprodb_OciDoBlock...
    <337704453 ms>(wpd.c,2734) Cache enabled. Gathering cache information.
    <337704453 ms>(wpd.c,2752) Language for this request is en-us
    <337704453 ms>(wpd.c,2803) Using user apex_public_user for caching.
    <337704453 ms>cache: Checking for user level hit
    <337704453 ms>cache: Cache MISS user - D:\oracle\product\10.1.0\db_1/Apache/modplsql/cache\plsql\712\2063
    <337704453 ms>cache: Checking for system level hit
    <337704453 ms>cache: Cache MISS system - D:\oracle\product\10.1.0\db_1/Apache/modplsql/cache\plsql\sys\878\4773
    <337704453 ms>(wppr.c,393) start working with f
    <337704453 ms>(wppr.c,1005) The CALL block: len=503, bind_count=9
    declare
    rc__ number;
    start_time__ binary_integer;
    begin
    start_time__ := dbms_utility.get_time;
    owa.init_cgi_env(:n__,:nm__,:v__);
    htp.HTBUF_LEN := 84;
    null;
    null;
    null;
    null;
    f(p=>:p);
    if (wpg_docload.is_file_download) then
    rc__ := 1;
    wpg_docload.get_download_file(:doc_info);
    null;
    null;
    null;
    commit;
    else
    rc__ := 0;
    null;
    null;
    null;
    commit;
    owa.get_page(:data__,:ndata__);
    end if;
    :rc__ := rc__;
    :db_proc_time__ := dbms_utility.get_time - start_time__;
    end;
    <337704453 ms>(wppr.c,462) Pl/sql block parsed...
    <337704453 ms>(wpdenv.c,1495) CGI Environment has 29 vars. Max name len 128, Max Value Len 128
    <337704453 ms> PLSQL_GATEWAY(14)=(6)WebDb
    <337704453 ms> GATEWAY_IVERSION(17)=(2)2
    <337704453 ms> SERVER_SOFTWARE(16)=(59)Oracle-Application-Server-10g/9.0.4.0.0 Oracle-HTTP-Server
    <337704453 ms> GATEWAY_INTERFACE(18)=(8)CGI/1.1
    <337704453 ms> SERVER_PORT(12)=(3)80
    <337704453 ms> SERVER_NAME(12)=(12)server_name_here
    <337704453 ms> REQUEST_METHOD(15)=(4)GET
    <337704453 ms> QUERY_STRING(13)=(9)p=4550:1
    <337704453 ms> PATH_INFO(10)=(3)/f
    <337704453 ms> SCRIPT_NAME(12)=(12)/apex/crmqa
    <337704453 ms> REMOTE_ADDR(12)=(14)remote_ip_address_here
    <337704453 ms> SERVER_PROTOCOL(16)=(9)HTTP/1.1
    <337704453 ms> REQUEST_PROTOCOL(17)=(5)HTTP
    <337704453 ms> REMOTE_USER(12)=(17)apex_public_user
    <337704453 ms> HTTP_USER_AGENT(16)=(95)Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
    <337704453 ms> HTTP_HOST(10)=(12)hostname_here
    <337704453 ms> HTTP_ACCEPT(12)=(4)*/*
    <337704453 ms> HTTP_ACCEPT_ENCODING(21)=(14)gzip, deflate
    <337704453 ms> HTTP_ACCEPT_LANGUAGE(21)=(6)en-us
    <337704453 ms> HTTP_ORACLE_ECID(17)=(37)1216239823:ecid_ip_address_here??:7200:6136:1,0
    <337704453 ms> WEB_AUTHENT_PREFIX(19)=(1)
    <337704453 ms> DAD_NAME(9)=(6)crmqa
    <337704453 ms> DOC_ACCESS_PATH(16)=(5)docs
    <337704453 ms> DOCUMENT_TABLE(15)=(23)wwv_flow_file_objects$
    <337704453 ms> PATH_ALIAS(11)=(1)
    <337704453 ms> REQUEST_CHARSET(16)=(5)UTF8
    <337704453 ms> REQUEST_IANA_CHARSET(21)=(6)UTF-8
    <337704453 ms> SCRIPT_PREFIX(14)=(6)/apex
    <337704453 ms> HTTP_IV_USER(13)=(1)
    <337704453 ms>StrArrPosBind pos 2 Charset Id : 871
    <337704453 ms>StrArrPosBind pos 3 Charset Id : 871
    <337704453 ms>StrArrPosBind pos 6 Charset Id : 871
    <337704781 ms>(wpd.c,1954) Begin header parsing...
    <337704781 ms>(wpd.c,2003) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
    <337704781 ms>(wpd.c,2021) X-ORACLE-IGNORE parsed
    <337704781 ms>(wpd.c,2003) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
    <337704781 ms>(wpd.c,2021) X-ORACLE-IGNORE parsed
    <337704781 ms>(wpd.c,2003) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
    <337704781 ms>(wpd.c,2021) X-ORACLE-IGNORE parsed
    <337704781 ms>(wpd.c,2003) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
    <337704781 ms>(wpd.c,2021) X-ORACLE-IGNORE parsed
    <337704781 ms>(wpd.c,2003) Got a line (77 bytes): Content-type: text/html; charset=UTF-8
    <337704781 ms>(wpd.c,2102) Parsed header - Content-Type:text/html; charset=UTF-8
    <337704781 ms>(wpd.c,2003) Got a line (49 bytes): X-DB-Content-length: 443
    <337704781 ms>(wpd.c,2162) Parsed header - X-DB-Content-length:443
    <337704781 ms>(wpd.c,2003) Got a line (1 bytes):
    <337704781 ms>(wpd.c,2010) End of headers detected
    <337704843 ms>(wpcs.c, 76) Executed 'begin dbms_session.reset_package; end;' (rc=0)
    <337704843 ms>(wpd.c,1812) Going to close cursor
    <337704843 ms>DeinitCursor
    <337704843 ms>(wpx.c,626) Normal completion
    <337704843 ms>(wpx.c,654) Shutdown has been called
    <337704843 ms>(wpx.c,666) Going to logoff
    <337704843 ms>Logoff: Pooling this connection
    <337704843 ms>[ReqEndtime: 16/Jul/2008:15:23:44]
    <337704843 ms>[ReqExecTime: 1281 ms]
    and the 6136.log file contained...
    <337703562 ms>[ReqStartTime: 16/Jul/2008:15:23:43]
    <337703562 ms>Request ID ReqID:6136_1216239823
    <337703562 ms>(wpdenv.c,663) script_name='/apex/crmqa' path_info='/f'script_prefix='/apex' dad_name='crmqa'
    <337703562 ms>(wpdenv.c,776) User-Agent is Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
    <337703562 ms>(wpdenv.c,1388) dadname = 'crmqa', path_info = 'f'
    <337703562 ms>(wpdenv.c,1427) Service will NOT use dynamic auth
    <337703562 ms>(wpx.c,387) Initialized successfully 0
    <337703562 ms>(wpx.c,309) SetRemoteUser : Remote User set to apex_public_user for this request.
    <337703562 ms>(wpx.c,476) Auth info from .APP file is being used
    <337703562 ms>(wpd.c,1724) Attempting to logon with '(unknown)'
    <337704843 ms>Maximum memory allocated by the request is 75158 bytes
    <337704843 ms>[ReqEndtime: 16/Jul/2008:15:23:44]
    <337704843 ms>[ReqExecTime: 1281 ms]
    The DAD config file contains the following entries...
    # ============================================================================
    # mod_plsql DAD Configuration File
    # ============================================================================
    # 1. Please refer to dads.README for a description of this file
    # ============================================================================
    # /i contains version 221 images
    Alias /i "D:\oracle\product\10.1.0\db_1\Apache\Apache\images"
    Alias /i31 "D:\oracle\product\10.1.0\db_1\Apache\Apache\images311"
    <Location /apex/crmqa>
    SetHandler pls_handler
    Order deny,allow
    Allow from all
    AllowOverride None
    PlsqlCGIEnvironmentList HTTP_IV_USER
    PlsqlDatabaseUsername apex_public_user
    PlsqlDatabasePassword xxx
    PlsqlDatabaseConnectString ip_address:port_number:crmqa1
    PlsqlDefaultPage apex
    PlsqlDocumentTablename wwv_flow_file_objects$
    PlsqlDocumentPath docs
    PlsqlDocumentProcedure wwv_flow_file_mgr.process_download
    PlsqlAuthenticationMode Basic
    PlsqlNLSLanguage AMERICAN_AMERICA.UTF8
    </Location>
    <Location /apex/crmdev>
    SetHandler pls_handler
    Order deny,allow
    Allow from all
    AllowOverride None
    PlsqlCGIEnvironmentList HTTP_IV_USER
    PlsqlDatabaseUsername apex_public_user
    PlsqlDatabasePassword xxx
    PlsqlDatabaseConnectString ip_address:port_number:crmdev1
    PlsqlDefaultPage apex
    PlsqlDocumentTablename wwv_flow_file_objects$
    PlsqlDocumentPath docs
    PlsqlDocumentProcedure wwv_flow_file_mgr.process_download
    PlsqlAuthenticationMode Basic
    PlsqlNLSLanguage AMERICAN_AMERICA.UTF8
    </Location>
    The DAD entries above point to databases on which Apex is version 3.1.1 and we have modified the image prefix on these database to be a value of /i31, using the script reset_image_prefix.sql.
    This DAD file also contains DAD entries (not included above) for other database running Apex 2.2.1 which are using the default image prefix value of /i
    I can ping the database ip address from the machine on which the OHS webserver is running.
    I have installed OHS on my local laptop and have the same problems.
    I can however execute a procedure on the database using the same OHS / DAD configuration running something like http://our_url/apex/crmqa/schema_name.test_connection?v_wait=1where the proc test_connection proc sleeps for v_wait seconds before returning a simple html page confirming that it worked.
    I can login to the apex_public_user account via my SQL Developer client
    At this point I do not know what else to try to resolve this issue. I am about to start trawling through metalink for related issues if I can find anything.
    Any assistance is very much appreciated...
    Thank you.
    Alan

    I also see this post on Metalink - could it be related?
    https://metalink.oracle.com/metalink/plsql/f?p=130:14:12042222629340980284::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,429261.1,1,1,1,helvetica
    Subject: After upgrading database to 10.2.0.X, getting ORA-06502: PL/SQL: numeric or value error:
    Doc ID: Note:429261.1 Type: PROBLEM
    Last Revision Date: 08-MAY-2008 Status: MODERATED
    In this Document
    Symptoms
    Changes
    Cause
    Solution
    References
    This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process, and therefore has not been subject to an independent technical review.
    Applies to:
    Oracle Application Express (formerly HTML DB) - Version: 2.0.0.0.49
    This problem can occur on any platform.
    Symptoms
    On the Application builder page, when attempting to click details to view the applications, the following error occurs:
    ORA-06502: PL/SQL: numeric or value error: NULL index table key value
    However, the problem seems to disappear after a while..
    Changes
    Upgrade of database (from any version to 10.2.0.1 or 10.2.0.2)
    Cause
    The reason is due to database Bug 4752541 Abstract: APPSST 10G: ORA-6550 AFTER UPGRADE TO 10.2.0.1. However Patch 47552541 is obsoleted and not available via metalink, it was superceded by Patch 5705795.
    This bug is fixed in patchset 10.2.0.4 and above. For current and older versions, Patch 5705795 must be applied. If the patch cannot be found for a particular version or O/S , log a service request with Oracle Support to obtain the patch.
    This is also documented in the Apex forum page: Re: wwv_flow.accept error lists the following bug as
    root cause.
    Solution
    Interim solution:
    Flush the database shared pool when the problem occurs
    Permanent solution:
    Upgrade database to 10.2.0.4 or above
    OR
    Download and apply database Patch 5705795. If the version for your database is not available , create a new Service request from metalink under product RDBMS to request for a patch
    References
    Bug 4752541 - APPSST 10G: ORA-6550 AFTER UPGRADE TO 10.2.0.1
    Keywords
    UPGRADE~DATABASE; UPGRADE~TO~10.2.0.4; UPGRADE~TO~10.2.0.1; APPLICATION~DETAILS; UPGRADE~FROM~10.2.0.2; UPGRADE~TO~10.2.0.3; VIEW~DETAILS;

  • Login to Development from Firefox 1.5.0.3??

    Has anyone have problems logging into htmldb dev from FIrefox 1.5.0.3. I can log in using ssl, but when trying http:// I log in and get rediected to same page. When I use the IE tab options, it works fine using IE Rendering. Sample mod_plsql log. Is there a setting or extension screwing up the browser? Any insight would be helpful.
    <13779421 ms> HTTP_USER_AGENT(16)=(91)Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3
    <13779421 ms> HTTP_HOST(10)=(6)mjslt
    <13779421 ms> HTTP_ACCEPT(12)=(100)text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    <13779421 ms> HTTP_ACCEPT_ENCODING(21)=(13)gzip,deflate
    <13779421 ms> HTTP_ACCEPT_LANGUAGE(21)=(15)en-us,en;q=0.5
    <13779421 ms> HTTP_ACCEPT_CHARSET(20)=(31)ISO-8859-1,utf-8;q=0.7,*;q=0.7
    <13779421 ms> HTTP_ORACLE_ECID(17)=(37)1147749171:192.168.2.1:5016:3080:2,0
    <13779421 ms> WEB_AUTHENT_PREFIX(19)=(1)
    <13779421 ms> DAD_NAME(9)=(7)afbslt
    <13779421 ms> DOC_ACCESS_PATH(16)=(5)docs
    <13779421 ms> DOCUMENT_TABLE(15)=(23)wwv_flow_file_objects$
    <13779421 ms> PATH_ALIAS(11)=(1)
    <13779421 ms> REQUEST_CHARSET(16)=(13)WE8MSWIN1252
    <13779421 ms> REQUEST_IANA_CHARSET(21)=(13)WINDOWS-1252
    <13779421 ms> SCRIPT_PREFIX(14)=(1)
    <13779421 ms>StrArrPosBind pos 2 Charset Id : 178
    <13779421 ms>StrArrPosBind pos 3 Charset Id : 178
    <13779421 ms>StrArrPosBind pos 5 Charset Id : 178
    <13779828 ms>(wpd.c,1962) Begin header parsing...
    <13779828 ms>(wpd.c,2011) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
    <13779828 ms>(wpd.c,2029) X-ORACLE-IGNORE parsed
    <13779828 ms>(wpd.c,2011) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
    <13779828 ms>(wpd.c,2029) X-ORACLE-IGNORE parsed
    <13779828 ms>(wpd.c,2011) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
    <13779828 ms>(wpd.c,2029) X-ORACLE-IGNORE parsed
    <13779828 ms>(wpd.c,2011) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
    <13779828 ms>(wpd.c,2029) X-ORACLE-IGNORE parsed
    <13779828 ms>(wpd.c,2011) Got a line (83 bytes): Location: f?p=4550:1:10888497011440826265
    <13779828 ms>(wpd.c,2133) Parsed header - Location:f?p=4550:1:10888497011440826265
    <13779828 ms>(wpd.c,2011) Got a line (35 bytes): Content-length: 0
    <13779828 ms>(wpd.c,2084) Parsed header - Content-Length:0
    <13779828 ms>(wpd.c,2011) Got a line (1 bytes):
    <13779828 ms>(wpd.c,2018) End of headers detected
    <13779828 ms>(wpcs.c, 77) Executed 'begin dbms_session.reset_package; end;' (rc=0)
    <13779828 ms>(wpd.c,1820) Going to close cursor
    <13779828 ms>DeinitCursor
    <13779828 ms>(wpx.c,665) Normal completion
    <13779828 ms>(wpx.c,693) Shutdown has been called
    <13779828 ms>(wpx.c,705) Going to logoff
    <13779828 ms>Logoff: Pooling this connection
    <13779828 ms>[ReqEndtime: 15/May/2006:23:12:52]
    <13779828 ms>[ReqExecTime: 453 ms]

    Just loging in the development environment. Can't log in..?? Can over secure connection.
    Yes my characterset is different. I'll change and see what happens.
    <Location /afbslt>
    AddType text/xml xbl
    AddType text/x-component htc
    SetHandler pls_handler
    Order deny,allow
    Allow from all
    AllowOverride None
    PlsqlDatabaseUsername HTMLDB_PUBLIC_USER
    PlsqlDatabasePassword *************************************************
    PlsqlDatabaseConnectString mjslt:1521:AFBSLT ServiceNameFormat
    PlsqlDefaultPage htmldb
    PlsqlDocumentTablename wwv_flow_file_objects$
    PlsqlDocumentPath docs
    PlsqlDocumentProcedure wwv_flow_file_mgr.process_download
    PlsqlAuthenticationMode Basic
    PlsqlNLSLanguage AMERICAN_AMERICA.WE8MSWIN1252
    </Location>

  • Library Cache Pin Wait Event (within the context of APEX)

    Hello,
    Firstly -
    Oracle Version: 10.2.0.4.0
    Apex Version: 3.0.1.00.08
    Okay, my colleague (no really! This isn't one of those "Ahem ... A friend of mine has contracted something nasty +downstairs+..."-type questions) is having problems compiling a package (using TOAD incidentally, but it's the same in SQL Developer).
    I've searched the forum and the web for a bit of help on what's maybe happening here and it appears to be related to a concurrency conflict with the package definition - from what I can understand it's a case of the package is in use by another session, therefore another session cannot alter it at the same time (which makes sense)
    "What does this have to do with APEX?"... well, he is working on this package using the following methodology:
    1. Compile the package body/spec (as necessary - body more often obviously)
    2. run an apex page which uses the code in a process, which may or may not result in the error page being displayed
    3. Making changes to the package body/spec
    repeat steps 1-3 ad nauseum...
    He is the only user directly accessing the schema (and the only user accessing the page via APEX too, although I appreciate this isn't quite the same thing).
    I was wondering if, due to the architecture of APEX (the use of session pools etc), the state of a package might be being retained in some manner, thus resulting in this library cache pin wait event? If so, is there anything I can do to mitigate against this occurring?
    p.s. the only difference I can see between this particular package and any other package in the schema is that this one interacts with blobs (including making references to the wwv_flow_files view) - with blobs being passed as parameters between procedures (thus potentially creating temporary blobs which may or may not being closed).
    Any ideas?
    p.p.s. there are also no DBMS_SCHEDULER jobs or anything that might potentially be running the code incidentally...
    Edited by: Joel_C on 11-Nov-2011 11:58
    We got our DBAs to run a bit of code to identify the blocking session:
    select
             decode(lob.kglobtyp, 0, 'NEXT OBJECT', 1, 'INDEX', 2, 'TABLE', 3, 'CLUSTER',
                          4, 'VIEW', 5, 'SYNONYM', 6, 'SEQUENCE',
                          7, 'PROCEDURE', 8, 'FUNCTION', 9, 'PACKAGE',
                          11, 'PACKAGE BODY', 12, 'TRIGGER',
                          13, 'TYPE', 14, 'TYPE BODY',
                          19, 'TABLE PARTITION', 20, 'INDEX PARTITION', 21, 'LOB',
                          22, 'LIBRARY', 23, 'DIRECTORY', 24, 'QUEUE',
                          28, 'JAVA SOURCE', 29, 'JAVA CLASS', 30, 'JAVA RESOURCE',
                          32, 'INDEXTYPE', 33, 'OPERATOR',
                          34, 'TABLE SUBPARTITION', 35, 'INDEX SUBPARTITION',
                          40, 'LOB PARTITION', 41, 'LOB SUBPARTITION',
                          42, 'MATERIALIZED VIEW',
                          43, 'DIMENSION',
                          44, 'CONTEXT', 46, 'RULE SET', 47, 'RESOURCE PLAN',
                          48, 'CONSUMER GROUP',
                          51, 'SUBSCRIPTION', 52, 'LOCATION',
                          55, 'XML SCHEMA', 56, 'JAVA DATA',
                          57, 'SECURITY PROFILE', 59, 'RULE',
                          62, 'EVALUATION CONTEXT',
                         'UNDEFINED') object_type,
             lob.KGLNAOBJ object_name,
             pn.KGLPNMOD lock_mode_held,
             pn.KGLPNREQ lock_mode_requested,
             ses.sid,
             ses.serial#,
             ses.username
        FROM
           x$kglpn pn,
           v$session ses,
           x$kglob lob,
           v$session_wait vsw
      WHERE
       pn.KGLPNUSE = ses.saddr and
       pn.KGLPNHDL = lob.KGLHDADR
       and lob.kglhdadr = vsw.p1raw
       and vsw.event = 'library cache pin'
    order by lock_mode_held descresults as follows (I've changed some object names to protect the ignorant):
    OBJECT_TYP OBJECT_NAME                   LOCK_MODE_HELD LOCK_MODE_REQUESTED        SID    SERIAL# USERNAME
    PACKAGE    PKG_FOOBAR                             2                   0        356      21694 HTMLDB_PUBLIC_U
                                                                                                      SER
    PACKAGE    PKG_FOOBAR                             0                   3        463      22309 FOOHTMLDB_PUBLIC_USER is the apex user incidentally. The session is marked in the v$session table as "inactive", the last statement being
    Begin
       Dbms_session.reset_package;
    End;Edited by: Joel_C on 11-Nov-2011 14:39

    bump
    No-one?
    The problem seems to have 'resolved itself' over the weekend incidentally (although I don't believe anything truly resolves itself in this manner - something must have changed).

  • Error on /pls/apex/wwv_flow.show HTTP-404 ORA-06550: line 25, c

    Following on from the previous problem I had with Error 33331, we moved the application to a new APEX installation. Everything was fine for 30 mintes until
    we started getting this error :-
    PLS-00306: wrong number or types of arguments in call to 'SHOW'
    I've put in tracing in the httpd.conf file at info level and switched on mod_plsql tracing. Everything went fine for another 40 minutes but we're now getting the same errors, the following is one of the mod_plsql trace files.
    I have a hunch caching is at the root of the problem ?
    <5952 ms>[ReqStartTime: 6/Feb/2008:16:13:59]
    <5952 ms>Request ID ReqID:528620_1202314439
    <5953 ms>Connecting to database with connect string : "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=mohawk)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=htmldb_p.world)))"
    <5975 ms>Doing alter session set nls_language= "AMERICAN" nls_territory= "AMERICA"
    <5975 ms>OpenCursor
    <5976 ms>Altered session to nls_language=AMERICAN nls_territory=AMERICA
    <5976 ms>DeinitCursor
    <5976 ms>OpenCursor
    <5977 ms>Status 1 (rc=0)
    <5977 ms>DeinitCursor
    <5977 ms>OpenCursor
    <5978 ms>DBCharSet is AMERICAN_AMERICA.WE8ISO8859P1, OWAVersion 10.1.2.0.0, 1001020000 (rc=0)
    <5978 ms>DeinitCursor
    <5978 ms>OpenCursor
    <5978 ms>(wpd.c,1765) Logged in as (unknown)
    <5978 ms>(wpx.c,598) Going to select...
    <5978 ms>(wpx.c,652) Have been asked to execute a request
    <5978 ms>(wppa.c,334) Building Arglist based on Parsed Content from WRB
    <5978 ms>(wppa.c,1016) Enter ParseUrlData
    <5978 ms>POST
    <5978 ms>(wpu.c,257) Attempting to read 147 bytes
    <5978 ms>(wpu.c,262) We read 147, had 0, to get 0 bytes
    <5978 ms>[headers begin]
    <5978 ms>[headers end]
    <5978 ms>p_request=APPLICATION_PROCESS%3Dget_Level23XML&p_instance=2989139092861589&p_flow_id=1122&p_flow_step_id=0&p_arg_names=TEMPORARY_ITEM&p_arg_values=
    <5978 ms>[form_data]
    <5978 ms>p_request=APPLICATION_PROCESS%3Dget_Level23XML&p_instance=2989139092861589&p_flow_id=1122&p_flow_step_id=0&p_arg_names=TEMPORARY_ITEM&p_arg_values=
    <5978 ms>(wppa.c,1523) indx = 6, entryCnt = 6
    <5978 ms>(wppa.c,1844) Listing distinct actual names:
    <5978 ms>(wppa.c,1846) p_request
    <5978 ms>(wppa.c,1846) p_instance
    <5978 ms>(wppa.c,1846) p_flow_id
    <5978 ms>(wppa.c,1846) p_flow_step_id
    <5978 ms>(wppa.c,1846) p_arg_names
    <5978 ms>(wppa.c,1846) p_arg_values
    <5978 ms>(wppa.c,1848) Listing actuals of array with large entries:
    <5978 ms>(wppa.c,1853) Listing distinct actual names and values:
    <5978 ms>(wppa.c,1885) p_request, type = 0, value (35) = APPLICATION_PROCESS=get_Level23XML
    <5978 ms>(wppa.c,1885) p_instance, type = 0, value (17) = 2989139092861589
    <5978 ms>(wppa.c,1885) p_flow_id, type = 0, value (5) = 1122
    <5978 ms>(wppa.c,1885) p_flow_step_id, type = 0, value (2) = 0
    <5978 ms>(wppa.c,1885) p_arg_names, type = 0, value (15) = TEMPORARY_ITEM
    <5978 ms>(wppa.c,1885) p_arg_values, type = 0, value (1) =
    <5978 ms>(wppa.c,429) Arglist built, 6 unique entries
    <5978 ms>(wpx.c,659) Going to wpprodb_OciDoBlock...
    <5978 ms>(wpd.c,2750) Cache enabled. Gathering cache information.
    <5978 ms>(wpd.c,2768) Language for this request is en-gb
    <5978 ms>(wpd.c,2819) Using user APEX_PUBLIC_USER for caching.
    <5978 ms>cache: Checking for user level hit
    <5979 ms>cache: Cache MISS user - /u01/app/oracle/product/10.2.0.1_html/Apache/modplsql/cache/plsql/073/9629
    <5979 ms>cache: Checking for system level hit
    <5979 ms>cache: Cache MISS system - /u01/app/oracle/product/10.2.0.1_html/Apache/modplsql/cache/plsql/sys/374/2755
    <5979 ms>(wppr.c,460) start working with wwv_flow.show
    <5979 ms>(wppr.c,1164) The CALL block: len=1115, bind_count=14
    declare
    rc__ number;
    start_time__ binary_integer;
    simple_list__ owa_util.vc_arr;
    complex_list__ owa_util.vc_arr;
    begin
    start_time__ := dbms_utility.get_time;
    owa.init_cgi_env(:n__,:nm__,:v__);
    htp.HTBUF_LEN := 63;
    null;
    null;
    simple_list__(1) := 'sys.%';
    simple_list__(2) := 'dbms\_%';
    simple_list__(3) := 'utl\_%';
    simple_list__(4) := 'owa\_%';
    simple_list__(5) := 'owa.%';
    simple_list__(6) := 'htp.%';
    simple_list__(7) := 'htf.%';
    simple_list__(8) := 'wpg_docload.%';
    if ((owa_match.match_pattern('wwv_flow.show', simple_list__, complex_list__, true))) then
    rc__ := 2;
    else
    null;
    null;
    wwv_flow.show(p_request=>:p_request,p_instance=>:p_instance,p_flow_id=>:p_flow_id,p_flow_step_id=>:p_flow_step_id,p_arg_names=>:p_arg_names,p_arg_values=>:p_arg_values);
    if (wpg_docload.is_file_download) then
    rc__ := 1;
    wpg_docload.get_download_file(:doc_info);
    null;
    null;
    null;
    commit;
    else
    rc__ := 0;
    null;
    null;
    null;
    commit;
    owa.get_page(:data__,:ndata__);
    end if;
    end if;
    :rc__ := rc__;
    :db_proc_time__ := dbms_utility.get_time - start_time__;
    end;
    <5979 ms>(wppr.c,520) Pl/sql block parsed...
    <5979 ms>(wpdenv.c,1527) CGI Environment has 30 vars. Max name len 128, Max Value Len 128
    <5979 ms> PLSQL_GATEWAY(14)=(6)WebDb
    <5979 ms> GATEWAY_IVERSION(17)=(2)2
    <5979 ms> SERVER_SOFTWARE(16)=(60)Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server
    <5979 ms> GATEWAY_INTERFACE(18)=(8)CGI/1.1
    <5979 ms> SERVER_PORT(12)=(5)7777
    <5979 ms> SERVER_NAME(12)=(22)mohawk.ventura-uk.com
    <5979 ms> REQUEST_METHOD(15)=(5)POST
    <5979 ms> PATH_INFO(10)=(15)/wwv_flow.show
    <5979 ms> SCRIPT_NAME(12)=(10)/pls/apex
    <5979 ms> REMOTE_ADDR(12)=(9)10.0.2.0
    <5979 ms> SERVER_PROTOCOL(16)=(9)HTTP/1.1
    <5979 ms> REQUEST_PROTOCOL(17)=(5)HTTP
    <5979 ms> REMOTE_USER(12)=(17)APEX_PUBLIC_USER
    <5979 ms> HTTP_CONTENT_LENGTH(20)=(4)147
    <5979 ms> HTTP_CONTENT_TYPE(18)=(34)application/x-www-form-urlencoded
    <5979 ms> HTTP_USER_AGENT(16)=(75)Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
    <5979 ms> HTTP_HOST(10)=(12)mohawk:7777
    <5979 ms> HTTP_ACCEPT(12)=(4)*/*
    <5979 ms> HTTP_ACCEPT_ENCODING(21)=(14)gzip, deflate
    <5979 ms> HTTP_ACCEPT_LANGUAGE(21)=(6)en-gb
    <5979 ms> HTTP_REFERER(13)=(123)http://mohawk:7777/pls/apex/f?p=1122:1:2989139092861589::::F101_CACHED_NTID,P1_STRADNAME,P2_STRADNAME:sw2802,sw2802,sw2802
    <5979 ms> HTTP_ORACLE_ECID(17)=(36)1202314439:10.30.96.8:528620:0:22,0
    <5979 ms> WEB_AUTHENT_PREFIX(19)=(1)
    <5979 ms> DAD_NAME(9)=(5)apex
    <5979 ms> DOC_ACCESS_PATH(16)=(5)docs
    <5979 ms> DOCUMENT_TABLE(15)=(23)wwv_flow_file_objects$
    <5979 ms> PATH_ALIAS(11)=(1)
    <5979 ms> REQUEST_CHARSET(16)=(9)AL32UTF8
    <5979 ms> REQUEST_IANA_CHARSET(21)=(6)UTF-8
    <5979 ms> SCRIPT_PREFIX(14)=(5)/pls
    <5979 ms>StrArrPosBind pos 2 Charset Id : 873
    <5979 ms>StrArrPosBind pos 3 Charset Id : 873
    <5979 ms>StrArrPosBind pos 11 Charset Id : 873
    <5984 ms>Execute: ORA-06550: line 25, column 3:
    PLS-00306: wrong number or types of arguments in call to 'SHOW'
    ORA-06550: line 25, column 3:
    PLS-00306: wrong number or types of arguments in call to 'SHOW'
    ORA-06550: line 25, column 3:
    PL/SQL: Statement ignored
    <5984 ms>(wppr.c,640) Execute:declare
    objnum NUMBER;
    objtyp NUMBER;
    prename VARCHAR2(31);
    name VARCHAR(31);
    subname VARCHAR(31);
    dblnk VARCHAR(31);
    begin
    dbms_utility.name_resolve(:objname, 1, prename, name, subname,
    dblnk, objtyp, objnum);
    if (name is null) then
    sys.wpiutl.subpparam(objnum,subname,null,prename,:2,:3,:4,:5,:6,:7);
    else
    sys.wpiutl.subpparam(objnum,name,subname,prename,:2,:3,:4,:5,:6,:7);
    end if;
    exception
    when others then :5 := 1;
    end;
    <5984 ms>(wppr.c,660) 6 parameter names
    <5984 ms>StrArrPosBind pos 2 Charset Id : 873
    <5984 ms>StrArrPosBind pos 3 Charset Id : 873
    <5984 ms>StrArrPosBind pos 4 Charset Id : 873
    <5985 ms>(wppr.c,704) misdefl=0, nenamei=0
    <5985 ms>(wppr.c,744) print list of name, types, typeflags
    <5985 ms>(wppr.c,797) parameter name: P_REQUEST, type: VARCHAR2, typeflags: 000
    <5985 ms>(wppr.c,797) parameter name: P_INSTANCE, type: VARCHAR2, typeflags: 000
    <5985 ms>(wppr.c,797) parameter name: P_FLOW_ID, type: VARCHAR2, typeflags: 000
    <5985 ms>(wppr.c,797) parameter name: P_FLOW_STEP_ID, type: VARCHAR2, typeflags: 000
    <5985 ms>(wppr.c,759) Array graduation (1=>4, 15=>32)
    <5985 ms>(wppr.c,797) parameter name: P_ARG_NAMES, type: FLOWS_030000.WWV_FLOW_GLOBAL.VC_ARR2, typeflags: 001
    <5985 ms>(wppr.c,759) Array graduation (1=>4, 1=>32)
    <5985 ms>(wppr.c,797) parameter name: P_ARG_VALUES, type: FLOWS_030000.WWV_FLOW_GLOBAL.VC_ARR2, typeflags: 001
    <5985 ms>(wppr.c,520) Pl/sql block parsed...
    <5985 ms>(wpdenv.c,1527) CGI Environment has 30 vars. Max name len 128, Max Value Len 128
    <5985 ms> PLSQL_GATEWAY(14)=(6)WebDb
    <5985 ms> GATEWAY_IVERSION(17)=(2)2
    <5985 ms> SERVER_SOFTWARE(16)=(60)Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server
    <5985 ms> GATEWAY_INTERFACE(18)=(8)CGI/1.1
    <5985 ms> SERVER_PORT(12)=(5)7777
    <5985 ms> SERVER_NAME(12)=(22)mohawk.ventura-uk.com
    <5985 ms> REQUEST_METHOD(15)=(5)POST
    <5985 ms> PATH_INFO(10)=(15)/wwv_flow.show
    <5985 ms> SCRIPT_NAME(12)=(10)/pls/apex
    <5985 ms> REMOTE_ADDR(12)=(9)10.0.2.0
    <5985 ms> SERVER_PROTOCOL(16)=(9)HTTP/1.1
    <5985 ms> REQUEST_PROTOCOL(17)=(5)HTTP
    <5985 ms> REMOTE_USER(12)=(17)APEX_PUBLIC_USER
    <5985 ms> HTTP_CONTENT_LENGTH(20)=(4)147
    <5985 ms> HTTP_CONTENT_TYPE(18)=(34)application/x-www-form-urlencoded
    <5985 ms> HTTP_USER_AGENT(16)=(75)Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
    <5985 ms> HTTP_HOST(10)=(12)mohawk:7777
    <5985 ms> HTTP_ACCEPT(12)=(4)*/*
    <5985 ms> HTTP_ACCEPT_ENCODING(21)=(14)gzip, deflate
    <5985 ms> HTTP_ACCEPT_LANGUAGE(21)=(6)en-gb
    <5985 ms> HTTP_REFERER(13)=(123)http://mohawk:7777/pls/apex/f?p=1122:1:2989139092861589::::F101_CACHED_NTID,P1_STRADNAME,P2_STRADNAME:sw2802,sw2802,sw2802
    <5985 ms> HTTP_ORACLE_ECID(17)=(36)1202314439:10.30.96.8:528620:0:22,0
    <5985 ms> WEB_AUTHENT_PREFIX(19)=(1)
    <5985 ms> DAD_NAME(9)=(5)apex
    <5985 ms> DOC_ACCESS_PATH(16)=(5)docs
    <5985 ms> DOCUMENT_TABLE(15)=(23)wwv_flow_file_objects$
    <5985 ms> PATH_ALIAS(11)=(1)
    <5985 ms> REQUEST_CHARSET(16)=(9)AL32UTF8
    <5985 ms> REQUEST_IANA_CHARSET(21)=(6)UTF-8
    <5985 ms> SCRIPT_PREFIX(14)=(5)/pls
    <5985 ms>StrArrPosBind pos 2 Charset Id : 873
    <5985 ms>StrArrPosBind pos 3 Charset Id : 873
    <5985 ms>StrArrPosBind pos 8 Charset Id : 873
    <5985 ms>StrArrPosBind pos 9 Charset Id : 873
    <5985 ms>StrArrPosBind pos 11 Charset Id : 873
    <5990 ms>ORA-6550 Execute ORA-06550: line 25, column 3:
    PLS-00306: wrong number or types of arguments in call to 'SHOW'
    ORA-06550: line 25, column 3:
    PLS-00306: wrong number or types of arguments in call to 'SHOW'
    ORA-06550: line 25, column 3:
    PL/SQL: Statement ignored
    <5991 ms>/pls/apex/wwv_flow.show HTTP-404 ORA-06550: line 25, column 3:
    PLS-00306: wrong number or types of arguments in call to 'SHOW'
    ORA-06550: line 25, column 3:
    PLS-00306: wrong number or types of arguments in call to 'SHOW'
    ORA-06550: line 25, column 3:
    PL/SQL: Statement ignored
    <5991 ms>(wpu.c,595) longjumping back to the beginning
    <5991 ms>(wpu.c,458) cleaning up before longjmp
    <5991 ms>(wpu.c,462) doing a rollback
    <5991 ms>(wpcs.c, 77) Executed 'rollback' (rc=0)
    <5991 ms>(wpcs.c, 77) Executed 'begin dbms_session.reset_package; end;' (rc=0)
    <5991 ms>(wpd.c,1820) Going to close cursor
    <5991 ms>DeinitCursor
    <5991 ms>(wpx.c,693) Shutdown has been called
    <5991 ms>(wpx.c,705) Going to logoff
    <5991 ms>Logoff: Pooling this connection
    <5991 ms>[ReqEndtime: 6/Feb/2008:16:13:59]
    <5991 ms>[ReqExecTime: 39 ms]
    <3240798667 ms>[ReqStartTime: 6/Feb/2008:16:14:06]
    <3240798667 ms>Request ID ReqID:528620_1202314446
    <3240798667 ms>Connecting to database with connect string : "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=mohawk)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=htmldb_p.world)))"
    <3240798667 ms>OpenCursor
    <3240798667 ms>(wpd.c,1765) Logged in as (unknown)
    <3240798667 ms>(wpx.c,598) Going to select...
    <3240798667 ms>(wpx.c,652) Have been asked to execute a request
    <3240798667 ms>(wppa.c,334) Building Arglist based on Parsed Content from WRB
    <3240798667 ms>(wppa.c,1016) Enter ParseUrlData
    <3240798667 ms>POST
    <3240798667 ms>(wpu.c,257) Attempting to read 147 bytes
    <3240798667 ms>(wpu.c,262) We read 147, had 0, to get 0 bytes
    <3240798667 ms>[headers begin]
    <3240798667 ms>[headers end]
    <3240798667 ms>p_request=APPLICATION_PROCESS%3Dget_Level23XML&p_instance=2989139092861589&p_flow_id=1122&p_flow_step_id=0&p_arg_names=TEMPORARY_ITEM&p_arg_values=
    <3240798667 ms>[form_data]
    <3240798667 ms>p_request=APPLICATION_PROCESS%3Dget_Level23XML&p_instance=2989139092861589&p_flow_id=1122&p_flow_step_id=0&p_arg_names=TEMPORARY_ITEM&p_arg_values=
    <3240798667 ms>(wppa.c,1523) indx = 6, entryCnt = 6
    <3240798667 ms>(wppa.c,1844) Listing distinct actual names:
    <3240798667 ms>(wppa.c,1846) p_request
    <3240798667 ms>(wppa.c,1846) p_instance
    <3240798667 ms>(wppa.c,1846) p_flow_id
    <3240798667 ms>(wppa.c,1846) p_flow_step_id
    <3240798667 ms>(wppa.c,1846) p_arg_names
    <3240798667 ms>(wppa.c,1846) p_arg_values
    <3240798668 ms>(wppa.c,1848) Listing actuals of array with large entries:
    <3240798668 ms>(wppa.c,1853) Listing distinct actual names and values:
    <3240798668 ms>(wppa.c,1885) p_request, type = 0, value (35) = APPLICATION_PROCESS=get_Level23XML
    <3240798668 ms>(wppa.c,1885) p_instance, type = 0, value (17) = 2989139092861589
    <3240798668 ms>(wppa.c,1885) p_flow_id, type = 0, value (5) = 1122
    <3240798668 ms>(wppa.c,1885) p_flow_step_id, type = 0, value (2) = 0
    <3240798668 ms>(wppa.c,1885) p_arg_names, type = 0, value (15) = TEMPORARY_ITEM
    <3240798668 ms>(wppa.c,1885) p_arg_values, type = 0, value (1) =
    <3240798668 ms>(wppa.c,429) Arglist built, 6 unique entries
    <3240798668 ms>(wpx.c,659) Going to wpprodb_OciDoBlock...
    <3240798668 ms>(wpd.c,2750) Cache enabled. Gathering cache information.
    <3240798668 ms>(wpd.c,2768) Language for this request is en-gb
    <3240798668 ms>(wpd.c,2819) Using user APEX_PUBLIC_USER for caching.
    <3240798668 ms>cache: Checking for user level hit
    <3240798668 ms>cache: Cache MISS user - /u01/app/oracle/product/10.2.0.1_html/Apache/modplsql/cache/plsql/073/9629
    <3240798668 ms>cache: Checking for system level hit
    <3240798668 ms>cache: Cache MISS system - /u01/app/oracle/product/10.2.0.1_html/Apache/modplsql/cache/plsql/sys/374/2755
    <3240798668 ms>(wppr.c,460) start working with wwv_flow.show
    <3240798668 ms>(wppr.c,1164) The CALL block: len=1115, bind_count=14
    declare
    rc__ number;
    start_time__ binary_integer;
    simple_list__ owa_util.vc_arr;
    complex_list__ owa_util.vc_arr;
    begin
    start_time__ := dbms_utility.get_time;
    owa.init_cgi_env(:n__,:nm__,:v__);
    htp.HTBUF_LEN := 63;
    null;
    null;
    simple_list__(1) := 'sys.%';
    simple_list__(2) := 'dbms\_%';
    simple_list__(3) := 'utl\_%';
    simple_list__(4) := 'owa\_%';
    simple_list__(5) := 'owa.%';
    simple_list__(6) := 'htp.%';
    simple_list__(7) := 'htf.%';
    simple_list__(8) := 'wpg_docload.%';
    if ((owa_match.match_pattern('wwv_flow.show', simple_list__, complex_list__, true))) then
    rc__ := 2;
    else
    null;
    null;
    wwv_flow.show(p_request=>:p_request,p_instance=>:p_instance,p_flow_id=>:p_flow_id,p_flow_step_id=>:p_flow_step_id,p_arg_names=>:p_arg_names,p_arg_values=>:p_arg_values);
    if (wpg_docload.is_file_download) then
    rc__ := 1;
    wpg_docload.get_download_file(:doc_info);
    null;
    null;
    null;
    commit;
    else
    rc__ := 0;
    null;
    null;
    null;
    commit;
    owa.get_page(:data__,:ndata__);
    end if;
    end if;
    :rc__ := rc__;
    :db_proc_time__ := dbms_utility.get_time - start_time__;
    end;
    <3240798668 ms>(wppr.c,520) Pl/sql block parsed...
    <3240798668 ms>(wpdenv.c,1527) CGI Environment has 30 vars. Max name len 128, Max Value Len 128
    <3240798668 ms> PLSQL_GATEWAY(14)=(6)WebDb
    <3240798668 ms> GATEWAY_IVERSION(17)=(2)3
    <3240798668 ms> SERVER_SOFTWARE(16)=(60)Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server
    <3240798668 ms> GATEWAY_INTERFACE(18)=(8)CGI/1.1
    <3240798668 ms> SERVER_PORT(12)=(5)7777
    <3240798668 ms> SERVER_NAME(12)=(22)mohawk.ventura-uk.com
    <3240798668 ms> REQUEST_METHOD(15)=(5)POST
    <3240798668 ms> PATH_INFO(10)=(15)/wwv_flow.show
    <3240798668 ms> SCRIPT_NAME(12)=(10)/pls/apex
    <3240798668 ms> REMOTE_ADDR(12)=(9)10.0.2.0
    <3240798668 ms> SERVER_PROTOCOL(16)=(9)HTTP/1.1
    <3240798668 ms> REQUEST_PROTOCOL(17)=(5)HTTP
    <3240798668 ms> REMOTE_USER(12)=(17)APEX_PUBLIC_USER
    <3240798668 ms> HTTP_CONTENT_LENGTH(20)=(4)147
    <3240798668 ms> HTTP_CONTENT_TYPE(18)=(34)application/x-www-form-urlencoded
    <3240798668 ms> HTTP_USER_AGENT(16)=(75)Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
    <3240798668 ms> HTTP_HOST(10)=(12)mohawk:7777
    <3240798668 ms> HTTP_ACCEPT(12)=(4)*/*
    <3240798668 ms> HTTP_ACCEPT_ENCODING(21)=(14)gzip, deflate
    <3240798668 ms> HTTP_ACCEPT_LANGUAGE(21)=(6)en-gb
    <3240798668 ms> HTTP_REFERER(13)=(123)http://mohawk:7777/pls/apex/f?p=1122:1:2989139092861589::::F101_CACHED_NTID,P1_STRADNAME,P2_STRADNAME:sw2802,sw2802,sw2802
    <3240798668 ms> HTTP_ORACLE_ECID(17)=(36)1202314446:10.30.96.8:528620:0:35,0
    <3240798668 ms> WEB_AUTHENT_PREFIX(19)=(1)
    <3240798668 ms> DAD_NAME(9)=(5)apex
    <3240798668 ms> DOC_ACCESS_PATH(16)=(5)docs
    <3240798668 ms> DOCUMENT_TABLE(15)=(23)wwv_flow_file_objects$
    <3240798668 ms> PATH_ALIAS(11)=(1)
    <3240798668 ms> REQUEST_CHARSET(16)=(9)AL32UTF8
    <3240798668 ms> REQUEST_IANA_CHARSET(21)=(6)UTF-8
    <3240798668 ms> SCRIPT_PREFIX(14)=(5)/pls
    <3240798668 ms>StrArrPosBind pos 2 Charset Id : 873
    <3240798668 ms>StrArrPosBind pos 3 Charset Id : 873
    <3240798668 ms>StrArrPosBind pos 11 Charset Id : 873
    <3240798673 ms>Execute: ORA-06550: line 25, column 3:
    PLS-00306: wrong number or types of arguments in call to 'SHOW'
    ORA-06550: line 25, column 3:
    PLS-00306: wrong number or types of arguments in call to 'SHOW'
    ORA-06550: line 25, column 3:
    PL/SQL: Statement ignored
    <3240798673 ms>(wppr.c,640) Execute:declare
    objnum NUMBER;
    objtyp NUMBER;
    prename VARCHAR2(31);
    name VARCHAR(31);
    subname VARCHAR(31);
    dblnk VARCHAR(31);
    begin
    dbms_utility.name_resolve(:objname, 1, prename, name, subname,
    dblnk, objtyp, objnum);
    if (name is null) then
    sys.wpiutl.subpparam(objnum,subname,null,prename,:2,:3,:4,:5,:6,:7);
    else
    sys.wpiutl.subpparam(objnum,name,subname,prename,:2,:3,:4,:5,:6,:7);
    end if;
    exception
    when others then :5 := 1;
    end;
    <3240798673 ms>(wppr.c,660) 6 parameter names
    <3240798673 ms>StrArrPosBind pos 2 Charset Id : 873
    <3240798673 ms>StrArrPosBind pos 3 Charset Id : 873
    <3240798673 ms>StrArrPosBind pos 4 Charset Id : 873
    <3240798674 ms>(wppr.c,704) misdefl=0, nenamei=0
    <3240798674 ms>(wppr.c,744) print list of name, types, typeflags
    <3240798674 ms>(wppr.c,797) parameter name: P_REQUEST, type: VARCHAR2, typeflags: 000
    <3240798674 ms>(wppr.c,797) parameter name: P_INSTANCE, type: VARCHAR2, typeflags: 000
    <3240798674 ms>(wppr.c,797) parameter name: P_FLOW_ID, type: VARCHAR2, typeflags: 000
    <3240798674 ms>(wppr.c,797) parameter name: P_FLOW_STEP_ID, type: VARCHAR2, typeflags: 000
    <3240798674 ms>(wppr.c,759) Array graduation (1=>4, 15=>32)
    <3240798674 ms>(wppr.c,797) parameter name: P_ARG_NAMES, type: FLOWS_030000.WWV_FLOW_GLOBAL.VC_ARR2, typeflags: 001
    <3240798674 ms>(wppr.c,759) Array graduation (1=>4, 1=>32)
    <3240798674 ms>(wppr.c,797) parameter name: P_ARG_VALUES, type: FLOWS_030000.WWV_FLOW_GLOBAL.VC_ARR2, typeflags: 001
    <3240798674 ms>(wppr.c,520) Pl/sql block parsed...
    <3240798674 ms>(wpdenv.c,1527) CGI Environment has 30 vars. Max name len 128, Max Value Len 128
    <3240798674 ms> PLSQL_GATEWAY(14)=(6)WebDb
    <3240798674 ms> GATEWAY_IVERSION(17)=(2)3
    <3240798674 ms> SERVER_SOFTWARE(16)=(60)Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server
    <3240798674 ms> GATEWAY_INTERFACE(18)=(8)CGI/1.1
    <3240798674 ms> SERVER_PORT(12)=(5)7777
    <3240798674 ms> SERVER_NAME(12)=(22)mohawk.ventura-uk.com
    <3240798674 ms> REQUEST_METHOD(15)=(5)POST
    <3240798674 ms> PATH_INFO(10)=(15)/wwv_flow.show
    <3240798674 ms> SCRIPT_NAME(12)=(10)/pls/apex
    <3240798674 ms> REMOTE_ADDR(12)=(9)10.0.2.0
    <3240798674 ms> SERVER_PROTOCOL(16)=(9)HTTP/1.1
    <3240798674 ms> REQUEST_PROTOCOL(17)=(5)HTTP
    <3240798674 ms> REMOTE_USER(12)=(17)APEX_PUBLIC_USER
    <3240798674 ms> HTTP_CONTENT_LENGTH(20)=(4)147
    <3240798674 ms> HTTP_CONTENT_TYPE(18)=(34)application/x-www-form-urlencoded
    <3240798674 ms> HTTP_USER_AGENT(16)=(75)Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
    <3240798674 ms> HTTP_HOST(10)=(12)mohawk:7777
    <3240798674 ms> HTTP_ACCEPT(12)=(4)*/*
    <3240798674 ms> HTTP_ACCEPT_ENCODING(21)=(14)gzip, deflate
    <3240798674 ms> HTTP_ACCEPT_LANGUAGE(21)=(6)en-gb
    <3240798674 ms> HTTP_REFERER(13)=(123)http://mohawk:7777/pls/apex/f?p=1122:1:2989139092861589::::F101_CACHED_NTID,P1_STRADNAME,P2_STRADNAME:sw2802,sw2802,sw2802
    <3240798674 ms> HTTP_ORACLE_ECID(17)=(36)1202314446:10.30.96.8:528620:0:35,0
    <3240798674 ms> WEB_AUTHENT_PREFIX(19)=(1)
    <3240798674 ms> DAD_NAME(9)=(5)apex
    <3240798674 ms> DOC_ACCESS_PATH(16)=(5)docs
    <3240798674 ms> DOCUMENT_TABLE(15)=(23)wwv_flow_file_objects$
    <3240798674 ms> PATH_ALIAS(11)=(1)
    <3240798674 ms> REQUEST_CHARSET(16)=(9)AL32UTF8
    <3240798674 ms> REQUEST_IANA_CHARSET(21)=(6)UTF-8
    <3240798674 ms> SCRIPT_PREFIX(14)=(5)/pls
    <3240798674 ms>StrArrPosBind pos 2 Charset Id : 873
    <3240798674 ms>StrArrPosBind pos 3 Charset Id : 873
    <3240798675 ms>StrArrPosBind pos 8 Charset Id : 873
    <3240798675 ms>StrArrPosBind pos 9 Charset Id : 873
    <3240798675 ms>StrArrPosBind pos 11 Charset Id : 873
    <3240798679 ms>ORA-6550 Execute ORA-06550: line 25, column 3:
    PLS-00306: wrong number or types of arguments in call to 'SHOW'
    ORA-06550: line 25, column 3:
    PLS-00306: wrong number or types of arguments in call to 'SHOW'
    ORA-06550: line 25, column 3:
    PL/SQL: Statement ignored
    <3240798680 ms>/pls/apex/wwv_flow.show HTTP-404 ORA-06550: line 25, column 3:
    PLS-00306: wrong number or types of arguments in call to 'SHOW'
    ORA-06550: line 25, column 3:
    PLS-00306: wrong number or types of arguments in call to 'SHOW'
    ORA-06550: line 25, column 3:
    PL/SQL: Statement ignored
    <3240798680 ms>(wpu.c,595) longjumping back to the beginning
    <3240798680 ms>(wpu.c,458) cleaning up before longjmp
    <3240798680 ms>(wpu.c,462) doing a rollback
    <3240798680 ms>(wpcs.c, 77) Executed 'rollback' (rc=0)
    <3240798680 ms>(wpcs.c, 77) Executed 'begin dbms_session.reset_package; end;' (rc=0)
    <3240798680 ms>(wpd.c,1820) Going to close cursor
    <3240798680 ms>DeinitCursor
    <3240798680 ms>(wpx.c,693) Shutdown has been called
    <3240798680 ms>(wpx.c,705) Going to logoff
    <3240798680 ms>Logoff: Pooling this connection
    <3240798680 ms>[ReqEndtime: 6/Feb/2008:16:14:06]
    <3240798680 ms>[ReqExecTime: 13 ms]
    <3240796167 ms>[ReqStartTime: 6/Feb/2008:16:23:03]
    <3240796167 ms>Request ID ReqID:528620_1202314983
    <3240796167 ms>Connecting to database with connect string : "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=mohawk)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=htmldb_p.world)))"
    <3240796167 ms>OpenCursor
    <3240796167 ms>(wpd.c,1765) Logged in as (unknown)
    <3240796168 ms>(wpx.c,598) Going to select...
    <3240796168 ms>(wpx.c,652) Have been asked to execute a request
    <3240796168 ms>(wppa.c,334) Building Arglist based on Parsed Content from WRB
    <3240796168 ms>(wppa.c,1016) Enter ParseUrlData
    <3240796168 ms>POST
    <3240796168 ms>(wpu.c,257) Attempting to read 162 bytes
    <3240796168 ms>(wpu.c,262) We read 162, had 0, to get 0 bytes
    <3240796168 ms>[headers begin]
    <3240796168 ms>[headers end]
    <3240796168 ms>p_request=APPLICATION_PROCESS%3Dget_Level23XML&p_instance=1776222419881214&p_flow_id=1122&p_flow_step_id=0&p_arg_names=TEMPORARY_ITEM&p_arg_values=Balance%20query
    <3240796168 ms>[form_data]
    <3240796168 ms>p_request=APPLICATION_PROCESS%3Dget_Level23XML&p_instance=1776222419881214&p_flow_id=1122&p_flow_step_id=0&p_arg_names=TEMPORARY_ITEM&p_arg_values=Balance%20query
    <3240796168 ms>(wppa.c,1523) indx = 6, entryCnt = 6
    <3240796168 ms>(wppa.c,1844) Listing distinct actual names:
    <3240796168 ms>(wppa.c,1846) p_request
    <3240796168 ms>(wppa.c,1846) p_instance
    <3240796168 ms>(wppa.c,1846) p_flow_id
    <3240796168 ms>(wppa.c,1846) p_flow_step_id
    <3240796168 ms>(wppa.c,1846) p_arg_names
    <3240796168 ms>(wppa.c,1846) p_arg_values
    <3240796168 ms>(wppa.c,1848) Listing actuals of array with large entries:
    <3240796168 ms>(wppa.c,1853) Listing distinct actual names and values:
    <3240796168 ms>(wppa.c,1885) p_request, type = 0, value (35) = APPLICATION_PROCESS=get_Level23XML
    <3240796168 ms>(wppa.c,1885) p_instance, type = 0, value (17) = 1776222419881214
    <3240796168 ms>(wppa.c,1885) p_flow_id, type = 0, value (5) = 1122
    <3240796168 ms>(wppa.c,1885) p_flow_step_id, type = 0, value (2) = 0
    <3240796168 ms>(wppa.c,1885) p_arg_names, type = 0, value (15) = TEMPORARY_ITEM
    <3240796168 ms>(wppa.c,1885) p_arg_values, type = 0, value (14) = Balance query
    <3240796168 ms>(wppa.c,429) Arglist built, 6 unique entries
    <3240796168 ms>(wpx.c,659) Going to wpprodb_OciDoBlock...
    <3240796168 ms>(wpd.c,2750) Cache enabled. Gathering cache information.
    <3240796168 ms>(wpd.c,2768) Language for this request is en-gb
    <3240796168 ms>(wpd.c,2819) Using user APEX_PUBLIC_USER for caching.
    <3240796168 ms>cache: Checking for user level hit
    <3240796168 ms>cache: Cache MISS user - /u01/app/oracle/product/10.2.0.1_html/Apache/modplsql/cache/plsql/022/4760
    <3240796168 ms>cache: Checking for system level hit
    <3240796168 ms>cache: Cache MISS system - /u01/app/oracle/product/10.2.0.1_html/Apache/modplsql/cache/plsql/sys/341/1694
    <3240796168 ms>(wppr.c,460) start working with wwv_flow.show
    <3240796168 ms>(wppr.c,1164) The CALL block: len=1115, bind_count=14
    declare
    rc__ number;
    start_time__ binary_integer;
    simple_list__ owa_util.vc_arr;
    complex_list__ owa_util.vc_arr;
    begin
    start_time__ := dbms_utility.get_time;
    owa.init_cgi_env(:n__,:nm__,:v__);
    htp.HTBUF_LEN := 63;
    null;
    null;
    simple_list__(1) := 'sys.%';
    simple_list__(2) := 'dbms\_%';
    simple_list__(3) := 'utl\_%';
    simple_list__(4) := 'owa\_%';
    simple_list__(5) := 'owa.%';
    simple_list__(6) := 'htp.%';
    simple_list__(7) := 'htf.%';
    simple_list__(8) := 'wpg_docload.%';
    if ((owa_match.match_pattern('wwv_flow.show', simple_list__, complex_list__, true))) then
    rc__ := 2;
    else
    null;
    null;
    wwv_flow.show(p_request=>:p_request,p_instance=>:p_instance,p_flow_id=>:p_flow_id,p_flow_step_id=>:p_flow_step_id,p_arg_names=>:p_arg_names,p_arg_values=>:p_arg_values);
    if (wpg_docload.is_file_download) then
    rc__ := 1;
    wpg_docload.get_download_file(:doc_info);
    null;
    null;
    null;
    commit;
    else
    rc__ := 0;
    null;
    null;
    null;
    commit;
    owa.get_page(:data__,:ndata__);
    end if;
    end if;
    :rc__ := rc__;
    :db_proc_time__ := dbms_utility.get_time - start_time__;
    end;
    <3240796168 ms>(wppr.c,520) Pl/sql block parsed...
    <3240796168 ms>(wpdenv.c,1527) CGI Environment has 30 vars. Max name len 128, Max Value Len 128
    <3240796168 ms> PLSQL_GATEWAY(14)=(6)WebDb
    <3240796168 ms> GATEWAY_IVERSION(17)=(2)3
    <3240796168 ms> SERVER_SOFTWARE(16)=(60)Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server
    <3240796168 ms> GATEWAY_INTERFACE(18)=(8)CGI/1.1
    <3240796168 ms> SERVER_PORT(12)=(5)7777
    <3240796168 ms> SERVER_NAME(12)=(22)mohawk.ventura-uk.com
    <3240796168 ms> REQUEST_METHOD(15)=(5)POST
    <3240796168 ms> PATH_INFO(10)=(15)/wwv_flow.show
    <3240796168 ms> SCRIPT_NAME(12)=(10)/pls/apex
    <3240796168 ms> REMOTE_ADDR(12)=(12)10.0.10.222
    <3240796168 ms> SERVER_PROTOCOL(16)=(9)HTTP/1.1
    <3240796168 ms> REQUEST_PROTOCOL(17)=(5)HTTP
    <3240796168 ms> REMOTE_USER(12)=(17)APEX_PUBLIC_USER
    <3240796168 ms> HTTP_CONTENT_LENGTH(20)=(4)162
    <3240796168 ms> HTTP_CONTENT_TYPE(18)=(34)application/x-www-form-urlencoded
    <3240796168 ms> HTTP_USER_AGENT(16)=(75)Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
    <3240796168 ms> HTTP_HOST(10)=(12)mohawk:7777
    <3240796168 ms> HTTP_ACCEPT(12)=(4)*/*
    <3240796168 ms> HTTP_ACCEPT_ENCODING(21)=(14)gzip, deflate
    <3240796168 ms> HTTP_ACCEPT_LANGUAGE(21)=(6)en-gb
    <3240796168 ms> HTTP_REFERER(13)=(61)http://mohawk:7777/pls/apex/f?p=1122:1:1776222419881214:::::
    <3240796168 ms> HTTP_ORACLE_ECID(17)=(36)1202314983:10.30.96.8:528620:0:63,0
    <3240796168 ms> WEB_AUTHENT_PREFIX(19)=(1)
    <3240796168 ms> DAD_NAME(9)=(5)apex
    <3240796168 ms> DOC_ACCESS_PATH(16)=(5)docs
    <3240796168 ms> DOCUMENT_TABLE(15)=(23)wwv_flow_file_objects$
    <3240796168 ms> PATH_ALIAS(11)=(1)
    <3240796168 ms> REQUEST_CHARSET(16)=(9)AL32UTF8
    <3240796168 ms> REQUEST_IANA_CHARSET(21)=(6)UTF-8
    <3240796168 ms> SCRIPT_PREFIX(14)=(5)/pls
    <3240796168 ms>StrArrPosBind pos 2 Charset Id : 873
    <3240796168 ms>StrArrPosBind pos 3 Charset Id : 873
    <3240796168 ms>StrArrPosBind pos 11 Charset Id : 873
    <3240796174 ms>Execute: ORA-06550: line 25, column 3:
    PLS-00306: wrong number or types of arguments in call to 'SHOW'
    ORA-06550: line 25, column 3:
    PLS-00306: wrong number or types of arguments in call to 'SHOW'
    ORA-06550: line 25, column 3:
    PL/SQL: Statement ignored
    <3240796174 ms>(wppr.c,640) Execute:declare
    objnum NUMBER;
    objtyp NUMBER;
    prename VARCHAR2(31);
    name VARCHAR(31);
    subname VARCHAR(31);
    dblnk VARCHAR(31);
    begin
    dbms_utility.name_resolve(:objname, 1, prename, name, subname,
    dblnk, objtyp, objnum);
    if (name is null) then
    sys.wpiutl.subpparam(objnum,subname,null,prename,:2,:3,:4,:5,:6,:7);
    else
    sys.wpiutl.subpparam(objnum,name,subname,prename,:2,:3,:4,:5,:6,:7);
    end if;
    exception
    when others then :5 := 1;
    end;
    <3240796174 ms>(wppr.c,660) 6 parameter names
    <3240796174 ms>StrArrPosBind pos 2 Charset Id : 873
    <3240796174 ms>StrArrPosBind pos 3 Charset Id : 873
    <3240796174 ms>StrArrPosBind pos 4 Charset Id : 873
    <3240796176 ms>(wppr.c,704) misdefl=0, nenamei=0
    <3240796176 ms>(wppr.c,744) print list of name, types, typeflags
    <3240796176 ms>(wppr.c,797) parameter name: P_REQUEST, type: VARCHAR2, typeflags: 000
    <3240796176 ms>(wppr.c,797) parameter name: P_INSTANCE, type: VARCHAR2, typeflags: 000
    <3240796176 ms>(wppr.c,797) parameter name: P_FLOW_ID, type: VARCHAR2, typeflags: 000
    <3240796176 ms>(wppr.c,797) parameter name: P_FLOW_STEP_ID, type: VARCHAR2, typeflags: 000
    <3240796176 ms>(wppr.c,759) Array graduation (1=>4, 15=>32)
    <3240796176 ms>(wppr.c,797) parameter name: P_ARG_NAMES, type: FLOWS_030000.WWV_FLOW_GLOBAL.VC_ARR2, typeflags: 001
    <3240796176 ms>(wppr.c,759) Array graduation (1=>4, 14=>32)
    <3240796176 ms>(wppr.c,797) parameter name: P_ARG_VALUES, type: FLOWS_030000.WWV_FLOW_GLOBAL.VC_ARR2, typeflags: 001
    <3240796176 ms>(wppr.c,520) Pl/sql block parsed...
    <3240796176 ms>(wpdenv.c,1527) CGI Environment has 30 vars. Max name len 128, Max Value Len 128
    <3240796176 ms> PLSQL_GATEWAY(14)=(6)WebDb
    <3240796176 ms> GATEWAY_IVERSION(17)=(2)3
    <3240796176 ms> SERVER_SOFTWARE(16)=(60)Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server
    <3240796176 ms> GATEWAY_INTERFACE(18)=(8)CGI/1.1
    <3240796176 ms> SERVER_PORT(12)=(5)7777
    <3240796176 ms> SERVER_NAME(12)=(22)mohawk.ventura-uk.com
    <3240796176 ms> REQUEST_METHOD(15)=(5)POST
    <3240796176 ms> PATH_INFO(10)=(15)/wwv_flow.show
    <3240796176 ms> SCRIPT_NAME(12)=(10)/pls/apex
    <3240796176 ms> REMOTE_ADDR(12)=(12)10.0.10.222
    <3240796176 ms> SERVER_PROTOCOL(16)=(9)HTTP/1.1
    <3240796176 ms> REQUEST_PROTOCOL(17)=(5)HTTP
    <3240796176 ms> REMOTE_USER(12)=(17)APEX_PUBLIC_USER
    <3240796176 ms> HTTP_CONTENT_LENGTH(20)=(4)162
    <3240796176 ms> HTTP_CONTENT_TYPE(18)=(34)application/x-www-form-urlencoded
    <3240796176 ms> HTTP_USER_AGENT(16)=(75)Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
    <3240796176 ms> HTTP_HOST(10)=(12)mohawk:7777
    <3240796176 ms> HTTP_ACCEPT(12)=(4)*/*
    <3240796176 ms> HTTP_ACCEPT_ENCODING(21)=(14)gzip, deflate
    <3240796176 ms> HTTP_ACCEPT_LANGUAGE(21)=(6)en-gb
    <3240796176 ms> HTTP_REFERER(13)=(61)http://mohawk:7777/pls/apex/f?p=1122:1:1776222419881214:::::
    <3240796176 ms> HTTP_ORACLE_ECID(17)=(36)1202314983:10.30.96.8:528620:0:63,0
    <3240796176 ms> WEB_AUTHENT_PREFIX(19)=(1)
    <3240796176 ms> DAD_NAME(9)=(5)apex
    <3240796176 ms> DOC_ACCESS_PATH(16)=(5)docs
    <3240796176 ms> DOCUMENT_TABLE(15)=(23)wwv_flow_file_objects$
    <3240796176 ms> PATH_ALIAS(11)=(1)
    <3240796176 ms> REQUEST_CHARSET(16)=(9)AL32UTF8
    <3240796176 ms> REQUEST_IANA_CHARSET(21)=(6)UTF-8
    <3240796176 ms> SCRIPT_PREFIX(14)=(5)/pls
    <3240796176 ms>StrArrPosBind pos 2 Charset Id : 873
    <3240796176 ms>StrArrPosBind pos 3 Charset Id : 873
    <3240796176 ms>StrArrPosBind pos 8 Charset Id : 873
    <3240796176 ms>StrArrPosBind pos 9 Charset Id : 873
    <3240796176 ms>StrArrPosBind pos 11 Charset Id : 873
    <3240796181 ms>ORA-6550 Execute ORA-06550: line 25, column 3:
    PLS-00306: wrong number or types of arguments in call to 'SHOW'
    ORA-06550: line 25, column 3:
    PLS-00306: wrong number or types of arguments in call to 'SHOW'
    ORA-06550: line 25, column 3:
    PL/SQL: Statement ignored
    <3240796181 ms>/pls/apex/wwv_flow.show HTTP-404 ORA-06550: line 25, column 3:
    PLS-00306: wrong number or types of arguments in call to 'SHOW'
    ORA-06550: line 25, column 3:
    PLS-00306: wrong number or types of arguments in call to 'SHOW'
    ORA-06550: line 25, column 3:
    PL/SQL: Statement ignored
    <3240796181 ms>(wpu.c,595) longjumping back to the beginning
    <3240796181 ms>(wpu.c,458) cleaning up before longjmp
    <3240796181 ms>(wpu.c,462) doing a rollback
    <3240796181 ms>(wpcs.c, 77) Executed 'rollback' (rc=0)
    <3240796182 ms>(wpcs.c, 77) Executed 'begin dbms_session.reset_package; end;' (rc=0)
    <3240796182 ms>(wpd.c,1820) Going to close cursor
    <3240796182 ms>DeinitCursor
    <3240796182 ms>(wpx.c,693) Shutdown has been called
    <3240796182 ms>(wpx.c,705) Going to logoff
    <3240796182 ms>Logoff: Pooling this connection
    <3240796182 ms>[ReqEndtime: 6/Feb/2008:16:23:03]
    <3240796182 ms>[ReqExecTime: 15 ms]

    Loanshark, this forum is for Oracle Portal caching questions, try posting your question in the APEX forum.
    Cheers,
    Mick.

  • Oracle XE htp-package limitations?

    Hello,
    I'm developing a web application on my laptop Windows XP pro, Oracle XE 10 + apache + mod_owa. I had some serious issues with htp.p -calls, I'd keep getting this error message, no matter how small I made the htp.p -arguments
    Error 6502 calling procedure:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "SYS.HTP", line 1536
    ....I then started to wonder about this, and so I copied my packages to another machine (Windows server 2003, Oracle 10g, apache + mod_owa), compiled them and my error disappeared !
    Now is this some sort of limitation in Oracle XE, or what?

    Funny.. I'm sure that I submitted my response to this yesterday - but it does not show.
    Anyway, here it is again. No, there is no limitation I'm aware of - having tested the code below in XE. I have a procedure called WebCall that simulates a mod_plsql call. I've used this to test:
    SQL> create or replace type TStrings is table of varchar2(4000);
      2  /                                                         
    Type created.
    SQL>
    SQL> /
    Type created.
    SQL> create or replace procedure WebTest is
      2          cookie  OWA_COOKIE.cookie;   
      3  begin                                
      4          OWA_UTIL.mime_header('text/html', TRUE );
      5          cookie := OWA_COOKIE.get( 'SOME_CUSTOM_COOKIE' );
      6                                                          
      7          HTP.prn( 'What do you want, universe? (Klingon for "hello world")' );
      8          HTP.prn( '<hr>' );                                                  
      9          HTP.prn( rpad('0',3000,'1') );                                      
    10          HTP.prn( '<hr>' );                                                  
    11                                                                              
    12          if cookie.vals.First is NULL then                                   
    13                  HTP.prn( 'Cookie [SOME_CUSTOM_COOKIE] is not set' );        
    14          else                                                                
    15                  HTP.prn( 'Cookie [SOME_CUSTOM_COOKIE] is set to "'|| cookie.vals( cookie.vals.First )||'"' );
    16          end if;                                                                                             
    17                                                                                                              
    18          HTP.prn( '<hr>' );                                                                                  
    19                                                                                                              
    20          HTP.prn( 'You are connection from web browser: '|| OWA_UTIL.get_cgi_env( 'HTTP_USER_AGENT' ) );     
    21  end;                                                                                                        
    22  /                                                                                                           
    Procedure created.
    SQL>
    SQL> create or replace function WebCall( procName varchar2, queryString varchar2 default null ) return TStrings pipelined is
      2          nameList        OWA.vc_arr;                                                                                   
      3          valueList       OWA.vc_arr;                                                                                   
      4          htpBuffer       HTP.htbuf_arr;                                                                                
      5          bufRows         integer         := 99999999;                                                                  
      6          rc              integer;                                                                                      
      7  begin                                                                                                                 
      8          -- name-value list (typical CGI variables)                                                                    
      9          nameList(1) := 'HTTP_COOKIE';                                                                                 
    10          nameList(2) := 'HTTP_HOST';                                                                                   
    11          nameList(3) := 'HTTP_USER_AGENT';                                                                             
    12          nameList(4) := 'QUERY_STRING';                                                                                
    13          nameList(5) := 'REMOTE_ADDR';                                                                                 
    14          nameList(6) := 'REQUEST_METHOD';                                                                              
    15          nameList(7) := 'QUEST_URI';                                                                                   
    16                                                                                                                        
    17          valueList(1) := 'SOME_CUSTOM_COOKIE=123; SOME_OTHER_COOKIE=foo';                                              
    18          valueList(2) := 'localhost';                                                                                  
    19          valueList(3) := 'Mozilla/5.0; PL/SQL Interface';                                                              
    20          valueList(4) := nvl( queryString, 'param1=value1&pama2=value3' );                                             
    21          valueList(5) := 'localhost';                                                                                  
    22          valueList(6) := 'GET';                                                                                        
    23          valueList(7) := '/custom-web-service';                                                                        
    24                                                                                                                        
    25          -- initiliase OWA and configure a basic CGI environment                                                       
    26          DBMS_SESSION.reset_package;                     -- reset PL/SQL PGA maintaining package state                 
    27          rc := OWA.Initialize;                                                                                         
    28          OWA.init_cgi_env( 7, nameList, valueList );                                                                   
    29          htp.HTBUF_LEN := 255;                                                                                         
    30                                                                                                                        
    31          -- now call the web enabled PL/SQL procedure                                                                  
    32          execute immediate 'begin '||procName||'; end;';                                                               
    33                                                                                                                        
    34          -- return the output as rows                                                                                  
    35          OWA.get_page( htpBuffer, bufRows );                                                                           
    36          for i in 1..htpBuffer.Count                                                                                   
    37          loop                                                                                                          
    38                  PIPE ROW( htpBuffer(i) );                                                                             
    39          end loop;                                                                                                     
    40                                                                                                                        
    41          return;                                                                                                       
    42  end;                                                                                                                  
    43  /                                                                                                                     
    Function created.
    SQL> show errors
    No errors.     
    SQL>           
    SQL> col HTML_LINE format a80
    SQL>                        
    SQL> select                 
      2          rownum          as LINE_NO,
      3          b.column_value  as HTML_LINE
      4  from       TABLE( WebCall('WebTest') ) b
      5  /                                      
       LINE_NO HTML_LINE
             1 Content-type: text/html                                                        
             2 Content-length: 3176                                                           
             3                                                                                
             4 What do you want, universe? (Klingon for "hello world")                        
             5 <hr>                                                                           
             6 01111111111111111111111111111111111111111111111111111111111111111111111111111111
               11111111111111111111111111111111111111111111111111111111111111111111111111111111
               11111111111111111111111111111111111111111111111111111111111111111111111111111111
               111111111111111                                                                
    ..snipped..
            17 11111111111111111111111111111111111111111111111111111111111111111111111111111111
               11111111111111111111111111111111111111111111111111111111111111111111111111111111
               11111111111111111111111111111111111
            18 <hr>
            19 Cookie [SOME_CUSTOM_COOKIE] is set to "123"
            20 <hr>
            21 You are connection from web browser: Mozilla/5.0; PL/SQL Interface
    21 rows selected.
    SQL>The WebTest procedure writes a 3000 character string via HTP.PRN. It works fine.
    As it accepts a varchar2 parameter, it should be capable of accepting 32KB strings. Note that the size is byte size and not char size. When using a db with a multibyte char set, a single char consumes more than 1 byte of space and then obviously less chars can be send in a 32KB block.
    Also note that the limit for the SQL engine for varchar2 is 4000 bytes and not 32KB like the PL engine.
    Playing around with the WebCall code, the only time I ran into string size errors, was when changing the HTBUF_LEN parameter to greater than 255. My guess this is a limitation of how the call interface between OWA and mod_plsql has been designed. But this does not limit the actual size of the HTP.PRN to 255 - only the way the data is exchanged (note that the pipeline function returns the data from the HTP buffer in 255 char chunks.

  • Trying to understand...

    ... about invalid packages and when they can still be used without error. Let me explain with an example....
    SQL> CREATE TABLE t (val NUMBER);
    Table created.
    SQL>
    SQL> INSERT INTO t SELECT ROWNUM FROM DUAL CONNECT BY ROWNUM <= 200;
    200 rows created.
    SQL> CREATE OR REPLACE PACKAGE test2 IS
      2    PROCEDURE do_test2;
      3  END test2;
      4  /
    Package created.
    SQL> CREATE OR REPLACE PACKAGE BODY test2 IS
      2    PROCEDURE do_test2 IS
      3      CURSOR cur_test IS
      4        SELECT * FROM t;
      5
      6      tot NUMBER := 0;
      7    BEGIN
      8      FOR i IN cur_test
      9      LOOP
    10        tot := tot + i.val;
    11      END LOOP;
    12      DBMS_OUTPUT.PUT_LINE('Total: '||tot);
    13    END;
    14  END test2;
    15  /
    Package body created.
    SQL> set serveroutput on
    SQL> exec test2.do_test2;
    Total: 20100
    PL/SQL procedure successfully completed.
    -- rename the table used by the package to invalidate it.
    SQL> RENAME t TO t2;
    Table renamed.
    SQL> SELECT object_type, status FROM USER_OBJECTS WHERE object_name = 'TEST2';
    OBJECT_TYPE         STATUS
    PACKAGE             VALID
    PACKAGE BODY        INVALID
    -- Rename the table back, the status is still invalid as the package hasn't been recompiled yet.
    SQL> RENAME t2 TO t;
    Table renamed.
    SQL> SELECT object_type, status FROM USER_OBJECTS WHERE object_name = 'TEST2';
    OBJECT_TYPE         STATUS
    PACKAGE             VALID
    PACKAGE BODY        INVALID
    -- Execute the procedure in the package and it is executing ok...
    SQL> exec test2.do_test2;
    Total: 20100
    PL/SQL procedure successfully completed.
    -- And upon checking the status of the package after it has automatically been compiled.
    SQL> SELECT object_type, status FROM USER_OBJECTS WHERE object_name = 'TEST2';
    OBJECT_TYPE         STATUS
    PACKAGE             VALID
    PACKAGE BODY        VALID
    SQL>But with my real package and code....
    SQL> SELECT object_type, status FROM USER_OBJECTS WHERE object_name = 'PKG_MAPPING';
    OBJECT_TYPE         STATUS
    PACKAGE             VALID
    PACKAGE BODY        VALID
    -- Execute the first step of the process in my package which drops and recreates a large materialized view and refreshes a smaller one using the DBMS_MVIEW package
    SQL> exec pkg_mapping.pre_mapping(1);
    PL/SQL procedure successfully completed.
    -- The status of the package has now been invalidated by that processing as expected...
    SQL> SELECT object_type, status FROM USER_OBJECTS WHERE object_name = 'PKG_MAPPING';
    OBJECT_TYPE         STATUS
    PACKAGE             VALID
    PACKAGE BODY        INVALID
    -- If it try to run the second stage of the process I get the following error...
    SQL> exec pkg_mapping.pre_mapping(2);
    BEGIN pkg_mapping.pre_mapping(2); END;
    ERROR at line 1:
    ORA-04068: existing state of packages has been discarded
    ORA-04061: existing state of package body "CRISP_INTELL.PKG_MAPPING" has been invalidated
    ORA-06508: PL/SQL: could not find program unit being called: "CRISP_INTELL.PKG_MAPPING"
    ORA-06512: at line 1
    -- After this error, the state of the package is still invalid...
    SQL> SELECT object_type, status FROM USER_OBJECTS WHERE object_name = 'PKG_MAPPING';
    OBJECT_TYPE         STATUS
    PACKAGE             VALID
    PACKAGE BODY        INVALID
    -- ... but running it a second time, it executes correctly and the package becomes valid in the process...
    SQL> exec pkg_mapping.pre_mapping(2);
    PL/SQL procedure successfully completed.
    SQL>So I know I must be missing something here. What is it that determines that you get the "ORA-04068: existing state of packages has been discarded" error rather than it just attempting to compile and run the procedure in the package, as happened in the test example?
    Anybody any ideas?

    I guess the only way to get around this is to take the package level variables out of the package and put those into a seperate packageif the global variables are not required across multiple client calls, you can avoid it like below:
    SQL> CREATE TABLE t (val NUMBER);
    Table created.
    SQL>
    SQL> INSERT INTO t SELECT ROWNUM FROM DUAL CONNECT BY ROWNUM <= 200;
    200 rows created.
    SQL>
    SQL> CREATE OR REPLACE PACKAGE test2 IS
      2    PROCEDURE do_test2;
      3  END test2;
      4  /
    Package created.
    SQL> show errors
    No errors.
    SQL> CREATE OR REPLACE PACKAGE BODY test2 IS
      2    x NUMBER ;
      3    PROCEDURE do_test2 IS
      4      CURSOR cur_test IS
      5        SELECT * FROM t;
      6
      7      tot NUMBER := 0;
      8    BEGIN
      9      FOR i IN cur_test
    10      LOOP
    11        tot := tot + i.val;
    12      END LOOP;
    13      DBMS_OUTPUT.PUT_LINE('Total: '||tot);
    14    END;
    15  END test2;
    16  /
    Package body created.
    SQL> show errors
    No errors.
    SQL>
    SQL> set serveroutput on
    SQL> exec test2.do_test2;
    Total: 20100
    PL/SQL procedure successfully completed.
    SQL> RENAME t TO t2;
    Table renamed.
    SQL> SELECT object_type, status FROM USER_OBJECTS WHERE object_name = 'TEST2';
    OBJECT_TYPE         STATUS
    PACKAGE             VALID
    PACKAGE BODY        INVALID
    2 rows selected.
    SQL> RENAME t2 TO t;
    Table renamed.
    SQL> SELECT object_type, status FROM USER_OBJECTS WHERE object_name = 'TEST2';
    OBJECT_TYPE         STATUS
    PACKAGE             VALID
    PACKAGE BODY        INVALID
    2 rows selected.
    SQL> exec test2.do_test2;
    BEGIN test2.do_test2; END;
    ERROR at line 1:
    ORA-04068: existing state of packages has been discarded
    ORA-04061: existing state of package body "KKISHORE.TEST2" has been invalidated
    ORA-06508: PL/SQL: could not find program unit being called: "KKISHORE.TEST2"
    ORA-06512: at line 1
    SQL> SELECT object_type, status FROM USER_OBJECTS WHERE object_name = 'TEST2';
    OBJECT_TYPE         STATUS
    PACKAGE             VALID
    PACKAGE BODY        INVALID
    2 rows selected.
    SQL>
    SQL> DROP TABLE t ;
    Table dropped.
    SQL> CREATE TABLE t (val NUMBER);
    Table created.
    SQL>
    SQL> INSERT INTO t SELECT ROWNUM FROM DUAL CONNECT BY ROWNUM <= 200;
    200 rows created.
    SQL>
    SQL> CREATE OR REPLACE PACKAGE test2 IS
      2    PROCEDURE do_test2;
      3  END test2;
      4  /
    Package created.
    SQL> show errors
    No errors.
    SQL> CREATE OR REPLACE PACKAGE BODY test2 IS
      2    x NUMBER ;
      3    PROCEDURE do_test2 IS
      4      CURSOR cur_test IS
      5        SELECT * FROM t;
      6
      7      tot NUMBER := 0;
      8    BEGIN
      9      FOR i IN cur_test
    10      LOOP
    11        tot := tot + i.val;
    12      END LOOP;
    13      DBMS_OUTPUT.PUT_LINE('Total: '||tot);
    14    END;
    15  BEGIN
    16 dbms_session.reset_package ;
    17  END test2;
    18  /
    Package body created.
    SQL> show errors
    No errors.
    SQL>
    SQL> set serveroutput on
    SQL> exec test2.do_test2;
    PL/SQL procedure successfully completed.
    SQL> RENAME t TO t2;
    Table renamed.
    SQL> SELECT object_type, status FROM USER_OBJECTS WHERE object_name = 'TEST2';
    OBJECT_TYPE         STATUS
    PACKAGE             VALID
    PACKAGE BODY        INVALID
    2 rows selected.
    SQL> RENAME t2 TO t;
    Table renamed.
    SQL> SELECT object_type, status FROM USER_OBJECTS WHERE object_name = 'TEST2';
    OBJECT_TYPE         STATUS
    PACKAGE             VALID
    PACKAGE BODY        INVALID
    2 rows selected.
    SQL> exec test2.do_test2;
    PL/SQL procedure successfully completed.
    SQL> SELECT object_type, status FROM USER_OBJECTS WHERE object_name = 'TEST2';
    OBJECT_TYPE         STATUS
    PACKAGE             VALID
    PACKAGE BODY        VALID
    2 rows selected.
    SQL>

  • Mod_plsql: ORA-942 Execute(Temp BLOB) ORA-00942: table or view does not exi

    mod_plsql: ORA-942 Execute(Temp BLOB) ORA-00942: table or view does not exist
    This is the error I get in the Apache log. On the page:
    "The requested URL /pls/apex/wwv_flow.accept was not found on this server."
    I am sure this is just a configuration issue. I installed v1.6 with the http server off the companion cd with the db (10.2.0.1). After I had it working (did not test everything) I upgraded to 3.0.1.
    I get this message when I am trying to import an application that I just exported! I am testing this for pushing code up to our production environment.
    My dads.conf file looks like:
    Alias /i/ /oracle/product/apps/htmldb/images/
    AddType text/xml xbl
    AddType text/x-components htc
    <Location /pls/apex>
    SetHandler pls_handler
    Order deny,allow
    Allow from all
    AllowOverride None
    PlsqlDatabaseUsername APEX_PUBLIC_USER
    PlsqlDatabasePassword xxxxxx
    PlsqlDatabaseConnectString 192.168.2.195:1521:idpdev ServiceNameFormat
    PlsqlDefaultPage apex
    PlsqlDocumentTablename wwv_flow_file_object$
    PlsqlDocumentPath docs
    PlsqlDocumentProcedure wwv_flow_file_mgr.process_download
    PlsqlAuthenticationMode Basic
    PlsqlNLSLanguage AMERICAN_AMERICA.WE8ISO8859P1
    </Location>
    marvel.conf file is empty
    There is a log file for pl/sql.... it has the following text in it that seemed pertinent: Attempting to logon with '(unknown)'
    Also a log that says this and seems to have a "special character" in it that may be causing an issue:
    <1133864024 ms>6565646261636b206f6e a70726f6d707420202e2e2e646f6e65 a
    <1133864024 ms>-----------------------------2444716671664
    <1133864024 ms>^M
    <1133864024 ms>UploadBlobDoc: readahead 27 bytes into 82f5e5c
    <1133864024 ms>UploadBlobDoc : Inserting piece OCI_NEXT_PIECE
    <1133864024 ms>UploadBlobDoc:Attempt to write 2048 bytes(offset 249857)
    <1133864024 ms>UploadBlobDoc:OCILobWrite for 2048 bytes (offset 249857)
    <1133864024 ms>UploadBlobDoc: Read-Ahead buf 82f5e5c has 27 bytes
    <1133864024 ms>UploadBlobDoc : Inserting piece OCI_LAST_PIECE
    <1133864024 ms>UploadBlobDoc:Attempt to write 27 bytes(offset 251905)
    <1133864024 ms>UploadBlobDoc:OCILobWrite finished for 27 bytes
    <1133864024 ms>ORA-942 Execute(Temp BLOB) ORA-00942: table or view does not exist
    <1133864024 ms>Stale Connection due to Oracle error 942
    <1133864024 ms>/pls/apex/wwv_flow.accept HTTP-404 ORA-00942: table or view does not exist
    <1133864024 ms>(wpu.c,594) longjumping back to the beginning
    <1133864024 ms>(wpu.c,457) cleaning up before longjmp
    <1133864024 ms>(wpu.c,461) doing a rollback
    <1133864024 ms>(wpcs.c, 76) Executed 'rollback' (rc=0)
    <1133864024 ms>(wpcs.c, 76) Executed 'begin dbms_session.reset_package; end;' (rc=0)
    <1133864024 ms>(wpd.c,1816) Going to close cursor
    <1133864024 ms>Freed BLOB
    <1133864024 ms>DeinitCursor
    <1133864024 ms>(wpx.c,690) Shutdown has been called
    <1133864024 ms>(wpx.c,702) Going to logoff
    <1133864024 ms>Logoff: Closing connection due to stale connection
    <1133864034 ms>[ReqEndtime: 2/Oct/2007:15:38:11]
    <1133864034 ms>[ReqExecTime: 80 ms]
    I did go in and update the permissions to the wwv_flow_file_objects$ table to give PUBLIC full access to that table to see if that was the problem... it wasn't.
    Probably information overload, but just wanted to be thorough. Anyone have any ideas?

    I also have another issue... probably more of a clarification....
    I run the following to stop the process:
    "/oracle/product/apps/opmn/bin/opmnctl stopproc ias-component=HTTP_Server"
    then
    "/oracle/product/apps/opmn/bin/opmnctl startproc ias-component=HTTP_Server"
    But, at that point, it says that opmn is not running.
    So I try:
    "/oracle/product/apps/opmn/bin/opmnctl stopall"
    then
    "/oracle/product/apps/opmn/bin/opmnctl start"
    then
    "/oracle/product/apps/opmn/bin/opmnctl startproc ias-component=HTTP_Server" and it still says that opmn is not running.
    Once I start running the stops and starts, it will eventually start correctly.
    I think that I am trying the steps too fast and that I probably need to wait a bit between steps since that seems to work better that way.

  • ORA-03113 when using references in xmltype

    I get an 'ORA-03113: end-of-file on communication channel' if I try to use references in an xml schema on multiple levels. You can find an example below.
    Setup:
    exec dbms_session.reset_package;
    declare
    l_schema varchar2(32767) :='<?xml version="1.0" encoding="utf-8"?>
    <xs:schema attributeFormDefault="qualified"
    elementFormDefault="qualified"
    version="1.0"
    xmlns:xdb="http://xmlns.oracle.com/xdb"
    xdb:storeVarrayAsTable="false"
    xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:complexType name="T_NODE" xdb:SQLType="T_NODE">
    <xs:sequence>
    <xs:element name="NODE" type="T_NODE"/>
    <xs:element name="LEVEL" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    <xs:element name="NODE" type="T_NODE" xdb:defaultTable="T_NODE_REF"/>
    </xs:schema>';
    l_xml xmltype;
    l_url varchar2(1000) := 'NodeTest.xsd';
    begin
    begin
    execute immediate 'drop table T_NODE_REF';
    exception
    when others then null;
    end;
    begin
    execute immediate 'drop table T_NODE_XML';
    exception
    when others then null;
    end;
    begin
    dbms_xmlschema.deleteschema(
    schemaurl => l_url
    ,delete_option => dbms_xmlschema.delete_cascade_force
    exception
    when others then null;
    end;
    l_xml := xmltype.createxml(l_schema);
    dbms_xmlschema.registerschema (schemaurl => l_url
    ,schemadoc => l_xml
    ,gentables => true
    execute immediate 'CREATE TABLE T_NODE_XML OF XMLTYPE XMLTYPE STORE AS OBJECT RELATIONAL XMLSCHEMA "' || l_url || '" ELEMENT "NODE"';
    end;
    The script:
    declare
    l_reference ref xmltype;
    function rec(
    i_level pls_integer
    ) return ref xmltype
    is
    l_url varchar2(1000) := 'NodeTest.xsd';
    l_ref ref xmltype := null;
    l_new_ref ref xmltype := null;
    l_node t_node;
    l_level pls_integer;
    l_node_xml xmltype;
    begin
    if i_level > 0 then
    l_level := i_level - 1;
    l_ref := rec(l_level);
    else
    l_ref := null;
    end if;
    l_node := new t_node(null, l_ref, i_level);
    l_node_xml := xmltype.createxml(xmlData => l_node, schema => l_url, element => 'NODE', validated => 1);
    dbms_output.put_line(dbms_lob.substr(l_node_xml.getClobVal, amount => 200, offset => 1));
    insert into T_NODE_XML t values(l_node_xml) returning ref(t) into l_new_ref;
    commit;
    return l_new_ref;
    end;
    begin
    l_reference := rec(1);
    end;
    Any idea how to overcome this issue?
    Thanks in advance

    Your previous reply never said anything about commenting out dbms_output so how was I supposed to see the variations you were trying?<br><br>
    You need to continue this discussion with Oracle as to why you getting the specific ORA-0600 that you are. This assumes you have a valid support contract. You are getting an internal Oracle error. I'm not Oracle nor do I know the inner workings of their system. If not, Google and maybe the XML DB forum might be able to help you with this issue. They will want to know your version (4 digits) and may question your hammer use of .delete_cascade_force when deleting the schema. This should only be a last resort to use that level I know. It's probably not related to your issue but may come up.

  • KIMYONG : Applications Database Connection Pool 관련 parameter 설명

    Purpose
    JVM 이 과도한 CPU / Memory를 사용하게 되어 Application Performance에 영향을 미칠때가 있으며 이럴경우 Connection Pool 관련하여 Parameter Tunning을 해야 할때가 있습니다. 이때 사용되는 Parameter들의 의미를 설명하고자 합니다.
    The Applications Database Connection Pool is a pool of JDBC database connections that are shared among java applications. Applications obtain connections from the pool by using the getJDBCConnection(...) methods of AppsContext.
    Essentially, each AppsContext has a single database connection associated with it at all times.
    The AOL/J layer internally borrows and returns this connection to the pool as needed to maintain connection reference that is properly initialized for the current Java tier AOL security context and NLS state.
    FND_MAX_JDBC_CONNECTIONS
    ============================
    The maximum pool size is the maximum allowed sum of the number of available connections and thenumber of locked connections. If the pool reaches the maximum size and all connections are locked, new clients will not be able to borrow a connection until one of the current clients has returned one. The default setting for this parameter is essentially unlimited (about 2 billion).
    FND_JDBC_BUFFER_MIN
    ======================
    The buffer minimum is the minimum number of connections that the pool should try to maintain in the available list. When the buffer size falls below the buffer minimum, the pool maintenance thread will be notified to create new connections. When notified, the thread will immediately attempt to create the number of connections to fill the difference. New connections will not be created if the pool is already at its maximum size. When creating new connections the thread uses the attributes of the most recent client request that resulted in a new connection being created.
    Setting this parameter to "0" will disable maintenance of the buffer minimum.
    However, the buffer maximum will still be maintained.
    Setting this parameter to a number greater than the maximum pool size(FND_MAX_JDBC_CONNECTIONS) will disable all buffer maintenance.
    FND_JDBC_BUFFER_MAX
    ======================
    The buffer maximum is the maximum number of connections that the pool should try to maintain in the available list. During heavy usage, the buffer may exceed this maximum. However, during periods of low usage, the maintenance thread will decrease the buffer size until the buffer maximum is reached.
    If the value of this parameter is an integer, (for example "20") the buffer maximum is static. If the value is a percent (for example, "20%"), the buffer maximum is not constant but instead is calculated dynamically as a percent of total pool size. The buffer minimum is also taken into account when
    determining a dynamic buffer maximum.
    The exact expression used is:
    maximum(t) = buffer minimum + ( (FND_JDBC_BUFFER_MAX/100) * size(t) )
    where maximum(t) and size(t) are the buffer maximum and pool size at some time t.
    The thread is configured to periodically check the buffer size. If the buffer size is greater than the maximum, the thread will remove either the number of available connections specified by FND_JDBC_BUFFER_DECAY_SIZE or the number of connections in excess of the buffer minimum, whichever is smaller. When connections are removed from the available list, the least recently used ones are removed first.
    Setting this parameter to100%, or to a number equal to FND_MAXIMUM_JDBC_CONNECTIONS, or to a number less than or equal to FND_JDBC_BUFFER_MIN will effectively prevent the maintenance thread from ever removing any connections.
    FND_JDBC_BUFFER_DECAY_INTERVAL
    ===================================
    The buffer decay interval specifies how often the connection pool maintenance thread should check the buffer size. The thread will check the buffer size at most once every FND_JDBC_BUFFER_DECAY_INTERVAL seconds. The actual time between consecutive thread cycles will vary somewhat depending on the JVM load.
    This parameter, along with FND_JDBC_BUFFER_DECAY_SIZE, allows the buffer decay rate to be tuned. For example, if the buffer decay size is 2 and the buffer decay interval is one minute, the buffer decay rate will never exceed two connections per minute. When connections are removed, the least recently used ones are removed first.
    FND_JDBC_BUFFER_DECAY_SIZE
    =============================
    The buffer decay size specifies the maximum number of connections that should be removed during any single thread cycle during which the number of available connections is greater than the buffer size. This parameter, along with FND_JDBC_BUFFER_DECAY_INTERVAL, allows the buffer decay rate to be tuned.
    FND_JDBC_MAX_WAIT_TIME
    =========================
    The maximum wait time specifies how much time a client should spend trying to get a connection. The borrow algorithm, used to borrow an object from the pool, contains check points at which the elapsed time is compared to the maximum wait time. If it exceeds the maximum wait time, then a null object will be returned to the client. The pre-configured value for the maximum wait time is
    10 seconds.
    FND_JDBC_SELECTION_POLICY
    ============================
    The selection policy determines how a connection is selected from the list of available connections for a particular client. The connection pool is pre-configured to use a cost-based selection algorithm, which selects the connection that will require the smallest amount of initialization to match the
    client's context.
    FND_JDBC_USABLE_CHECK
    ===========================
    The FND_JDBC_USABLE_CHECK parameter governs whether a pl/sql query is performed before giving a connection to a client. The pool checks whether a connection is usable before handing it to a client. This always involves checking that the connection is not null and is not closed. If FND_JDBC_USABLE_CHECK is set to true, then it also verifies that the connection can be used to perform a simple PL/SQL query. (This parameter may have to be set to "true" in order to clean up
    connections to a database that has been restarted.)
    FND_JDBC_CONTEXT_CHECK
    ==========================
    The FND_JDBC_CONTEXT_CHECK parameter governs whether the AOL security context and NLS state is obtained from the database when the connection is returned to the pool. If FND_JDBC_CONTEXT_CHECK is "true", when the connection is returned to the pool, the AOL security context and NLS state will be obtained from the database. (This is implemented in the DBConnObj.isReusable() method). This check must be done when the connection is returned (rather than when it is borrowed) so that the selection matching algorithm has access to the actual
    session context of the connections in the available list.
    FND_JDBC_PLSQL_RESET
    ========================
    The PL/SQL reset flag, set using the variable FND_JDBC_PLSQL_RESET, governs whether the PL/SQL state associated with a connection should be freed before the pool hands the connection to the client. By default this flag is false.
    If the flag is set by true, by including the line "FND_JDBC_PLSQL_RESET=true" in the .dbc file, each connection to the database will have its PL/SQL state cleared before the pool returns the connection to the client.
    This is how it works. After the pool selects a connection from the available list for a client, it initializes the connection. One of the things initialization does is to set a flag that is later used by SessionManager to determine if the apps initialization routine needs to be performed for the connection. When FND_JDBC_PLSQL_RESET has been set to "true", this flag will always be set to true. After the pool initializes the connection, it also checks whether the connection is usable. In this case, this check will include a call to DBMS_SESSION.RESET_PACKAGE, which frees the PL/SQL state. The table below summaries the affect of FND_JDBC_PLSQL_RESET and the other safety check parameters on borrowing a connection from the pool.
    The FND_JDBC_PLSQL_RESET parameter has been added to only to address the case where production PL/SQL global bugs are known to exist. The performance of the pool is reduced by setting this flag to true.
    Reference : Note 264599.1

    Purpose
    JVM 이 과도한 CPU / Memory를 사용하게 되어 Application Performance에 영향을 미칠때가 있으며 이럴경우 Connection Pool 관련하여 Parameter Tunning을 해야 할때가 있습니다. 이때 사용되는 Parameter들의 의미를 설명하고자 합니다.
    The Applications Database Connection Pool is a pool of JDBC database connections that are shared among java applications. Applications obtain connections from the pool by using the getJDBCConnection(...) methods of AppsContext.
    Essentially, each AppsContext has a single database connection associated with it at all times.
    The AOL/J layer internally borrows and returns this connection to the pool as needed to maintain connection reference that is properly initialized for the current Java tier AOL security context and NLS state.
    FND_MAX_JDBC_CONNECTIONS
    ============================
    The maximum pool size is the maximum allowed sum of the number of available connections and thenumber of locked connections. If the pool reaches the maximum size and all connections are locked, new clients will not be able to borrow a connection until one of the current clients has returned one. The default setting for this parameter is essentially unlimited (about 2 billion).
    FND_JDBC_BUFFER_MIN
    ======================
    The buffer minimum is the minimum number of connections that the pool should try to maintain in the available list. When the buffer size falls below the buffer minimum, the pool maintenance thread will be notified to create new connections. When notified, the thread will immediately attempt to create the number of connections to fill the difference. New connections will not be created if the pool is already at its maximum size. When creating new connections the thread uses the attributes of the most recent client request that resulted in a new connection being created.
    Setting this parameter to "0" will disable maintenance of the buffer minimum.
    However, the buffer maximum will still be maintained.
    Setting this parameter to a number greater than the maximum pool size(FND_MAX_JDBC_CONNECTIONS) will disable all buffer maintenance.
    FND_JDBC_BUFFER_MAX
    ======================
    The buffer maximum is the maximum number of connections that the pool should try to maintain in the available list. During heavy usage, the buffer may exceed this maximum. However, during periods of low usage, the maintenance thread will decrease the buffer size until the buffer maximum is reached.
    If the value of this parameter is an integer, (for example "20") the buffer maximum is static. If the value is a percent (for example, "20%"), the buffer maximum is not constant but instead is calculated dynamically as a percent of total pool size. The buffer minimum is also taken into account when
    determining a dynamic buffer maximum.
    The exact expression used is:
    maximum(t) = buffer minimum + ( (FND_JDBC_BUFFER_MAX/100) * size(t) )
    where maximum(t) and size(t) are the buffer maximum and pool size at some time t.
    The thread is configured to periodically check the buffer size. If the buffer size is greater than the maximum, the thread will remove either the number of available connections specified by FND_JDBC_BUFFER_DECAY_SIZE or the number of connections in excess of the buffer minimum, whichever is smaller. When connections are removed from the available list, the least recently used ones are removed first.
    Setting this parameter to100%, or to a number equal to FND_MAXIMUM_JDBC_CONNECTIONS, or to a number less than or equal to FND_JDBC_BUFFER_MIN will effectively prevent the maintenance thread from ever removing any connections.
    FND_JDBC_BUFFER_DECAY_INTERVAL
    ===================================
    The buffer decay interval specifies how often the connection pool maintenance thread should check the buffer size. The thread will check the buffer size at most once every FND_JDBC_BUFFER_DECAY_INTERVAL seconds. The actual time between consecutive thread cycles will vary somewhat depending on the JVM load.
    This parameter, along with FND_JDBC_BUFFER_DECAY_SIZE, allows the buffer decay rate to be tuned. For example, if the buffer decay size is 2 and the buffer decay interval is one minute, the buffer decay rate will never exceed two connections per minute. When connections are removed, the least recently used ones are removed first.
    FND_JDBC_BUFFER_DECAY_SIZE
    =============================
    The buffer decay size specifies the maximum number of connections that should be removed during any single thread cycle during which the number of available connections is greater than the buffer size. This parameter, along with FND_JDBC_BUFFER_DECAY_INTERVAL, allows the buffer decay rate to be tuned.
    FND_JDBC_MAX_WAIT_TIME
    =========================
    The maximum wait time specifies how much time a client should spend trying to get a connection. The borrow algorithm, used to borrow an object from the pool, contains check points at which the elapsed time is compared to the maximum wait time. If it exceeds the maximum wait time, then a null object will be returned to the client. The pre-configured value for the maximum wait time is
    10 seconds.
    FND_JDBC_SELECTION_POLICY
    ============================
    The selection policy determines how a connection is selected from the list of available connections for a particular client. The connection pool is pre-configured to use a cost-based selection algorithm, which selects the connection that will require the smallest amount of initialization to match the
    client's context.
    FND_JDBC_USABLE_CHECK
    ===========================
    The FND_JDBC_USABLE_CHECK parameter governs whether a pl/sql query is performed before giving a connection to a client. The pool checks whether a connection is usable before handing it to a client. This always involves checking that the connection is not null and is not closed. If FND_JDBC_USABLE_CHECK is set to true, then it also verifies that the connection can be used to perform a simple PL/SQL query. (This parameter may have to be set to "true" in order to clean up
    connections to a database that has been restarted.)
    FND_JDBC_CONTEXT_CHECK
    ==========================
    The FND_JDBC_CONTEXT_CHECK parameter governs whether the AOL security context and NLS state is obtained from the database when the connection is returned to the pool. If FND_JDBC_CONTEXT_CHECK is "true", when the connection is returned to the pool, the AOL security context and NLS state will be obtained from the database. (This is implemented in the DBConnObj.isReusable() method). This check must be done when the connection is returned (rather than when it is borrowed) so that the selection matching algorithm has access to the actual
    session context of the connections in the available list.
    FND_JDBC_PLSQL_RESET
    ========================
    The PL/SQL reset flag, set using the variable FND_JDBC_PLSQL_RESET, governs whether the PL/SQL state associated with a connection should be freed before the pool hands the connection to the client. By default this flag is false.
    If the flag is set by true, by including the line "FND_JDBC_PLSQL_RESET=true" in the .dbc file, each connection to the database will have its PL/SQL state cleared before the pool returns the connection to the client.
    This is how it works. After the pool selects a connection from the available list for a client, it initializes the connection. One of the things initialization does is to set a flag that is later used by SessionManager to determine if the apps initialization routine needs to be performed for the connection. When FND_JDBC_PLSQL_RESET has been set to "true", this flag will always be set to true. After the pool initializes the connection, it also checks whether the connection is usable. In this case, this check will include a call to DBMS_SESSION.RESET_PACKAGE, which frees the PL/SQL state. The table below summaries the affect of FND_JDBC_PLSQL_RESET and the other safety check parameters on borrowing a connection from the pool.
    The FND_JDBC_PLSQL_RESET parameter has been added to only to address the case where production PL/SQL global bugs are known to exist. The performance of the pool is reduced by setting this flag to true.
    Reference : Note 264599.1

  • Trouble calling htp in a web service procedure

    I have a procedure that I was calling directly within an APEX application that allowed the user to download XML files, as follows:
    PROCEDURE download_my_file (
    p_resid IN VARCHAR2
    , p_filename VARCHAR2
    , p_filter_str IN VARCHAR2 DEFAULT NULL
    AS
    v_mime VARCHAR2 (48) := NULL;
    v_length NUMBER;
    v_file_name VARCHAR2 (2000);
    v_clob CLOB;
    v_buf VARCHAR2 (32000);
    v_amt NUMBER := 4000;
    v_pos NUMBER := 1;
    BEGIN
    IF p_filter_str IS NULL
    THEN
    SELECT EXTRACT (VALUE (r), '/*').getclobval ()
    , DBMS_LOB.getlength (EXTRACT (VALUE (r), '/*').getclobval ())
    INTO v_clob
    , v_length
    FROM TABLE (XMLSEQUENCE ((SELECT xdburitype (any_path).getxml ()
    FROM resource_view
    WHERE resid = p_resid))) r;
    ELSE
    v_clob:= repos_datasets.dyn_dset_licensed_location_xml(p_filter_str=>p_filter_str);
    v_length:=DBMS_LOB.getlength (v_clob);
    END IF;
    -- set up HTTP header
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Content-length: ' || v_length);
    HTP.p ('Content-Disposition: attachment; filename="' || NVL(p_filename,'user_query.xml') || '"');
    OWA_UTIL.http_header_close;
    BEGIN
    v_pos := 1;
    LOOP
    DBMS_LOB.READ (v_clob
    , v_amt
    , v_pos
    , v_buf
    v_pos := v_pos + v_amt;
    HTP.prn (v_buf);
    END LOOP;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    NULL;
    END;
    END download_my_file;
    The procedure works perfectly when a process calls the procedure directly from the database, however, I now have a requirement whereby this download facility needs to be accessed through a web-service: merely creating a web-service for the procedure and running it through a page process returns a 'ORA-06502: PL/SQL: numeric or value error' message. I assumed as APEX is a web environment that the htp package functions would use the session that APEX had started but obviously they are not.
    How would I go about manually creating a session (I presume that's what's required) that would support the htp calls and allow the user to download the files exactly as they could with a direct call to the database procedure? I know it involves some initialization using the OWA package but this is alien territory for me, can anyone help at all?

    Has anyone come across a similar scenario? There are plenty examples of calling web-enabled procedures directly from APEX but I must call such a procedure through a web-service reference. Failing anyone having a similar problem, could someone explain to me how the Common Gateway interface variables are set when an APEX application calls a web enabled procedure?
    I've included the code for the procedure I'm trying to run which I have altered to include CGI environment parameters: I'm getting these parameters by calling owa_util.get_cgi_env in the calling APEX application and passing the individual values to the procedure through the web service reference. I chose those variables I thought would tell the procedure where to return the HTML to but I'm just getting a blank page.
    Anyone any suggestions? (code below)
    PROCEDURE download_my_file (
    p_resid IN VARCHAR2
    , p_filename VARCHAR2
    , p_filter_str IN VARCHAR2 DEFAULT 'sepa_region = ''North'''
    ,p_SERVER_PORT VARCHAR2
    ,p_SERVER_NAME VARCHAR2
    ,p_QUERY_STRING VARCHAR2
    ,p_HTTP_USER_AGENT VARCHAR2
    ,p_HTTP_HOST VARCHAR2
    ,p_HTTP_REFERER VARCHAR2
    ,p_DAD_NAME VARCHAR2
    ,p_REQUEST_CHARSET VARCHAR2
    ,p_HTTP_COOKIE VARCHAR2
    AS
    v_mime VARCHAR2 (48) := NULL;
    v_length NUMBER;
    v_file_name VARCHAR2 (2000);
    v_clob CLOB;
    v_buf VARCHAR2 (32000);
    v_amt NUMBER := 4000;
    v_pos NUMBER := 1;
    namelist OWA.vc_arr;
    valuelist OWA.vc_arr;
    htpbuffer HTP.htbuf_arr;
    bufrows INTEGER := 99999999;
    rc INTEGER;
    BEGIN
    IF p_filter_str IS NULL
    THEN
    SELECT EXTRACT (VALUE (r), '/*').getclobval ()
    , DBMS_LOB.getlength (EXTRACT (VALUE (r), '/*').getclobval ())
    INTO v_clob
    , v_length
    FROM TABLE (XMLSEQUENCE ((SELECT xdburitype (any_path).getxml ()
    FROM resource_view
    WHERE resid = p_resid))) r;
    ELSE
    v_clob:= repos_datasets.dyn_dset_licensed_location_xml(p_filter_str=>p_filter_str);
    v_length:=DBMS_LOB.getlength (v_clob);
    END IF;
    namelist (1) := 'SERVER_PORT';
    namelist (2) := 'SERVER_NAME';
    namelist (3) := 'QUERY_STRING';
    namelist (4) := 'HTTP_USER_AGENT';
    namelist (5) := 'HTTP_HOST';
    namelist (6) := 'HTTP_REFERER';
    namelist (7) := 'DAD_NAME';
    namelist (8) := 'REQUEST_CHARSET';
    namelist (9) := 'HTTP_COOKIE';
    valuelist (1) := p_SERVER_PORT;
    valuelist (2) := p_SERVER_NAME;
    valuelist (3) := p_QUERY_STRING;
    valuelist (4) := p_HTTP_USER_AGENT;
    valuelist (5) := p_HTTP_HOST;
    valuelist (6) := p_HTTP_REFERER;
    valuelist (7) := p_DAD_NAME;
    valuelist (8) := p_REQUEST_CHARSET;
    valuelist (9) := p_HTTP_COOKIE;
    -- initiliase OWA and configure a basic CGI environment
    DBMS_SESSION.reset_package; reset PL/SQL PGA maintaining package state
    rc := OWA.initialize;
    OWA.init_cgi_env (9
    , namelist
    , valuelist
    htp.showpage ();
    -- set up HTTP header
    -- use an NVL around the mime type and
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Content-length: ' || v_length);
    HTP.p ('Content-Disposition: attachment; filename="' || NVL(p_filename,'user_query.xml') || '"');
    OWA_UTIL.http_header_close;
    owa_util.print_cgi_env;
    --wpg_docload.download_file( v_clob );
    BEGIN
    v_pos := 1;
    LOOP
    DBMS_LOB.READ (v_clob
    , v_amt
    , v_pos
    , v_buf
    v_pos := v_pos + v_amt;
    HTP.prn (v_buf);
    END LOOP;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    NULL;
    END;
    Message was edited by:
    user592383

Maybe you are looking for

  • Query Based on DSO - Bad Performance

    Hi, I have few query's based on DSO 0FIGL_O14. The data size is too large in this nearly in crores. I have vendor credit report based on this. I run this query for a month and the performanceis too bad.. i get a time out error. kindly suggest how can

  • What's the BI Content for Cycle & Segment ??

    Hi All, Greeting. . I have a requirement to run the allocation in IP, but I need a data for it. That's why I need to extract cycles & segment data to BW-IP. Do you all know what the bussiness content for it ? In R/3, I know what the tables is: T811C,

  • Restoring bookmarks from Time Machine?

    Hi everyone, This is the first time I'm posting. I've been trying to restore my Google Chrome bookmarks for hours now from my Time Machien backup. I'm running Mac OSX version 10.5.8. I can't find the directory where the bookmarks are stored. I've tri

  • Deactivating the select options (strange)

    Hi all, Please tell me how to deactivate the select options arrow.In the screen after select options-high there is an arrow to specify ranges etc.I want to deactivate that arrow.Is it possible?? regards chandu

  • Database connectivity toolkit create a new databse

    Hi all, I would like to know is there a vi in database connectivity toolkit to create a  new database. and as in labsql if we directly pass the connection string it is not necceassry to follow the steps in administrartive tools to connect to the DSN.