Sdo_util.remove_duplicate_vertices on an ORA-13341 line - session crash

BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE    11.2.0.2.0      Production
TNS for 64-bit Windows: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - ProductionLet's say I have an invalid geometry:
sdo_geometry(2002, 8307, NULL, sdo_elem_info_array(1, 2, 1), sdo_ordinate_array(60, 60))with error: ORA-13341: a line geometry has fewer than two coordinates
It is clearly an invalid geometry, but if I then try to run select sdo_util.remove_duplicate_vertices on it, I'd expect that either (a) I get NULL, (b) I get the original geometry or (c) I get a suitable error message. But instead the session crashes...
SQL> select sdo_util.remove_duplicate_vertices(sdo_geometry(2002, 8307, NULL,
  2  sdo_elem_info_array(1, 2, 1), sdo_ordinate_array(60, 60)),0.00005)
  3  from dual
  4  /
select sdo_util.remove_duplicate_vertices(sdo_geometry(2002, 8307, NULL,
ERROR at line 1:
ORA-03113: end-of-file on communication channel
Process ID: 11156
Session ID: 417 Serial number: 101Doesn't seem very nice.
John

I see that this is pretty much the same as:
Bug 7329858: SDO_UTIL.REMOVE_DUPLICATE_VERTICES CAUSES ORA-07445 CORE DUMP

Similar Messages

  • SDO_UTIL.REMOVE_DUPLICATE_VERTICES with curves

    Howdy,
    Database is 10.2.0.3 AIX64.
    I have an SDO_GEOMETRY that produces an ORA-13356// dups - doing a SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT(g.GEOMETRY, 0.001)
    This is the bad boy:
    MDSYS.SDO_GEOMETRY(2002,2236,null,MDSYS.SDO_ELEM_INFO_ARRAY(1,4,5,1,2,1,3,2,2,7,2,1,9,2,2,13,2,1),MDSYS.SDO_ORDINATE_ARRAY(894270.650844107,531988.579373758,894277.41318061,531991.900923698,894278.464283255,531993.83764281,894276.776710971,531995.254610514,894265.456019573,531994.675760649,894263.72801983,531993.854244224,894263.087039329,531992.051464053,894263.087039329,531992.051464053))
    I immediatly do a SDO_UTIL.REMOVE_DUPLICATE_VERTICES with the same tolerance.
    I get back this:
    MDSYS.SDO_GEOMETRY(2002,2236,null,MDSYS.SDO_ELEM_INFO_ARRAY(1,4,5,1,2,1,3,2,2,7,2,1,9,2,2,11,2,1),MDSYS.SDO_ORDINATE_ARRAY(894270.650844107,531988.579373758,894277.41318061,531991.900923698,894278.464283255,531993.83764281,894276.776710971,531995.254610514,894265.456019573,531994.675760649,894263.72801983,531993.854244224,894263.087039329,531992.051464053)) ... the 13 and 14 elements have been removed from the above
    BUT ... this now throws a ORA-13354 //incorrect offset in ELEM_INFO_ARRAY --- yea it looks like it broke a curve transition
    Does SDO_UTIL.REMOVE_DUPLICATE_VERTICES do just that and NOT take into account the ETYPE and INTEPRETATION, potentially then producing an invalid geometry?
    Hope I asked it correctly ..
    r,
    dennis

    Dennis
    I can confirm the same result as you.
    it looks like te returned geometry from the sdo_util.REMOVE_DUPLICATE_VERTICES
    should look like:
    MDSYS.SDO_GEOMETRY(2002,2236,null,MDSYS.SDO_ELEM_INFO_ARRAY
    (1,4,*_4_*,
    1,2,1,
    3,2,2,
    7,2,1,
    9,2,2),
    MDSYS.SDO_ORDINATE_ARRAY
    (894270.650844107,531988.579373758,
    894277.41318061,531991.900923698,
    894278.464283255,531993.83764281,
    894276.776710971,531995.254610514,
    894265.456019573,531994.675760649,
    894263.72801983,531993.854244224,
    894263.087039329,531992.051464053))
    Where there are 4 triplets defining your geome in the Info_array and the last straigth line defintion should be removed.
    I guess, but that is up the oracle people to confirm, because the redundancy is located at the endpoint, is that the remove_duplicate_vertices function will keep the last vertex = endpoint as a fixed vertex, therefor removing the n-1 vertex in this case, and just update the last triplet in the info_array, without evaluating the previous element in the compound line string, in this case the last arc definition.
    Another reason can be that the implementation will remove the first of the two redundant vertices.
    This does not solve your problem but hopefully, with some comment from one of the oracle guys, at least could explain what is going on.
    Luc
    Edited by: lucvanlinden on Oct 10, 2008 9:24 AM

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

  • OCIStmtExecute: ORA-00028: your session has been killed ORA-02063

    Oracle Kills database sessions and my PHP script stops-
    "Warning: ociexecute(): OCIStmtExecute: ORA-00028: your session has been killed ORA-02063: preceding line from <Databasename>"
    I am not sure how to handle this. I am trying to see if PHP can identify when oracle drops session, can another script restart it. Any suggestions.
    Thanks,
    M

    Oracle Kills database sessions and my PHP script stops-
    "Warning: ociexecute(): OCIStmtExecute: ORA-00028: your session has been killed ORA-02063: preceding line from <Databasename>"
    I am not sure how to handle this. I am trying to see if PHP can identify when oracle drops session, can another script restart it. Any suggestions.
    Thanks,
    M

  • ORA-29550: Java session state cleared

    Hi all,
    I am using Oracle9i Enterprise Edition Release 9.2.0.6.0 on AIX
    I have created a job that executes daily at 00:00:00 and create files by selecting data from database. But job is breaking daily and subjected error found in alert log file.
    I have checked the metalink and found nothing except following
    Error:     ORA-29550
    Text:     Java session state cleared
    Cause:     The Java state in the current session became inconsistent and was
         cleared.
    Action:     No action required.
    Can anybody help me on this issue?
    Thanks,
    Hassan

    I am getting following errors when using forms. (Version is 11.5.10.2 on Linux)Are you using Forms 6i Builder?
    ORA-29549: class PUBLIC.NLS_SESSION_PARAMETERS has changed, Java session state cleared.
    oracle.apps.fnd.framework.OAException: java.sql.SQLException: ORA-29550: Java session state cleared
    ORA-06512: at "APPS.XMLPARSERCOVER", line 6
    ORA-06512: at "APPS.XMLPARSER", line 175
    ORA-06512: at "APPS.IRC_XML_UTIL", line 110
    ORA-29549: class PUBLIC.NLS_SESSION_PARAMETERS has changed, Java session state cleared
    ORA-06512: at "APPS.IRC_APPROVALS", line 43
    ORA-06512: at "APPS.IRC_APPROVALS", line 179
    ORA-06512: at "APPS.IRC_APPROVALS", line 328
    ORA-06512: at "APPS.XXCIM_CANDIDATE_SEARCH_PKG", line 333
    ORA-06512: at line 1
    java.sql.SQLException: ORA-29550: Java session state cleared
    Any help would be really appreciated.Please see the solution in (ORA-29550: Java session state cleared encountered during execution of Generate function 'WF_XML.Generate' [ID 1368817.1]).
    Thanks,
    Hussein

  • ORA-20515: Invalid session

    Hi
    I find following error messages in my glassfish.log file. The applications are running fine but don't know why this error comes every now and then in the log file only.
    Operating System: CentOS 6.4 64bit
    Oracle XE 11G
    Apex 4.2.3.00.08
    Apex Listener 2.0.5
    Glasfish 3.1.2.2
    I am also using Nginx as reverse proxy server.
    [#|2013-11-06T12:02:10.103-0500|SEVERE|glassfish3.1.2|null|_ThreadID=83;_ThreadName=Thread-2;|ORA-20515: Invalid session
    ORA-06512: at "APEX_040200.WWV_FLOW_DML", line 2045
    ORA-06512: at "APEX_040200.HTMLDB_UTIL", line 2659
    ORA-06512: at line 2
    java.sql.SQLException: ORA-20515: Invalid session
    ORA-06512: at "APEX_040200.WWV_FLOW_DML", line 2045
    ORA-06512: at "APEX_040200.HTMLDB_UTIL", line 2659
    ORA-06512: at line 2
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:447)
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
      at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:879)
      at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:505)
      at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:223)
      at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:531)
      at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:205)
      at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1043)
      at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1336)
      at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3612)
      at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3713)
      at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4755)
      at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1378)
      at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)
    Any help will be much appreciated.
    Habib

    Hi Habib,
    this error can occur when requests to APEX_UTIL.GET_BLOB_FILE to download BLOB content on a DML Form page pass an invalid or expired session id. You should be able find accompanying requests to APEX_UTIL.GET_BLOB_FILE or HTMLDB_UTIL.GET_BLOB_FILE in your web server log files.
    Regards,
    Christian

  • ORA-06550: line 5, column 57: PLS-00103: Encountered the symbol "F01_" when

    Hello,
    I wanted to use the APEX_ITEM.DISPLAY_AND_SAVE
    Here is my query:
    DECLARE
    QUERY VARCHAR2 (2000);
    BEGIN
    QUERY := 'SELECT '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(1,REGISTRATION_ID,'f01_'||ROWNUM, NULL) REGISTRATION_ID, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(2,STATUS,'f02_'||ROWNUM, NULL) STATUS, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(3,CALL_CODE,'f03_'||ROWNUM, NULL) CALL_CODE, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(4,PARTNER_USER_ID,'f04_'||ROWNUM, NULL) PARTNER_USER_ID,'
    ||'APEX_ITEM.DISPLAY_AND_SAVE(5,COORDINATOR_USER_ID,'f05_'||ROWNUM, NULL) COORDINATOR_USER_ID, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(6,COORDINATOR_EMAIL,'f06_'||ROWNUM, NULL) COORDINATOR_EMAIL, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(7,COORDINATOR_FINAUTH_EMAIL,'f07_'||ROWNUM, NULL) COORDINATOR_FINAUTH_EMAIL,'
    ||'APEX_ITEM.DISPLAY_AND_SAVE(8,COORDINATOR_FULL_ADDRESS,'f08_'||ROWNUM, NULL) COORDINATOR_FULL_ADDRESS, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(9,COORDINATOR_NAME,'f09_'||ROWNUM, NULL) COORDINATOR_NAME, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(10,COORDINATOR_FAX,'f10_'||ROWNUM, NULL) COORDINATOR_FAX,'
    ||'APEX_ITEM.DISPLAY_AND_SAVE(11,COORDINATOR_TEL,'f11_'||ROWNUM, NULL) COORDINATOR_TEL, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(12,COORDINATOR_COUNTRY,'f12_'||ROWNUM, NULL) COORDINATOR_COUNTRY, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(13,COORDINATOR_COMPANY_NAME,'f13_'||ROWNUM, NULL) COORDINATOR_COMPANY_NAME,'
    ||'APEX_ITEM.DISPLAY_AND_SAVE(14,DATE_LETTER_SENT,'f14_'||ROWNUM, NULL) DATE_LETTER_SENT, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(15,DATE_LAST_SUBMISSION,'f15_'||ROWNUM, NULL) DATE_LAST_SUBMISSION, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(16,PROPOSAL_ACRONYM,'f16_'||ROWNUM, NULL) PROPOSAL_ACRONYM,'
    ||'APEX_ITEM.DISPLAY_AND_SAVE(17,INSTRUMENT_CODE,'f17_'||ROWNUM, NULL) INSTRUMENT_CODE, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(18,TITLE,'f18_'||ROWNUM, NULL) TITLE, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(19,SUBMITTED,'f19_'||ROWNUM, NULL) SUBMITTED, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(20,PREPARATION,'f20_'||ROWNUM, NULL) PREPARATION, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(21,PASS_BY_MAIL,'f21_'||ROWNUM, NULL) PASS_BY_MAIL,'
    ||'APEX_ITEM.DISPLAY_AND_SAVE(22,PROPOSAL_ID,'f22_'||ROWNUM, NULL) PROPOSAL_ID, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(23,PROPOSAL_NUMBER,'f23_'||ROWNUM, NULL) PROPOSAL_NUMBER '
    ||' FROM SUZANREGISTRATIONVIEW '
    ||' where 1 = 1 ';
    IF LENGTH (V ('P4_REGISTRATION_ID')) > 0
    THEN
    QUERY :=
    QUERY || ' and REGISTRATION_ID like ' || V ('P4_REGISTRATION_ID');
    ELSE
    QUERY := QUERY || '';
    END IF;
    IF LENGTH (V ('P4_CALL_CODE')) > 0
    THEN
    QUERY := QUERY || ' and CALL_CODE like ''' || V ('P4_CALL_CODE') || '''';
    ELSE
    QUERY := QUERY || '';
    END IF;
    IF LENGTH (V ('P4_COORDINATOR_USER_ID')) > 0
    THEN
    QUERY :=
    QUERY
    || ' and (upper(COORDINATOR_USER_ID)) like (upper('''
    || V ('P4_COORDINATOR_USER_ID')
    || '''))';
    ELSE
    QUERY := QUERY || '';
    END IF;
    IF LENGTH (V ('P4_COORDINATOR_FINAUTH_EMAIL')) > 0
    THEN
    QUERY :=
    QUERY
    || ' and (upper(R.COORDINATOR_EMAIL)) like (upper('''
    || V ('P4_COORDINATOR_FINAUTH_EMAIL')
    || '''))';
    ELSE
    QUERY := QUERY || '';
    END IF;
    IF LENGTH (V ('P4_COORDINATOR_NAME')) > 0
    THEN
    QUERY :=
    QUERY
    || ' and upper(COORDINATOR_NAME) like (upper('''
    || V ('P4_COORDINATOR_NAME')
    || '''))';
    ELSE
    QUERY := QUERY || '';
    END IF;
    IF LENGTH (V ('P4_COORDINATOR_COMPANY_NAME')) > 0
    THEN
    QUERY :=
    QUERY
    || ' and (upper(COORDINATOR_COMPANY_NAME)) like (upper('''
    || V ('P4_COORDINATOR_COMPANY_NAME')
    || '''))';
    ELSE
    QUERY := QUERY || '';
    END IF;
    IF LENGTH (V ('P4_PARTNER_USER_ID')) > 0
    THEN
    QUERY :=
    QUERY
    || ' and (upper(PARTNER_USER_ID)) like (upper('''
    || V ('P4_PARTNER_USER_ID')
    || '''))';
    ELSE
    QUERY := QUERY || '';
    END IF;
    IF LENGTH (V ('P4_PROPOSAL_ACRONYM')) > 0
    THEN
    QUERY :=
    QUERY
    || ' and (upper(proposal_acronym)) like (upper('''
    || V ('P4_PROPOSAL_ACRONYM')
    || '''))';
    ELSE
    QUERY := QUERY || '';
    END IF;
    RETURN QUERY;
    END;
    And here is the error encountered:
    1 error has occurred
    * Function returning SQL query: Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the generic columns checkbox below the region source to proceed without parsing.
    (ORA-06550: line 5, column 57: PLS-00103: Encountered the symbol "F01_" when expecting one of the following: * & = - + ; < / > at in is mod remainder not rem <> or != or ~= >= <= <> and or like LIKE2_ LIKE4_ LIKEC_ between || member SUBMULTISET_)
    I don't understand why the engine returns an error at that point.
    Despite the fact that I follow the user guide and the Denes Kubicek's sample examples, I still have that error.
    If I remove the part 'f01_' || and only keep the rownum, the problem is solved.
    Do you have any idea ?
    Thanks in advance for your answers.
    Regards,
    Stessy Delcroix

    HI MickyWay,
    So simple. :-)
    Problem solved.
    Thanks a lot (merci beaucoup)

  • JDBC receiver error:ORA-06550: line 1, column 7: PL/SQL

    Hi,
    I am geting this error in JDBC Receiver adapter. when  i call the stored procedure.
    Last week it works fine.But i today i faced this error.
    Error Unable to execute statement for table or stored procedure. 'spec_utilities.SP_DELETE(Structure 'unassign') due to java.sql.SQLException: ORA-06550: line 1, column 7: PLS-00201: identifier 'SPEC_UTILITIES.SP_DELETE' must be declared ORA-06550: line 1, column 7: PL/SQL: Statement ignored 
    Error JDBC message processing failed; reason Error processing request in sax parser: Error when executing statement for table/stored proc. 'spec_utilities.SP_DELETE(structure 'unassign'): java.sql.SQLException: ORA-06550: line 1, column 7: PLS-00201: identifier 'SPEC_UTILITIES.SP_DELETE' must be declared ORA-06550: line 1, column 7: PL/SQL: Statement ignored 
    Error MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'spec_utilities.SP_DELETE (structure 'unassign'): java.sql.SQLException: ORA-06550: line 1, column 7: PLS-00201: identifier 'SPEC_UTILITIES.SP_DELETE'must be declared ORA-06550: line 1, column 7: PL/SQL: Statement ignored 
    My stored procedure structure is:
    <unassign>
    <SP_DELETE action="EXECUTE">
      <table>spec_utilities.SP_DELETE</table>
      <PAE isInput="true" type="VARCHAR">447848</pAEIC>
      <SKEY isInput="true" type="NUMERIC">4548545</pSKEY>
      <USER isOutput="true" type="VARCHAR" />
      <UNIT  isOutput="true" type="VARCHAR" />
      <EMAIL isOutput="true" type="VARCHAR" />
      </SP_DELETE>
      </unassign>
    Can you suggest me where is this error.
    Thank you
    Sateesh

    Hi,
       if it was executing fine earlier then check the below
    1. user permissions level at the database..whether it has access to the required SP or not..
    2. Check if there was any change in the SP..which has not been communicated...
    HTH
    Rajesh

  • Oracle Error: SQL Error Messge: [SERVERERROR] ORA-06550: line 1, column 7:

    The following is the error msg, I am trying to run the stored procedure to insert data into few tables.
    Pls suggest any solution to this error msg: Thanks.
    08/05/2005 11:27:41-> Level:1, UpLoader: SQL Error Messge: [SERVERERROR] ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'ENTPRFMAN'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    PROCEDURE ENTPRFMAN
    p_source_acct_id char, /*1*/
    p_source_system char, /*2*/
    p_entity_name char, /*3*/
    p_entity_legal_name char, /*4*/
    p_entity_long_name char, /*5*/
    p_associated_entity_id char, /*6*/
    p_entity_type char, /*7*/
    p_list_order char, /*8*/
    p_tax_id_number char, /*9*/
    p_inception_date char, /*10*/
    p_fiscal_end_date char, /*11*/
    p_marketing_open_date char, /*12*/
    p_base_currency char, /*13*/
    p_account_status char, /*14*/
    p_entity_code char, /*15*/
    p_orig_source_system char, /*16*/
    p_account_legal_form char, /*17*/
    p_business_sector char, /*18*/
    p_direct_account_ind char, /*19*/
    p_portfolio_type_code char, /*20*/
    p_target_dict_name char, /*21*/
    p_dict_level char, /*22*/
    p_cust_indx_type char, /*23*/
    p_blnd_source char, /*24*/
    p_ml_interpolate_yn char, /*25*/
    p_source_level1 char, /*26*/
    p_source_entity_xref1 char, /*27*/
    p_source_entity_xref1_type char, /*28*/
    p_source_dict_name1 char, /*29*/
    p_weight1 char, /*30*/
    p_source_level2 char, /*31*/
    p_source_entity_xref2 char, /*32*/
    p_source_entity_xref2_type char, /*33*/
    p_source_dict_name2 char, /*34*/
    p_weight2 char, /*35*/
    p_source_level3 char, /*36*/
    p_source_entity_xref3 char, /*37*/
    p_source_entity_xref3_type char, /*38*/
    p_source_dict_name3 char, /*39*/
    p_weight3 char, /*40*/
    p_source_level4 char, /*41*/
    p_source_entity_xref4 char, /*42*/
    p_source_entity_xref4_type char, /*43*/
    p_source_dict_name4 char, /*44*/
    p_weight4 char, /*45*/
    p_source_level5 char, /*46*/
    p_source_entity_xref5 char, /*47*/
    p_source_entity_xref5_type char, /*48*/
    p_source_dict_name5 char, /*49*/
    p_weight5 char, /*50*/
    p_source_level6 char, /*51*/
    p_source_entity_xref6 char, /*52*/
    p_source_entity_xref6_type char, /*53*/
    p_source_dict_name6 char, /*54*/
    p_weight6 char, /*55*/
    p_source_level7 char, /*56*/
    p_source_entity_xref7 char, /*57*/
    p_source_entity_xref7_type char, /*58*/
    p_source_dict_name7 char, /*59*/
    p_weight7 char, /*60*/
    p_source_level8 char, /*61*/
    p_source_entity_xref8 char, /*62*/
    p_source_entity_xref8_type char, /*63*/
    p_source_dict_name8 char, /*64*/
    p_weight8 char, /*65*/
    p_source_level9 char, /*66*/
    p_source_entity_xref9 char, /*67*/
    p_source_entity_xref9_type char, /*68*/
    p_source_dict_name9 char, /*69*/
    p_weight9 char, /*70*/
    p_source_level10 char, /*71*/
    p_source_entity_xref10 char, /*72*/
    p_source_entity_xref10_type char, /*73*/
    p_source_dict_name10 char, /*74*/
    p_weight10 char, /*75*/
    p_OUT OUT char
    AS
    v_date rulesdbo.entity.upd_date%TYPE:= SYSDATE;
    v_update_source rulesdbo.entity.upd_user%TYPE:= 'PRFENT';
    v_entity_id rulesdbo.entity.entity_id%type;
    b_valid BOOLEAN;
    /* Supported Entity Types - Index Index */
    v_sb_entity_type rulesdbo.entity.entity_type%type:= 'INDX';
    v_bb_entity_type rulesdbo.entity.entity_type%type:= 'CIDX';
    v_bb_dict_l1_cv rulesdbo.dictionary_detail.dict_l1_code_value%type := 'TOTAL';
    na_outparam EagleGen.t_outparam;
    /* Constants */
    g_prf_intfc rulesdbo.entity.src_intfc_inst%type:= -1;
    v_src_intfc_inst rulesdbo.entity.src_intfc_inst%type:= -1;
    /* Business Groups */
    v_group_name1 pace_masterdbo.pace_user_groups.group_name%type := 'ASP Reporting Grp';
    v_group_name2 pace_masterdbo.pace_user_groups.group_name%type := 'Client Rptg Grp';
    v_group_name3 pace_masterdbo.pace_user_groups.group_name%type := 'Client Rptg Mgr Grp';
    v_group_name4 pace_masterdbo.pace_user_groups.group_name%type := 'Client Srvc Grp';
    v_group_name5 pace_masterdbo.pace_user_groups.group_name%type := 'Client Srvc Mgr Grp';
    v_group_name6 pace_masterdbo.pace_user_groups.group_name%type := 'Data Mgmt Grp';
    v_group_name7 pace_masterdbo.pace_user_groups.group_name%type := 'Data Services Grp';
    v_group_name8 pace_masterdbo.pace_user_groups.group_name%type := 'Dom Operations (FDS)';
    v_group_name9 pace_masterdbo.pace_user_groups.group_name%type := 'QA Portfolio Mgr Grp';
    v_group_name10 pace_masterdbo.pace_user_groups.group_name%type := 'SRS (LPS) Group';
    v_group_name11 pace_masterdbo.pace_user_groups.group_name%type := 'LG Cap Val PM Group';
    v_group_name12 pace_masterdbo.pace_user_groups.group_name%type := 'APL Large Cap Value';
    v_group_name13 pace_masterdbo.pace_user_groups.group_name%type := 'Small Cap PM Grp';
    v_group_name14 pace_masterdbo.pace_user_groups.group_name%type := 'Client Rptg Dev Grp';
    v_entity_name rulesdbo.entity.entity_name%type; -- HX 17MAR05
    ** Checks to see if entity exists
    PROCEDURE validate_entityid(p_acctid IN rulesdbo.entity_xreference.xref_account_id%TYPE,
    p_acctid_type IN rulesdbo.entity_xreference.xref_account_id_type%TYPE,
    l_entity_id OUT rulesdbo.entity_xreference.entity_id%TYPE,
    b_valid OUT BOOLEAN)
    IS
    BEGIN
    select ex.entity_id into l_entity_id
    from rulesdbo.entity_xreference ex, rulesdbo.entity e
    where ex.xref_account_id = trim(p_acctid)
    and ex.xref_account_id_type = trim(p_acctid_type)
    and ex.entity_id = e.entity_id;
    b_valid:=TRUE;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    b_valid:=TRUE;
    l_entity_id:=null;
    dbms_output.put_line('IN ENTITY VALIDATE no data');
    WHEN OTHERS THEN
    dbms_output.put_line('IN ENTITY VALIDATE ERROR');
    b_valid:=FALSE;
    END; -- validate entity id func ends here
    ** Checks to see if entity xref exists, if not then add xref
    FUNCTION entity_xref(p_acctid rulesdbo.entity_xreference.xref_account_id%TYPE,
    p_acctid_type rulesdbo.entity_xreference.xref_account_id_type%TYPE,
    p_entity_id rulesdbo.entity_xreference.entity_id%TYPE)
    RETURN BOOLEAN
    AS
    l_count NUMBER:=0;
    v_entity_xref_id rulesdbo.entity_xreference.instance%type;
    BEGIN
    select count(*) into l_count
    from rulesdbo.entity_xreference
    where xref_account_id = trim(p_acctid)
    and xref_account_id_type = trim(p_acctid_type);
    if l_count > 0 then
    UPDATE rulesdbo.entity_xreference
    SET update_date = v_date,
    update_source = v_update_source,
    entity_id = p_entity_id
    WHERE xref_account_id = trim(p_acctid)
    AND xref_account_id_type = trim(p_acctid_type);
    RETURN TRUE;
    else
    pace_masterdbo.getnextinstance('RULESDBO.ENTITY_XREFERENCE',1,v_entity_xref_id);
    INSERT INTO rulesdbo.entity_xreference
    instance, update_date, update_source, entity_id, xref_account_id, xref_account_id_type
    VALUES
    v_entity_xref_id, v_date, v_update_source, p_entity_id, trim(p_acctid), trim(p_acctid_type)
    RETURN TRUE;
    end if;
    EXCEPTION
    WHEN OTHERS THEN
    RETURN FALSE;
    END; -- entity_xref func ends here
    ** Finds dictionary_id given dictionary_name
    FUNCTION getDictionaryId(p_dict_name IN rulesdbo.dictionaries.dictionary_name%TYPE,
    p_dict_id OUT rulesdbo.dictionaries.dictionary_id%TYPE)
    RETURN BOOLEAN
    AS
    v_dict_id rulesdbo.dictionaries.dictionary_id%type;
    v_dict_name rulesdbo.dictionaries.dictionary_name%type;
    BEGIN
    dbms_output.put_line('dictionary_name = '||p_dict_name);
    --trim input
    v_dict_name := trim(p_dict_name);
    select dictionary_id into v_dict_id
    from rulesdbo.dictionaries
    where dictionary_name = v_dict_name;
    dbms_output.put_line('dictionary_id = '||v_dict_id);
    if v_dict_id is not null then
    p_dict_id := v_dict_id;
    RETURN TRUE;
    else
    p_dict_id := NULL;
    RETURN FALSE;
    end if;
    EXCEPTION
    WHEN OTHERS THEN
    RETURN FALSE;
    END; -- getDictionaryId func ends here
    ** Finds dictionary_detail_id given dictionary_name
    FUNCTION getDictionaryItemId(p_dict_id IN rulesdbo.dictionary_detail.dictionary_id%TYPE,
    p_dict_l1_code_value IN rulesdbo.dictionary_detail.dict_l1_code_value%TYPE,
    p_dict_l2_code_value IN rulesdbo.dictionary_detail.dict_l2_code_value%TYPE,
    p_dict_item_id OUT rulesdbo.dictionary_detail.dictionary_item_id%TYPE)
    RETURN BOOLEAN
    AS
    v_dict_item_id rulesdbo.dictionary_detail.dictionary_item_id%type;
    v_dict_l1 rulesdbo.dictionary_detail.dict_l1_code_value%TYPE;
    v_dict_l2 rulesdbo.dictionary_detail.dict_l2_code_value%TYPE;
    BEGIN
    --trim input
    v_dict_l1 := trim(p_dict_l1_code_value);
    v_dict_l2 := trim(p_dict_l2_code_value);
    /* Total Level Only dictionary custom logic */
    if v_dict_l2 <> 'TOTAL' then
    select dictionary_item_id into v_dict_item_id
    from rulesdbo.dictionary_detail
    where dictionary_id = p_dict_id
    and dict_l1_code_value = v_dict_l1
    and dict_l2_code_value = v_dict_l2;
    else
    select dictionary_item_id into v_dict_item_id
    from rulesdbo.dictionary_detail
    where dictionary_id = p_dict_id
    and dict_l1_code_value = v_dict_l1
    and dict_l2_code_value is null;
    end if;
    if v_dict_item_id is not null then
    p_dict_item_id := v_dict_item_id;
    RETURN TRUE;
    else
    p_dict_item_id := NULL;
    RETURN FALSE;
    end if;
    EXCEPTION
    WHEN OTHERS THEN
    RETURN FALSE;
    END; -- getDictionaryDetailId func ends here
    ** Finds instance for given source short_desc
    FUNCTION getSourceId(p_source_name IN pace_masterdbo.interfaces.short_desc%TYPE,
    p_source_id OUT pace_masterdbo.interfaces.instance%TYPE)
    RETURN BOOLEAN
    AS
    v_source_id pace_masterdbo.interfaces.instance%TYPE;
    v_source_name pace_masterdbo.interfaces.short_desc%TYPE;
    BEGIN
    --trim input
    v_source_name := trim(p_source_name);
    select instance into v_source_id
    from pace_masterdbo.interfaces
    where short_desc = v_source_name;
    if v_source_id is not null then
    p_source_id := v_source_id;
    RETURN TRUE;
    else
    p_source_id := NULL;
    RETURN FALSE;
    end if;
    EXCEPTION
    WHEN OTHERS THEN
    RETURN FALSE;
    END; -- getSourceId func ends here
    ** Finds entity_id given xref_account_id
    FUNCTION getEntityId( p_account_id IN rulesdbo.entity_xreference.xref_account_id%TYPE,
    p_account_id_type IN rulesdbo.entity_xreference.xref_account_id_type%TYPE,
    p_entity_id OUT rulesdbo.entity_xreference.entity_id%TYPE)
    RETURN BOOLEAN
    AS
    v_entity_id rulesdbo.entity_xreference.entity_id%TYPE;
    v_account_id rulesdbo.entity_xreference.xref_account_id%TYPE;
    v_account_id_type rulesdbo.entity_xreference.xref_account_id_type%TYPE;
    BEGIN
    --trim input
    v_account_id := trim(p_account_id);
    v_account_id_type := trim(p_account_id_type);
    select entity_id into v_entity_id
    from rulesdbo.entity_xreference
    where xref_account_id = v_account_id
    and xref_account_id_type = v_account_id_type;
    if v_entity_id is not null then
    p_entity_id := v_entity_id;
    RETURN TRUE;
    else
    p_entity_id := NULL;
    RETURN FALSE;
    end if;
    EXCEPTION
    WHEN OTHERS THEN
    RETURN FALSE;
    END; -- getEntityId func ends here
    ** FOR BLENDED BENCHMARKS ONLY
    FUNCTION processLevel( p_level_id IN NUMBER,
    p_blend_entity_id IN rulesdbo.entity.entity_id%TYPE,
    p_target_dict_id IN rulesdbo.dictionaries.dictionary_id%TYPE,
    p_dict_level IN rulesdbo.custom_index_attributes.dict_level%TYPE,
    p_dict_l2_code_value1 IN rulesdbo.dictionary_detail.dict_l2_code_value%TYPE,
    p_entity_xref1 IN rulesdbo.entity_xreference.xref_account_id%TYPE,
    p_entity_xref1_type IN rulesdbo.entity_xreference.xref_account_id_type%TYPE,
    p_source_dictname1 IN rulesdbo.dictionaries.dictionary_name%TYPE,
    p_weight1 IN rulesdbo.custom_index_attributes.weight%TYPE
    RETURN BOOLEAN
    AS
    l_count NUMBER:=0;
    v_instance rulesdbo.custom_index_attributes.instance%TYPE;
    v_source_dict_id rulesdbo.custom_index_attributes.source_dict_id%TYPE;
    v_entity_id rulesdbo.entity.entity_id%TYPE;
    v_src_intfc_inst rulesdbo.custom_index_attributes.src_intfc_inst%TYPE;
    v_target_dict_item_id rulesdbo.custom_index_attributes.target_dict_item_id%TYPE;
    b_valid BOOLEAN;
    BEGIN
    b_valid := getSourceId('EAGLE PACE', v_src_intfc_inst);
    dbms_output.put_line('Source Id = '||v_src_intfc_inst);
    b_valid := getEntityId(p_entity_xref1, p_entity_xref1_type, v_entity_id);
    dbms_output.put_line('Level Entity Xref = '||p_entity_xref1);
    dbms_output.put_line('Level Entity Id = '||v_entity_id);
    IF NOT b_Valid THEN
    na_outparam(na_outparam.COUNT+1) := EagleGen.GetErrEdit(p_Src => v_src_intfc_inst,
    p_ShortDesc => 'ENTITY NF');
    p_OUT := EagleGen.simf_table_to_varchar(na_outparam);
    RETURN FALSE;
    END IF;
    b_valid := getDictionaryId(p_source_dictname1, v_source_dict_id);
    dbms_output.put_line('Level Dictionary Id = '||v_source_dict_id);
    IF NOT b_Valid THEN
    na_outparam(na_outparam.COUNT+1) := EagleGen.GetErrEdit(p_Src => v_src_intfc_inst,
    p_ShortDesc => 'DICT ID NF');
    p_OUT := EagleGen.simf_table_to_varchar(na_outparam);
    RETURN FALSE;
    END IF;
    b_valid := getDictionaryItemId(p_target_dict_id, v_bb_dict_l1_cv, p_dict_l2_code_value1, v_target_dict_item_id);
    dbms_output.put_line('Dictionary Item Id = '||v_target_dict_item_id);
    IF NOT b_Valid THEN
    na_outparam(na_outparam.COUNT+1) := EagleGen.GetErrEdit(p_Src => v_src_intfc_inst,
    p_ShortDesc => 'DIR NF');
    p_OUT := EagleGen.simf_table_to_varchar(na_outparam);
    RETURN FALSE;
    END IF;
    /* initial delete */
    if p_level_id = 1 then
    dbms_output.put_line('Deleting ALL prior blend info');
    DELETE FROM rulesdbo.custom_index_attributes
    WHERE entity_id = p_blend_entity_id
    and target_dict_id = p_target_dict_id
    and source_dict_id = v_source_dict_id
    and dict_level = p_dict_level;
    end if;
    /* verify level */
    if p_dict_l2_code_value1 is not null then
    if (v_entity_id is not null) then
    if (v_source_dict_id is not null) then
    if (p_weight1 is not null) then
    dbms_output.put_line('*** LEVEL '||p_level_id||' - INSERTING NEW RECORD INTO RULESDBO.CUSTOM_INDEX_ATTRIBUTES');
    pace_masterdbo.getnextinstance('RULESDBO.CUSTOM_INDEX_ATTRIBUTES',1,v_instance);
    dbms_output.put_line('Retrieved instance number = '||v_instance);
    /* insert row */
    INSERT INTO rulesdbo.custom_index_attributes (
    instance, effective_date, entity_id, entity_detail_id, target_dict_id, source_dict_id,
    dict_level, dict_level_value, weight, cust_indx_type, src_intfc_inst, update_date,
    update_source, target_dict_item_id
    VALUES (
    v_instance, trunc(v_date), p_blend_entity_id, v_entity_id, p_target_dict_id, v_source_dict_id,
    p_dict_level, substr(p_dict_l2_code_value1, 1, 30), p_weight1, substr(p_cust_indx_type, 1, 4),
    v_src_intfc_inst, v_date, v_update_source, v_target_dict_item_id
    b_valid := TRUE;
    RETURN TRUE;
    end if;
    end if;
    end if;
    end if;
    RETURN FALSE;
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line('ERRROR - '||sqlerrm);
    RETURN NULL;
    END; -- processLevel func ends here
    FUNCTION customIndexAttributes(
    p_blend_entity_id IN rulesdbo.entity.entity_id%TYPE,
    p_target_dictname IN rulesdbo.dictionaries.dictionary_name%TYPE,
    p_dict_l2_code_value1 IN rulesdbo.dictionary_detail.dict_l2_code_value%TYPE,
    p_entity_xref1 IN rulesdbo.entity_xreference.xref_account_id%TYPE,
    p_entity_xref1_type IN rulesdbo.entity_xreference.xref_account_id_type%TYPE,
    p_source_dictname1 IN rulesdbo.dictionaries.dictionary_name%TYPE,
    p_weight1 IN rulesdbo.custom_index_attributes.weight%TYPE,
    p_dict_l2_code_value2 IN rulesdbo.dictionary_detail.dict_l2_code_value%TYPE,
    p_entity_xref2 IN rulesdbo.entity_xreference.xref_account_id%TYPE,
    p_entity_xref2_type IN rulesdbo.entity_xreference.xref_account_id_type%TYPE,
    p_source_dictname2 IN rulesdbo.dictionaries.dictionary_name%TYPE,
    p_weight2 IN rulesdbo.custom_index_attributes.weight%TYPE,
    p_dict_l2_code_value3 IN rulesdbo.dictionary_detail.dict_l2_code_value%TYPE,
    p_entity_xref3 IN rulesdbo.entity_xreference.xref_account_id%TYPE,
    p_entity_xref3_type IN rulesdbo.entity_xreference.xref_account_id_type%TYPE,
    p_source_dictname3 IN rulesdbo.dictionaries.dictionary_name%TYPE,
    p_weight3 IN rulesdbo.custom_index_attributes.weight%TYPE,
    p_dict_l2_code_value4 IN rulesdbo.dictionary_detail.dict_l2_code_value%TYPE,
    p_entity_xref4 IN rulesdbo.entity_xreference.xref_account_id%TYPE,
    p_entity_xref4_type IN rulesdbo.entity_xreference.xref_account_id_type%TYPE,
    p_source_dictname4 IN rulesdbo.dictionaries.dictionary_name%TYPE,
    p_weight4 IN rulesdbo.custom_index_attributes.weight%TYPE,
    p_dict_l2_code_value5 IN rulesdbo.dictionary_detail.dict_l2_code_value%TYPE,
    p_entity_xref5 IN rulesdbo.entity_xreference.xref_account_id%TYPE,
    p_entity_xref5_type IN rulesdbo.entity_xreference.xref_account_id_type%TYPE,
    p_source_dictname5 IN rulesdbo.dictionaries.dictionary_name%TYPE,
    p_weight5 IN rulesdbo.custom_index_attributes.weight%TYPE,
    p_dict_l2_code_value6 IN rulesdbo.dictionary_detail.dict_l2_code_value%TYPE,
    p_entity_xref6 IN rulesdbo.entity_xreference.xref_account_id%TYPE,
    p_entity_xref6_type IN rulesdbo.entity_xreference.xref_account_id_type%TYPE,
    p_source_dictname6 IN rulesdbo.dictionaries.dictionary_name%TYPE,
    p_weight6 IN rulesdbo.custom_index_attributes.weight%TYPE,
    p_dict_l2_code_value7 IN rulesdbo.dictionary_detail.dict_l2_code_value%TYPE,
    p_entity_xref7 IN rulesdbo.entity_xreference.xref_account_id%TYPE,
    p_entity_xref7_type IN rulesdbo.entity_xreference.xref_account_id_type%TYPE,
    p_source_dictname7 IN rulesdbo.dictionaries.dictionary_name%TYPE,
    p_weight7 IN rulesdbo.custom_index_attributes.weight%TYPE,
    p_dict_l2_code_value8 IN rulesdbo.dictionary_detail.dict_l2_code_value%TYPE,
    p_entity_xref8 IN rulesdbo.entity_xreference.xref_account_id%TYPE,
    p_entity_xref8_type IN rulesdbo.entity_xreference.xref_account_id_type%TYPE,
    p_source_dictname8 IN rulesdbo.dictionaries.dictionary_name%TYPE,
    p_weight8 IN rulesdbo.custom_index_attributes.weight%TYPE,
    p_dict_l2_code_value9 IN rulesdbo.dictionary_detail.dict_l2_code_value%TYPE,
    p_entity_xref9 IN rulesdbo.entity_xreference.xref_account_id%TYPE,
    p_entity_xref9_type IN rulesdbo.entity_xreference.xref_account_id_type%TYPE,
    p_source_dictname9 IN rulesdbo.dictionaries.dictionary_name%TYPE,
    p_weight9 IN rulesdbo.custom_index_attributes.weight%TYPE,
    p_dict_l2_code_value10 IN rulesdbo.dictionary_detail.dict_l2_code_value%TYPE,
    p_entity_xref10 IN rulesdbo.entity_xreference.xref_account_id%TYPE,
    p_entity_xref10_type IN rulesdbo.entity_xreference.xref_account_id_type%TYPE,
    p_source_dictname10 IN rulesdbo.dictionaries.dictionary_name%TYPE,
    p_weight10 IN rulesdbo.custom_index_attributes.weight%TYPE
    RETURN BOOLEAN
    AS
    l_count NUMBER:=0;
    v_instance rulesdbo.custom_index_attributes.instance%TYPE;
    v_target_dict_id rulesdbo.custom_index_attributes.target_dict_id%TYPE;
    v_source_dict_id rulesdbo.custom_index_attributes.source_dict_id%TYPE;
    v_entity_id rulesdbo.entity.entity_id%TYPE;
    v_entity_detail_id rulesdbo.entity_detail.entity_detail_id%TYPE;
    b_valid BOOLEAN;
    BEGIN
    dbms_output.put_line('TRYING TO INSERT NEW RECORD INTO RULESDBO.CUSTOM_INDEX_ATTRIBUTES');
    b_valid := getDictionaryId(p_target_dictname, v_target_dict_id);
    dbms_output.put_line('Target Dictionary Id = '||v_target_dict_id);
    -- process level 1
    if p_dict_l2_code_value1 is not null then
    dbms_output.put_line('Trying to process level 1');
    b_valid := processLevel(1,p_blend_entity_id,v_target_dict_id,p_dict_level,
    p_dict_l2_code_value1,p_entity_xref1,p_entity_xref1_type,
    p_source_dictname1,p_weight1);
    end if;
    -- process level 2
    if p_dict_l2_code_value2 is not null then
    dbms_output.put_line('Trying to process level 2');
    b_valid := processLevel(2,p_blend_entity_id,v_target_dict_id,p_dict_level,
    p_dict_l2_code_value2,p_entity_xref2,p_entity_xref2_type,
    p_source_dictname2,p_weight2);
    end if;
    -- process level 3
    if p_dict_l2_code_value3 is not null then
    dbms_output.put_line('Trying to process level 3');
    b_valid := processLevel(3,p_blend_entity_id,v_target_dict_id,p_dict_level,
    p_dict_l2_code_value3,p_entity_xref3,p_entity_xref3_type,
    p_source_dictname3,p_weight3);
    end if;
    -- process level 4
    if p_dict_l2_code_value4 is not null then
    dbms_output.put_line('Trying to process level 4');
    b_valid := processLevel(4,p_blend_entity_id,v_target_dict_id,p_dict_level,
    p_dict_l2_code_value4,p_entity_xref4,p_entity_xref4_type,
    p_source_dictname4,p_weight4);
    end if;
    -- process level 5
    if p_dict_l2_code_value5 is not null then
    dbms_output.put_line('Trying to process level 5');
    b_valid := processLevel(5,p_blend_entity_id,v_target_dict_id,p_dict_level,
    p_dict_l2_code_value5,p_entity_xref5,p_entity_xref5_type,
    p_source_dictname5,p_weight5);
    end if;
    -- process level 6
    if p_dict_l2_code_value6 is not null then
    dbms_output.put_line('Trying to process level 6');
    b_valid := processLevel(6,p_blend_entity_id,v_target_dict_id,p_dict_level,
    p_dict_l2_code_value6,p_entity_xref6,p_entity_xref6_type,
    p_source_dictname6,p_weight6);
    end if;
    -- process level 7
    if p_dict_l2_code_value7 is not null then
    dbms_output.put_line('Trying to process level 7');
    b_valid := processLevel(7,p_blend_entity_id,v_target_dict_id,p_dict_level,
    p_dict_l2_code_value7,p_entity_xref7,p_entity_xref7_type,
    p_source_dictname7,p_weight7);
    end if;
    -- process level 8
    if p_dict_l2_code_value8 is not null then
    dbms_output.put_line('Trying to process level 8');
    b_valid := processLevel(8,p_blend_entity_id,v_target_dict_id,p_dict_level,
    p_dict_l2_code_value8,p_entity_xref8,p_entity_xref8_type,
    p_source_dictname8,p_weight8);
    end if;
    -- process level 9
    if p_dict_l2_code_value9 is not null then
    dbms_output.put_line('Trying to process level 9');
    b_valid := processLevel(9,p_blend_entity_id,v_target_dict_id,p_dict_level,
    p_dict_l2_code_value9,p_entity_xref9,p_entity_xref9_type,
    p_source_dictname9,p_weight9);
    end if;
    -- process level 10
    if p_dict_l2_code_value10 is not null then
    dbms_output.put_line('Trying to process level 10');
    b_valid := processLevel(10,p_blend_entity_id,v_target_dict_id,p_dict_level,
    p_dict_l2_code_value10,p_entity_xref10,p_entity_xref10_type,
    p_source_dictname10,p_weight10);
    end if;
    RETURN b_valid;
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line('ERRROR - '||sqlerrm);
    RETURN NULL;
    END; -- customIndexAttributes func ends here
    ** if record in entity Detail exists add else update master entity id
    ** benchmark entity_id = p_mast_entity_id
    ** portfolio entity_id = p_feed_entity_id
    FUNCTION entityDetail( p_mast_entity_id rulesdbo.entity_detail.entity_detail_id%TYPE,
    p_feed_entity_id rulesdbo.entity_detail.entity_id%TYPE,
    p_entity_type rulesdbo.entity_detail.entity_type%TYPE,
    p_list_order rulesdbo.entity_detail.list_order%TYPE)
    RETURN BOOLEAN
    AS
    l_count NUMBER:=0;
    a_count NUMBER:=0;
    BEGIN
    /* if blended benchmark don't need record in ENTITY_DETAIL */
    if (p_entity_type = v_bb_entity_type) then
    return TRUE;
    end if;
    select count(*) into l_count
    from rulesdbo.entity_detail
    where entity_id = p_feed_entity_id
    and entity_type = p_entity_type
    and entity_detail_id = p_mast_entity_id;
    if l_count > 0 then
    dbms_output.put_line('UPDATING EXISTING RECORD IN RULESDBO.ENTITY_DETAIL');
    UPDATE rulesdbo.entity_detail
    SET
    update_date = v_date,
    update_user = v_update_source,
    src_intfc_inst = v_src_intfc_inst,
    list_order = p_list_order
    WHERE
    entity_detail_id = p_mast_entity_id
    AND entity_id = p_feed_entity_id
    AND entity_type = p_entity_type;
    RETURN TRUE;
    else
    /* validate associated entity_id */
    dbms_output.put_line('VALIDATING ASSOCIATED ENTITY_ID');
    dbms_output.put_line('p_feed_entity_id ' || p_feed_entity_id);
    select count(*) into a_count
    from rulesdbo.entity
    where entity_id = p_feed_entity_id;
    if a_count > 0 then
    dbms_output.put_line('INSERTING NEW RECORD INTO RULESDBO.ENTITY_DETAIL');
    INSERT INTO rulesdbo.entity_detail
    entity_detail_id, entity_id, entity_type, update_date, update_user, src_intfc_inst, list_order
    VALUES
    p_mast_entity_id, p_feed_entity_id, p_entity_type, v_date, v_update_source, v_src_intfc_inst, p_list_order
    RETURN TRUE;
    else
    IF p_feed_entity_id is not null then
    --For invalid, non-null associated_entity_id
    RETURN FALSE;
    END IF;
    --For invalid, null associate_entity_id
    return TRUE;
    end if;
    return TRUE;
    end if;
    EXCEPTION
    WHEN OTHERS THEN
    RETURN FALSE;
    END; -- entityDetail func ends here
    ** FOR BUSINESS GROUPS
    FUNCTION setBusinessGroup
    ( p_group_name pace_masterdbo.pace_user_groups.group_name%TYPE,
    p_entity_id rulesdbo.entity.entity_id%TYPE,
    p_upd_user pace_masterdbo.pace_user_groups.upd_user%TYPE,
    p_upd_datetime pace_masterdbo.pace_user_groups.upd_datetime%TYPE
    RETURN BOOLEAN
    AS
    g_count NUMBER:=0;
    v_group_id pace_masterdbo.pace_user_groups.group_id%TYPE;
    BEGIN
    /* validate that business group is found */
    select count(*) into g_count
    from pace_masterdbo.pace_user_groups
    where group_name = p_group_name;
    if g_count <= 0 then
    dbms_output.put_line('BUSINESS GROUP NOT FOUND - ' || p_group_name);
    return FALSE;
    end if;
    /* get group_id for given group name */
    select group_id into v_group_id
    from pace_masterdbo.pace_user_groups
    where group_name = p_group_name;
    /* check if record already exists in group_entities */
    select count(*) into g_count
    from pace_masterdbo.group_entities
    where group_id = v_group_id
    and entity_id = p_entity_id;
    if g_count > 0 then
    /* update record */
    UPDATE pace_masterdbo.group_entities
    SET upd_user = p_upd_user,
    upd_datetime = p_upd_datetime
    WHERE group_id = v_group_id
    AND entity_id = p_entity_id;
    dbms_output.put_line('UPDATED RECORD FOR BUSINESS GROUP - ' || p_group_name);
    else
    /* insert record */
    INSERT INTO pace_masterdbo.group_entities
    ( group_id, entity_id, upd_user, upd_datetime )
    VALUES
    ( v_group_id, p_entity_id, p_upd_user, p_upd_datetime );
    dbms_output.put_line('INSERTED NEW RECORD FOR BUSINESS GROUP - ' || p_group_name);
    end if;
    RETURN TRUE;
    EXCEPTION
    WHEN OTHERS THEN
    RETURN FALSE;
    END; -- setBusinessGroup func ends here
    ** MAIN
    BEGIN
    -- HX 17MAR05
    v_entity_name := substr(p_entity_name,1,30);
    v_entity_name := translate(v_entity_name,'/\:*?"<>~`!^|;,.''',' ');
    b_valid := getSourceId('EAGLE PACE', g_prf_intfc);
    dbms_output.put_line('Global Source Id = '||g_prf_intfc);
    validate_entityid(p_source_acct_id,p_source_system,v_entity_id, b_valid);
    IF NOT b_Valid THEN
    na_outparam(na_outparam.COUNT+1) := EagleGen.GetErrEdit(p_Src => g_prf_intfc,
    p_ShortDesc => 'INV ENTITY');
    p_OUT := EagleGen.simf_table_to_varchar(na_outparam);
    RETURN;
    END IF;
    if v_entity_id is not null then
    dbms_output.put_line('ENTITY ID EXISTS - ' || v_entity_id);
    /*Update Record in Entity Table */
    UPDATE rulesdbo.entity
    SET entity_type = p_entity_type,
    entity_name = v_entity_name,
    entity_long_name = substr(p_entity_long_name,1,60),
    legal_name = p_entity_legal_name,
    inception_date = to_date(p_inception_date, 'YYYYMMDD'),
    marketing_open_date = to_date(p_marketing_open_date, 'YYYYMMDD'),
    fiscal_end_date = to_date(p_fiscal_end_date, 'YYYYMMDD'),
    tax_id_number = p_tax_id_number,
    upd_date = v_date,
    upd_user = v_update_source,
    base_currency = p_base_currency,
    account_status = p_account_status,
    entity_code = p_entity_code,
    orig_source_system = p_orig_source_system,
    account_legal_form = p_account_legal_form,
    business_sector = p_business_sector,
    direct_account_ind = p_direct_account_ind,
    portfolio_type_code = p_portfolio_type_code,
    ml_interpolate_yn = p_ml_interpolate_yn
    WHERE entity_id = v_entity_id;
    dbms_output.put_line('UPDATED EXISTING RULESDBO.ENTITY RECORD');
    b_valid := entityDetail(v_entity_id, p_associated_entity_id, p_entity_type, p_list_order);
    else
    pace_masterdbo.getnextinstance('RULESDBO.ENTITY',1,v_entity_id);
    /*Insert Record into Entity Table */
    INSERT INTO rulesdbo.entity
    entity_id, entity_type, entity_name,entity_long_name,legal_name,inception_date,marketing_open_date,
    upd_date, upd_user, tax_id_number, fiscal_end_date, base_currency, account_status,
    entity_code, orig_source_system, account_legal_form, business_sector, direct_account_ind,
    portfolio_type_code, ml_interpolate_yn
    VALUES
    ( v_entity_id, p_entity_type,v_entity_name,substr(p_entity_long_name,1,60),p_entity_legal_name,
    to_date(p_inception_date, 'YYYYMMDD'),to_date(p_marketing_open_date, 'YYYYMMDD'),v_date, v_update_source, p_tax_id_number, to_date(p_fiscal_end_date, 'YYYYMMDD'),
    p_base_currency, p_account_status, p_entity_code, p_orig_source_system, p_account_legal_form, p_business_sector,
    p_direct_account_ind, p_portfolio_type_code, p_ml_interpolate_yn
    dbms_output.put_line('ENTITY ID CREATED - ' || v_entity_id);
    /*Insert Record into Entity_Detail Table */
    b_valid := entityDetail(v_entity_id, p_associated_entity_id, p_entity_type, p_list_order);
    end if;
    /* Insert/Update CUSTOM_INDEX_ATTRIBUTES if blended benchmark */
    if (p_entity_type = v_bb_entity_type) then
    b_valid := customIndexAttributes(
    v_entity_id,
    p_target_dict_name,
    p_source_level1,
    p_source_entity_xref1,
    p_source_entity_xref1_type,
    p_source_dict_name1,
    p_weight1,
    p_source_level2,
    p_source_entity_xref2,
    p_source_entity_xref2_type,
    p_source_dict_name2,
    p_weight2,
    p_source_level3,
    p_source_entity_xref3,
    p_source_entity_xref3_type,
    p_source_dict_name3,
    p_weight3,
    p_source_level4,
    p_source_entity_xref4,
    p_source_entity_xref4_type,
    p_source_dict_name4,
    p_weight4,
    p_source_level5,
    p_source_entity_xref5,
    p_source_entity_xref5_type,
    p_source_dict_name5,
    p_weight5,
    p_source_level6,
    p_source_entity_xref6,
    p_source_entity_xref6_type,
    p_source_dict_name6,
    p_weight6,
    p_source_level7,
    p_source_entity_xref7,
    p_source_entity_xref7_type,
    p_source_dict_name7,
    p_weight7,
    p_source_level8,
    p_source_entity_xref8,
    p_source_entity_xref8_type,
    p_source_dict_name8,
    p_weight8,
    p_source_level8,
    p_source_entity_xref9,
    p_source_entity_xref9_type,
    p_source_dict_name9,
    p_weight9,
    p_source_level10,
    p_source_entity_xref10,
    p_source_entity_xref10_type,
    p_source_dict_name10,
    p_weight10
    end if;
    /* Insert/Update Business Groups */
    b_valid := setBusinessGroup(v_group_name1, v_entity_id, v_update_source, v_date);
    b_valid := setBusinessGroup(v_group_name2, v_entity_id, v_update_source, v_date);
    b_valid := setBusinessGroup(v_group_name3, v_entity_id, v_update_source, v_date);
    b_valid := setBusinessGroup(v_group_name4, v_entity_id, v_update_source, v_date);
    b_valid := setBusinessGroup(v_group_name5, v_entity_id, v_update_source, v_date);
    b_valid := setBusinessGroup(v_group_name6, v_entity_id, v_update_source, v_date);
    b_valid := setBusinessGroup(v_group_name7, v_entity_id, v_update_source, v_date);
    b_valid := setBusinessGroup(v_group_name8, v_entity_id, v_update_source, v_date);
    b_valid := setBusinessGroup(v_group_name9, v_entity_id, v_update_source, v_date);
    b_valid := setBusinessGroup(v_group_name10, v_entity_id, v_update_source, v_date);
    b_valid := setBusinessGroup(v_group_name11, v_entity_id, v_update_source, v_date);
    b_valid := setBusinessGroup(v_group_name12, v_entity_id, v_update_source, v_date);
    b_valid := setBusinessGroup(v_group_name13, v_entity_id, v_update_source, v_date);
    b_valid := setBusinessGroup(v_group_name14, v_entity_id, v_update_source, v_date);
    /* Insert/Update entity xref */
    b_valid := entity_xref(p_source_acct_id, p_source_system, v_entity_id);
    IF NOT b_Valid THEN
    dbms_output.put_line('INV ENT XREF 1');
    na_outparam(na_outparam.COUNT+1) := EagleGen.GetErrEdit(p_Src => g_prf_intfc,
    p_ShortDesc => 'INV ENT XREF');
    p_OUT := EagleGen.simf_table_to_varchar(na_outparam);
    RETURN;
    END IF;
    COMMIT;
    /* Pass back any warning messages */
    p_out := EagleGen.simf_table_to_varchar(na_outparam);
    END; -- End of Procedure

    The PLS-00306 error is normally a runtime error. It is telling you that the call to procedure ENTPRFMAN had either too few or too many parameters passed to it or that one or more of the parameters were of the wrong datatype.
    HTH -- Mark D Powell --

  • ORA-00028: your session has been killed..

    Hi,
    In application side, they are getting this error ORA-00028: your session has been killed . we never killed any session. there is no information in alert log file and trace file. pleas help
    Thanks,

    This applicaation error log,
    11:15:58.690 SQL t@3139 select * from mxRangeList where mxAttr=:va
    11:15:58.690 SQL t@3139 :va=59458927
    11:15:58.690 SQL t@3139 -->select
    11:15:58.690 SQL t@3139 select * from mxRangeList where mxAttr=:va
    11:15:58.690 SQL t@3139 :va=1617182098
    11:15:58.690 SQL t@3139 -->select
    11:15:58.690 SQL t@3139 select * from mxRangeList where mxAttr=:va
    11:15:58.690 SQL t@3139 :va=1614231164
    11:15:58.690 SQL t@3139 -->select
    11:15:58.690 SQL t@3139 select * from mxRangeList where mxAttr=:va
    11:15:58.690 SQL t@3139 :va=1614239626
    11:15:58.690 SQL t@3139 -->select
    11:15:58.690 SQL t@3139 select * from mxRangeList where mxAttr=:va
    11:15:58.690 SQL t@3139 :va=492805249
    11:15:58.690 SQL t@3139 -->select
    11:15:58.700 SQL t@3043 select * from mxProperty where mxOid=:va and upper(mxName)=upper(:vb)
    11:15:58.700 SQL t@3043 :va=591403194
    11:15:58.700 SQL t@3043 :vb=attribute_Count
    11:15:58.720 SQL t@3043 -->select
    11:15:58.720 SQL t@3043 select * from mxProperty where mxOid=:va and upper(mxName)=upper(:vb)
    11:15:58.720 SQL t@3043 :va=591403194
    11:15:58.720 SQL t@3043 :vb=person_UserAgent**********Error Trace::Version 10.6.2.5-Global::Thu Mar 19 16:45:58 2009 ( 11:15:58.750 GMT t@3043 )
    #6 Error #1900068 print program failed
    #5 System Error #1600000 "/MXD-10625/src/cmd/select.C":306
    #4 System Error #1600000 "/MXD-10625/src/dbutil/SelectAdministrationObject.C":321
    #3 System Error #1600000 "/MXD-10625/src/db/Property.C":851
    #2 System Error #1600000 "/MXD-10625/src/schema/mxHandle.C":2169
    #1 System Error #1600000 "/MXD-10625/src/schema/mxHandle.C":1084
    #0 System Error #1 ORA-00028: your session has been killed
    11:15:58.750 SQL t@3043 select * from mxDrvInfo where mxType=:va and mxKind=:vb
    11:15:58.750 SQL t@3043 :va=1825621126
    11:15:58.750 SQL t@3043 :vb=20**********Error Trace::Version 10.6.2.5-Global::Thu Mar 19 16:45:58 2009 ( 11:15:58.750 GMT t@3043 )
    #6 Error #1900068 exec program failed
    #5 System Error #1600000 "/MXD-10625/src/cmd/program.C":571
    #4 System Error #1600000 "/MXD-10625/src/db/Program.C":2007
    #3 System Error #1600000 "/MXD-10625/src/db/Program.C":755
    #2 System Error #1600000 "/MXD-10625/src/schema/mxHandle.C":2169
    #1 System Error #1600000 "/MXD-10625/src/schema/mxHandle.C":1084
    #0 System Error #1 ORA-03114: not connected to ORACLE
    Thnaks,

  • Exception ORA-12537: Network Session: End of file, Oracle.ManagedDataAccess

    My environment:
    > Oracle 11g expression edition in Win7 ("DevDB")
    > Oracle 11g in non-Windows platform ("ProDB")
    > Oracle.ManagedDataAccess.dll (file version is 4.121.1.0, product version is 4.121.1.20131211)
    > Instant client sqlplus
    If I use sqlplus to connect "DevDB" and "ProDB" with following command, both DBs can be connected successfully.
    > sqlplus someUser@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxx.xxx.xxx)(PORT=1521))(CONNECT_DATA=(SID=DBSID)))
    If I use following codes with Oracle.ManagedDataAccess.dll to connect DBs.
    string connectionString = "User Id=someUser;Password=somePwd;Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxx.xxx.xxx)(PORT=1521))(CONNECT_DATA=(SID=DBSID)))";
    OracleConnection con = new OracleConnection(connectionString);
    try{
      con.Open();
    } catch (Exception e) {
      Console.WriteLine(e.Message);
      Console.WriteLine(e.StackTrace);
    } finally {
      if (con != null)
      con.Dispose();
    It can connect to "DevDB" successfully. However, when I try to connect "ProDB", it throws following exception.
    ORA-12537: Network Session: End of file
       at OracleInternal.ConnectionPool.PoolManager`3.CreateNewPR(Int32 reqCount, Boolean bForPoolPopulation, ConnectionString csWithDiffOrNewPwd, String instanceName)
       at OracleInternal.ConnectionPool.PoolManager`3.Get(ConnectionString csWithDiffOrNewPwd, Boolean bGetForApp, String affinityInstanceName, Boolean bForceMatch)
       at OracleInternal.ConnectionPool.OraclePoolManager.Get(ConnectionString csWithNewPassword, Boolean bGetForApp, String affinityInstanceName, Boolean bForceMatch)
       at OracleInternal.ConnectionPool.OracleConnectionDispenser`3.Get(ConnectionString cs, PM conPM, ConnectionString pmCS, SecureString securedPassword, SecureString securedProxyPassword)
       at Oracle.ManagedDataAccess.Client.OracleConnection.Open()
    Any tips to fix this problem?
    Thanks

    I added following settings in app.config file
      <configSections>
        <section name="oracle.manageddataaccess.client" type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess" />
      </configSections>
      <oracle.manageddataaccess.client>
        <version number="*">
          <settings>
            <setting name="SQLNET.AUTHENTICATION_SERVICES" value="all"/>
            <setting name="NAMES.DIRECTORY_PATH" value="ezconnect"/>
          </settings>
        </version>
      </oracle.manageddataaccess.client>
    Still failed, sometimes it throws "ORA-12537: Network Session: End of file", sometimes throws "ORA-03135: Connection lost contact".
    As ORA-12537 after change to Oracle.ManagedDataAcess.dll mentioned, it works without any problem with the unmanaged library.Please advice, thx.

  • TAF: instead of waiting, ORA-00028: your session has been killed

    I'm testing the ability of our application to work with a RAC cluster.
    When I stop a node with the command:
    srvctl stop service -d DB_UNIQUE_NAME -s SERVICE -f, I expect that the driver will try to reconnect transparently without notifying the application.
    In some circumstances, the application may receive errors in the range ORA-25400 - ORA-25425, but the reconnect should be automatic anyway.
    This is the case, mostly.
    But the last time when I stopped the node, 9 of 10 threads of our app began to wait for the driver's reply (as expected). And one thread instantly received the error: ORA-00028: your session has been killed
    The subsequent attempts to use this connection failed with: ORA-01012: not logged on
    tnsnames.ora:
    PPB_RAP.EXASTAG.PIOSCS =
      (DESCRIPTION =
        (CONNECT_TIMEOUT=4)(TRANSPORT_CONNECT_TIMEOUT=3)
        (ENABLE=BROKEN)
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = sdm2-scan.it.bwns.ch)(PORT = 1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = sdm1-scan.it.bwns.ch)(PORT = 1521))
        (LOAD_BALANCE = yes)
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = PPB_RAP.EXASTAG.PIOSCS)
          (FAILOVER_MODE =
            (TYPE = SELECT)
            (METHOD = BASIC)
            (RETRIES = 180)
            (DELAY = 5)
      )Client: 11.2.0.1.0 32bit
    Server:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Data Mining and Real Application Testing options

    940607 wrote:
    What does it mean?http://www.lmgtfy.com/?q=oracle+TAF+DML

  • Database error - ORA-00028: your session has been killed

    Hi, I'm working with Discoverer 10g and eBS 11.5.9
    I have an application user (oracle) which works perfectly when I login with Discoverer Viewer, but when I try to login with Discoverer Desktop (the Oracle application user check box is checked),I have the following behaviour:
    1. I (apparently) connect to the DB
    2. I choose the responsibility
    3. I receive the error:
    Enable to connect to: oracle@rac
    Database error - ORA-00028: your session has been killed
    The strange thing is that this application user works perfectly with Viewer.....
    Anyone knows if there is some lock at the database level, and which lock ? or it's something related to the Discoverer Administrator's permissions ?
    Thanks in advance
    Alessandro

    Hi, I'm working with Discoverer 10g and eBS 11.5.9
    I have an application user (oracle) which works perfectly when I login with Discoverer Viewer, but when I try to login with Discoverer Desktop (the Oracle application user check box is checked),I have the following behaviour:
    1. I (apparently) connect to the DB
    2. I choose the responsibility
    3. I receive the error:
    Enable to connect to: oracle@rac
    Database error - ORA-00028: your session has been killed
    The strange thing is that this application user works perfectly with Viewer.....
    Anyone knows if there is some lock at the database level, and which lock ? or it's something related to the Discoverer Administrator's permissions ?
    Thanks in advance
    Alessandro

  • ORA-00283: recovery session canceled due to errors

    Dear All,
    I have standby database in which STANDBY_FILE_MANAGEMENT was MANUAL. I have shrink undo table-space in primary database. After 2 days I tried to recover standby database. I got following error.
    ORA-00283: recovery session canceled due to errors
    ORA-01274: cannot add data file '/home/app/oracle/oradata/OMNDB/undotbs01.dbf'
    - file could not be created
    I am unable to shrink undo table-space in standby database as I did in primary database as it is not open.
    please anyone help me to get clarify this issue.
    In Standby_
    SQL> select name from v$datafile;
    NAME
    /home/app/oracle/oradata/OMNDB/system01.dbf
    /home/app/oracle/oradata/OMNDB/undotbs01.dbf
    /home/app/oracle/oradata/OMNDB/sysaux01.dbf
    /home/app/oracle/oradata/OMNDB/MY_oms_ts01.dbf
    /home/app/oracle/oradata/OMNDB/nologging_ts01.dbf

    Thank you CKPT for reply.
    this is the output when MRP
    SQL> recover standby database;
    ORA-00283: recovery session canceled due to errors
    ORA-01111: name for data file 2 is unknown - rename to correct file
    ORA-01110: data file 2: '/home/app/oracle/product/10.2.0/db_1/dbs/UNNAMED00002'
    ORA-01157: cannot identify/lock data file 2 - see DBWR trace file
    ORA-01111: name for data file 2 is unknown - rename to correct file
    ORA-01110: data file 2: '/home/app/oracle/product/10.2.0/db_1/dbs/UNNAMED00002'
    this is in the alert log
    ORA-1112 signalled during: ALTER DATABASE RECOVER CANCEL ...
    Tue Jan 29 09:17:53 2013
    db_recovery_file_dest_size of 10240 MB is 0.00% used. This is a
    user-specified limit on the amount of space that will be used by this
    database for recovery-related files, and does not reflect the amount of
    space available in the underlying filesystem or ASM diskgroup.
    Tue Jan 29 10:29:57 2013
    ALTER DATABASE RECOVER standby database
    Tue Jan 29 10:29:57 2013
    Media Recovery Start
    Managed Standby Recovery not using Real Time Apply
    Tue Jan 29 10:29:57 2013
    Media Recovery failed with error 1111
    ORA-283 signalled during: ALTER DATABASE RECOVER standby database ...

  • ORA-00283: recovery session canceled due to errors. Help me.

    Something appears to be wrong with my control file backup. Upon
    moving the backed up files to my "test" machine, I place them in the
    data directory, and rename my control file backup to the correct name
    and run this procedure:
    - I start the instance
    - I mount the database
    - I issue a recover database
    I then receive the following error:
    ORA-00283: recovery session canceled due to errors
    ORA-01610: recovery using the BACKUP CONTROLFILE option must be done
    Does anyone have any thoughts around this?

    Hi,
    Have you taken backup of control file?
    (alter database backup controlfile to trace)
    Does the path of datafiles on test machine is same as that of production machine from where you have copied files?
    Steps:
    1> startup nomount
    2> copy create controlfile command from tracefile
    If paths are different change them.
    3> recover database until cancel using backup controlfile
    It will ask archive logs path, specify path.
    Press cancel after you have applied all archivelogs.
    4> alter database open resetlogs
    5> add tempfile in database.

Maybe you are looking for