APEX SSO - execution of regapp.sql failing

Hi All,
I have Database 11.1.0.6.0. APEX version is 3.0.1
I am trying to Configure SSO(single sign-on) with Apex.
I am logged in as FLOWS_030100 into the database
I am facing following issues when trying to execute the regapp.sql, which is extracted from ssosdk902.zip. I got this zip from 10.1.2.0.1 Oracle App Server and trying to use it for configuration for version 10.1.3.1
1. It fails with following error.
Partner Application Configuration
ERROR: Error in registration. Please try again
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
PL/SQL procedure successfully completed.
Commit complete.
I figured out it was complaining for the l_ip_check varchar2(1); size, I increased that but then I got the following message:
Partner Application Configuration
ERROR: Error in registration. Please try again
User-Defined Exception
PL/SQL procedure successfully completed.
Commit complete.
No errors.
I am wondering why is it not prompting for the values. Is there some change I should be doing to the regapp.sql to get it working for 11g DataBase.
Please reply.
Thanks
Pooja
Edited by: user539270 on Mar 19, 2009 11:57 PM

Hi Scott
Thanks for the reply!
I got the script working without any change when executed from SQL Developer.
How ever I am facing issue after getting the APEX configured with Oracle SSO. I have opened another thread with the details.
(Facing Issues: APEX Configuration with SSO
Please have a look.
Regards
Pooja

Similar Messages

  • APEX SSO and Load balancing: Could not determine workspace for application

    We had a single HTTP Server serving APEX in a 10.2.0.2 database configured with SSO to be used by the developers. APEX has been registered as a partner application and the login url has been CA Siteminder protected so that the SM_USER details are forwarded in the header for the application to use for authorization. Everything is fine so far.
    Now we have added a HTTP Server on another host and have it all set up for APEX and its pointing to the same database. APEX_ADMIN access works as normal, but applications previously using SSO now get the following error after entering the URL.
    Expecting p_company or wwv_flow_company cookie to contain security group id of application owner.
    Error ERR-7620 Could not determine workspace for application ().
    Using HTTP Watch I find that the application is not even trying to redirect to the login page.
    What is wrong here?

    APEX has been registered as a partner application as described in
    http://www.oracle.com/technology/products/database/application_express/howtos/sso_partner_app.html
    In the meantime I found metalink document 368746.1 which describes the cause of this problem. Please read carefully what I wrote, it all works when the the new APEX web server is turned off in the server farm on the load balancer and directed through the original web server. When running regapp.sql the hostname in the listener token was using the virtual hostname. This works fine if the request comes from the original APEX server which proofs that there is nothing wrong with the installation and set up of SSO. When directing the request to the new APEX web server the APEX_ADMIN page still works only existing work spaces using SSO don't seems to work anymore resulting in a error as described in the subject.
    As for metalink document 368746.1 naming the causes of this error:
    - there are no duplicate entries in WWSEC_ENABLER_CONFIG_INFO$
    -LISTENER_TOKEN clearly works for requests coming from the first web server
    -theoretically the web server listener port could be changed from 7777, but port 80 needs to be maintained here as production is mimiced as far down as possible.
    Is there some cache table which can be cleared? How is it that the flows schema (apex engine) can not find the work space when the request comes from a new web server which can however access the APEX_ADMIN pages.
    anyone?

  • Problem with apex sso

    Hi all,
    I installed Oracle 11g, apex is 2.0
    then i updraded to apex 3.1.
         I want to enable sso for apex applications,
    for that i followed the below steps:
    step 1) Created authentication scheme for the application
    step 2) in flows_030100 schema i ran loadsdk.sql script.
    After that i ran regapp.sql script, but it is giving error : "numeric or value error; character buffer too small"
    can you pls tell me how to fix this problem.regards
    K M
    Edited by: [email protected] on Apr 17, 2009 10:53 PM

    Hi,
    See also at metalink note
    Note 562807.1
    Configuring an APEX Application to Use SSO With SDK in
    Kind regards,
    Iloon

  • Upgrade to APEX 4.2.3 apexins_con.sql gets: catconInit: database is not open Unexpected error encountered in catconInit; exiting

    Upgrade to APEX 4.2.3 apexins_con.sql gets Unexpected error encountered in catconInit; exiting
    I am attempting to install/upgrade apex 4.2.3 under Oracle12c in a Multi-Tenant configuration.
    Here are the environmental details
    Windows 7 64 bit
    Apex 4.2.3
    ORCL: CDB$ROOT
    PDBORCL: PDB$SEED
    Here is the current states of the pluggable databases
    SQL> SELECT NAME,OPEN_MODE,TOTAL_SIZE/1024/1024/1024 FROM V$PDBS;
    NAME                           OPEN_MODE  TOTAL_SIZE/1024/1024/1024
    PDB$SEED                       READ ONLY                 .263671875
    PDBORCL                        READ WRITE                .366210938
    SQL>
    This is the command that I am using to re-install/upgrade APEX:
    # remove 4.2.2 installation
    cd M:\apex_4.2.3\apex_4.2.3_en\apex
    sqlplus /@ORCL as sysdba
    @apxremov.sql   <<  this was successful
    quit
    Install 4.2.3 installation
    sqlplus /@ORCL as sysdba
    @apexins_con.sql i10wrk SYSAUX SYSAUX TEMP /i/  << this failed
    The APEX  installation fails immediately with the following message:
    catconInit: database is not open
    Unexpected error encountered in catconInit; exiting
    I cannot determine which database is not open.  Both my CDB$ROOT and PDBORCL are reported as open (READ WRITE Mode).
    Here is my Container database
    SQL>  SELECT SYS_CONTEXT ('USERENV', 'CON_NAME') FROM DUAL;
    SYS_CONTEXT('USERENV','CON_NAME')
    CDB$ROOT
    SQL> select instance_name,status from v$instance;
    INSTANCE_NAME    STATUS
    orcl             OPEN
    SQL>
    Here is the associated Pluggable Database
    sqlplus /@PDBORCL as sysdba
    SQL> select instance_name,status from v$instance;
    INSTANCE_NAME    STATUS
    orcl             OPEN
    SQL> ALTER PLUGGABLE DATABASE PDBORCL OPEN;
    ALTER PLUGGABLE DATABASE PDBORCL OPEN
    ERROR at line 1:
    ORA-65019: pluggable database PDBORCL already open
    I am confused…. Which database is not open?
    The PDB$SEED is open in (READ ONLY) mode, but that is simply the template database.  I don't think that ever needs to be open in (Read Write) mode.

    sbing52,
    I cannot vouch for the specific error that is being returned by catcon.pl, but I would try the following in your situation.
    1. It seems you connect to CDB$ROOT and ran apxremov.sql. This only removed the common APEX option from CDB$ROOT. Your PDB is now in an inconsistent state, since APEX is no longer in the root. I would reconnect to CDB$ROOT and run apxremov_con.sql, make sure you use the one from the 4.2.3 distribution. The one in the ORACLE home will not work.
    2. I would then re-run apexins_con.sql connect to CDB$ROOT. Also, you need to pass the proper parameters. Why are you passing i10wrk? You should be invoking it like:
    @apexins_con.sql SYSAUX SYSAUX TEMP /i/
    Regards,
    Jason

  • RC-50014: Fatal: Execution of AutoConfig was failed

    Hi
    I did HOT clone via RMAN.
    We have 11g DB and 12.1.3 APPS
    after run adcfgclone on appsTier
    after 77% completion , i got error
    RC-50014: Fatal: Execution of AutoConfig was failed
    Please Reply me
    Thanks
    Mohammad
    Edited by: user10493335 on Nov 12, 2011 7:41 AM

    Here is log file content
    [AutoConfig Error Report]
    The following report lists errors AutoConfig encountered during each
    phase of its execution. Errors are grouped by directory and phase.
    The report format is:
    <filename> <phase> <return code where appropriate>
    [SETUP PHASE]
    AutoConfig could not successfully execute the following scripts:
    Directory: /u01/PIMTEST/inst/apps/PIMTEST_usadanaspimtst2/admin/install
    adgendbc.sh INSTE8_SETUP 1
    afcpnode.sh INSTE8_SETUP 1
    afgcsreg.sh INSTE8_SETUP 1
    txkWfClone.sh INSTALL_SETUP 1
    [PROFILE PHASE]
    AutoConfig could not successfully execute the following scripts:
    Directory: /u01/PIMTEST/inst/apps/PIMTEST_usadanaspimtst2/admin/install
    adadmprf.sh INSTE8_PRF 1
    admk80ln.sh INSTALL_PRF 1
    afadmprf.sh INSTE8_PRF 1
    afcpctx.sh INSTE8_PRF 1
    afcpgsm.sh INSTE8_PRF 1
    ibywebprf.sh INSTE8_PRF 1
    igccmprf.sh INSTE8_PRF 1
    jtfictx.sh INSTE8_PRF 1
    okladmprf.sh INSTE8_PRF 1
    txkJavaMailerCfg.sh INSTE8_PRF 1
    txkWebServicescfg.sh INSTE8_PRF 1
    Directory: /u01/PIMTEST/tech_st/10.1.3/perl/bin/perl -I /u01/PIMTEST/tech_st/10.1.3/perl/lib/5.8.3 -I /u01/PIMTEST/tech_st/10.1.3/perl/lib/site_perl/5.8.3 -I /u01/PIMTEST/apps_st/appl/au/12.0.0/perl -I /u01/PIMTEST/tech_st/10.1.3/Apache/Apache/mod_perl/lib/site_perl/5.8.3/i686-linux-thread-multi /u01/PIMTEST/inst/apps/PIMTEST_usadanaspimtst2/admin/scripts/adexecsql.pl sqlfile=/u01/PIMTEST/inst/apps/PIMTEST_usadanaspimtst2/admin/install
    afwebprf.sql INSTE8_PRF 1
    amscmprf.sql INSTE8_PRF 1
    amswebprf.sql INSTE8_PRF 1
    bisadmprf.sql INSTE8_PRF 1
    bisdblrp.sql INSTE8_PRF 1
    clnadmprf.sql INSTE8_PRF 1
    cncmprf.sql INSTE8_PRF 1
    cseadmprf.sql INSTE8_PRF 1
    csfadmprf.sql INSTE8_PRF 1
    csiadmprf.sql INSTE8_PRF 1
    eamadmprf.sql INSTE8_PRF 1
    fteadmprf.sql INSTE8_PRF 1
    icxwebprf.sql INSTE8_PRF 1
    oksfrmprf.sql INSTE8_PRF 1
    wshadmprf.sql INSTE8_PRF 1
    [APPLY PHASE]
    AutoConfig could not successfully execute the following scripts:
    Directory: /u01/PIMTEST/tech_st/10.1.3/perl/bin/perl -I /u01/PIMTEST/tech_st/10.1.3/perl/lib/5.8.3 -I /u01/PIMTEST/tech_st/10.1.3/perl/lib/site_perl/5.8.3 -I /u01/PIMTEST/apps_st/appl/au/12.0.0/perl -I /u01/PIMTEST/tech_st/10.1.3/Apache/Apache/mod_perl/lib/site_perl/5.8.3/i686-linux-thread-multi /u01/PIMTEST/inst/apps/PIMTEST_usadanaspimtst2/admin/install
    adadmat.pl INSTE8_APPLY 1
    AutoConfig is exiting with status 31
    RC-50014: Fatal: Execution of AutoConfig was failed
    Raised by oracle.apps.ad.clone.ApplyApplTop
    ERROR: AutoConfig completed with errors. Check logfile at /u01/PIMTEST/inst/apps/PIMTEST_usadanaspimtst2/admin/log/ApplyAppsTier_11121014.log for details.
    ApplyApplTop Completed Successfully.
    # Checking the status of AutoConfig run of ApplyApplTop
    Warning : AutoConfig has completed with errors .
    Please review the AutoConfig section in the logfile. If required, you can re-run AutoConfig from command line after fixing the problem
    Thanks
    Mohammad

  • Regapp.sql parameters

    I am trying to register APEX as a partner application using regapp.sql command. Where on the AS would I find the values for the following parameters?
    p_site_token
    p_site_id
    p_login_url
    p_encryption_key
    Thanks

    sch5479,
    Have a look at the following link -
    http://www.oracle.com/technology/products/database/application_express/howtos/sso_partner_app.html
    It describes exactly how to setup an Apex application as a partner Application with Oracle SSO

  • How to trace an ApEx page processes(anonymous PL/SQL) submited by any user?

    Dear Friends;
    can I trace an ApEx page processes (anonymous PL/SQL code step by step) submitted by any user?
    could you explain in detail, please?
    regards
    Siya
    Edited by: sak on Feb 3, 2012 1:07 AM

    Hello
    You can get user id using select v('APP_USER') FROM DUAL or simply :APP_USER.
    Zulqarnain
    MaxApex Hosting
    http://www.maxapex.com

  • How to find the number of executions of a sql oracle 10g

    Is there any script handy which is useful to get the number of executions of a sql in particualr time in a rac environment.

    A lot depends on what time period you're trying to count the executions over...
    In V$SQL, there is a column EXECUTIONS that will count the number of executions since the SQL statement was loaded into the shared pool, which may be too long a period or too short a period for your question.
    If you are trying to get historical information and you have licensed the performance & tuning pack so that you can get the AWR, you could query the DBA_HIST_SQLSTAT table over an appropriate set of SNAP_ID's to get the totals for an arbitrary period of time.
    Justin

  • Adcfgclone.pl error:RC-50014: Fatal: Execution of AutoConfig was failed

    hi all,
    i got following error while cloning of R12 instance on HP UX.
    after copying from source to target i have run perl adcfgclone.pl dbTechStack.
    error...
    Starting synchronization of file system Context file and its templates with those in the database
    Database connection : Failed
    OAM Context editing support feature: Unverified
    OAM Customization support feature : Unverified
    File system template : /erpdev1/orarsu/db/tech_st/10.2.0/appsutil/template/adxdbctx.tmp
    No uploading of Context file and its templates to database. Database conection failed
    [AutoConfig Error Report]
    The following report lists errors AutoConfig encountered during each
    phase of its execution. Errors are grouped by directory and phase.
    The report format is:
    <filename> <phase> <return code where appropriate>
    [INSTANTIATE PHASE]
    AutoConfig could not successfully instantiate the following files:
    Directory: /erpdev1/orarsu/db/tech_st/10.2.0/appsutil/install/RSU_reeldev
    adcrdb.sh INSTE8
    AutoConfig is exiting with status 1
    RC-50014: Fatal: Execution of AutoConfig was failed
    Raised by oracle.apps.ad.clone.ApplyDBTechStack
    regards,
    sandeep.

    hi,
    i already have checked <RDBMS ORACLE_HOME>/appsutil/log/<Context_name>/<MMDDhhmm>/adconfig.log location but there is no directory with <MMDDhhmm>/adconfig.log..
    can u check below update....i think i m missing some syntex
    adcfgclone.pl dbconfig /erpdev1/orarsu/db/tech_st/10.2.0/appsutil/RSU_reeldev.xml
    Copyright (c) 2002 Oracle Corporation
    Redwood Shores, California, USA
    Oracle Applications Rapid Clone
    Version 12.0.0
    adcfgclone Version 120.20.12000000.12
    Enter the APPS password :
    Running Rapid Clone with command:
    perl /erpdev1/orarsu/db/tech_st/10.2.0/appsutil/clone/bin/adclone.pl java=/erpdev1/orarsu/db/tech_st/10.2.0/appsutil/clone/bin/../jre mode=apply stage=/erpdev1/orarsu/db/tech_st/10.2.0/appsutil/clone component=dbconfig method=CUSTOM dbctxtg=/erpdev1/orarsu/db/tech_st/10.2.0/appsutil/RSU_reeldev.xml showProgress contextValidated=false
    Running:
    perl /erpdev1/orarsu/db/tech_st/10.2.0/appsutil/clone/bin/adclone.pl java=/erpdev1/orarsu/db/tech_st/10.2.0/appsutil/clone/bin/../jre mode=apply stage=/erpdev1/orarsu/db/tech_st/10.2.0/appsutil/clone component=dbconfig method=CUSTOM dbctxtg=/erpdev1/orarsu/db/tech_st/10.2.0/appsutil/RSU_reeldev.xml showProgress contextValidated=false
    APPS Password :
    Setting SHLIB_PATH to :/erpdev1/orarsu/db/tech_st/10.2.0/appsutil/clone/oui/lib/hpunix
    Beginning dbconfig Apply - Sat Apr 24 12:19:55 2010
    /erpdev1/orarsu/db/tech_st/10.2.0/appsutil/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=false -Doracle.installer.oui_loc=/erpdev1/orarsu/db/tech_st/10.2.0/oui -classpath /erpdev1/orarsu/db/tech_st/10.2.0/appsutil/clone/jlib/xmlparserv2.jar:/erpdev1/orarsu/db/tech_st/10.2.0/appsutil/clone/jlib/ojdbc14.jar:/erpdev1/orarsu/db/tech_st/10.2.0/appsutil/clone/jlib/java:/erpdev1/orarsu/db/tech_st/10.2.0/appsutil/clone/jlib/oui/OraInstaller.jar:/erpdev1/orarsu/db/tech_st/10.2.0/appsutil/clone/jlib/oui/ewt3.jar:/erpdev1/orarsu/db/tech_st/10.2.0/appsutil/clone/jlib/oui/share.jar:/erpdev1/orarsu/db/tech_st/10.2.0/appsutil/clone/jlib/oui/srvm.jar:/erpdev1/orarsu/db/tech_st/10.2.0/appsutil/clone/jlib/ojmisc.jar oracle.apps.ad.clone.ApplyDatabase -e /erpdev1/orarsu/db/tech_st/10.2.0/appsutil/RSU_reeldev.xml -stage /erpdev1/orarsu/db/tech_st/10.2.0/appsutil/clone -rmanstage -rmantgtloc -srcdbname -showProgress -checkDBConnection
    -e
    /erpdev1/orarsu/db/tech_st/10.2.0/appsutil/RSU_reeldev.xml
    -stage
    /erpdev1/orarsu/db/tech_st/10.2.0/appsutil/clone
    -rmanstage
    -rmantgtloc
    -srcdbname
    -showProgress
    -checkDBConnection
    Option -rmanstage can only appear once
    usage:
    java oracle.apps.ad.clone.ApplyDatabase
    -e CONTEXT [-stage STAGE_DIR]
    [-stagestub STAGE_STUB] [-verbose]
    [-rmanstage RMANSTAGE]
    [-rmantgtloc RMANTGTLOC]
    [-srcdbname SRCDBNAME]
    [-nthreads NUMBER] [-showProgress] [-pwd PASSWD]
    [-phase bits|reg|cfg|all]
    [-node initial*|add|remove] [-shared]
    [-dbmode clone*|restore|standby]
    [-checkDBConnection] [-configracnode]
    where:
    CONTEXT = Applications context file name
    STAGE_DIR = Cloning stage directory
    Only used if running 'Copy Bits' phase.
    STAGE_STUB = Custom stage sub directory
    Only used if running 'Copy Bits' phase.
    -verbose = if specified, will run in verbose mode
    NUMBER = Number of threads used in the zip action. Range [1-20]
    showProgress = Shows the progress of the process
    bits = process only the 'Copy Bits' portion of the clone
    reg = process only the 'Registration' portion of the clone
    cfg = process only the 'Configuration' portion of the clone
    all = processes 'Copy Bits', 'Registration', and 'Configuration'
    initial = (default value) runs process for creating initial node
    add = runs process for creating initial node
    remove = runs process for creating initial node
    shared = Used for shared filesystem nodes.
    Verifies and uses bits that are already present.
    Only used if running 'Copy Bits' phase.
    clone = Standard cloning mode where the new database is brought up
    with a new DBID and Global DB Name. Clean-up and setup
    processes may be started
    restore = Used to restore a database. DBID, GDBN, and
    setup information are not changed.
    standby = Used to create a standby database. Database is
    not opened and no changes are made.
    checkDBConnection = Checks for DBConnection before configuring
    configracnode = used for scale out on a RAC instance
    ERROR while running Apply...
    Sat Apr 24 12:19:56 2010
    ERROR: Failed to execute /erpdev1/orarsu/db/tech_st/10.2.0/appsutil/clone/bin/adclone.pl
    Please check logfile.
    pls help me to resolve the same...
    thanks
    sandeep

  • Execution of Immediate SQL in compiled package in two versions of SQL*PLUS

    A peculiar problem has risen in our database.
    Execution of Immediate SQL in compiled package in two versions of SQLPLUS gives different results
    We have a compiled package with two procedures that contain immediate SQL statements, and these are:
    +PROC_DELETE_ROWS+
    +     -- This immediate sql deletes unreferenced Document Types from the DOC_REF_TYPE table+
    +     delete from doc_ref_type t where exists (select 1 from PROARC_DOC_REF_TYPE_VW d where d.doc_ref_type = t.doc_ref_type)+
       +     and not exists (select 1 from doc_ref d where d.doc_ref_type = t.doc_ref_type)+
       +     and doc_ref_type not in (select doc_ref_type from eis_doc_ref_type)+
       +     and doc_ref_type not in (select eis_doc_ref_type from eis_doc_ref_type)+
    +PROC_ADD_NEW_ROWS+
    +     -- Drop the temporary table+
    +     drop table TMP_PROARC_DOC_REF_TYPE+
    +     -- Create a temporary table+
    +     create table tmp_PROARC_DOC_REF_TYPE as+
    +     select DOC_REF_TYPE, substr(DOC_REF_TYPE_DESC,1,100) as DOC_REF_TYPE_DESC+
    +     from PROARC_DOC_REF_TYPE_VW+
    +     -- Insert document types that do not exist in the DOC_REF_TYPE table+
    +     insert into doc_ref_type t (DOC_REF_TYPE, DOC_REF_TYPE_DESC)+
            +     select distinct DOC_REF_TYPE, DOC_REF_TYPE_DESC from tmp_PROARC_DOC_REF_TYPE s+
            +     where not exists (select 1 from doc_ref_type t where t.doc_ref_type = s.doc_ref_type)+
    I am using the following test script:
    +Exec mypackage.proc_delete_rows;+
    +Commit;+
    +Select count(*) from DOC_REF_TYPES;+
    +Exec mypackage.proc_add_new_rows;+
    +Commit;+
    +Select count(*) from DOC_REF_TYPES;+We have a Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit
    I am using SQL*Plus: Release 8.1.7.0.0
    The test script is working as expected.
    Count after delete =155
    Count after insert = 511
    but when I use another computer with SQL*Plus: Release 10.x
    The Test script returns the following
    Count after delete =155
    Count after insert =155
    The same is happening when I am running the scripts as a scheduled job.
    QUESTION:
    I believe I have found a fix for the problem though. By changing tmp_PROARC_DOC_REF_TYPE in the insert statement to all upper case, the script is running in both environments apparently. But how is this possible? I am executing a compiled package in the database. The session shell should have no impact on the behaveour of the procedure I am calling. What causes this?
    Edited by: Reon on Jun 16, 2011 4:44 AM

    1) I am using the same user (PANDORA)
    2) (PANDORA) for both
    3) I am actually not handling any errors. Just skipping any error altogether. I'll check to see what exceptions are raised, and come back.
    I have also noticed that SQL/PLUS is not the culprit here. If I use SQLTools 1.5 to run the script, the same thing happens. So it has to do something with the connection or session environment that is inheritet to both clients.
    The CODEZ:_
      procedure add_doc_types IS
      sqlstr     VARCHAR2(2000);
      begin
      BEGIN
           sqlstr := 'drop table TMP_PROARC_DOC_REF_TYPE';
         EXECUTE IMMEDIATE sqlstr;
        EXCEPTION
          WHEN OTHERS THEN
            null;
        END;
      BEGIN
           sqlstr := 'create table tmp_PROARC_DOC_REF_TYPE as select DOC_REF_TYPE, substr(DOC_REF_TYPE_DESC,1,100) as DOC_REF_TYPE_DESC from PROARC_DOC_REF_TYPE_VW';
         EXECUTE IMMEDIATE sqlstr;
        EXCEPTION
          WHEN OTHERS THEN
            null;
        END;
        BEGIN
            sqlstr := 'insert into doc_ref_type t (DOC_REF_TYPE, DOC_REF_TYPE_DESC)
                    select distinct DOC_REF_TYPE, DOC_REF_TYPE_DESC from TMP_PROARC_DOC_REF_TYPE s
                    where not exists (select 1 from doc_ref_type t where t.doc_ref_type = s.doc_ref_type)';
         EXECUTE IMMEDIATE sqlstr;
            sqlstr := 'update doc_ref_type t set DOC_REF_TYPE_DESC = (
                    select DOC_REF_TYPE_DESC from tmp_PROARC_DOC_REF_TYPE s
                    where t.doc_ref_type = s.doc_ref_type)
                    where exists (select 1 from tmp_PROARC_DOC_REF_TYPE s where t.doc_ref_type = s.doc_ref_type)';
         EXECUTE IMMEDIATE sqlstr;
        EXCEPTION
          WHEN OTHERS THEN
            null;
        END;
      end add_doc_types;
      procedure delete_doc_types IS
      sqlstr     VARCHAR2(2000);
       BEGIN
            sqlstr := 'delete from doc_ref_type t where exists (select 1 from PROARC_DOC_REF_TYPE_VW d where d.doc_ref_type = t.doc_ref_type)
            and not exists (select 1 from doc_ref d where d.doc_ref_type = t.doc_ref_type)
            and doc_ref_type not in (select doc_ref_type from eis_doc_ref_type)
            and doc_ref_type not in (select eis_doc_ref_type from eis_doc_ref_type)';
          EXECUTE IMMEDIATE sqlstr;
         EXCEPTION
           WHEN OTHERS THEN
             null;
      end delete_doc_types;Edited by: Reon on Jun 16, 2011 2:01 AM

  • How to know query execution time in sql plus

    HI
    I want to know the query execution time in sql plus along with statistics
    I say set time on ;
    set autotrace on ;
    select * from view where usr_id='abcd';
    if the result is 300 rows it scrolls till all the rows are retrieved and finally gives me execution time as 40 seconds or 1 minute.. (this is after all the records are scrolled )
    but when i execute it in toad it gives 350 milli seconds..
    i want to see the execution time in sql how to do this
    database server 11g and client is 10g
    regards
    raj

    what is the difference between .. the
    statistics gathered in sql plus something like this and the one that i get from plan_table in toad?
    how to format the execution plan I got in sqlplus in a proper understanding way?
    statistics in sqlplus
    tatistics
             0  recursive calls
             0  db block gets
           164  consistent gets
             0  physical reads
             0  redo size
         29805  bytes sent via SQL*Net to client
           838  bytes received via SQL*Net from client
            25  SQL*Net roundtrips to/from client
             1  sorts (memory)
             0  sorts (disk)
           352  rows processedexecution plan in sqlplus... how to format this
    xecution Plan
      0      SELECT STATEMENT Optimizer=ALL_ROWS (Cost=21 Card=1 Bytes=10
             03)
      1    0   HASH (UNIQUE) (Cost=21 Card=1 Bytes=1003)
      2    1     MERGE JOIN (CARTESIAN) (Cost=20 Card=1 Bytes=1003)
      3    2       NESTED LOOPS
      4    3         NESTED LOOPS (Cost=18 Card=1 Bytes=976)
      5    4           NESTED LOOPS (Cost=17 Card=1 Bytes=797)
      6    5             NESTED LOOPS (OUTER) (Cost=16 Card=1 Bytes=685)
      7    6               NESTED LOOPS (OUTER) (Cost=15 Card=1 Bytes=556
      8    7                 NESTED LOOPS (Cost=14 Card=1 Bytes=427)
      9    8                   NESTED LOOPS (Cost=5 Card=1 Bytes=284)
    10    9                     TABLE ACCESS (BY INDEX ROWID) OF 'USR_XR
             EF' (TABLE) (Cost=4 Card=1 Bytes=67)
    11   10                       INDEX (RANGE SCAN) OF 'USR_XREF_PK' (I
             NDEX (UNIQUE)) (Cost=2 Card=1)
    12    9                     TABLE ACCESS (BY INDEX ROWID) OF 'USR_DI
             M' (TABLE) (Cost=1 Card=1 Bytes=217)
    13   12                       INDEX (UNIQUE SCAN) OF 'USR_DIM_PK' (I
             NDEX (UNIQUE)) (Cost=0 Card=1)
    14    8                   TABLE ACCESS (BY INDEX ROWID) OF 'HDS_FCT'
              (TABLE) (Cost=9 Card=1 Bytes=143)
    15   14                     INDEX (RANGE SCAN) OF 'HDS_FCT_IX2' (IND
             EX) (Cost=1 Card=338)
    16    7                 TABLE ACCESS (BY INDEX ROWID) OF 'USR_MEDIA_
             COMM' (TABLE) (Cost=1 Card=1 Bytes=129)
    17   16                   INDEX (UNIQUE SCAN) OF 'USR_MEDIA_COMM_PK'
              (INDEX (UNIQUE)) (Cost=0 Card=1)
    18    6               TABLE ACCESS (BY INDEX ROWID) OF 'USR_MEDIA_CO
             MM' (TABLE) (Cost=1 Card=1 Bytes=129)
    19   18                 INDEX (UNIQUE SCAN) OF 'USR_MEDIA_COMM_PK' (
             INDEX (UNIQUE)) (Cost=0 Card=1)
    20    5             TABLE ACCESS (BY INDEX ROWID) OF 'PROD_DIM' (TAB
             LE) (Cost=1 Card=1 Bytes=112)
    21   20               INDEX (UNIQUE SCAN) OF 'PROD_DIM_PK' (INDEX (U
             NIQUE)) (Cost=0 Card=1)
    22    4           INDEX (UNIQUE SCAN) OF 'CUST_DIM_PK' (INDEX (UNIQU
             E)) (Cost=0 Card=1)
    23    3         TABLE ACCESS (BY INDEX ROWID) OF 'CUST_DIM' (TABLE)
             (Cost=1 Card=1 Bytes=179)
    24    2       BUFFER (SORT) (Cost=19 Card=22 Bytes=594)
    25   24         INDEX (FAST FULL SCAN) OF 'PROD_DIM_AK1' (INDEX (UNI
             QUE)) (Cost=2 Card=22 Bytes=594)

  • Upgrading from APEX 3.1.0.00.32 to APEX 3.1.1.00.09 fails

    installing for APEX 3.1.0.00.32 to APEX 3.1.1.00.09 fails:
    due to a migration table existing.
    Oracle platform 10G XE on windows XP2

    Hello Jason,
    Thanks on your reply.
    >> The full distribution of 3.1.1 will not patch 3.1. Trying to run the full installation of 3.1.1 on top of 3.1 will result in an error
    I just want to be sure I understand you correctly. A user with an active 3.1 instance, who wants to use the 3.1.1 version, but don’t have access to the patch, must export all his/her applications, remove the current 3.1 instance, install 3.1.1 using the full installation distribution, and import back all the applications?
    While we at it, what about pre 3.1 versions? The full 3.1.1 version will upgrade them or the path is to first upgrade to 3.1 and then apply the patch?
    Thanks,
    Arie.

  • How to get the SSO user from PL/SQL with Windows native authen

    I connect to a 10g daabase using SSO through Windows Native Authentication wher the OID user mapps to a single Database user.
    I need to get the SSO user from pl/sql
    My fornt end is Portal & Forms

    Hmm, I see.
    Well your problem boils down to being in the database and needing to have access to web environment variables. The SSO sets specific variables in the environment but your stored procedure is not privy to them.
    Now having said that, note that the mod_plsql Web Toolkit has a utility for accessing cgi variables. For instance,
    owa_util.get_cgi_env('Osso-User-Dn')
    If your web application cannot capture the SSO info and pass it to the stored proc in a parameter, OWA may be the only way.
    Check out the Single Sign-On Developers Guide, specifically the part about developing statically protected PLSQL applications.
    Hope this helps.
    regards,
    tt

  • Execution of workflow automation failed due to "Could not find a part of the path 'D:\Program

    Hi,
    Execution of workflow automation failed due to "Could not find a part of the path 'D:\Program Files\NetApp\WFA\jboss\standalone\tmp\wfa\workflow_data\35517.xml"
    Netapp case has been raised  and confirmed there is no issue with the WFA application, no clue to diagnose the issue.
    Execution fails continously 3 or 4 runs then get success, intermittent failure occurs.
    WFA version :2.2
    OS: Windows 2008
    Can someone please help me to fix the issue?
    Thanks
    Deepak

    Parag also pointed out that the BURT number is 833488 which has been fixed in 3.0.Please read the public report for more details. RegardsAbhi

  • Cssrcrix.sql failes with DRG-10703: invalid framework object korean_lexer

    hi,
    While applying 11.5.10.2 patch on RHEL 5.5 with DB 10.2.0.5 one of the worker got failed
    as fallows:
    sqlplus -s APPS/***** @/appltest/preprod/prodappl/cs/11.5.0/patch/115/sql/cssrcrix.sql &un_apps &un_cs CTXSYS
    declare
    ERROR at line 1:
    ORA-20000: Oracle Text error:
    DRG-10703: invalid framework object korean_lexer
    ORA-06512: at line 224
    Please suggest if you have any idea

    Please see (cssrctxp.sql fails with DRG-10703: Invalid Framework Object Korean_lexer [ID 402422.1]).
    Thanks,
    Hussein

Maybe you are looking for