Stored Procedure Concurrency Problem 10g

dear all,
Please any one could help on this my problem is appreciated.......
i'm generating ticket numbers using stored procedure as below .
i need to know followings .....(i'm using oracle 10g)
1 .Does oracle stored procedure handle concurrency by default or does db manage concurrency when we using sps or do we have handle concurrency inside a stored procedure?
2.when i generating ticket no using this stored procedure is there any concurrency issue when 100 clients are access it concurrently???
3. Is there issue or bug in my java code??????????
4.I have already used select for update statement but when i used that in db rowlocks are hanging and db become stuck .........
SELECT serial_no into newSerial FROM SERIAL_TAB WHERE BR_CODE=xbranch AND SCH_CODE = xscheme for update;
5. and in my where clause i pass branch and scheme eg:SELECT serial_no into newSerial FROM SERIAL_TAB WHERE BR_CODE=xbranch AND SCH_CODE =
xscheme;
when i run this sp oracle return the error 'more than one row return by query'
but when run query seperately it will return exactly one row for same brach code and scheme code no duplicates.
why this happen and it also happen to update statement it will ignore branch code and update for all schemes
UPDATE SERIAL_TAB SET serial_no=newSerial WHERE BR_CODE=xbranch AND SCH_CODE = xscheme;
what should i do ? sorry for my long question since i'm in deep trouble.....................
could any one can help please................................
in my java code i use transaction and setAutoCommit(false) when calling this sp
public String getTicketNo(String br,String sch){
//getconnection
//setAutoCommit(False);
//call sp get return value ;
//commit;
//if error rollback transaction
create or replace PROCEDURE sp_generate_ticket (
xbranch in varchar,
xscheme in varchar ,
xresult OUT VARCHAR
) AS
BEGIN
newSerial:=0;
SELECT serial_no into newSerial FROM SERIAL_TAB WHERE BR_CODE=xbranch AND SCH_CODE = xscheme;
newSerial:=newSerial+1;
UPDATE SERIAL_TAB SET serial_no=newSerial WHERE BR_CODE=xbranch AND SCH_CODE = xscheme;
--- do other operations -------------------------------------------------------------------------------------
END;
Best Regards,
Pradeep.
Edited by: user8958520 on Jan 1, 2012 10:02 PM

user8958520 wrote:
i need to know followings .....(i'm using oracle 10g)
1 .Does oracle stored procedure handle concurrency by default or does db manage concurrency when we using sps or do we have handle concurrency inside a stored procedure?Oracle is a multi-user and multi-process system. It supports concurrency. It also requires the developer to design and write "+thread safe+" code. Its concurrency cannot address and fix design flaws in application code.
2.when i generating ticket no using this stored procedure is there any concurrency issue when 100 clients are access it concurrently???That depends entirely on WHAT that procedure code does. And whether that code is thread safe.
4.I have already used select for update statement but when i used that in db rowlocks are hanging and db become stuck .........
SELECT serial_no into newSerial FROM SERIAL_TAB WHERE BR_CODE=xbranch AND SCH_CODE = xscheme for update;Horrible and utterly flawed approach. This forces serialisation. This means if that procedure is call by a 100 clients, only a SINGLE client can be serviced at a time. ALL OTHERS need to queue and WAIT.
Serialisation kills database performance.
What you have is a serious design flaw. Not an Oracle issue. And there is no magic solution to make this flawed approach work in a performant and scalable manner. This flaw introduces artificial contention. This flaw enforces serialisation. This flaw means that your application code WILL step on its own toes time and time again.
The proper solution is to fix this design flaw - and not use poorly conceived procedures such as sp_generate_ticket that violates fundamental concurrency principles.

Similar Messages

  • How to verify stored procedures in Oracle 10g.

    I would like to locate default stored procedure in Oracle 10g database.
    And Suggest which stored procedure can be converted in to JAVA code ??

    If the Java part of the question refers to looking for potential to speed up your stored procedures:
    You should consider native compilation which transfers your code to shared libraries which are bound to the DB kernel.
    In this case however consider, that this does not make any sense/improvement for pure data access statements but only for procedures consisting of complex algorithmic processing.
    For details refer to
    [How native compilation works|http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/tuning.htm#sthref2280]
    and
    [Setting Up and Testing PL/SQL Native Compilation|http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/tuning.htm#sthref2309]

  • Java Stored Procedure Deployment Problem with JDev 3.1.1.2

    Dear JDeveloper Team:
    I am having a problem deploying a test Java stored procedure to the database. In the Deployment Profile Wizard Connection tab, it displays no connection in the connection dropdown even though I have defined some connections that have been sucessfully connected to the database.
    Please help.
    Thanks,
    Tom

    Tom,
    Verify that your Connections are valid as follows:
    Double Click on the Connections folder of JDeveloper Navigator.
    This opens up the Connection Manager.
    Make sure you have defined JDBC Connections.
    Pick your connection of intrest and select Edit... and then press the Test button to test the conneciton.
    If this is a valid JDBC connection, then it should appear later when you run the deployment wizard.
    -John

  • EJB from stored procedure lookup problem

    We are running a test case with in an EJB deployed to Oracle 8.1.6, accessing it from a Java stored procedure. It works okay if the stored procedure is called a limited number of times from a single client (client is non-Java). However, for performance testing, we are trying to run it several hundred times in sequence to better simulate the eventual production environment. Consistently on the 216th call, it fails with a NamingException from the InitialContext lookup. We can restart the client again and it will fail on the same call.
    Sounds like something memory related to me. Does anyone have any ideas? I'm using standard EJB client code in my stored procedure, instantiating an InitialContext, performing a lookup on the EJB, performing a home interface create, then accessing an EJB method.
    Thinking it might be that my test was too fast for whatever garbage collection is being done on the server, I tried a 2 second delay between invocations--same problem occurs, however. Should I be making a call to remove my EJBs when my stored procedure ends? If so, how would I do that?
    I did try making the handle to my EJB a static variable within the stored procedure and only "creating" the EJB once. That works okay with a single client, but if I run 2 clients simultaneously, 1 will work for awhile and then eventually die trying to call the EJB method--while the other client continues to run successfully.
    I'm stumped. Any insight or guidance will be greatly appreciated. Thanks.

    My DBA bumped up the large_pool_size and java_pool_size settings and the problem went away. I couldn't convince him to bump the settings one at a time, so am not sure which one was at the root of the problem.
    As I looked at the trace logs on the server, I also noticed that we were getting intermittent "peer disconnected socket" messages during the testing. That appears to have gone away with the pool size increases, also--in case that helps out anyone else.

  • Stored Procedure Concurrency

    I'm using Java to connect to a SQL Server 2000 database. I connect using the Driver Manager with Sun's odbc driver ( sun.jdbc.odbc.JdbcOdbcDriver ) or I can use the jdbc driver provided by Microsoft (com.microsoft.jdbc.sqlserver.SQLServerDriver)
    The Java application makes 1 Connection.
    Within the database there exists a stored procedure that updates 2 Tables. The tables have a fixed number of rows that get updated continuously by calls to this stored procedure.
    The Java application has a thread pool of 15 threads that create 15 CallableStatements (1 per thread) using the same instance of the Connection object.
    According the the Microsoft JDBC driver docs, 1 Connection with multiple calls to the Callable statements is how it's supposed to be done. The following is an excerpt from Microsoft's "SQL Server 2000 Driver for JDBC User�s Guide and Reference" (page 86) regarding Connection Managment:
    Managing Connections
    Connection management is important to application performance. Optimize your application by connecting once and using multiple statement objects, instead of performing multiple connections. Avoid connecting to a data source after establishing an initial connection.
    This is precisely what I'm doing, but I do not know if the the stored procedures are be run concurrently, the documentation does not tell me.
    So my question: What is happening inside SQL Server 2000?

    The Java application has a thread pool of 15 threads
    that create 15 CallableStatements (1 per thread)
    using the same instance of the Connection object.I believe this is bad and you're just asking for trouble. Each thread should have its own Connection - Connections are not thread-safe.

  • Stored procedure execution problem

    hi guys
    I am having problems running a stored procedure where i am using two input parameters
    my stored procedure is as follows
    ALTER procedure [dbo].[enterdhbnameDhbService]
    @dhb_service char, @dhbname char
    as
    SELECT dbo.DHBMappingTable.[DHB Name], dbo.Agency.DHB_service, dbo.PurchaseUnitMappingTable.PU,
    SUM(dbo.[NMDS Data for IDF Report].[Number of caseweighted discharges]) AS Expr1, dbo.AdmissionMappingTable.Admission
    FROM dbo.DomicileCodes INNER JOIN
    dbo.[NMDS Data for IDF Report] ON dbo.DomicileCodes.[Domicile code] = dbo.[NMDS Data for IDF Report].[Domicile Code] INNER JOIN
    dbo.PurchaseUnitMappingTable ON dbo.[NMDS Data for IDF Report].[Purchase Unit] = dbo.PurchaseUnitMappingTable.PU INNER JOIN
    dbo.AdmissionMappingTable ON
    dbo.[NMDS Data for IDF Report].[Admission Type Description] = dbo.AdmissionMappingTable.[Admission Type Description] INNER JOIN
    dbo.Agency ON dbo.[NMDS Data for IDF Report].[Agency Name] = dbo.Agency.Agengy INNER JOIN
    dbo.DHBMappingTable ON dbo.DomicileCodes.[DHB area] = dbo.DHBMappingTable.[DHB Code]
    WHERE (dbo.[NMDS Data for IDF Report].[Financial Year] = '20062007')
    GROUP BY dbo.DHBMappingTable.[DHB Name], dbo.Agency.DHB_service, dbo.PurchaseUnitMappingTable.PU, dbo.AdmissionMappingTable.Admission
    HAVING (dbo.Agency.DHB_service = @dhb_service) and
    AND (dbo.DHBMappingTable.[DHB Name] = @dhbname )
    The values of  " @dhb_service" and "@dhbname" need to be entered when the stored procedure is executed. Now when I execute the stored procedure through the following statement:
    exec enterdhbnameDhbService
    @dhb_service = 'canterbury' ,@dhbname = 'south canterbury'
    SQL does not give me any results, only empty table gets displayed. I have checked the combination.. This combination does exist in my table
    pls help guys

    Increase the size of the stored procedure parameters as "mitasid" suggested.
    Remove HAVING clause,
    SELECT dbo.DHBMappingTable.[DHB Name], dbo.Agency.DHB_service, dbo.PurchaseUnitMappingTable.PU,
    SUM(dbo.[NMDS Data for IDF Report].[Number of caseweighted discharges]) AS Expr1, dbo.AdmissionMappingTable.Admission
    FROM dbo.DomicileCodes INNER JOIN dbo.[NMDS Data for IDF Report]
    ON dbo.DomicileCodes.[Domicile code] = dbo.[NMDS Data for IDF Report].[Domicile Code]
    INNER JOIN dbo.PurchaseUnitMappingTable
    ON dbo.[NMDS Data for IDF Report].[Purchase Unit] = dbo.PurchaseUnitMappingTable.PU
    INNER JOIN dbo.AdmissionMappingTable
    ON dbo.[NMDS Data for IDF Report].[Admission Type Description] = dbo.AdmissionMappingTable.[Admission Type Description]
    INNER JOIN dbo.Agency
    ON dbo.[NMDS Data for IDF Report].[Agency Name] = dbo.Agency.Agengy
    INNER JOIN dbo.DHBMappingTable
    ON dbo.DomicileCodes.[DHB area] = dbo.DHBMappingTable.[DHB Code]
    WHERE
    dbo.[NMDS Data for IDF Report].[Financial Year] = '20062007'
    AND (dbo.Agency.DHB_service = @dhb_service)
    AND (dbo.DHBMappingTable.[DHB Name] = @dhbname)   
    GROUP BY
    dbo.DHBMappingTable.[DHB Name],
    dbo.Agency.DHB_service,
    dbo.PurchaseUnitMappingTable.PU,
    dbo.AdmissionMappingTable.Admission
    Regards, RSingh

  • Deploying SQLJ classes as Java Stored Procedures using JDeveloper 10g

    Hello,
    I have defined a SQLJ class, MwaSqljDao.sqlj, in JDeveloper. When I right click on the SQLJ class and "make" the class. It appears to succeed.
    However when I attempt to build the project in which the SQLJ class is a member of, a class that uses the SQLJ class has the following compile error:
    - MwaSqljDao not found.
    After a little digging it appears JDeveloper is able to compile the .sqlj file to a .java file in the classes output directory. However it does not take it to the next step of compiling the .java file into a .class file.
    Is SQLJ still a main stream Oracle technology? Or has it been cast to way side to make way for other technology?
    If SQLJ is still a supported Oracle technology how do go about compiling the SQLJ class using JDeveloper?
    My goal is to deploy SQLJ into JServer as a Java Stored Procedure class.
    Thank you,
    Rob

    Excellent.
    Especially that you resolved it and even more so that you posted the solution.
    I do wonder whether you would have gotten help (faster) has you asked in a JDeveloper-related forum such as " Forum Home » Developer Tools » JDeveloper and ADF" at JDeveloper and ADF

  • How to introspect a Stored Procedure in BPm 10g

    Could some give points on how to introspect the Stored procedure from BPM

    Hi,
    I hope you must have created DB connection in External Resources (Workspace).
    So Now create one module in catalog component called DBTables, right click on the module -> New -> Catalog Component -> SQL Query -> Select the DB connection that you created earlier -> select the schema, now you can see all the procedure, tables, function that are defined in your schema.Click on the procedure that you want to import to your workspace and click on finish. The procedure will be imported to your workspace.
    Hope the above will help you.
    Bibhu
    Edited by: Bibhuti Bhusan on Jul 14, 2011 10:44 PM

  • Calling Stored Procedure Using OSB 10g R3

    Hi Guys,
    I wanted to know what is the best way to call a Stored Proc from OSB 10 g R3.
    I am using MS SQL 2005 server.

    The DB Adapter does, in fact, support SQL Server in 10.1.3.x. The adapter configuration wizard does not support SQL Server so a command-line utility is necessary in order to generate the BPEL artifacts (XSD and WSDL). Once the artifacts are created, it is very easy to create a partner link to a SQL Server stored procedure. The adapter runtime has no restrictions beyond what is stated in the documentation. Note that the wizard will support SQL Server in 11g.

  • Help: Stored procedure related problem: passing record data to a parameter?

    I am working a form and block A is based on a stored procedure. Assuming it contains customer information and in a tab form contains 20 customer's info. When the mouse cursor pointing to any one of the record, I'd like to pass the record, just one info to a parameter list. It is like: in a when_mouse_click
    :parameter.customer_name := :a.customer_name etc.,
    Thank you in advance.
    Jimmy

    Nobody can guess what your are doing and what error you are facing. You need to provide more details, like the code, calling method and the exact error message.
    Use tag to post your code.                                                                                                                                                                                                                                                                                                                                                                                                       

  • Please Help!!!!! Problem Migrating from sql 2000 stored procedure to PL/SQL

    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
    Please Help me in debugging this error. Thanks in advance.

    As the poster above mentioned you cannot call "GetEmployees" without a parameter.
    Note that the procedure declaration has the following line
    RCT1 IN OUT GLOBALPKG.RCT1
    This means that whenever you want to call the procedure you must pass it a variable of type GLOBALPKG.RCT1
    However unless this is merely a homework or learning exercise (i.e. you are not porting the code of a production application) i would strongly recommend that you do not attempt to simply convert the code to PL/SQL.
    The reasoning behind this is that Oracle's architecture will be completely different to the source of the original code and if you attempt to simply port the code (especially using an automatic tool) you will almost certainly hit problems.
    For example the SQL Server's 2000 code may (should be) be written based on SQL Server's locking strategy. Oracle's locking strategy is completly different if you try to use the same techniques as you do in SQL Server the performance will suffer.
    Porting a code or a database schema from one platform to another involves a lot of analysis in order to take advantage of the features of the destination platform.
    As I said this may not be important to you depending on why you are attempting a port.
    Good Luck.

  • ORA-04030: out of process memory when using Java Stored Procedures

    Hello,
    I have a problem using Java Stored Procedures in Oracle 10g.
    My Java application performs http posts to a webservice and the response is parsed in order to populate some DB tables.
    There is a scheduled job which calls the Java Stored Procedure every x minutes.
    No matter of the 'x minutes' values - after about 160 - 200 calls I get this error:
    ORA-04030: out of process memory when trying to allocate 1048620 bytes (joxp heap,f:OldSpace)
    ORA-04030: out of process memory when trying to allocate 2097196 bytes (joxp heap,f:OldSpace)
    The job stops just while is posting the http request. The weird thing is that almost each time the first http post request I get this error:
    java.net.ConnectException: Connection refused
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
         at java.net.Socket.connect(Socket.java:426)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(DashoA6275)
         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140)
         at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:130)
         at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
         at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
         at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
         at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
         at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
    and the second try works fine.
    So, The out of process memory occured each time just before getting such an error, and I suspect to be a connection between these errors.
    Tech details:
    1. OS: WinXP
    2. Oracle 10.1.0.2.0
    3. To perform http post I use HttpClient 3.1 from Apache.
    4. I checked the http connection to be closed each time, and this is done.
    5. I checked the oracle statement and connection to be closed each time and this is done
    6. The JVM error (logged in .trc files of Oracle) is:
    java.lang.OutOfMemoryError
         at java.lang.Thread.start(Native Method)
         at sun.security.provider.SeedGenerator$ThreadedSeedGenerator.run(SeedGenerator.java:297)
    DB Settings details:
    Starting up ORACLE RDBMS Version: 10.1.0.2.0.
    System parameters with non-default values:
    processes = 200
    sessions = 225
    shared_pool_size = 159383552
    large_pool_size = 8388608
    java_pool_size = 104857600
    nls_language = AMERICAN
    control_files = C:\ORACLE\PRODUCT\10.1.0\ORADATA\XXXXXX\CONTROL01.CTL, C:\ORACLE\PRODUCT\10.1.0\ORADATA\XXXXXX\CONTROL02.CTL, C:\ORACLE\PRODUCT\10.1.0\ORADATA\XXXXXX\CONTROL03.CTL
    db_block_size = 8192
    db_cache_size = 29360128
    compatible = 10.1.0
    fal_client = XXXXXX
    fal_server = XXXXXXs
    log_buffer = 524288
    log_checkpoint_interval = 100000
    db_files = 70
    db_file_multiblock_read_count= 32
    db_recovery_file_dest = C:\oracle\product\10.1.0\flash_recovery_area
    db_recovery_file_dest_size= 2147483648
    standby_file_management = AUTO
    undo_management = AUTO
    undo_tablespace = undotbs_01
    undo_retention = 14400
    remote_login_passwordfile= EXCLUSIVE
    db_domain =
    dispatchers = (PROTOCOL=TCP) (SERVICE=XXXXXXXDB)
    remote_dependencies_mode = SIGNATURE
    job_queue_processes = 4
    parallel_max_servers = 5
    background_dump_dest = C:\ORACLE\PRODUCT\10.1.0\ADMIN\XXXXXX\BDUMP
    user_dump_dest = C:\ORACLE\PRODUCT\10.1.0\ADMIN\XXXXXX\UDUMP
    max_dump_file_size = 10240
    core_dump_dest = C:\ORACLE\PRODUCT\10.1.0\ADMIN\XXXXXX\CDUMP
    sort_area_size = 1048576
    sort_area_retained_size = 1048576
    db_name = XXXXXX
    open_cursors = 500
    optimizer_mode = FIRST_ROWS
    pga_aggregate_target = 25165824
    Any help would be appreciated. Thanks.
    Can be a problem with JVM threading under Oracle ?

    The server prcess failed to allocate more memory for large objects ( in Oldspace).
    If you Google ORA-04030, you will see several recommendations to work around this.
    The Java VM in the database already has HttpClient, i don't know why you are loading the Apache HttpClient but this might not be the surce of the problem.
    Kuassi http://db360.blogspot.com

  • How to use a stored procedure as a datasource in Crystal Report for Eclipse

    Hi All,
    I've written a stored procedure in oracle 10g with few input parameters and one refcursor output parameter. I want to use this stored procedure as a data source for creating a report in "Crystal Report For Eclipse 3.6.0".
    When I tried to add this stored procedure to the report using the connection explorer, I don't see any option to do this. But when I try to add any table, it shows options like "Add to the current report"....
    Can anybody assist me how to use a stored procedure as a data source in "Crystal Report For Eclipse"?
    Which driver should I use to connect to the oracle database? I tried using JDBC Driver for Oracle.
    Thanks in advance.

    Did you solve your problem? How did you do?

  • Stored Procedure in Oracle 8

    Hi, I create a stored procedure in Oracle 10g and I want to run this same procedure in Oracle 8. Anybody knows the syntax for this procedure in Oracle 8?
    Here are the stored procedure:
    create or replace PROCEDURE Sp06_Rel_Acoes_Usuario (dt_inicio IN VARCHAR2, dt_fim IN VARCHAR2, filtro IN VARCHAR2, v_cursor OUT sys_refcursor)
    IS
    BEGIN
         OPEN v_cursor FOR
              SELECT A.AD013_DTOCORRENCIA, A.AS013_APLICATIVO, A.AS002_CDUSUARIO, A.AS013_DADOADICIONAL, AC.AS012_DSACAO
              FROM T013_ACAOUSUARIO A, T012_ACAO AC
         WHERE A.AD013_DTOCORRENCIA BETWEEN TO_DATE(dt_inicio,'dd/mm/yyyy HH24:MI:SS') AND TO_DATE(dt_fim,'dd/mm/yyyy HH24:MI:SS')
              AND A.AS002_CDUSUARIO = filtro AND A.AN012_CDACAO = AC.AN012_CDACAO                     
              ORDER BY A.AD013_DTOCORRENCIA;
    END;

    I'm pasting your code in proper format - so that everyone can understand what you have posted here.
    create or replace PROCEDURE Sp06_Rel_Acoes_Usuario (dt_inicio IN VARCHAR2,
                                                        dt_fim IN VARCHAR2,
                                                        filtro IN VARCHAR2,
                                                        v_cursor OUT sys_refcursor)
    IS
    BEGIN
      OPEN v_cursor FOR
      SELECT A.AD013_DTOCORRENCIA,
             A.AS013_APLICATIVO,
             A.AS002_CDUSUARIO,
             A.AS013_DADOADICIONAL,
             AC.AS012_DSACAO
      FROM T013_ACAOUSUARIO A, T012_ACAO AC
      WHERE A.AD013_DTOCORRENCIA BETWEEN TO_DATE(dt_inicio,'dd/mm/yyyy HH24:MI:SS')
      AND TO_DATE(dt_fim,'dd/mm/yyyy HH24:MI:SS')
      AND A.AS002_CDUSUARIO = filtro
      AND A.AN012_CDACAO = AC.AN012_CDACAO
      ORDER BY A.AD013_DTOCORRENCIA;
    END;Try to post script in proper format. It will be easier for everyone to go through your problem and debug it.
    Regards.
    Satyaki De.

  • Which tool is the best to develop stored procedure?

    Hello everyone,
    which tool is the best to develop and debug stored procedure in oracle9i/10g?
    Thanks

    > Now i am using sqlplus to develop procedures. But I can not debug them.
    How do you debug??
    Bad programmers tend to need and use a debugger a lot.
    I learned to program back when you were only allowed 3 compiles and link due to mainframe CPU costs. The 3rd build was the production one. If you could not cut it, you could not become a Programmer. (back then it still carried a lot of meaning and yes, people spoke of Programmers using capitals)
    If you need to debug your code regularly, then you have a more serious problem. A problem of not writing PROPER MODULARISED code. A problem of not tackling programming problems LOGICALLY - by reducing the complex problem into a set of smaller problems and solving each of those in turn.
    Having to trace code step by step, insert break points, and all that... Debugging must be an exception. If it is not, you must seriously consider your programming techniques and better your design skills. Get back to programming 101 fundamentals.

Maybe you are looking for

  • Two Undocumented Fixes I've Noticed in 7.2, and an Enhancement

    1. As described in the thread "EXS samples loading twice," double-clicking an .lso file in the Finder meant that Logic would load its EXS samples twice (not the case when selecting the file with the Open... command). This seems to be fixed in 7.2. (S

  • How do I create a connection with a special character (!) in the password ?

    Oracle 11.2.0.3 EE on Solaris SQL*Developer 3.1.0.6 on Windows 7 Due to security requirements our passwords contain an exclamation mark (!) but I can't get SQL*Developer to recognize it. I've tried to put it in quotes, escaping it and even swearing a

  • About JAVA I/O Streams

    can we control the flow of the input stream..i.e., In my program i've a while loop in which client reads continuously the input stream from the server. Even after the server stop sending the data,the while loop is waiting for the input stream to read

  • JCraft, SSH and System.in

    Hello, I'm currently trying to use Jsch package from JCraft. I'm trying to send a series of command to a distant computer through SSH. As there is absolutely no forum, wiki or tutorial for this package, I'm ending up here. I adapted the Shell.java ex

  • Messages with Server 3.1.2 behind a proxy server

    Help ... I am familiar with earlier iterations of the Mac OS X server software and set up a largish 16TB system in a UK hospital before I retired.  I am now working for a charity in a remote location and testing the latest version running on a recycl