Error Executing procedure

We are comparing 3 tables T1,T2,T3.
T2 is in remote server1
T1,T3 are in server 2
All are bound to the procedure by Db links.
The Procedure is getting created .
Only while executing the procedure the error is displayed.
In case of T1,T2,T3 being present in a single server the proc is executing correctly.
ERROR at line 1:
ORA-02049: timeout: distributed transaction waiting for lock
ORA-06512: at "NAGSPUDEVADM.HUGOTON_WELL_JOBSSW1", line 79
ORA-06512: at line 1
The first few lines of the procedure are:
CREATE PROCEDURE nagspudevadm.hugoton_Well_Jobssw1 AS
cur_apinumber1 varchar(200);
cur_wellname1 varchar(200);
cur_apinumber2 varchar(200);
cur_wellname2 varchar(200);
cur_apinumber3 varchar(200);
cur_wellname3 varchar(200);
CURSOR cur_T1 IS
SELECT API_NUMBER,
WELL_NAME
FROM nagspudevadm.Well_Header_Table;
CURSOR cur_T2 IS
SELECT API_NUM ,
WELL_NAME
FROM ec_hugoton.documentum_v@DATAOPPB;
CURSOR cur_T3 IS
SELECT API_NUMBER,
WELL_NAME
FROM nagspudevadm.hugoton_master_table;

After running the query,am getting a set of process but am not able to determine which of the process belongs to my procedure. Does the sql_text contain any information regarding the name of the procedure.
Am posting the results as such
SPID SID SERIAL# LOGON_TIM SQL_TEXT PID
PROCESS
8468 147 60517 26-JUN-08 ADDR and c.hash_value=a.sql_hash_value and a.STATUS='ACTIVE' 30
6456:12016
8468 147 60517 26-JUN-08 rocess from v$session a,v$process b,v$sqltext c where a.PADDR=b. 30
6456:12016
8468 147 60517 26-JUN-08 Select b.spid,a.sid,a.serial#, a.Logon_time,c.sql_text,b.PID,a.P 30
6456:12016
SPID SID SERIAL# LOGON_TIM SQL_TEXT PID
PROCESS
10884 137 3 18-JUN-08 BEGIN EMD_NOTIFICATION.QUEUE_READY(:1, :2, :3); END; 36
1234

Similar Messages

  • Error executing procedure in package

    If someone can help me, i'd greatly appreciate it!
    I created a package (see code below) in the Portal Navigator and I'm getting the following error when i try to execute the procedure:
    ORA-06550: line 2, column 16:
    PLS-00201: identifier 'CURSOR' must be declared
    ORA-06550: line 2, column 12:
    PL/SQL: Item ignored
    ORA-06550: line 4, column 46:
    PLS-00320: the declaration of the type of this expression is incomplete or malformed
    ORA-06550: line 4, column 1:
    PL/SQL: Statement ignored
    ORA-06550: line 6, column 20:
    PLS-00320: the declaration of the type of this expression is incomplete or malformed
    ORA-06550: line 6, column 1:
    PL/SQL: Statement ignored (WWV-11230)
    Failed to parse as PORTAL - declare
    local_var1 REF CURSOR;
    begin
    "CONCORD"."TAB_LINKS"."GETLINKS" ( VLINKS => local_var1, V_tab=> 'Analytics');
    htp.p(htf.br||'OUT parameter values:'||htf.br);
    htp.p('VLINKS - '||local_var1||htf.br);
    end; (WWV-08300)
    Create or Replace Package TAB_LINKS
    as
    TYPE vrefcur IS REF CURSOR;
    procedure getlinks(vlinks OUT tab_links.vrefcur,
              v_tab IN VARCHAR2 DEFAULT NULL);
    END;
    Create or Replace Package BODY TAB_LINKS
    AS
    procedure getlinks
    (vlinks OUT tab_links.vrefcur,
    v_tab IN VARCHAR2 DEFAULT NULL)
    as
    vsql varchar2(3000);
    vuser varchar2(50) := orasso.wwctx_api.get_user();
    vgroup number := orasso.wwsec_api.get_defaultgroup();
    BEGIN
    /* retrieves the links based on the title and group name */
    vsql := 'select url,target,name
    from table_links
    where groupid= '''||vgroup||'''
    and upper(cornertitle)
    = '''||upper(v_cornertitle)||'''
    and type = ''sidebar''
    order by itemid';
    --htp.p(vsql);
    open vlinks for vsql;
    END getlinks;
    END;

    I tried executing the code in orasso schema
    got below error first
    Error in creating PACKAGE BODY. (WWV-17098)
    Line No. 15 : PLS-00201: identifier 'V_CORNERTITLE' must be declared (WWV-17050)
    Line No. 11 : PL/SQL: Statement ignored (WWV-17050)
    ORA-24344: success with compilation error (WWV-11230)
    Failed to parse as PORTAL - create or replace package body ORASSO.TAB_LINKS as
    procedure getlinks
    (vlinks OUT tab_links.vrefcur,
    v_tab IN VARCHAR2 DEFAULT NULL)
    as
    vsql varchar2(3000);
    vuser varchar2(50) := orasso.wwctx_api.get_user();
    vgroup number := orasso.wwsec_api.get_defaultgroup();
    Declared 'v_cornertitle' ,the package got created.
    Complied also, the status shows valid.

  • Please Help!!! error executing procedure and populating to gridview

    I have used a tool to convert my sql 2000 stored procedure to Oracle 10g PL/SQL, here is an example
    SQL 2000 Stored Procedure
    CREATE PROCEDURE [GetEmployees]
    AS
    Select * from EMPMST ORDER BY emp_name
    GO
    After Transformation i got 2 files, one was a procedure and other a package
    CREATE OR REPLACE PACKAGE GLOBALPKG
    AS
         TYPE RCT1 IS REF CURSOR;
         TRANCOUNT INTEGER := 0;
         IDENTITY INTEGER;
    END;
    CREATE OR REPLACE PROCEDURE GetEmployees
         RCT1 IN OUT      GLOBALPKG.RCT1
    AS
    BEGIN
         OPEN RCT1 FOR
         SELECT *
         FROM EMPMST
         ORDER BY emp_name;
    END;
    When i execute the procedure GetEmployees i got this error :
    SQL> execute GetEmployees;
    BEGIN GetEmployees; END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'GETEMPLOYEES'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    I am developing a webpage (asp.net using Visualstudio .net 2005 ) where i have a grid view in which i want to display all the output of the GetEmpoyee procedure but it is giving an error.
    Please Help me in debugging this error. Thanks in advance.

    Hi Pruthvi,
    It seems to me the convertion is correct. You need a REF CURSOR and by the Stored Procedure itself without using Package the REF CURSOR cannot specify as OUT output parameter.
    You can use SQL Developer to help you to make sure you put the Package in the right Database Schema.
    http://otn.oracle.com/sqldeveloper
    After you converted the Stored Procedure you need to modify your .NET code as well. The .NET code that calls your old MS SQL Stored Procedure will not work. To see how to involve the REF CURSOR in .NET you can check here:
    http://blogs.oracle.com/MingMan/stories/storyReader$9
    Good Luck
    Ming Man

  • Execute procedure error (Native SQL)

    Hi experts,
    I create a procedure
      EXEC SQL.
        create or replace procedure update_zsmadiprinc
        is begin
                              ( p_codigo         in  number(5),
                                p_ano            in  varchar2(4),
                                p_doc_vlr_princ in  varchar2(10)
                                p_subrc       out number ) is begin
          update T_INTERF_RESSARC_FORNEC_R3
          set   ano_doc              = p_ano,
                NUM_DOC_VALOR_PRINC  = p_doc_vlr_princ,
          where cod_interf_ressarc_fornec_r3 = p_codigo;
          if sql%found then
            p_subrc := 0;
          else
            p_subrc := 4;
          end if;
        end;
      ENDEXEC.
    and execute it
      EXEC SQL.
        execute procedure update_zsmadiprinc
                         (in  :wa-cod_interf,
                          in  :wa-ano_doc,
                          in  :wa-num_doc_valor_princ,
                          out :vg_subrc)
      ENDEXEC.
    But when i execute the procedure, shows dump error:
    Database error text........: "ORA-06550: line 1, column 7:#PLS-00905: object
    UPDATE_ZSMADIPRINC is invalid#ORA-06550: line 1, column 7:#PL/SQL:   
    Statement ignored#"                                                        
    Triggering SQL statement...: "CLOSE "                                       
    Internal call code.........: "[DBDS/NEW DSQL]"                              
    Please check the entries in the system log (Transaction SM21).              
    I comment all source, and the error is the same.
    When i create the procedure, no erros are show.
    I changed the name of the procedure, the type of parameters, and now i comment all and the error always is the same!!!! Can you help me!!! I need to finish this urgently!
    Thanks in advance
    Message was edited by:
            RP

    It is not possible to create a procedure, then, i just execute sql direct.
    thanks

  • ORA-00900: invalid SQL statement Error while Executing Procedure

    Hi:
    I am trying to execute following procedure through java code, but i am getting ORA-00900: invalid SQL statement error.
    Procedure is :
    <code>
    (vResult out int)
    as
    vCardId varchar2(16);
    vForacid varchar2(16);
    vApp_Entry_No varchar2(10);
    vSrNo number(6);
    vCardStatus char(1);
    vCardStat char(2);
    vExpiryDate date;
    Cursor cardCur1 is
    select u.card_number,trim(u.ACCOUNT_NUMBER),u.CARD_STATUS,to_char(u.EXPIRY_DATE,'dd-MM-yyyy')
    FROM DailyCardData u
    where default_indicator='1'
    and isprocessed = 'N'
    order by expiry_date;
    begin
    vSrNo := 0;
    vResult := 0;
    open cardCur1;
    Loop
    fetch cardCur1 into vCardId,vForacid,vCardStat,vExpiryDate;
    if cardCur1%NOTFOUND then
    exit;
    end if;
    if (vCardStat != null) then
    vCardStatus := 'H';
    elsif (vExpiryDate <= sysdate) then
    vCardStatus := 'E';
    else
    vCardStatus := null;
    end if;
    select a.app_entry_no into vApp_Entry_No from Application a,ApplicationLinkedAccounts l
    where l.foracid = vForacid and l.AcSrNo = '1'
    and a.app_entry_no = l.app_entry_no
    and a.cardid is null
    and a.DOWNLOADFILECREATIONFLAG = 'Y';
    update Application set CardId = vCardId,
    Card_Status = vCardStatus,APPLICATIONPROCESSEDFLAG = 'Y',
    APPLICATIONPROCESSEDdate = DOWNLOADFILECREATIONdate
    where App_Entry_No = vApp_Entry_No;
    commit;
    update DailyCardData set isprocessed = 'Y',app_entry_no = vApp_Entry_No
    where card_number = vCardId;
    commit;
    end Loop;
    close cardCur1;
    vResult := 1;
    end;
    </code>
    Can any body help me in that?
    Thank You,
    Anup

    First of all I don't see a procedure header.
    Secondly I see you commit inside your procedure. This is a bug.
    Thirdly I see you also commit inside a loop. This is also a bug, and needs to be removed asap.
    The error indicates a statement doesn't parse. As you don't post the error stack, nor a table definition no one can reproduce the problem.
    You need to isolate the statements, one by one, and run them through sql*plus to see what happens.
    Sybrand Bakker
    Senior Oracle DBA

  • While executing procedure it is giving Error in the TT IMD

    Hi Chris,
    Main User Cacheuser (Cache Admin User)
    Other User Interchange (TimesTen User - Same name as Oracle 11g Database User)
    Normally we are connecting through cacheuser to create any objects in the Interchange user.
    I have created procedure in the Interchange user from cacheuser cache admin user.
    Procedure is created in the Interchange user. but when i am executing that same procedure in the cacheuser user
    -- Pl/Sql block executing from cacheuser
    declare
    sOutPut varchar2(4000);
    begin
    interchange.#procedurename# ('123456', sOutPut);
    end;
    After executing we are getting error:
    failed,[TimesTen][TimesTen 11.2.1.3.0 ODBC Driver][TimesTen]TT5227: Insufficient privileges error occurred while performing an Oracle operation in OCIStmtExecute(): ORA-01031: insufficient privileges rc = -1. -- file "bdbStmt.c", lineno 3868, procedure "ttBDbStmtExecute()"
    then we have issued following command for privilege, but still it is coming same error.
    grant execute on interchange."procedurename" to cacheuser;

    Hi Chris,
    Previously PassThrough=1 (we have kept this parameter to access oracle objects from TT IMD) it was there in our sys_odbc.ini file, but after that we have created procedure in the TimesTen and also created all objects related to that procedure in the TimesTen database. and due to that we have removed passthrough entry from sys_odbc.ini file because all object we created in the TimesTen database.
    Purpose of creating all objects related to that procedure in the TimesTen database was we tried to compiled procedure in the TimesTen IMD and the some obejcts inside procedure refered from Oracle 11G database that time it was shown error "table does not exist".
    Note : That time PassThrough parameter set was "1".+
    Currently we are executing procedure through TimesTen Database only. we have not yet checked through application.
    Can i have list of passthrough and the purpose of the same.

  • Error while executing procedure for excel upload

    Hi Friends
    Pl. find below error while executing procedure for loading excel data. pl. verify and suggest for any changes in the format of data.
    Rgds
    SriG

    If reading Excel as a database you would use "Access LSLINK"
    Access external means you are reading a file. I don't think it is possible to treat Excel as a file because the internal structure is complex.
    In the past I have saved the Excel as a CSV or as a Tab delimeted file. Then I use something like
    ACCESS External
      USE &filename
      BEGIN
        DESCRIPTION free ,
        Variables text 20
        Organisation text 20
        'July 2008' numeric 20
        'August 2008' numeric 20
        'September 2008' numeric 20
        'October 2008' numeric 20
        'November 2008' numeric 20
        'December 2008' numeric 20
        'January 2009' numeric 20
        'February 2009' numeric 20
        'March 2009' numeric 20
        'April 2009' numeric 20
        'May 2009' numeric 20
        'June 2009' numeric 20
      END
      peek
      read
    ... quit the access sub system
    END

  • Error in Executing Procedure through DBLink

    Hi,
    I am facing some problems in executing a procedure through DBLink.
    I have two schema A and B in two different database.
    In schema A I am having one procedure X in package Y and my requirement is that I want to execute this procedure in schema B. So in schema B i have created one DBLink ABC and trying to execute procedure X using this DB link.
    begin
    A.Y.X@ABC;
    end;
    But I am getting below error:
    ORA-06550: line 2, column 1:
    PLS-00201: identifier 'A.Y.X@ABC' must be declared
    ORA-06550: line 2, column 1:
    PL/SQL: Statement ignored
    Any help would be greatly appreciated!
    Thanks In Advance..
    Regards,
    Sachin Bansal

    Hi,
    Yes, I am connecting to user A of DB1 and in this user I am having procedure X in Package Y. My DBLink in Schema B of DB2 is pointing to user A of DB1.
    I have created DBLINK using below script:
    create public database link abc
    connect to A
    identified by A
    using '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=XXX)(PORT=1521)))(CONNECT_DATA=(service_name=XXX)))';
    Above DBLInk is working fine..I am able to access all the table of schema A in schema B using this DBLink. But when I trying to execute any procedre of schema A in schema B then i am getting error.
    Regards,
    Sachin

  • Error ORA-03113 when execute procedure via OEM

    Hi All,
    I got error messages
    ORA-03113: end-of-file on communication channel
    ERROR at line 1:
    ORA-03114: not connected to ORACLE
    when execute procedure via Oracle Enterprise Manager
    Who do you know what 's the problem and how can I resolves ?
    Thanks,
    Mcka

    Solution Description:
    =====================
    The ORA-3113 error is a general error reported by Oracle client tools,
    which signifies that they cannot communicate with the oracle shadow
    process. As it is such a general error more information must be collected
    to help determine what has happened.
    This short article describes what information to collect for an
    ORA-3113 error when the Oracle server is on a Unix platform.
    General Issues:
    ===============
    1) Is it only one tool that encounters the error or
    do you get an ORA-3113 from any tool doing a similar operation?
    If the problem reproduces in SQL*Plus, use this in all tests
    below.
    2) Check if the problem is just restricted to:
    [ ] One particular UNIX user,
    [ ] Any UNIX user
    or [ ] Any UNIX user EXCEPT as the Oracle user.
    3) Check if the problem is just restricted to:
    [ ] One particular ORACLE logon
    or [ ] Any ORACLE logon that has access to the
    relevant tables.
    4) If you have a client-server configuration does this occur from:
    [ ] Any client
    [ ] Just one particular client
    or [ ] Just one group of clients ?
    If so what do these clients have in common ?
    Eg: Software release .
    5) Do you have a second server or database version where the
    same operation works correctly?

  • How to execute procedure in toad software

    hiii guy's i run my procedure on sql prompt and it run properly
    but when i tried this on toad i got an problem
    after compiling my procedure on toad
    when i write
    execute procedure_name(parameter1,parameter2);
    then i get an error i.e
    ORA-00900: invalid SQL statement
    can someone tell me how to execute procedure on toad
    thanks in adv...........

    how to execute procedure in toad softwareIn TOAD's schema browser you can go to the procedures tab - right click on the procedure in question and choose execute procedure - a window should pop up, where you can give optional parameters - the rest should be almost self explanatory ;)

  • How to execute procedure in SQL Worksheet ?

    Hi, anybody know, how I can execute procedure here?
    I try EXEC sec_roles, EXEC security_admin.sec_roles, EXECUTE - there is a SQL statement error. When I use CALL - there is no such procedure (I have execute previleges).
    Although in SQLPlus EXEC works, but there are problems with standard SQL commands (all of them returns "2" no matter what content is).
    Any ideas?
    Regards
    Krzysztof

    exec procedure(parameters) is a sql plus (and a few others) shortcut for
    BEGIN
       procedure(parameters);
    END;So try that then pressing/clicking whatever it is in sql worksheet that makes a statement run.
    Note that if your procedure has parameters defined as OUT or IN OUT, you will need to supply a variable to accept the returned value(s).
    John

  • Table or view not exists error from procedure - occurs randomly

    I have a procedure used in a website, it works fine until recently we occationaly getting an error said Table or View not exists, the error will go away if refresh the page which will re-execute the procedure.
    This procedure uses an table object as temp table and just a select statement form several tables. The table object is used in other procedures as well. I can't find out what cause this error because it's not always repeatable and the error message didn't give out the exact table that cause the error.
    Any idea what might cause this or how to trace the reason that cause the error?
    We don't have a good DBA here so really need some help, any advice are welcome.
    Cheers

    I don't think it's possible that any previlege changes are made or the tables in used in the procedure are droped because after we run our db scripts to build the db, then we testing the website which can only execute procedures, and no procedures execute DDL script to make such changes.
    It's worth to mention that we have a Table Type called EntityIDTable() which is used in many of our other procedures, but I think table type is initialise as local variable in each procedure so shouldn't conflict to each other, am I right? Also, the same script are running several times a day to generate same db but with different schema names so we can test on different site templates. One change script did drop one of the table and recreate it, but it use the &DB_Schema_Name.Tablename to drop a table so shouldn't affect the table in other schema I think. (I enclosed the procedure below)
    Also, any event log in Oracle I can enabled and trace the problem to find out what table is not exists at that point that this problem occurs?
    Cheers
    Below is the sample code of the procedure:
    aEntityIDSet varchar2,
    aCount out int
    as
    L_KeyID Category.CategoryID%type:=null;
    l_strEntityIDSet varchar2(255);
    l_strPipeSepValsInput varchar2(255);
    l_UserEntityID varchar2(255);
    l_EndPointInput int;
    l_Strlength integer;
    l_UserKey NUMBER;
    l_UserOriginalKey NUMBER;
    l_RREntityData ENTITYIDTABLE:= ENTITYIDTABLE(); /*creating on object from a table type to store entity values in*/
    -- end of Local variables used for Category Security
    begin
    -- Category Security
    -- Split up the EntityIDSet
    l_strEntityIDSet:= aEntityIDSet;
    l_strPipeSepValsInput:= l_strEntityIDSet || '|';
    l_EndPointInput:= instr(l_strPipeSepValsInput,'|',1,1);
    l_UserEntityID:= SUBSTR(l_strPipeSepValsInput, 1, l_EndPointInput - 1);
    l_UserKey:= To_Number(l_UserEntityID);
    l_UserOriginalKey:=l_UserKey;
    l_strPipeSepValsInput:= SUBSTR(l_strPipeSepValsInput,l_EndPointInput+1);
    l_Strlength:=LENGTH(l_strPipeSepValsInput);
    While ( l_Strlength > 0) loop
    <<get_entityId>>
    l_EndPointInput:= instr(l_strPipeSepValsInput,'|',1,1);
    l_UserEntityID:= SUBSTR(l_strPipeSepValsInput, 1, l_EndPointInput - 1);
    l_UserKey:= To_Number(l_UserEntityID);
    l_RREntityData.extend;
    l_RREntityData(l_RREntityData.COUNT):= Entityidtype(l_UserKey);
    l_strPipeSepValsInput:= SUBSTR(l_strPipeSepValsInput,l_EndPointInput+1);
    l_Strlength:=LENGTH(l_strPipeSepValsInput);
    end loop get_entityId;
    -- the block above used in many other procedures to get the entityID
    select Count(Distinct ri.ID) into aCount From
    -- here joint to other 6 tables
    -- the inner join below use the ENTITYIDTABLE
    inner join
    (SELECT distinct KC.KnowledgeGeneID FROM Category Cat
         inner join KnowledgeGeneCategory KC on KC.CategoryID=Cat.CategoryID
         where EXISTS (SELECT EntityID FROM TABLE(cast (l_RREntityData as ENTITYIDTABLE)) ET
         INNER JOIN (SELECT EntityID, EntityTypeID, CategoryID FROM CategoryRowLevelSecurity CRLS
         WHERE CRLS.EntityTypeID=1) S ON ET.USERENTITYKEY=S.EntityID
         where S.CategoryID=Cat.CategoryID
         UNION
    SELECT EntityID FROM CategoryRowLevelSecurity CRLS
         WHERE EntityID=l_UserOriginalKey
         AND EntityTypeID=0
         AND CRLS.CategoryID=Cat.CategoryID)
         OR NOT EXISTS (SELECT CategoryID FROM CategoryRowLevelSecurity CRLS
         WHERE CRLS.CategoryID=Cat.CategoryID)
    ) CS ON CS.KnowledgeGeneID = k.KGID
    where ri.ProcessID = riPro.ProcessID)
    end QueryNotifications;

  • Error Executing Database Query

    I have a web application written in CF8 with Oracle 11g as the back end. This application has been used very often for more than 6 years. Currently I am moving to CF10 and did only a little modification to the CF codes. When I ran the new application in my test server, everything seems to be working just fine except when it calls an Oracle Package. This action produces an error:  Error Executing Database Query The strange thing is everything work before and after calling the procedure, I tested using cfabort This Oracle Package is still working in production server (CF8)  but not when it is called by CF10. My question is: Is there any changes for CF10 when calling a procedures? or is there any hotfix that I'm not aware of? The code is as follow:   SELECT case trim(to_char(SYSDATE, 'DAY')) WHEN 'MONDAY' then '1' else '2' end AS TodaysDate                 from dual     
                SELECT Count(other_id) AS NoRecFound     FROM gl_dup_ids_ssns     WHERE Trim(create_date) = 
                SELECT Count(other_id) AS NoRecFound     FROM gl_dup_ids_ssns     WHERE Trim(create_date) =         CF codes to Stop the process and email admin                                                             
                  Error Executing Database Query shows up when it hit to run cfstoredproc. The codes are exactly the same as in CF8, this template was not modified. Exceptions 14:03:53.053 - Database Exception - in /home/space/users/www/GL/glproc.cfm : line 93     Error Executing Database Query. 

    mega_L wrote:
    SELECT case trim(to_char(SYSDATE, 'DAY')) WHEN 'MONDAY' then '1' else '2' end AS TodaysDate                 from dual     
                SELECT Count(other_id) AS NoRecFound     FROM gl_dup_ids_ssns     WHERE Trim(create_date) =
                SELECT Count(other_id) AS NoRecFound     FROM gl_dup_ids_ssns     WHERE Trim(create_date) =         CF codes to Stop the process and email admin                                                            
    Surely, that cannot be the actual SQL, as it is obviously invalid.

  • ORA-06528: Error executing PL/SQL profiler

    Hai
    I would like to see the outcome of package (to view the report on the package).In order to get that
    I installed the below package connect as internal
    sql>d:\oracle\orq81\rdbms\admin\profload.sql
    In order to use dbms_profiler,after that i need to have installed profilling tables ,in order to get i ran proftab.sql ,and its created three tables are
    plsql_profiler_data,plsql_profiler_units,plsql+profiler_runs
    after that i ran the below procedure
    create or replace procedure do_mod as
    cnt number := 0;
    begin
    dbms_profiler.start_profiler( 'mod' );
    for i in 1 .. 500000
    loop
    cnt := cnt + 1;
    if ( mod(cnt,1000) = 0 )
    then
    commit;
    end if;
    end loop;
    dbms_profiler.stop_profiler;
    end;/
    PL/SQL procedure successfully completed.
    exec no_mod
    PL/SQL procedure successfully completed.
    In order to see the report on packge ,i had query the table , RUN_TOTAL_TIME IS 3.5190E+11(this is seconds)
    my qusetion is
    1)
    Please explain me that is total amount time in seconds or minutes,i donnot understand what is 3.5190e+11
    SQL> select RUNID,RUN_COMMENT,RUN_TOTAL_TIME FROM PLSQL_PROFILER_RUNS;
    RUNID
    RUN_COMMENT
    RUN_TOTAL_TIME
    1
    mod
    7.0975E+11
    2
    mod
    6.9767E+11
    RUNID
    RUN_COMMENT
    RUN_TOTAL_TIME
    3
    no mod
    3.5190E+11
    2)
    I had ran the above script one of the schema ,and successfully created above procedure.When i execte,it retuns below error message
    SQL> exec do_mod;
    BEGIN do_mod; END;
    ERROR at line 1:
    ORA-06528: Error executing PL/SQL profiler
    ORA-06512: at "SYS.DBMS_PROFILER", line 123
    ORA-06512: at "SYS.DBMS_PROFILER", line 132
    ORA-06512: at "MOHAN1.DO_MOD", line 4
    ORA-06512: at line 1
    Any one any idea about that
    Regards
    mohan

    1) Run_total_time is the elapsed total time in nanoseconds.
       A nanosecond is one billionth of a second.
       It is displayed in scientific notation
       where E stands for "times ten to the power of".
       So, 3.5190E+11 nanoseconds
         = 3.5190 * 100000000000 nanoseconds
         = 351900000000 nanoseconds
         = 351900000000 billionths of a second
         = 351900000000 / 1000000000 seconds
         = 351.9 seconds
       If you want to display it in seconds, use:
         SELECT runid,
                run_comment,
                run_total_time / 1000000000 AS seconds
         FROM   plsql_profiler_runs;
    2) The only thing that looks wrong about your do_mod procedure
       is the last line:
         end;/
       The / should be on the next line.
       Other than that, I don't see any possible cause for
       the error.

  • 06528. 00000 -  "Error executing PL/SQL profiler"

    HI.
    i am getting an error -
    ORA-06528: Error executing PL/SQL profiler
    ORA-06512: at "SYS.DBMS_PROFILER", line 258
    ORA-06512: at line 3
    06528. 00000 - "Error executing PL/SQL profiler"
    *Cause:    An error occurred in during execution of a PL/SQL profiler
    procedure.
    when i try to run the following block
    BEGIN
    DBMS_PROFILER.START_PROFILER( sysdate,'');
    DBMS_PROFILER.FLUSH_DATA;
    END;
    plz help

    Run proftab.sql first. look st the test case. Hopefully you have installed dbms_profiler package. The first anonymous block is to test that, second block is your block which is failing.
    SQL> ed
    Wrote file afiedt.buf
      1  declare
      2  var1 binary_integer;
      3  var2 binary_integer;
      4  begin
      5     DBMS_PROFILER.GET_VERSION(Var1,var2);
      6     dbms_output.put_line('Var1 '||Var1);
      7* end;
      8  /
    Var1 2
    PL/SQL procedure successfully completed.
    SQL> BEGIN
      2  DBMS_PROFILER.START_PROFILER( sysdate,'');
      3  DBMS_PROFILER.FLUSH_DATA;
      4  END;
      5  /
    BEGIN
    ERROR at line 1:
    ORA-06528: Error executing PL/SQL profiler
    ORA-06512: at "SYS.DBMS_PROFILER", line 123
    ORA-06512: at "SYS.DBMS_PROFILER", line 132
    ORA-06512: at line 2
    SQL> @C:\oraclexe\app\oracle\product\10.2.0\server\RDBMS\ADMIN\proftab.sql
    SQL> BEGIN
      2  DBMS_PROFILER.START_PROFILER( sysdate,'');
      3  DBMS_PROFILER.FLUSH_DATA;
      4  END;
      5  /
    PL/SQL procedure successfully completed.

Maybe you are looking for

  • Business Partner Request / Creation

    Is there a standard process available in SAP to request, validate, approve and create Business Partners (Vendors and Customers). Basically users of SAP or customers or vendors itself can enter basic information like address, Tax ID etc and request th

  • BI - JDBC connector for remote database.

    Hi, I am trying to use my portal oracle database in VC applications. I have successfully connected to the database using JDBC connector as well as BI-JDBC connector. However when I try to use this BI-JDBC system in SQL editor I cannot see any tables.

  • E-Mail 20 Message Limit?

    Trying to send out a newsletter to some of my customers using GroupMail.  Have several different "Groups" to send to but largest Group is 64. Put together the newsletter and ran it through "IsNotSpam" to make sure it shouldn't cause any problem in th

  • Shuffle in "recovery mode"

    i am trying to fix my sister's 512 Shuffle. iTunes 7 in XP would take ~10 minutes to recognize the iPod. it would say there was a problem and needed to be restored. these are the steps i took: 1. tried the restore in iTunes 7. the status bar would ju

  • Changing date/time ...

    I have a question about changing date and time ... thanks a lot in advance. I have .CR2 files and I want to change the "date time original" info ... I want to change this info in the raw file, so I clicked on the "write date or time changes to into p