How to use timeout in plsql

Hi,
I have one procedure which calls a function. My requirement is if that function didnt return value in 1 minute then stop the exection of that function and call next statement.
Begin
(1).........
(2).......
(3) get_func_val:= function(1,2);
(4)......
(5)....
end;
My requirement is, if (3) doesnt return value in 1 minute, stop the execution of (3) and start executing (4).
Regards,
Parag

ParagNarkhede wrote:
My requirement is, if (3) doesnt return value in 1 minute, stop the execution of (3) and start executing (4).
PL/SQL does not support this as a language feature. It does not support a threading or fibre process model.
Parallel processing can be done via DBMS_PARALLEL_EXECUTE - but this is still not like the threading models on C/C++, C#, Java, etc.
One a parallel process is started, the main process cannot interrupt it (there are no suspend or terminate thread type interfaces to call). So the main PL/SQL process can itself timeout waiting for the parallel process (e.g. DBMS_JOB or DBMS_SCHEDULER background process). But it cannot timeout and halt the background process.
As the PL/SQL model is process based and not thread based, the parallel process does not share the main process's memory and data (or inherit a copy of it like a fork() child process would).
As for IPC interfaces. Standard concurrent access to a SQL table, serving as shared memory, can be used. Messages can also be send via the DBMS_PIPE and Advance Message Queue interfaces.
There are numerous reasons for the way PL/SQL approaches the concept of threading/parallel processing. Prime amongst these is that this is a multi-user and multi-process server environment  - able to service a multiple threaded clients. Pushing the client thread concept into this environment does not make much sense.
As for your problem. Why does step 4 need to wait for step 3, if step 4 can be executed anyway when step 3 is timed out (i.e. step 3 fails)?
If step 4 can continue without step 3 completing, then step 4 does not have a dependency on step 3. In which case the following process model can easily be used in PL/SQL:
main process()
  exec step 1
  exec step 2
  start step 3 as a background process
  exec step 4
  wait for step 3 to complete if not already completed
end
Perhaps if you explain what step 3 is, what it is tasked doing, and why it can be timed out, forum members can provide concrete solutions and suggestions.

Similar Messages

  • How to use $PROFILES$CONC_COPIES in plsql

    Can you give me an example of using $PROFILES$.CONC_COPIES in plsql? I need to change a plsql program to product 2 set of output reports each time when the job is run. User doesn't to change user profile option number of Concurrent copies. Thanks.

    I thought you said you knew how to use/create profiles in your previous post...
    This is the quick rundown: Just as with regular profiles, you first need to make sure that your content has the profile trigger metadata field assigned when it's created. This is done within designer under "Switch region content" definition of your contribution region. Assign the "Profile Trigger Value" under "Default Metadata" and then assign that idoc to the activation condition of your content profile rule.

  • How to use LIKE operator in plsql

    Hi
    I wanted to select certain rows using like operator in plsql(Input should be given by the user). I have given my experiment here .I couldn't get any result.
    As per sql syntax while using LIKE operator we should give search criteria within single quote.where as in plsql if we give within single quote its takes as string so no output is comming.what is solution ? How to use like operator in plsql?
    sql syntax
    SQL>SELECT customer_name FROM customer_header
    WHERE customer_name LIKE 'B%' ; customer_name
    Bala murali
    Babu
    Basker
    plsql syntax
    PROCEDURE pro_custheader_like ( v_cname IN varchar2
         ,answer OUT type_refcur_customer) IS
         BEGIN
         OPEN answer FOR
         SELECT customer_name FROM customer_header
              WHERE customer_name LIKE ( ' v_cname ' );
    END pro_custheader_like;
    execution command
    sql>variable answer refcursor;
    sql>set serveroutput on
    sql>exec package_name.pro_custheader_like( 'R',:answer);
    plsql successfully completed
    sql>print :answer
    no row selected
    by
    balamuralikrishnan.s

    plsql syntax
    PROCEDURE pro_custheader_like ( v_cname IN
    varchar2
    ,answer OUT
    type_refcur_customer) IS
    N
         OPEN answer FOR
         SELECT customer_name FROM customer_header
    WHERE customer_name LIKE ( v_cname );
    END pro_custheader_like;
    Try it without any quotes. And, let us know your feedback.
    Regards.
    Satyaki De.
    Message was edited by:
    Satyaki_De

  • How to use dynamically column_name and column_name value in plsql procedure

    hi,
    how to use dynamically column_name and column_name value in plsql procedure.
    for example, i have one table with column col1.i want write plsql code with dynamically execute the insert one schema to another schema.
    by
    siva

    DECLARE
    CURSOR C
    IS
    SELECT cc_cd
    FROM TEMP1 WHERE s_flg ='A' AND b_num IN('826114');--,'709537','715484');
    CURSOR D
    IS
    SELECT * FROM cONSTRAINTS_test ORDER BY SRL_NUM;
    STMT VARCHAR2(4000);
    p_target_schema VARCHAR2(30):='schema1';
    p_source_schema VARCHAR2(30):='schema2';
    BEGIN
    FOR REC IN C
    LOOP
    FOR REC1 IN D
    LOOP
    STMT := 'INSERT INTO '||p_target_schema||''||'.'||''||REC1.CHILD_TABLE||' SELECT * FROM '||p_source_schema||''||'.'||''||REC1.CHILD_TABLE||' where '||REC1.COLUMN_NAME||'='||REC.cntrct_cd||'';
    Dbms_Output.Put_Line('THE VALUE STMT:'||STMT);
    END LOOP;
    END LOOP;
    END;
    cc_cd='434se22442ss3433';
    cc_t_ms is parent table-----------------------pk_cc_cd is primary key
    cc_cd is column name
    CONSTRAINTS_test table
    CHILD_TABLE NOT NULL VARCHAR2(30)
    CONSTRAINT_NAME NOT NULL VARCHAR2(30)
    COLUMN_NAME NOT NULL VARCHAR2(400)
    R_CONSTRAINT_NAME VARCHAR2(30)
    CONSTRAINT_TYPE VARCHAR2(1)
    PARENT_TABLE NOT NULL VARCHAR2(30)
    SRL_NUM NUMBER(4)
    CHILD_TABLE     CONSTRAINT_NAME     COLUMN_NAME     R_CONSTRAINT_NAME     CONSTRAINT_TYPE     PARENT_TABLE     SRL_NUM
    a aaa cc_CD     pk_cc_CD     R     cc_t_MS     1
    bb     bbb      Cc_CD     PK_CC_CD     R     cc_t_MS     2
    bb_v     bb_vsr     S_NUM     PK_S_NUM      R     bb_v      3
    cC_HS_MS     cc_hs_CD     cc_CD     PK_CC_CD     R     cc_t_MS     4
    cC_HS_LNK cc_HIS_LNK_CD     H_CD     PK_HS_HCD     R     cC_hs_ms 5
    cC_D_EMP     cc_d_EMP     Cc_CD     PK_CC_CD      R     cc_t_MS     6
    i want insert schema1 to schema2 with run time of column_name and column value.the column_name and values should dynamically generated
    with refential integrity.is it possible?
    can any please quick solution.its urgent
    by
    siva

  • How to use ODI tool (file move etc) and plsql in a ODI procdure step

    Hi,
    I need your help to uses both plsql code and ODI tolls in a ODI procedure step.
    Req:
    moving files to different directory Based on the variable value and previous step return code ,
    BEGIN
    IF #SEQ=1 AND <%=odiRef.getPrevStepLog("RC")%> =0
    then OdiFileMove "-FILE=input/#FILE_NAME" "-TOFILE=processed/#V_FILE_NAME" "-OVERWRITE=YES" "-CASESENS=NO" "-RECURSE=YES"
    ELSIF #SEQ=1 AND <%=odiRef.getPrevStepLog("RC")%> !=0
    then OdiFileMove "-FILE=input/#FILE_NAME" "-TOFILE=reject/#V_FILE_NAME" "-OVERWRITE=YES" "-CASESENS=NO" "-RECURSE=YES"
    END IF;
    END ;
    how do I do that ? which technology I have to use because for plsql I need oracle and ODI file move I need sunopsis
    Please help me.
    Thanks,

    Hello User,
    Use below code, it will work fine.
    Technology: OdiTools
    <@if((<%=odiRef.getPrevStepLog("RC")%>)>0 && #PROJ_FILE.SEQ==1){@>
    OdiFileMove "-FILE=input/#FILE_NAME" "-TOFILE=processed/#V_FILE_NAME" "-OVERWRITE=YES" "-CASESENS=NO" "-RECURSE=YES"
    <@}else if ((<%=odiRef.getPrevStepLog("RC")%>)>0 && #PROJ_FILE.SEQ==1){@>
    OdiFileMove "-FILE=input/#FILE_NAME" "-TOFILE=reject/#V_FILE_NAME" "-OVERWRITE=YES" "-CASESENS=NO" "-RECURSE=YES"
    <@}@>
    Thank You.

  • In portlets, how to use a html form passing  values to the another page?

    it is well known that in web developing , we have two methods to pass values to another page.<!--
    1. passing values
    2.<form action="nextPage" method ="post"></form>-->
    but how to use two methods in oracle portal portlets?
    I have got a simple example which submit two values to the page for itself, means a page has a form with submit botton, user input the form with values and then submit them by submit botton, then the page recevice those values and show it .
    this example is powered by oracle ,
    please have a look at these code:
    <br><br>
    <%@ page contentType="text/html;charset=UTF-8" %>
    <%@page import="java.util.*, oracle.portal.provider.v2.*" %>
    <%@page import="oracle.portal.provider.v2.http.HttpCommonConstants" %>
    <%@page import="oracle.portal.provider.v2.render.PortletRendererUtil" %>
    <%@page import="oracle.portal.provider.v2.render.PortletRenderRequest" %>
    <%@page import="oracle.portal.provider.v2.render.http.HttpPortletRendererUtil" %>
    <%@page import="oracle.portal.provider.v2.url.UrlUtils" %>
    <%
    // The form submit URL refers to the current Portal page. All portlets
    // on this page share this URL. This means that the per portlet parameters
    // are in the same request. Portlets must ensure that its paramerters don't
    // collide either with other portlets or other instances of itself. This
    // is generally accomplished by using "fully-qualified" parameter names. A
    // fully-qualified parameter name prepends the (unique) portlet reference to
    // the parameter. The JPDK provides a utility to accomplish this.
    String portletParamName = "mName";
    String portletParamAge = "mAge";
    String portletParamSubmit = "mSubmit";
    String fName = HttpPortletRendererUtil.portletParameter(request, portletParamName);
    String fAge = HttpPortletRendererUtil.portletParameter(request, portletParamAge);
    String fSubmit = HttpPortletRendererUtil.portletParameter(request, portletParamSubmit);
    // These are the session attribute names used to store the current values.
    // Because all instances of this portlet share the same user session we must
    // also fully-qualify these names to avoid collisions.
    String sName = HttpPortletRendererUtil.portletParameter(request, "sName");
    String sAge = HttpPortletRendererUtil.portletParameter(request, "sAge");
    PortletRenderRequest pRequest = (PortletRenderRequest)
    request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    String formName = UrlUtils.htmlFormName(pRequest,null);
    ProviderUser user = pRequest.getUser();
    ProviderSession providerSession = user.getSession();
    if (providerSession == null)
    %>
    Your provider session has been terminated or has timed out
    and you need to logout and then login to re-establish the session.
    <%
    else
    // Record, in session storage, the last values submitted.
    if (pRequest.getQualifiedParameter(portletParamSubmit) != null)
    providerSession.setAttribute(sName, pRequest.getQualifiedParameter(portletParamName));
    providerSession.setAttribute(sAge, pRequest.getQualifiedParameter(portletParamAge));
    %>
    <!-- Output the HTML content -->
    <center>
    <table width="70%">
    <tr>
    <td>
    <b>This portlet shows how to post and process information from HTML forms.</b>
    </td>
    </tr>
    </table>
    <form name="<%= formName %>" method="POST"
    action="<%= UrlUtils.htmlFormActionLink(pRequest,UrlUtils.PAGE_LINK) %>">
    <%= UrlUtils.htmlFormHiddenFields(pRequest,UrlUtils.PAGE_LINK, formName) %>
    <table>
    <tr>
    <td>
    <b>Name :</b>
    </td>
    <td>
    <input type="text" size="20" name="<%= fName %>" value="">
    </td>
    </tr>
    <tr>
    <td>
    <b>Age : </b>
    </td>
    <td>
    <input type="text" size="3" name="<%= fAge %>" value="">
    </td>
    </tr>
    </table>
    <br>
    <INPUT TYPE=submit name="<%= fSubmit %>" Value="Submit">
    </form>
    <%
    if ((providerSession.getAttribute(sName) == null)&& (providerSession.getAttribute(sAge) == null)) {
    %>
    <b>No values have been submitted yet.</b>
    <%
    } else {
    %>
    <b> Last submitted values:</b><br>
    <table>
    <tr>
    <td>
    <b>Name: </b>
    </td>
    <td>
    <b><%= providerSession.getAttribute(sName) %></b>
    </td>
    </tr>
    <tr>
    <td>
    <b>Age: </b>
    </td>
    <td>
    <b><%= providerSession.getAttribute(sAge) %></b>
    </td>
    </tr>
    </table>
    <%
    %>
    </center>
    <%
    %>
    <br><br>
    <br><br>
    <br><br>
    but I want to write the form in a page , and then show it on another page , how to write it ?
    I have read the pdk:
    oracle.portal.provider.v2.url Classes
    UrlUtils
    then I use these method , as this :
    //frist page:
    <br><br><br><br>
    <%@page contentType="text/html; charset=Big5"
    import="oracle.portal.provider.v2.render.PortletRenderRequest"
    import="oracle.portal.provider.v2.http.HttpCommonConstants"
    %>
    <%@ page import="oracle.portal.provider.v2.*"%>
    <%@ page import="oracle.portal.provider.v2.render.PortletRendererUtil"%>
    <%@ page import="oracle.portal.provider.v2.render.http.HttpPortletRendererUtil"%>
    <%@ page import="oracle.portal.provider.v2.url.UrlUtils"%>
    <%
    PortletRenderRequest pReq = (PortletRenderRequest)
    request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    %>
    <P>Hello <%= pReq.getUser().getName() %>.</P>
    <P>This is the <b><i>Show</i></b> render mode!</P>
    this is a program to test the passing value
    <%
    String portletParamName = "mName";
    String portletParamAge = "mAge";
    String portletParamSubmit = "mSubmit";
    String fName = HttpPortletRendererUtil.portletParameter(request, portletParamName);
    String fAge = HttpPortletRendererUtil.portletParameter(request, portletParamAge);
    String fSubmit = HttpPortletRendererUtil.portletParameter(request, portletParamSubmit);
    PortletRenderRequest pr=(PortletRenderRequest)request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    String formName=UrlUtils.htmlFormName(pr, null);
    %>
    <form name="<%=formName%>" method="post" action="<%=UrlUtils.htmlFormActionLink("/htdocs/passingvalues4/getValues.jsp")%>">
    <%= UrlUtils.htmlFormHiddenFields("/htdocs/passingvalues4/getValues.jsp") %>
    name:<input type="text" size="20" name="<%= fName %>" value="">
    p w :<input type="text" size="3" name="<%= fAge %>" value="">
    <INPUT TYPE=submit name="<%= fSubmit %>" Value="Submit">
    </form>
    //getValues.jsp<br><br>
    <br><br>
    <%@page contentType="text/html; charset=Big5"
    import="oracle.portal.provider.v2.render.PortletRenderRequest"
    import="oracle.portal.provider.v2.http.HttpCommonConstants"
    %>
    <%@ page import="oracle.portal.provider.v2.*"%>
    <%@ page import="oracle.portal.provider.v2.render.PortletRendererUtil"%>
    <%@ page import="oracle.portal.provider.v2.render.http.HttpPortletRendererUtil"%>
    <%@ page import="oracle.portal.provider.v2.url.UrlUtils"%>
    <% String portletParamName = "mName";
    String portletParamAge = "mAge";
    String portletParamSubmit = "mSubmit";
    String fName = HttpPortletRendererUtil.portletParameter(request, portletParamName);
    String fAge = HttpPortletRendererUtil.portletParameter(request, portletParamAge);
    String fSubmit = HttpPortletRendererUtil.portletParameter(request, portletParamSubmit);%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=Big5">
    <title>untitled</title>
    </head>
    <body>
    Name:<%=fName%>
    Age :<%=fAge%>
    </body>
    </html>
    <br>then I deployed them on the portal , run it , the result is :after I submit it , the browser give me : http 404 page not found!
    [b]here is the provider.xml<br>[b[i]]<?xml version = '1.0' encoding = 'UTF-8'?>
    <?providerDefinition version="3.1"?>
    <provider class="oracle.portal.provider.v2.DefaultProviderDefinition">
    <session>true</session>
    <passAllUrlParams>true</passAllUrlParams>
    <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
    <id>1</id>
    <name>PassingValues4</name>
    <title>PassingValues4</title>
    <description>PassingValues4</description>
    <timeout>60</timeout>
    <showEditToPublic>false</showEditToPublic>
    <hasAbout>false</hasAbout>
    <showEdit>false</showEdit>
    <hasHelp>false</hasHelp>
    <showEditDefault>false</showEditDefault>
    <showDetails>false</showDetails>
    <renderer class="oracle.portal.provider.v2.render.RenderManager">
    <renderContainer>true</renderContainer>
    <renderCustomize>true</renderCustomize>
    <autoRedirect>true</autoRedirect>
    <contentType>text/html</contentType>
    <showPage>/htdocs/passingvalues4/PassingValues4InputPage.jsp</showPage>
    <showPage>/htdocs/passingvalues4/getValues.jsp</showPage>
    </renderer>
    </portlet>
    </provider>
    <br><br><br>
    <br><br>
    would you kind enough to help me ? thanks!!!
    Message was edited by:
    moonsoft

    Hi Moonsoft,
    I have already answered this query in the other post at Re: how to link more than one links in portlet?(jsp develop)
    <form name = "showPageForm" method = "POST" action = "<%= UrlUtils.htmlFormActionLink(pReq,UrlUtils.PAGE_LINK) %>">
      <%= UrlUtils.htmlFormHiddenFields(pReq,UrlUtils.PAGE_LINK, "showPageForm") %>
      <input type="text" name="param1">
      <input type="text" name="param2">
      <input type="hidden" name="myPPN" value="/htdocs/page2.jsp">
    </form>then in your jsp code on page2.jsp, you will extract the parameters by specifying
    <%
      String p1 = request.getParameter("param1");
      String p2 = request.getParameter("param2");
    %>
    >>this is easy common jsp or asp development, but in oracle is too diffcult!!!!
    :-) .. there is a difference between web-applications and portlets, you just need to get used to it once. I hope this does clarify your doubts.
    thanks,
    Harsha

  • How to use two dimensional array in custom.pll

    HI
    How to use two dimensional arrays in custom.pll
    I tried by the following way .
    type ship_array is table of number index by binary_integer;
    type vc_array is table of ship_array index by binary_integer;
    But I am getting the error as that
    A plsql table may not contain a table or a record with composite fields.
    Please tell me the way how to use them

    which forms version are you using? two dimensional arrays are available in >= 9i if memory serves.
    regards

  • How to use Pl/Sql function in Discoverer report

    Hi Everybody,
    Would you be able to provide a workflow/guidance how to use sql function in Discoverer right from creating the function using PLSQL Developer.
    (I am new to Oracle environment... prev. worked as analyst with Microsoft Access... took PL/Sql class in school a few years ago)
    We are using Discoverer Desktop.
    a) Just emailed dba for permission to create pl/sql function.
    b) Recently got Discoverer Administrator installed on my pc.
    can you pls add to the list:
    c)....
    d)....
    etc.?
    tx for your help, sandra

    Hi Kranthi,
    Thx for your warm words....
    The links you provided are great! Thx soooo much!
    Thanks to you and the rest of forum members, am able to use what you've all taught me
    with other Discoverer reports.... so i was able to do more on my own....
    About a month ago, I got access to Discoverer Admin, and was able to paste SQL to create a custom folder.
    Then i joined the custom folder to an existing baseline folder.
    I have found that sometimes when I use calc within a calc when the calcs use analytic functions, that Discoverer
    just displays null in the column. I thought that maybe instead I could create my own function as a work-around.
    I wrote IT for permissions to create views, functions etc. Hopefully, they'll approve and can move toward learning
    pl/sql functions for Discoverer.
    tx again, sandra

  • How to use java class in pl/sql

    Hai Guys,
    here is my java class:
    import java.io.*;
    public class ListFiles
    public static void main (String[] args)
    File file=new File("C:\\");
    File[] files=file.listFiles();
    for(int fileInList=0; fileInList<files.length; fileInList++ )
         System.out.println(files[fileInList].toString() );
    i want to use this class in pl/sql, i am new about this topic my concern are following
    how to load java class
    how to use in pl/sql
    Guys i'll be great-full to you if you could help me out or share link or document .

    First Read https://forums.oracle.com/forums/ann.jspa?annID=432
    Check this link...
    1. http://www.devshed.com/c/a/Oracle/Extending-PLSQL-with-Java-Libraries-concluded/
    2. calling java from pl/sql in oracle 10g?its very urgent.
    3. http://qamarsyed.blogspot.com/2010/07/calling-java-from-plsql-inside-oracle.html
    4. http://home.c2i.net/toreingolf/oracle/java_and_plsql.htm
    Hope this helps...
    If someone response is helpful or correct, please mark it accordingly.

  • How to use notification with parallel thread

    Hi,
    I am learning to use Notification to communicate between thread. I still don't know how to use it. In my current project I have a case to use this so I think I should implement this technique. My example is I have a main sequence in that I make a new thread. What I want is the new thread will do a task A when receive a notfication or to exit the thread when the main sequence stop.
    I am not sure if using notification is a best practice here? Or should I use a reference data?
    What about if I want my thread to do task B if it receive another notification. Is notification still be helpful?
    Regards,
    Thang Nguyen
    Solved!
    Go to Solution.

    Hello,
    You can use Notification to handle parallel threads. I often create two sequences : one containing the process A of your example (StartProcessA). and a second one to stop this process (StopProcessA). In StartProcessA, I create a Notification, with a defined name (as string constante, "StopProcessANotifier" for instance) in the setup group. Then I have the process, in a loop. At the end of this loop, I check the Notification (Wait) with a  timeout enabled, and no error if a timeout occurs. this way, the Notification Wait can be used as loop timing, and if the notification is Set in MainSequence, this exit the loop (pick a look at Notification property Step.Result.TimeoutOccured).
    To sum up, use a first sequence call in MainSequence, calling StartProcessA, with NewThread option, and do not forget to call StopProcessA at the end of you MainSequence. The Cleanup group is a very good location, because it will be executed even in case of error.
    This is a very simple use of Notification. Note, I believe that make it simple is often the most important but also the most complicated thing to do 
    Hope this helps....
    .mrLeft{float:left} .mrInfo{border-left:solid 1px #989898;font-size:x-small;color:#989898}
    Mathieu R.  
      CTD - Certified TestStand Developer / Développeur TestStand Certifié  
      CLAD - Certified LabVIEW Associate Developer  

  • How to use utl_ftp package to transfer files from one system to another

    Hi all,
    How to use utl_ftp package to transfer files from one system to another using plsql procedure .
    I failed to find the appropriate document ,kindly help me .
    Thanks,
    P Prakash

    prakash wrote:
    I am sorry tell you, this blog is not enough to for me.It's not a blog, it's Chris' website where you download the package from. Once you download the package and unrar it, then the package spec gives instructions (and I think there's instructions on how to install it too).
    Kindly let me know if there is any oracle documentation for this .It's not an Oracle created package, it was created by Chris. It's based around the UTL_TCP package if you really want to get into the nitty gritty of how it works, but I don't think you do.

  • How to use iframes in oracle 10g

    I have to load two jsp pages in a single html . I have done that thru iframes. But i have to dynamically load the second jsp page in the frame 2 , when the user clicks upon certain details in the frame 1 jsp page. I have wriiten the code of document.iframe in format trigger attribute. It doesn't work. Is there any other way to achieve this. I want to load the frame 2 jsp page dynamically , according to the input i get from frame 1 jsp page.

    Hi,
    >>Anybody know how to use profiler in oracle 10g
    What do you mean "profiler". About Resource Limits/Create Profiles ?
    >>i couldn't able to install the enterprise manager console.
    What OS ?
    >>because i need to trace the execution of a stored procedure.waiting the reply.
    Debug ? You can use SQL Developer, TOAD, PLSQL Developer for this purpose.
    Cheers

  • How to Use Profiler in ORACLE 10g

    Hi all,
    Anybody know how to use profiler in oracle 10g and also i couldn't able to install the enterprise manager console.is there any tools available for that.because i need to trace the execution of a stored procedure.waiting the reply.
    Sathish

    Hi,
    >>Anybody know how to use profiler in oracle 10g
    What do you mean "profiler". About Resource Limits/Create Profiles ?
    >>i couldn't able to install the enterprise manager console.
    What OS ?
    >>because i need to trace the execution of a stored procedure.waiting the reply.
    Debug ? You can use SQL Developer, TOAD, PLSQL Developer for this purpose.
    Cheers

  • How to use orinda Software generated classess

    hai all,
    iam newly useing jdev any body tell me how to use orinda generated classes. can send me sample code for this & can u tell me what is use of this.

    OrindaBuild examines your data dictionary and generates Java source code to run your PL/SQL procedures and Functions.
    It can also generate Java to run any SQL statement you give it. The generated code does not require SQLJ.
    General documentation can be found here:
    http://www.orindasoft.com/public/Docstwo.php4
    An example can be found here:
    http://www.orindasoft.com/public/Exampletwo.php4
    Say you have a PL/SQL package you want to access using JDBC:
    CREATE OR REPLACE PACKAGE complex_example AS
    TYPE city_pair_plsql_record IS RECORD (from_city flights.departure_city%type
                                          ,to_city   flights.arrival_city%type);
    PROCEDURE flies_between_all (p_first_city_pair  in  city_pair_oracle_type
                                ,p_second_city_pair in  city_pair_plsql_record
                                ,p_third_city_from  in  airports%ROWTYPE
                                ,p_third_city_to    in  airports%ROWTYPE
                                ,p_airline_list     out simple_examples.airline_refcursor_type);
    PROCEDURE get_table_of_flights_from (p_city         in     flights.departure_city%TYPE
                                        ,p_flights_from    out flights_table);
    PROCEDURE add_bookings (p_customer       in     customers%ROWTYPE
                           ,p_booking_table  in     bookings_table
                           ,p_status_message    out varchar2);
    END;OrindaBuild would generate code like this:
    package com.mycompany.myproject.generated;
    import com.orindasoft.pub.CSException;
    import com.orindasoft.pub.OracleResourceUser;
    import com.mycompany.myproject.generated.plsql.*;
    * WSDL Compatible Web Services Interface used by classes generated by OrindaBuild
    * Generated by OrindaBuild 5.0 build 2342 at 2007/01/19 18:02:18 GMT
    public interface DAOFactoryServiceInterface
    public com.mycompany.myproject.generated.plsql.SimpleExamplesAirlineRefcursorTypeAttrs[]
    servicePlsqlComplexExampleFliesBetweenAll
        (CityPairOracleTypeAttrs paramPFirstCityPair
        ,ComplexExampleCityPairPlsqlRecordAttrs paramPSecondCityPair
        ,AirportsAttrs paramPThirdCityFrom
        ,AirportsAttrs paramPThirdCityTo) throws DAOFactoryServiceException;
    public FlightsTypeAttrs[] servicePlsqlComplexExampleGetTableOfFlightsFrom
        (String paramPCity) throws DAOFactoryServiceException;
    public String servicePlsqlComplexExampleAddBookings
        (CustomersAttrs paramPCustomer
        ,BookingsTypeAttrs[] paramPBookingTable) throws DAOFactoryServiceException;
    } // Generated by OrindaBuild 5.0                                                 The rest of the generated code for this example is available here:
    http://www.orindasoft.com/public/Java2HTML
    As you can see from the code above each procedure in the package is called by a method in the generated code. OrindaBuild is really useful is situations where the PL/SQL has complicated parameters.
    David Rolfe
    Orinda Software
    Dublin, Ireland
    null
    null

  • How to use Outline Load Utility with local encoding names of dimensions?

    Hi,
    I'd like to load metadata (dimensions members) to Planning classic application via Outline Load Utility.
    Target dimension name has been set in local encoding (cyrillic).
    After execution my batch file I get error that unable to find specified load dimension "????" in target application.
    Batch file has been created to start OutlineLoad in ANSI encoding:
    cd C:\Hyperion\products\Planning\bin
    OutlineLoad /A:testapp /U:admin /M /N /I:C:\Hyperion\TempOtlLoad\otl_tmc_alterna.csv /D:{dimNameInCiryllicEncoding} /L:C:/Hyperion/TempOtlLoad/outlineLoad.log /X:C:/Hyperion/TempOtlLoad/outlineLoad.exc
    TIMEOUT 10
    How to use Outline Load Utility with local encoding names of dimensions?

    Has somebody any idea about my question below ?
    Regards,
    Ed

Maybe you are looking for

  • MB1B movement type 311

    Hi every body I need help about transfer order. Whan I make a transfert with Tcode MB1B movement type 311, I haven't got transfert order created. Somebody could help me? The material stay in the storage type 921. Thanck you Kari

  • System fonts deleted....whoops

    I installed Suitcase to manage my fonts, and when I tried to activate the fonts, a window popped up with a message that said there was a conflict with fonts in my system fonts folder, suggesting I delete them and restart. Upon doing so and restarting

  • One-time customer with ERP Sales Order

    Hello experts, I am working with ERP Sales Order on SAP CRM 7.0 Ehp3. We have a requirement to start using 'one-time customer' process. I know there is a standard account groupd (CPD) on ECC side for this purporse. We would like to enter a sales orde

  • Logging approach for a SOA application

    Hi All, I am working on a design for logging in an integrated application which uses the Oracle SOA suite for a telecom industry solution. I have a BSS system which interacts with the SOA suite to communicate to OSS systems( Network elements in telec

  • Duplicate target database for standby from active database session

    i have 1 tb db. for example i execute the duplicate command from activate standby database.after 500gb datafile copy the session terminate due to some bottle neck ( network) .is it possible to resume the job again means job again starded from the pre