Oracle error ORA-604 when opening a connection

I am facing an issue with my WCF service which is using ODP.NET version 4.112.2.0(x64) and Oracle 11g.
The service runs without any problems on the test servers but on production server (Windows 2008 R2) when an attempt is made to call any service method it fails with the following Oracle error code Ora-604. the message is
ORA-604: error occurred at recursive SQL level %s
The exception is thrown when a call to meethod Open is made to open a connection.
There is no inner exception. So far I have tried checking the connection string, the user permissions and setting the TNS_ADMIN environment variable but nothing has worked.
Another thing to mention is that another WCF service which uses some of the same stored procedure I am using is working fine on the same server.
Has anyone seen this before?
Thanks,
A

Do you have a login trigger?
select * from dba_triggers where triggering_event like 'LOGON%'
If so, try disabling it.
Does the working service use the same credentials as this problem service?
Are you able to connect using sqlplus, with the same credentials from the same client to the same database? If it's not an ODP.NET specific problem, the dba guys might be able to help better: General Database Discussions
Greg

Similar Messages

  • Oracle error ORA-00600 when using Oracle 10g and Sun One Web Server 6.1

    I have a java application that was running under Solaris 8 and Oracle 9i. I am trying to get it up and running on a new server that is configured with Solaris 9 and Oracle 10g. Whenever the application tries to connect to the database it receives the following error: ORA-00600 [ttcgcshnd-1][0]. My research indicates that this is an internal Oracle error that represents a low level unexpected condition. I have looked through my configuration for the Web Server and I have not been able to determine the cause of this problem. My DBA tells me that we have the latest patch installed for Oracle! Has anyone encountered this problem before? Any help would be greatly appreciated!

    If the problem is also present in a SWING app, i.e. outside the web server, then it is porbably something external to the webserver.
    I think you should ensure that the driver and database are compatible with each other. It is very likely that you need a new jdbc driver for the new database.
    download from here http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc101020.html
    try the ojdbc14.jar

  • Error ORA-12537 when trying to connect

    I'm getting an 'ORA-12537 TNS:connection closed' error when connecting to the database (8.1.7 on Win2k). The problem persists even after restarting both, listener and database-service. I cannot even connect as SYSDBA. How can i solve this problem?

    Seems like it may be a problem with Oracle on Windows and Firewalls. Check that your firewall software/hardware is able to proccess SQL*NET requests.
    Try to open all the ports based on IP address and see if that works.

  • Error On SAProuter when Opening Service Connection

    I am getting following error after opening the service connection,
    When SAP tries to Login please help.
    connection to XXX.XXX.XXX.XXX:3299 timed out
    Location SAProuter 39.2 (SP4) (using third-party library) on sapserv2a
    Time Tue Nov 18 12:44:32 2008
    Component NI (network interface)
    Release 710
    Version 39
    Module nirout.cpp
    Line 6618
    Method RTPENDLIST::timeoutPend: no route completion within 60s (ROUTED)Return Code -5
    Counter 20548
    Regards,
    Ritesh Bhatia,

    > connection to XXX.XXX.XXX.XXX:3299 timed out
    I suppose XXX.XXX.XXX.XXX is your router's public ip for the router. The error shows that its not able to connect to 3299 of the public ip XXX.XXX.XXX.XXX. Did you check if 3299 is open on your local firewall ? Please ask your network administrator to check if the ip XXX.XXX.XXX.XXX is properly natted with the router server and port 3299 is open in the firewall.
    Regards,
    Jazz

  • After installing MAWI error ORA-01031 when trying to connect as sysdba

    I've installed mawi 2.18 on a brand new 10.2.0.5 ORACLE_HOME.
    After installing the patch i cannot connect anymore to the database as sysdba: the error i got is:
    ORA-01031: insufficient privileges
    If i unset TWO_TASK (as stated in mawi install procedure) and replace it by ORACLE_SID it works.
    What's the correct setup to handle both sysdba connection and MAWI setup ?
    thanks
    Chris

    You could create two seperate env files. The EOF.env for TWO_TASK access and then another env file of yoru choice for SYSDBA access replacing TWO_TASK with ORACLE_SID and depending on whether you are using sysdba access or regular MW access you would execute the correct env file. I would also place the SYSDBA env file in the actual ORACLE_HOME directory.

  • Oracle Error Ora-27069 when inserting bulk data

    Hi,
    I'm inserting 10.5 million rows in a table using insert statement, & system is giving below error:
    Code -1114, Description - ORA-01114: IO error writing block to file 201 (block # 74633)
    ORA-27069: skgfdisp: attempt to do I/O beyond the range of the file
    OSD-04026: Invalid parameter passed. (OS 74639)
    ORA-01114: IO error writing block to file 201 (block # 74633)
    ORA-27069: skgfdisp: attempt to do I/O beyond the range of the file
    OSD-04026: Invalid parameter passed. (OS 74639)
    Please suggest the action for this error
    Thanks
    Deepak

    ...I apologize but of course setting the size to 3.8GB max is a "non-sense". The major thing is not to hit the 4GB size from a tablespace in Autoextend. So setting the initial size of the datafile to a value superior to 4GB is enough then you can be in Autoextend.
    Then you'll eventually hit the maximum size in number of blocks for a datafile but this is easily solved by adding a new datafile.
    Regards,
    Guillaume.

  • Using PreparedStatement and the Oracle Error ORA-1000

    Hi,
    I have a question about PreparedStatement objects that is not so simple to explain for me. What I would like to know is: if I use a PreparedStatement following traditional and generic steps:
    1- PreparedStatement pStmt = Connection.prepareStatement(sQuery);
    2- pStmt.setXXX(i,j);
    n - pStmt.setXXX(i,j);
    n+1 - ResultSet rs = pStmt.executeQuery();
    n+2 - while(rs.next()){ ... retrive ResultSet data  ... }
    n+3 - rs.close()
    n+4 - back to point number 2
    and at the end (as you can see in the point numbered n+4), instead of closing the PreparedStatement pStmt using the close() method, I reuse the PreparedStatement pStmt comeing back to the point numebr 2 and setting again all its parameters with new values ... then ... what heppens in the Oracle database ? Has been the cursor (so the mamory area), associated to my PreparedStatement object pStmt, duplicated or is it the same ?
    I know that Java allows you to do this kind of operations with PreparedStatement, and I know that in tha Java Documentation is explained to follow this strategy to optimize the execution time because in this way the same PreparedStatement is precompiled and prepared only once. But if I do a for loop following the steps explained before, after many iterations I have the error "ORA-1000: maximum open cursors exceeded". This error is the reason of my question. Does this error means that it's mandatory to close a PreparedStatement always, otherwise if you reuse it without closing it then the corresponding database cursor will be duplicated ? If it is so, then I think this is a contradiction with official java documentation ...
    I'm using Oracle8i (version 8.1.7) and Oracle JDBC Thin Driver (Windows NT) for use with JDK 1.2.x. Moreover, in my database istance the parameter "maximum open cursor" is equal to 800 ...
    Thank you very much for suggestions :-)

    There is no need to close a prepared statement or its resultset for every iteration.
    After the first iteration in a loop, all subsequent executions of it will close the previous resultset. By adding close() method, you are making one extra costly call to the DB for no reason.
    Following is the sample code.I know what you are saying. In fact at the beginning I wrote my code in the same way of your sample (see the code of my first post at the begin of this page).
    But doing so, after thousand iterations of the loop, I had "Oracle Error ORA-1000 : maximun open cursor exeeded" even if in my database istance the parameter "maximum open cursor" is equal to 8000.
    At this moment in my code, for each iteration, I close the PreparedStatement and in this way I don't have anymore the error :-((
    So it seems that only in theory we can reuse a preparedStatement without closing it. In fact if we see the oracle system table "$open_cursor" (as Konrad Pietzka suggest me) we can find that, for each interation,
    at our line code "rs = pstmt.executeQuery();" correspond a new cursor in the database: this means that for each method "pstmt.executeQuery()" the database open a new cursor and do not use the previous one as it should.
    I posted a question two months ago to search if someone had the same problem (it seems that Konrad Pietzka had the same situation) and was able to explain me what is the cause.
    The only reason I found by myself for this problem, is that probably the Oracle JDBC Thin Driver for Windows NT/2000 has some bugs... but I'm not sure ...
    Thank you very much for you time !!
    bye :-))
    Fidalma

  • Error Ora-604 on connect from Visual Studio 2008 to Oracle database

    Hello!
    I have installed Oracle 9.2.0.6 Database, Microsoft Visual Studio 2008 and today I succesfully installed ODP.NET 1110621.
    I wrote a simple console application like this:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    using System.Data;
    namespace ConsoleApplication1
    class Program
    static void Main(string[] args)
    OracleConnection c = new OracleConnection();
    c.ConnectionString = "Data Source=(DESCRIPTION="
    + "(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.1)(PORT=1521)))"
    + "(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ssss)));"
    + "User Id=user;Password=pwd;";
    c.Open();
    OracleCommand cmd = new OracleCommand();
    cmd.CommandText = "Select * from CATEGORY_TABLE";
    cmd.CommandType = CommandType.Text;
    cmd.Connection = c;
    OracleDataReader dr = cmd.ExecuteReader();
    while (dr.Read())
    Console.WriteLine(dr[0].ToString() + " " + dr[1].ToString());
    dr.Dispose();
    cmd.Dispose();
    c.Dispose();
    Console.ReadLine();
    at line c.Open(); appear runtime error : ORA-604 Error occurred at recursive SQL level 1
    How to solve it?

    Your issue is not SQL and PL/SQL so much as .NET so I would suggest you ask the question in the "Windows and .NET" forum.
    But a couple of thoughts:
    1. Your database is undoubtedly not at "HOST=192.168.1.1"
    This IP address is generally the address of the router not the server.
    2. Why would you install an unpatched version of software so old it is in desupport mode and then try to work with it using a current
    version of a Microsoft product? Would you be comfortable installing a 10 year old version of a Microsoft product and expect it to
    work well with Oracle 11gR1?

  • Error when opening RFC Connection

    Hello SAPers,
    I have configured PDA in my ECC6.0 --- XI (ABAP+JAVA) Which was successful.
    In my Web Dyno Pro Content Administrator
    I have performed the JCO Destinations test which was successful
    when I go to the URL
    http://server:port/webdynpro/dispatcher/sap.com/isisrsrsmenapp/MainApp
    entered the store number
    In the next menu
    Inventory Lookup when I enter the Article number and press Go Button
    It is giving me error " Error when opening RFC Connection "
    Rest of them working perfectly...
    Do I need to do any configuration In Visual Admin?
    Could anyone advice
    Thanks In Advance
    HariKrishna

    Thanks it got solved it was an error in RFC, I have changed the RFC now it is working fine
    Thanks
    Hari

  • ORA-03113 when trying to connect to database

    RDBMS Version:: 9.2.0.6
    Operating System and Version:: Win2003 Small Business Server
    Error Number (if applicable):: ORA-03113
    Server Net Version:: 9.2.0.6
    Client Operating System and Version:: Solaris10
    Client Net Version:: 2.1.3
    ORA-03113 when trying to connect to database
    I've currently a 7.1.3 client on SUN Solaris (5.10 Generic_118844-26 i86pc i386 i86pc) where I want to connect to the 9.2.0.6 database on a Win2003 Server hardware.
    When i try to connect via SQL*Plus (Release 3.1.3.4.1), I get ORA-03113. Looking into the listener resp. alertfile on the server, I can see that the connectiorequest is recognized, but immediately answered by an ORA-0600, producing also trc-files.
    listener: 25-MAI-2007 09:37:23 * (CONNECT_DATA=(SID=HTASQL)(CID=(PROGRAM=)(HOST=eklvpa)(USER=sat250))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.17.233.3)(PORT=32790)) * establish * HTASQL * 0
    alert: ORA-00600: internal error code, arguments: [12333], [26], [0], [115], [], [], [], []
    Activating traces on the client-side showed the following errors:
    -<ERROR>- ntus2err: sd=8, op=1, resnt[0]=511, resnt[1]=2, resnt[2]=0
    -<ERROR>- nserror: nsres: id=0, op=65, ns=12541, ns2=12560; nt[0]=511, nt[1]=2, nt[2]=0
    -<ERROR>- nsopen: unable to open transport
    -<ERROR>- nsprecv: transport read error
    -<ERROR>- nserror: nsres: id=0, op=68, ns=12537, ns2=12560; nt[0]=507, nt[1]=0, nt[2]=0
    -<ERROR>- osnqrc: wanted 1 got 0, type 0
    -<ERROR>- osnqper: error from osnqrc
    -<ERROR>- osnqper: nr err code: 0
    -<ERROR>- osnqper: ns main err code: 12537
    -<ERROR>- osnqper: ns (2) err code: 12560
    -<ERROR>- osnqper: nt main err code: 507
    -<ERROR>- osnqper: nt (2) err code: 0
    -<ERROR>- osnqper: nt OS err code: 0
    -<ERROR>- osnqsm: send-break: failed to send OOB break...
    -<ERROR>- osnqper: error from send-marker
    -<ERROR>- osnqper: nr err code: 0
    -<ERROR>- osnqper: ns main err code: 12583
    -<ERROR>- osnqper: ns (2) err code: 0
    -<ERROR>- osnqper: nt main err code: 0
    -<ERROR>- osnqper: nt (2) err code: 0
    -<ERROR>- osnqper: nt OS err code: 0
    -<ERROR>- osnqbr: returning 3113
    Can anybody help me in determining the problem ? Is there a systemtic incompatibility in connecting a 7.1.3 client to a 9.2 (or even higher) database ?

    Thanks for your reply.
    But the funny thing on this compatibility issues is, that this configuration worked before. The only thing we did, was to setup the client-PC on a new hardware with also a new operating system (upgrading from Solaris 5.8 to 5.10). And from that time we encountered this problem.
    Are there any OS-related problems known or better to say: is (was) ORACLE 7.1.3 supported on Solaris 5.10 ? Should we look for any patches which might help us ?

  • Intermittent of error "ORA-12203: TNS:unable to connect to destination"

    Hi,
    One of my application (run 24 hours each day) face intermittent of error "ORA-12203: TNS:unable to connect to destination", any one face the same issue ? any solution for this ? The error may occur weekly, some time monthly, occur randomly.
    My Oracle is 8i. Application and 8i run on different SUN machines.
    Checked with my network engr and db admin, network traffic was not congested and db was not overloaded at the time of this error. CPU and memory also not overloaded.
    regards,
    johnvun98

    This error generally occurs when you listener at server is not working properly or at client you sqlnet.ora,tnsnames.ora (if using local names) file is not configured properly check both the files

  • ERROR ORA-12203: TNS: unable to connect to destination

    Hello All,
    I have installed Oracle 8i and forms 6i on my computer running on Windows NT 4.0 with service pack 4.0. The order of my installation was Oracle 8i and then Forms 6i. I have also used Net8 Easy Config to configure the tnsnames.ora file. I tested the connection on the Net8 Easy Config wizzard and I got the connection successful message. However I still get the ERROR ORA-12203: TNS: unable to connect to destination message when I tried to connect from forms 6i.
    I have below my tnsnames.ora file:
    # C:\FORMS6I\NET80\ADMIN\TNSNAMES.ORA Configuration File:C:\forms6i\net80\admin\tnsnames.ora
    # Generated by Oracle Net8 Assistant
    LISTENER1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = austin)(PORT = 1521))
    (CONNECT_DATA = (SID = SUN))
    Rep60_AUSTIN-Forms6i,Rep60_AUSTIN-Forms6i.world=(ADDRESS=(PROTOCOL=tcp)(HOST=AUSTIN)(PORT=1949))
    I have created database objects, but forms will not connect. What else should do?
    Thanks for your anticipated response.

    Hi
    Your oracle database and forms are installed on different oracle home so when you configurate your sql net that time you are configurating only your oracle database. So for form you must be having different oracle home. you cand change thid from start/oracle inatallation products/home selecter. so change our home and run the form. and if still having problem than check for tnsnames.ora file you must be having two files and both must be having right configuration.
    thanks

  • Getting error ora-01000 maximum open cursors exceeded

    hello,
    i am building my fist application using eclipse3.3 hibernate 3.2(hybernatesynchronizer as plugin)
    i have a oracle9i like sgbd . when i trying to create my mapping file from eclipse i got this error :
    ORA-01000: maximum open cursors exceeded
    i try to increase the number of cursor from the oracleconfiguration file init.ora, i shutdown but the problem still
    i don t know how to solve this problem really.
    i need help.

    Yes, that it what I was asking about.Not that it matters, but I think you misunderstood. I meant "if you ask it to leak resources then it will do so." I wasn't asking what you meant.
    Is there a way to make it explicitly open and close via a single call? Perhaps a configuration option either globably or by method/class?Not as a standard part of Hibernate, no. That said, it's relatively hard to leak anything other than connection objects unless you're really trying hard. There are libraries that you can use to manage the lifetime of the connection (actually the session) object. I like the Spring DAO support classes. Inevitably they cause their own problems for someone who doesn't understand what Hibernate's up to under the covers though.
    Edit: Quick example
    // Bog standard Hibernate
    Session session = sessionFactory.openSession();
    try {
       return (List<Foo>)session.createQuery("from Foo").list();
    } finally {
       session.close(); // If omitted will leak a connection object
    // Using Spring
    return (List<Foo>)getHibernateTemplate().find("from Foo");Things get slightly more interesting if you're using lazy loading and actively want to keep the connection around for longer.

  • Oracle Error :: ORA-12637 Packet receive failed

    Hi buddies,
    One of my staff's PC is receiving this error sometimes when she is trying to connect to the database and she is able to connect sometimes.
    Oracle Error :: ORA-12637 Packet receive failed What could be the cause.
    I tried replacing her tnsadmin with my tnsadmin and it didn't make a change, still able to connnect sometimes and sometimes not.
    Able to connect using PL/SQL developer, but not using our customized application. (Everyone else are able to connect)
    Is it network problem?
    Please advice.
    Thank You very much.
    Alagu
    Edited by: user645399 on Sep 16, 2009 8:37 PM

    And from this cut-and-paste the OP is supposed to take what actions to solve the problem? Please don't just post that which is one google away every time someone posts an ORA- exception. You make some valuable contributions here but just posting expanded text doesn't give someone a list of actions to take that will help them resolve the issue. Better the question is left unanswered so others will be more likely to offer help.
    To the OP:
    It is highly likely you have a network issue and the fact that it is isolated to a single machine makes it reasonably easy to fix. First try to figure out which component is failing. Go to the router or switch and swap wires between that client machine and another one that is working properly. Does the problem move? If not then swap the wires. Again does the problem move? Next the NIC card? What if you put another machine on the desk and put the original hard disk in it?
    Sometimes it just isn't worth the effort so you just swap out the machine.
    Intermittent problems are always hard to identify and fix. What is on your side is that this is only affecting a single user.

  • Runtime error ora-12703 when running utl_mail

    hello,
    I call a procedure through push button to use UTL_MAIL.send(..) and I got error ora-12703.
    There is no error during compilation.
    For your info, I manage to execute the same code on stored procedure using TOAD and I received the email sent using TOAD and telnet from my local.
    For info:
    Forms developer version:
    Forms [32 Bit] Version 10.1.2.0.2 (Production)
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    procedure:
    PROCEDURE test_email IS
    BEGIN
    UTL_MAIL.send (
    sender => '[email protected]',
    recipients => '[email protected]',
    cc => '[email protected]',
    bcc => '[email protected]',
    subject => 'Test',
    MESSAGE => 'Hello World',
    mime_type => 'text; charset=us-ascii',
    priority => 3
    END;
    Could anyone please help me on this.
    Regards,
    Dayang

    Hi All,
    I tried another function that use utl_smtp to send email.
    Again I could recieve email when I execute the function in TOAD but got error ora-12703 when I ran using forms.
    When I ran the form, only "debug 1st" apear, then after that it returned error ora-12703.
    Function:
    FUNCTION SEND_MAIL
    (pIssuer IN VARCHAR2,
    pReceiver IN VARCHAR2,
    pSender IN VARCHAR2,
    pSubject IN VARCHAR2,
    pMessage IN VARCHAR2) RETURN VARCHAR2 IS
    c utl_smtp.connection;
    respuesta utl_smtp.reply;
    pServer VARCHAR2(50) := '10.0.3.79';
    CRLF CHAR(2) := CHR(13) || CHR(10);
    BEGIN
    message('debug 1st');
    -- Abre la conexión al Server de correo
    c := utl_smtp.open_connection(pServer);
    message('debug2nd');
    respuesta := utl_smtp.helo(c, pServer);
    -- Inicia el Issuer del correo.
    respuesta := utl_smtp.mail(c, pSender);
    -- Inicia el Receiver
    respuesta := utl_smtp.rcpt(c, pReceiver);
    respuesta := utl_smtp.open_data(c);
    -- Escribe la cabecera del e-mail
    utl_smtp.write_data(c, 'From: ' || pIssuer || CRLF);
    utl_smtp.write_data(c, 'To: ' || pReceiver || CRLF);
    -- Escribe el Subject
    utl_smtp.write_data(c, 'Subject: ' || pSubject || CRLF);
    -- Escribe el texto del Message.
    utl_smtp.write_data(c, CRLF || pMessage);
    utl_smtp.write_data(c, CRLF || '.');
    respuesta := utl_smtp.close_data(c);
    -- Cierra la conexión
    respuesta := utl_smtp.quit(c);
    RETURN '0';
    EXCEPTION
    WHEN utl_smtp.transient_error OR utl_smtp.permanent_error THEN
    utl_smtp.quit(c);
    RETURN sqlerrm;
    --raise_application_error(-20000,
    -- 'El envío del email ha fallado devolviendo el siguiente error: ' || sqlerrm);
    END;
    Regards,
    Dayang

Maybe you are looking for

  • How do I restore tab behavior back to the way it was in FF 3.5??

    I just upgraded to FF 3.6.13, I generally wait to upgrade until any new bugs have been identified and corrected. In FF 3.5, when I opened a new tab from a link, the new tab appeared to the right of the current tab (NOT at the very end of the tab bar)

  • Screen variant in dialog program

    Can we create a screen variant on our own screen dialog program ?

  • Don't know how to access my email away from home

    i don't know how to access my email away from home. can't find webmail or email options. == User Agent == Mozilla/4.0 (compatible; MSIE 7.0; AOL 9.1; AOLBuild 4334.5009; Windows NT 6.0; Trident/4.0; GTB6.3; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.307

  • How to lock ad. website in safari?

    Hello! I want to know how to block advertisement websitr in safai? Please help me.

  • I now get the blue screen after apple update

    Hi, After spending the last 2 hours searching im still no better off! OK so today my system update thing pops up and says i should download and install itunes 7.1.1 and and apple update which i belive was 10.4.9 but i could be mistaken on that. Anywa