If Oracle DB Connection goes down,it should reconnect the DB again

Hi All,
I have a serious problem while running java process all the day. Sometimes I get following errors:
1. (***ERROR) java.sql.SQLException: OALL8 is in an inconsistent state.
2. (***ERROR) java.sql.SQLException: Io exception: Broken pipe
(***ERROR) java.sql.SQLException: Io exception: Broken pipe
(***ERROR) java.sql.SQLException: Closed Connection
3. (***ERROR) java.sql.SQLException: No more data to read from socket.
The above exceptions are not coming everyday.But sometimes it gives exceptions and because of that my java process will not run until it restarts the program.
I do know, because of oracle server down some of exceptions are coming. But what I wanted to do is if once the oracle server is up , my java application has to reconnect to the DB.
My idea is when java throws SQLException because of oracle server down, in the exception block it has to reconnect to the DB again by checking for right SQLERROR.
I am using JRE 1.4.2_10, JDBC Thin driver and Oracle 10g.
About Oracle DataSource am using JDBC 3.0 concepts which includes
OracleConnectionCacheManager and
Oracle DataSource
Can anybody help me on this to resolve the above exceptions.
Thanks in advance.

Actually, we are implementing Fast Connection Failover in our
application. Wwhenever one server instance goes down, java has to
map to another instance by taking all the required connections and
when server backs up then oracle has to do load balancing with all
the server instances.So you do already solve connection problem, right?
In the Java application, it sends array of hundred records to oracle all
the time. Is it because of sending huge arrays it is giving exception
java.sql.SQLException: OALL8 is in an inconsistent state.
Please help me out in solving the exceptions am getting.i think the exception raise not because you sending a huge arrays,
but because the connection broken in the middle of sending array.
you can get another connection when that exception occurs.
i'm not sure... i hope this can help you about handling that exception :
boolean success = false;
// will repeatly get available any connection until your transfer successfull
// or datasource does not has connection available anymore.
while (!success && isConnectionAvailable()) {
   Connection c = null;
   // Statement s = null;
   // ResultSet r = null;
   try {
      c = ds.getConnection();
      c.setAutoCommit(false);
      // send your array here
      // only commit when all data sent
      c.commit();
      c.setAutoCommit(true);
      success = true;
   } catch (SQLException sqlEx) {
      if (sqlEx.getErrorCode() == SERVER_DOWN) {
         // not sure this is needed...
         // when connection broken your partial sent data will not saved in db
         // because we set off auto-commit.
         // & actually calling rollback when connection is broken only raise
         // another sql exception ;P
         if (c.isValid(0)) c.rollback();
         // log exception information
   } finally {
      // close result set
      // close statement
      DbUtils.closeQuietly(c);
}

Similar Messages

  • Oracle 10g Agent goes down itself

    I have been observing the Oracle 10g agent goes down by itself and in grid control it reports as Agent unreachable. where do I see the log why Agent is going down on target everytime.

    I guess the location is D:\oracle\agent10g\sysman\log
    However, I do not see any information why th agent went down ..
    log looks like below
    2009-12-29 15:35:40,552 Thread-5812 [IBM WebSphere Application Server] InstanceProperty (version) is marked OPTIONAL but is being used
    (00506)
    2009-12-29 15:35:47,599 Thread-5812 EMAgent started successfully
    (00702)
    2010-01-06 11:00:36,085 Thread-4360 Starting Agent 10.2.0.4.0 from D:\oracle\agent10g
    (00701)
    2010-01-06 11:00:37,929 Thread-4360 [E-Mail IMAP Server] InstanceProperty (imap_host) is marked OPTIONAL but is being used
    (00506)
    2010-01-06 11:00:38,804 Thread-4360 Invalid expression (CacheFlushSuccess __delta) > 0 ? (CacheFlushSuccess __delta ) : 0
    (00101)
    2010-01-06 11:00:39,132 Thread-4360 [Database Instance] InstanceProperty (DBVersion) is marked OPTIONAL but is being used
    (00506)
    2010-01-06 11:00:39,445 Thread-4360 [Identity Manager Repository] InstanceProperty (Port) is marked OPTIONAL but is being used
    (00506)
    2010-01-06 11:00:39,445 Thread-4360 [Identity Manager Repository] InstanceProperty (SID) is marked OPTIONAL but is being used
    (00506)
    2010-01-06 11:00:39,445 Thread-4360 [Identity Manager Repository] InstanceProperty (url) is marked OPTIONAL but is being used
    (00506)
    2010-01-06 11:00:39,445 Thread-4360 [Identity Manager Repository] InstanceProperty (jdbcdriver) is marked OPTIONAL but is being used
    (00506)
    2010-01-06 11:00:39,585 Thread-4360 [Oracle BPEL Process Manager] InstanceProperty (oc4jTargetName) is marked OPTIONAL but is being used
    (00506)
    2010-01-06 11:00:40,616 Thread-4360 [E-Mail POP Server] InstanceProperty (pop_host) is marked OPTIONAL but is being used
    (00506)
    2010-01-06 11:00:40,726 Thread-4360 [Cluster Database] InstanceProperty (DBVersion) is marked OPTIONAL but is being used
    (00506)
    2010-01-06 11:00:40,851 Thread-4360 [Siebel Gateway Server] InstanceProperty (SIEBEL_GATEWAY) is marked OPTIONAL but is being used
    (00506)
    2010-01-06 11:00:40,851 Thread-4360 [Siebel Gateway Server] InstanceProperty (SIEBEL_PORT) is marked OPTIONAL but is being used
    (00506)
    2010-01-06 11:00:40,866 Thread-4360 [Siebel Server] InstanceProperty (filesystem:filesystem) is marked OPTIONAL but is being used
    (00506)
    2010-01-06 11:00:40,866 Thread-4360 [Siebel Server] InstanceProperty (filesystem:installdir) is marked OPTIONAL but is being used
    (00506)
    2010-01-06 11:00:40,866 Thread-4360 [Siebel Server] InstanceProperty (filesystem:logdir) is marked OPTIONAL but is being used
    (00506)
    2010-01-06 11:00:40,898 Thread-4360 [Load Balancer Switch] InstanceProperty (snmpTimeout) is marked OPTIONAL but is being used
    (00506)
    2010-01-06 11:00:40,960 Thread-4360 [E-Mail SMTP Inbound Server] InstanceProperty (smtp_host) is marked OPTIONAL but is being used
    (00506)
    2010-01-06 11:00:41,007 Thread-4360 [E-Mail SMTP Outbound Server] InstanceProperty (smtp_host) is marked OPTIONAL but is being used
    (00506)
    2010-01-06 11:00:41,085 Thread-4360 Undefined column name interval in expression ( active.requests > 0) ? active.requests/(interval*60) : 0
    (00104)
    2010-01-06 11:00:41,132 Thread-4360 [BEA WebLogic Managed Server] InstanceProperty (version) is marked OPTIONAL but is being used
    (00506)
    2010-01-06 11:00:41,226 Thread-4360 [IBM WebSphere Application Server] InstanceProperty (version) is marked OPTIONAL but is being used
    (00506)
    2010-01-06 11:00:48,054 Thread-4360 EMAgent started successfully (00702)

  • SSRS Reporting manages goes down frequently. ERROR: The underlying connection was closed: An unexpected error occurred on a send.

    We have been experiencing issues with SSRS over the past 5 weeks, the service goes down frequently. And it comes up only on reboot of the server.
    We had also disabled the On Access scan in Mcafee.
    The service is in use for about two years, and the below error started occuring over the last few days. Please advise on this.
    ui!ReportManager_0-2!24e8!08/14/2014-18:13:45:: e ERROR: The underlying connection was closed: An unexpected error occurred on a send.
    ui!ReportManager_0-2!24e8!08/14/2014-18:13:45:: e ERROR: HTTP status code --> 500
    -------Details--------
    System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException:
    An existing connection was forcibly closed by the remote host
       at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
       at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
       --- End of inner exception stack trace ---
       at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
       at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size)
       at System.Net.ConnectStream.WriteHeaders(Boolean async)
       --- End of inner exception stack trace ---
       at Microsoft.SqlServer.ReportingServices2005.RSConnection.GetSecureMethods()
       at Microsoft.ReportingServices.UI.Global.RSWebServiceWrapper.GetSecureMethods()
       at Microsoft.SqlServer.ReportingServices2005.RSConnection.IsSecureMethod(String methodname)
       at Microsoft.SqlServer.ReportingServices2005.RSConnection.ValidateConnection()
       at Microsoft.ReportingServices.UI.Global.SecureAllAPI()
       at Microsoft.ReportingServices.UI.ReportingPage.EnsureHttpsLevel(HttpsLevel level)
       at Microsoft.ReportingServices.UI.ReportingPage.ReportingPage_Init(Object sender, EventArgs args)
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.Web.UI.Control.OnInit(EventArgs e)
       at System.Web.UI.Page.OnInit(EventArgs e)
       at System.Web.UI.Control.InitRecursive(Control namingContainer)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    ui!ReportManager_0-2!24e8!08/14/2014-18:13:46:: e ERROR: Exception in ShowErrorPage: System.Threading.ThreadAbortException: Thread was being aborted.
       at System.Threading.Thread.AbortInternal()
       at System.Threading.Thread.Abort(Object stateInfo)
       at System.Web.HttpResponse.End()
       at System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm)
       at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String errMsg) at    at System.Threading.Thread.AbortInternal()
       at System.Threading.Thread.Abort(Object stateInfo)
       at System.Web.HttpResponse.End()
       at System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm)
       at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String errMsg)
    library!ReportServer_0-1!1c90!08/14/2014-18:13:51:: Call to ListParentsAction(/Data Sources).
    library!ReportServer_0-1!1c90!08/14/2014-18:13:51:: Call to ListParentsAction(/Data Sources).
    library!ReportServer_0-1!1c90!08/14/2014-18:13:51:: Call to ListChildrenAction(/Data Sources, False).
    webserver!ReportServer_0-1!1c90!08/14/2014-18:13:51:: i INFO: Processed folder '/Data Sources'
    library!ReportServer_0-1!68c!08/14/2014-18:13:56:: Call to GetItemTypeAction(/).
    library!ReportServer_0-1!68c!08/14/2014-18:13:56:: Call to ListParentsAction(/).
    library!ReportServer_0-1!68c!08/14/2014-18:13:56:: Call to ListChildrenAction(/, False).
    webserver!ReportServer_0-1!68c!08/14/2014-18:13:56:: i INFO: Processed folder '/'

    Hi SThiyag,
    Based on your error message, it may be related to the “SecureConnectionLevel” in the RSReportServer.config file. Please go to C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer, use Notepad to open the RSReportServer.config,
    modify <Add Key="SecureConnectionLevel" Value="0"/>, change the value into "1" or "2".
    (Note: Please backup the file before modify it.)
    Acceptable values are: 
    3 Most secure—Use SSL for absolutely everything.
    2 Secure—Use SSL for rendering and methods that pass credentials but don't insist on it for all SOAP calls.
    1 Basic Security—Accepts http but rejects any calls that might be involved in the passing of credentials.
    0 Least Secure—Don't use SSL at all
    Here is a blog for error message "The underlying connection was closed...", please refer to the link below:
    http://blogs.msdn.com/b/engelsr/archive/2005/11/29/the-underlying-connection-was-closed.aspx
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Weird network problem: Ethernet link going down for few seconds, and up again

    Hi,
    this problem is driving me nuts for weeks now, and I've not had any success with solving it myself, so I hope someone might have a clue...
    A few weeks ago, maybe 2 months, when downloading VOD content from iTunes, the download suddeny stopped after a while, saying that there is a problem with my network connection. I can then resume the download until the next connection drop occurs. iTunes was and still is the only app that makes the problem noticeable (FTP, browsing, Mac App Store etc. are working fine), however, as this also affects iDevice firmware downloads and basically everything I download via iTunes, the problem started to really annoy me. I'm not sure, but the problem might have been introduced after upgrading from Lion to Mountain Lion/10.8, which I needed for Logic X.
    So here is what happens:
    I have an iMac12,2, Mid 2011, 27inch, i5 2.7GHz, 16GB RAM, 256GB Apple SSD + 1TB HDD. When using ethernet, the iMac randomly loses its link to the network. My router is a FRITZ!Box 7390 (german make). There are no switches between my iMac and the router. When that happens while running ping, this is how it looks like:
    64 bytes from 192.168.1.1: icmp_seq=3558 ttl=64 time=0.542 ms
    64 bytes from 192.168.1.1: icmp_seq=3559 ttl=64 time=0.424 ms
    ping: sendto: No route to host
    Request timeout for icmp_seq 3560
    ping: sendto: No route to host
    Request timeout for icmp_seq 3561
    ping: sendto: No route to host
    Request timeout for icmp_seq 3562
    ping: sendto: No route to host
    Request timeout for icmp_seq 3563
    ping: sendto: No route to host
    Request timeout for icmp_seq 3564
    Request timeout for icmp_seq 3565
    64 bytes from 192.168.1.1: icmp_seq=3566 ttl=64 time=0.508 ms
    64 bytes from 192.168.1.1: icmp_seq=3567 ttl=64 time=0.493 ms
    And this is what the logfile contains at the same time:
    28.10.13 21:36:35,000 kernel[0]: AppleBCM5701Ethernet [en4]: Link down (womp disabled, proxy idle)
    28.10.13 21:36:37,099 configd[18]: network changed: v4(en4-:192.168.1.188) DNS- Proxy-
    28.10.13 21:36:37,106 configd[18]: network changed: Proxy
    28.10.13 21:36:37,112 netbiosd[12000]: network_reachability_changed : network is not reachable, netbiosd is shutting down
    28.10.13 21:36:40,000 kernel[0]: Ethernet [AppleBCM5701Ethernet]: Link up on en4, 1-Gigabit, Full-duplex, Symmetric flow-control, Debug [796d,0323,0de1,0300,cde1,3800]
    28.10.13 21:36:40,237 configd[18]: network changed: Proxy
    28.10.13 21:36:42,544 configd[18]: network changed: v4(en4+:192.168.1.188) DNS+ Proxy+ SMB
    So the ethernet interface loses the link for a few seconds, and gets back up again. It's not long enough to affect average TCP connections, however it is long enough to completely screw iTunes.
    What I've tried:
    - changed all cables (save the one that's going from the ethernet outlet on my room's wall to the server/router room, as it's not replaceable (running within a wall) and I really don't know why it should become faulty offhandedly)
    - cycled ethernet ports at the router to make sure they're not faulty
    - ping'd the router from different computers on all its ethernet ports, all working fine
    - connected my iMac to router via wifi, all working fine
    - bought a Thunderbolt Ethernet adapter to make sure onboard ethernet card isn't faulty: problem still there
    - installed 10.9 over 10.8.5, problem still there
    What I didn't check is what happens when ping'ing the router via my cables, but from another computer, as I don't have one. I will try to borrow a MacBook and check that.
    So I figured it must be a local problem, as the network infrastructure itself works nicely and all cables seem to be sound. It is also not a hardware issue, as the problem occurs both with the onboard NIC and the Thunderbolt NIC. What mystifies me is that it doesn't happen when using Wi-Fi (but switching to that is not an option - it's too slow).
    I tried to use both DHCP and fixed IP addresses, different IP ranges, made sure that static IPs don't collide with the router's DHCP range, updated the router firmware, updated the firmware of all Airport Express and Time Capsules I've got in my network (just to be sure), switched all energy saving settings to "Never" (as it has been suggested here from time to time), but nothing helped ... and I don't know what else to check.
    I hope that someone has an idea of what's happening here!
    Thanks in advance!

    It looks like hooking an ethernet switch between my iMac and the router did the trick. I didn't get any timeouts after I did that. It must have been a really weird incompatibility between my iMac and the router. Still have to see if iTunes gets through without losing the connection, I hope I'll be able to check that tomorrow night. I'll report back.
    So maybe try just hooking another ethernet switch between your mac and the other side. It might actually help!

  • Why does my ipad wi-fi connection shut down and wont reconnect ?

    I purchased an ipad 4 days ago. I set it up with relative ease everything was working well . Two days ago Iost my wi-fi connection. I took two hours getting my wi-fi connection re-established. Lost re-connect almost imediately. I restored the system. Problem continued.  Called tech support, Told that what I had done should resolve problem. Since it did not I was told I should take the i pad to the nearest Apple store. This Apple store is 40 minutes from my home. I heed help to solve my problem.  Please Help, David Lively

    I purchased an ipad 4 days ago. I set it up with relative ease everything was working well . Two days ago Iost my wi-fi connection. I took two hours getting my wi-fi connection re-established. Lost re-connect almost imediately. I restored the system. Problem continued.  Called tech support, Told that what I had done should resolve problem. Since it did not I was told I should take the i pad to the nearest Apple store. This Apple store is 40 minutes from my home. I heed help to solve my problem.  Please Help, David Lively

  • My battery goes down, even without using the iPad and locking it

    I've got an iPad 2 with the smart cover, but it's battery goes down quite quickly, even without using it and having locked it.

    When the screen is dark, it's still on, unless you've completely powered down.  So, things that can cause battery drain (just to name a few) could include:
    1.  Searching for a WiFi or 3G signal if not locked on to one.......
    2.  Having push on for mail, causes the iPad to seek new mail messages, eating up battery power
    3.  Having location services on can eat up battery power
    If you want to preserve the battery, shut it down when it's not going to be used for a few hours.  And if you've got a WiFi version and you're not in one place, turn WiFi off, so your iPad isn't constantly searching for a WiFi signal.

  • Ok so today my ipod fell on the concrete outside and when i went to go and turn it on all see is white and black lines going down what should do?

    can you plz help me out is it gone

    Snowboarder012
    The warranty does not cover accidental damage like due to dropping.the. The $99 exchange price only applies to the 8, 16 and 32 GB 4G iPods. The exchange price for all models are included here:
    Apple - Support - iPod - Service FAQ
    juu_knoww, fist try
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem. Apple can do the exchange there.
    Apple Retail Store - Genius Bar          

  • Screen goes down when pressed in the corner?

    Basically, in the bottom right hand corner of my iPod, I can press down, and the screen will go down? Get what I mean?
    It doesn't happen in any of the other causes, and just wondered if there is anything I can do about it, or if it could cause further damage?

    If I'm understanding what you're saying your Touch Screen is going way further than it should be.
    You should go to nearest Apple Store and let them check it out. It's a manufacturer error.

  • I rented a movie from iTunes from my iPhone and it said downloaded and I went to videos and it was there I click on it it acts like it is going to start to play but then goes back to showing me the movie again???

    Please help

    Hello Jamesk1997,
    After reviewing your post, I have located an article that can help in this situation. It contains a number of troubleshooting steps and helpful advice. You may want to consider a reset to address this issue:
    Turn your iOS device off and on (restart) and reset
    http://support.apple.com/kb/ht1430
    To reset, press and hold both the Sleep/Wake and Home buttons for at least 10 seconds, until you see the Apple logo.
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

  • Oracle OHS HTTP Resquest increase and never goes down until I restart OHS

    Hi I have several problems on IAS 10.1.3.3.0 with the OHS (Oracle Http Server).
    In the graphics I see that the HTTP Request increase very fast and never goes down until I restart the OHS
    I monitoring that with DMSTool as the example:
    dmstool /baslije15/OHS:28077:6100/OHS/connection.active /baslije15/OHS:28077:6100/OHS/handle.active /baslije15/OHS:28077:6100/OHS/request.active /baslije15/OHS:28077:6100/OHS/handle.maxTime /baslije15/OHS:28077:6100/OHS/handle.minTime /baslije15/OHS:28077:6100/OHS/handle.avg /baslije15/OHS:28077:6100/OHS/request.completed /baslije15/OHS:28077:6100/OHS/busyChildren.value /baslije15/OHS:28077:6100/OHS/readyChildren.value /baslije15/OHS:28077:6100/OHS/numChildren.value
    The result is:
    Fri Jan 16 15:20:15 ARST 2009
    /baslije15/OHS:28077:6100/OHS/busyChildren.value 18 processes
    /baslije15/OHS:28077:6100/OHS/connection.active 126 threads
    /baslije15/OHS:28077:6100/OHS/handle.active 21442 threads
    /baslije15/OHS:28077:6100/OHS/handle.avg 632138 usecs
    /baslije15/OHS:28077:6100/OHS/handle.maxTime 602716011 usecs
    /baslije15/OHS:28077:6100/OHS/handle.minTime 0 usecs
    /baslije15/OHS:28077:6100/OHS/numChildren.value 56 processes
    /baslije15/OHS:28077:6100/OHS/readyChildren.value 38 processes
    /baslije15/OHS:28077:6100/OHS/request.active 21549 threads
    /baslije15/OHS:28077:6100/OHS/request.completed 664971 ops
    Fri Jan 16 15:20:20 ARST 2009
    /baslije15/OHS:28077:6100/OHS/busyChildren.value 13 processes
    /baslije15/OHS:28077:6100/OHS/connection.active 126 threads
    /baslije15/OHS:28077:6100/OHS/handle.active 21437 threads
    /baslije15/OHS:28077:6100/OHS/handle.avg 632154 usecs
    /baslije15/OHS:28077:6100/OHS/handle.maxTime 602716011 usecs
    /baslije15/OHS:28077:6100/OHS/handle.minTime 0 usecs
    /baslije15/OHS:28077:6100/OHS/numChildren.value 56 processes
    /baslije15/OHS:28077:6100/OHS/readyChildren.value 43 processes
    /baslije15/OHS:28077:6100/OHS/request.active 21544 threads
    /baslije15/OHS:28077:6100/OHS/request.completed 665090 ops
    Fri Jan 16 15:20:26 ARST 2009
    /baslije15/OHS:28077:6100/OHS/busyChildren.value 4 processes
    /baslije15/OHS:28077:6100/OHS/connection.active 124 threads
    /baslije15/OHS:28077:6100/OHS/handle.active 21446 threads
    /baslije15/OHS:28077:6100/OHS/handle.avg 632191 usecs
    /baslije15/OHS:28077:6100/OHS/handle.maxTime 602716011 usecs
    /baslije15/OHS:28077:6100/OHS/handle.minTime 0 usecs
    /baslije15/OHS:28077:6100/OHS/numChildren.value 56 processes
    /baslije15/OHS:28077:6100/OHS/readyChildren.value 52 processes
    /baslije15/OHS:28077:6100/OHS/request.active 21553 threads
    /baslije15/OHS:28077:6100/OHS/request.completed 665259 ops
    As you see request.active value is very high for 124 active connection and this value never decrease during the day.
    After 8pm when the mayor of the user stop working it stay high stable but its never decrease.
    Any idea?? I spent 2 weeks checking all parameters of http.conf but I haven't results.
    TIA
    Marcelo

    Hi Roberto, this are some of the parameters on httpd.conf
    Timeout 300
    KeepAlive On
    MaxKeepAliveRequests 100
    KeepAliveTimeout 15
    MinSpareServers 5
    MaxSpareServers 20
    StartServers 5
    MaxClients 2500
    MaxRequestsPerChild 0
    Putting KeepAlive to "off" what consequence my be have?
    Can you suggest me some tuning?
    We have a large amount of users (600) and a lot of webservice invocation with large transactions (1 to 10 sec)
    TIA
    Marcelo

  • Services of all the databases goes down

    Hi ,
    2 days back, Services of all the databases goes down on one of the PROD server.
    When i tried to start the services using SRVCTL command .
    I was getting the error below.
    oracle@shbaorc07b bin]$ srvctl status database -d EDW
    PRKH-1010 : Unable to communicate with CRS services.
    [Communications Error(Native: prsr_initCLSS:[3])]
    PRKO-2005 : Application error: Failure in getting Cluster Database Configuration for: EDWX
    PRKC-1056 : Failed to get the hostname for node + PRKH-1010 + prsr_initCLSS
    after this error, i came to know that there is some problem with the services.
    When i try to start the crs services, was not able to start the services
    as a root user user,
    I run the below command.
    crsctl start crs
    to my surprise the services of crs was not coming up,
    Finally I have to start the server and all the cluster services came up.
    I want to find out why this was happen, i need to find the bottle neck so this should not happen again as this is a PROD server and lots of prod database are residing on this server.
    Please find crsd.log below.
    2010-04-22 15:38:22.361: [  CRSRES][1539545408]0ora.shbaorc07b.LISTENER_UC4XPRD2.lsnr failed on shbaorc07b relocating.
    2010-04-22 15:38:22.397: [  CRSRES][1539545408]0Cannot relocate ora.shbaorc07b.LISTENER_UC4XPRD2.lsnrStopping dependents
    2010-04-22 15:38:22.407: [  CRSRES][1539545408]0StopResource: setting CLI values
    2010-04-22 15:38:27.318: [  CRSAPP][1539545408]0CheckResource error for ora.shbaorc07b.LISTENER_CTLGPRD2.lsnr error code = 1
    2010-04-22 15:38:27.321: [  CRSRES][1539545408]0In stateChanged, ora.shbaorc07b.LISTENER_CTLGPRD2.lsnr target is ONLINE
    2010-04-22 15:38:27.322: [  CRSRES][1539545408]0ora.shbaorc07b.LISTENER_CTLGPRD2.lsnr on shbaorc07b went OFFLINE unexpectedly
    2010-04-22 15:38:27.322: [  CRSRES][1539545408]0StopResource: setting CLI values
    2010-04-22 15:38:27.336: [  CRSRES][1539545408]0Attempting to stop `ora.shbaorc07b.LISTENER_CTLGPRD2.lsnr` on member `shbaorc07b`
    one more strange thing happen while restarting the 2nd server, the first server also restarted.
    Please help me regarding this?
    Thanks in advance.

    Hi,
    Thanks.
    please find the OS version
    Linux shbaorc07a.corp.shire.com 2.6.18-53.1.14.el5 #1 SMP Tue Feb 19 07:18:46 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
    database version:
    10.2.0.4.0
    Node 2:
    [    CSSD]2010-04-22 19:41:19.438 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock IGDPAXPRDALL type 2
    [    CSSD]2010-04-22 19:41:19.438 [1273047360] >TRACE: clssgmCleanupOrphanMembers: cleaning up remote mbr(1) grock(IGDPAXPRDALL) birth(2/0)
    [    CSSD]2010-04-22 19:41:19.438 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock IGGMCXPRDALL type 2
    [    CSSD]2010-04-22 19:41:19.438 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock IGEASYPRDALL type 2
    [    CSSD]2010-04-22 19:41:19.438 [1273047360] >TRACE: clssgmCleanupOrphanMembers: cleaning up remote mbr(1) grock(IGEASYPRDALL) birth(2/0)
    [    CSSD]2010-04-22 19:41:19.438 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock IGCTRMPRDALL type 2
    [    CSSD]2010-04-22 19:41:19.438 [1273047360] >TRACE: clssgmCleanupOrphanMembers: cleaning up remote mbr(1) grock(IGCTRMPRDALL) birth(2/0)
    [    CSSD]2010-04-22 19:41:19.439 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock IGEDWXPRDALL type 2
    [    CSSD]2010-04-22 19:41:19.439 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock IGNUSBPRDALL type 2
    [    CSSD]2010-04-22 19:41:19.439 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock IGETLXPRDALL type 2
    [    CSSD]2010-04-22 19:41:19.439 [1273047360] >TRACE: clssgmCleanupOrphanMembers: cleaning up remote mbr(1) grock(IGETLXPRDALL) birth(2/0)
    [    CSSD]2010-04-22 19:41:19.439 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock IGCTXXPRDALL type 2
    [    CSSD]2010-04-22 19:41:19.439 [1273047360] >TRACE: clssgmCleanupOrphanMembers: cleaning up remote mbr(1) grock(IGCTXXPRDALL) birth(2/0)
    [    CSSD]2010-04-22 19:41:19.439 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock IGVVC30PRDALL type 2
    [    CSSD]2010-04-22 19:41:19.439 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock IGVUM30PRDALL type 2
    [    CSSD]2010-04-22 19:41:19.439 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock #CSS_CLSSOMON type 2
    [    CSSD]2010-04-22 19:41:19.439 [1273047360] >TRACE: clssgmCleanupOrphanMembers: cleaning up remote mbr(1) grock(#CSS_CLSSOMON) birth(2/0)
    [    CSSD]2010-04-22 19:41:19.445 [1273047360] >TRACE: clssgmEstablishConnections: 3 nodes in cluster incarn 5
    [    CSSD]2010-04-22 19:41:19.449 [1231087936] >TRACE: clssgmPeerListener: connects done (3/3)
    [    CSSD]2010-04-22 19:41:19.449 [1273047360] >TRACE: clssgmEstablishMasterNode: MASTER for 5 is node(3) birth(1)
    [    CSSD]2010-04-22 19:41:19.458 [1231087936] >TRACE: clssgmHandleDBDone(): src/dest (3/65535) size(72) incarn 5
    [    CSSD]CLSS-3000: reconfiguration successful, incarnation 5 with 3 nodes
    [    CSSD]CLSS-3001: local node number 2, master node number 3
    [    CSSD]2010-04-22 19:41:19.458 [1273047360] >TRACE: clssgmReconfigThread: completed for reconfig(5), with status(1)
    [    CSSD]2010-04-22 19:49:20.816 [1189128512] >TRACE: clssnmConnComplete: probe from node 1, your version: 10.2.1.2
    , support PENDINA: 1
    [    CSSD]2010-04-22 19:49:20.816 [1189128512] >TRACE: clssnmConnComplete: MSGSRC 1, type 5, node 1, flags 0x0001, con 0x2aaab01abb00, probe (nil)
    [    CSSD]2010-04-22 19:49:20.816 [1189128512] >TRACE: clssnmConnComplete: node 1, shbaorc07a, con(0x2aaab01abb00), probcon((nil)), ninfcon((nil)), node unique 1271962158, prev unique 0, msg unique 1271962158 node state 0
    [    CSSD]2010-04-22 19:49:20.816 [1189128512] >TRACE: clssnmsendConnAck: node 1, node state 0
    [    CSSD]2010-04-22 19:49:20.816 [1189128512] >TRACE: clssnmConnComplete: connecting to node 1 (con 0x2aaab01abb00), ninfcon (0x2aaab01abb00), state (0)
    [    CSSD]2010-04-22 19:49:20.816 [1189128512] >TRACE: clssnmConnComplete: connected to node 1 (con 0x2aaab01abb00), ninfcon (0x2aaab01abb00), state (0), flag (1037)
    [    CSSD]2010-04-22 19:49:20.927 [1262557504] >TRACE: clssnmDoSyncUpdate: Initiating sync 6
    [    CSSD]2010-04-22 19:49:20.927 [1262557504] >TRACE: clssnmDoSyncUpdate: diskTimeout set to (57000)ms
    [    CSSD]2010-04-22 19:49:20.927 [1262557504] >TRACE: clssnmSetupAckWait: Ack message type (11)
    [    CSSD]2010-04-22 19:49:20.927 [1262557504] >TRACE: clssnmSetupAckWait: node(1) is ALIVE
    [    CSSD]2010-04-22 19:49:20.927 [1262557504] >TRACE: clssnmSetupAckWait: node(2) is ALIVE
    [    CSSD]2010-04-22 19:49:20.927 [1262557504] >TRACE: clssnmSetupAckWait: node(3) is ALIVE
    [    CSSD]2010-04-22 19:49:20.927 [1262557504] >TRACE: clssnmSetupAckWait: node(4) is ALIVE
    [    CSSD]2010-04-22 19:49:20.927 [1262557504] >TRACE: clssnmSendSync: syncSeqNo(6)
    [    CSSD]2010-04-22 19:49:20.927 [1189128512] >TRACE: clssnmHandleSync: diskTimeout set to (57000)ms
    [    CSSD]2010-04-22 19:49:20.927 [1262557504] >TRACE: clssnmWaitForAcks: Ack message type(11), ackCount(4)
    [    CSSD]2010-04-22 19:49:20.927 [1189128512] >TRACE: clssnmHandleSync: Acknowledging sync: src[2] srcName[shbaorc07b] seq[1] sync[6]
    6911,1 99%
    node 1:
    [    CSSD]2010-04-22 18:56:00.996 [1189128512] >USER: clssnmHandleUpdate: SYNC(4) from node(4) completed
    [    CSSD]2010-04-22 18:56:00.996 [1189128512] >USER: clssnmHandleUpdate: NODE 1 (shbaorc07a) IS ACTIVE MEMBER OF CLUSTER
    [    CSSD]2010-04-22 18:56:00.996 [1189128512] >USER: clssnmHandleUpdate: NODE 2 (shbaorc07b) IS ACTIVE MEMBER OF CLUSTER
    [    CSSD]2010-04-22 18:56:00.996 [1189128512] >USER: clssnmHandleUpdate: NODE 3 (shbaorc07c) IS ACTIVE MEMBER OF CLUSTER
    [    CSSD]2010-04-22 18:56:00.996 [1189128512] >USER: clssnmHandleUpdate: NODE 4 (shbaorc07d) IS ACTIVE MEMBER OF CLUSTER
    [    CSSD]2010-04-22 18:56:00.996 [1189128512] >TRACE: clssnmHandleUpdate: diskTimeout set to (200000)ms
    [    CSSD]2010-04-22 18:56:01.008 [1273047360] >TRACE: clssgmReconfigThread: started for reconfig (4)
    [    CSSD]2010-04-22 18:56:01.008 [1273047360] >USER: NMEVENT_RECONFIG [00][00][00][1e]
    [    CSSD]2010-04-22 18:56:01.020 [1273047360] >TRACE: clssgmEstablishConnections: 4 nodes in cluster incarn 4
    [    CSSD]2010-04-22 18:56:01.096 [1231087936] >TRACE: clssgmInitialRecv: (0x2aaab4001310) accepted a new connection from node 2 born at 4 active (4, 4), vers (10,3,1,2)
    [    CSSD]2010-04-22 18:56:01.096 [1231087936] >TRACE: clssgmInitialRecv: conns done (4/4)
    [    CSSD]2010-04-22 18:56:01.096 [1273047360] >TRACE: clssgmEstablishMasterNode: MASTER for 4 is node(3) birth(1)
    [    CSSD]2010-04-22 18:56:01.138 [1231087936] >TRACE: clssgmHandleDBDone(): src/dest (3/65535) size(72) incarn 4
    [    CSSD]CLSS-3000: reconfiguration successful, incarnation 4 with 4 nodes
    [    CSSD]CLSS-3001: local node number 1, master node number 3
    [    CSSD]2010-04-22 18:56:01.138 [1273047360] >TRACE: clssgmReconfigThread: completed for reconfig(4), with status(1)
    [    CSSD]2010-04-22 19:40:00.531 [1231087936] >TRACE: clscsendx: (0x2aaab00fa3b0) Connection not active
    [    CSSD]2010-04-22 19:40:00.531 [1231087936] >TRACE: clssgmSendClient: Send failed rc 6, con (0x2aaab00fa3b0), client (0x2aaab00fa6b0), proc ((nil))
    [    CSSD]2010-04-22 19:40:19.410 [1231087936] >TRACE: clscsendx: (0x2aaab02acd00) Connection not active
    [    CSSD]2010-04-22 19:40:19.410 [1231087936] >TRACE: clssgmSendClient: Send failed rc 6, con (0x2aaab02acd00), client (0x2aaab02ad7c0), proc ((nil))
    [    CSSD]2010-04-22 19:40:19.410 [1231087936] >TRACE: clscsendx: (0x2aaab02ad570) Connection not active
    [    CSSD]2010-04-22 19:40:19.410 [1231087936] >TRACE: clssgmSendClient: Send failed rc 6, con (0x2aaab02ad570), client (0x2aaab02af660), proc ((nil))
    [    CSSD]2010-04-22 19:40:19.438 [1231087936] >TRACE: clscsendx: (0x2aaab0295780) Connection not active
    [    CSSD]2010-04-22 19:40:19.438 [1231087936] >TRACE: clssgmSendClient: Send failed rc 6, con (0x2aaab0295780), client (0x2aaab02859f0), proc ((nil))
    [    CSSD]2010-04-22 19:40:19.476 [1231087936] >TRACE: clscsendx: (0x2aaab029d150) Connection not active
    [    CSSD]2010-04-22 19:40:19.476 [1231087936] >TRACE: clssgmSendClient: Send failed rc 6, con (0x2aaab029d150), client (0x2aaab029dbb0), proc ((nil))
    [    CSSD]2010-04-22 19:40:19.476 [1231087936] >TRACE: clscsendx: (0x2aaab029d890) Connection not active
    [    CSSD]2010-04-22 19:40:19.476 [1231087936] >TRACE: clssgmSendClient: Send failed rc 6, con (0x2aaab029d890), client (0x2aaab029e1b0), proc ((nil))
    [    CSSD]2010-04-22 19:40:19.707 [1231087936] >TRACE: clscsendx: (0x2aaab02cdb30) Connection not active
    [    CSSD]2010-04-22 19:40:19.707 [1231087936] >TRACE: clssgmSendClient: Send failed rc 6, con (0x2aaab02cdb30), client (0x2aaab02cdf60), proc ((nil))
    [    CSSD]2010-04-22 19:40:19.710 [1231087936] >TRACE: clscsendx: (0x2aaab02ca9e0) Connection not active
    please help me on this.
    Thanks
    Edited by: user646034 on Apr 26, 2010 1:13 AM

  • OAS 4.0.8.1 for Linux: wrksf goes down

    After having installed the OAS 4.0.8.1 for
    Linux, I have a problem getting it to work.
    I use the OAS Manager to start the following
    four processes :
    oassrv "Oracle Application Server"
    wrksf "Cartridge Server Factory"
    otsfacsrv "Transaction Server Factory"
    orb "ORB Servers"
    The four processes come up, but after a
    minute or so the 'wrksf' process goes
    down.
    After restarting the wrksf in
    command line mode (using the owsctl utility)
    the same occurs: it stays up for about a
    minute or so, and then goes down.
    The log files don't show any error messages.
    Does anybody have a clue in which direction
    I should search ?
    Can any tracing be turned on ?

    After I fixed some of the things I broke while searching for the wrksf failure, the PL/SQL Cartridge now works for me too. And, after failing to get the DB Browser to work by loading it into the SCOTT schema, I got it to work by loading it into SYS. (SCOTT can't see the DBA_* views so loading the DB Browser into the database failed.) I haven't tried any Java Servlets yet, but that's next on my list.
    If you want to try my wrksf workaround, rather than using Christoph's, here's how you can do it.
    1. Backup liborb.so in the $ORACLE_HOME/orb/4.0/lib directory, just in case something goes wrong.
    2. Using a hex editor, such as emacs hexl-find-file or ghex, to edit liborb.so, find the string "/proc/stat".
    3. Change the directory, "/proc" to something like "/pfoo" and write the shared library file back to liborb.so. You now have the required modified liborb.so.
    4. Make the /pfoo directory and cp /proc/stat /pfoo.
    5. Edit /pfoo/stat and duplicate the first line, which should be the cpu line. This will let the metrics parser handle it. Make sure that /pfoo/stat has read access.
    Of course, the values that the metrics code gets are now bogus, but that does not seem to be a fatal problem.
    Hopefully somebody from Oracle is reading this and the real fix will be in the mail soon.

  • My credit money is going down by $2 every time i use an app?

    Every time i use an app on my phone, my credit money goes down by $2. The apps don't require an internet connection, why is my credit money going down? Are the apps eating my credit money? Or is it something else? I don't even know which app is doing it, i;m now scared to use any app because my credit just keeps going down!! Some body please help!!

    Do two things:
    1.  In Settings > iTunes & App Stores, turn off automatic downloads for Apps.
    2.  Assuming you sync using iTunes, turn off the automatic app syncing on the App tab when you have the iPads connected that should not receive the downloads.

  • Auto start of db when it goes down

    Is there any way using script to start database when it goes down due to some unexpected reason on windows platform?
    Oracle 10g
    Windows 2003 Server

    Hi,
    Create your own batch script that does the below things
    1) Make a connection to Oracle to see if database is up.
    2) If not then start the database.
    I would be better checking why Oracle database is going down too frequent rather doing auto start.
    Regards
    Anurag Tibrewal.

  • Toad: Oracle initialization or shut down in progress

    Hi,
    When i am going to login to Toad, it is showing an error like "Toad: Oracle initialization or shut down in progress".
    The network people, they have restarted the server many a times, after that i loging to Toad..
    I am also not able to connect through SQL+PLUS, the same error shows...
    Please needed your suggestion on the same..
    Thanks,
    Haraprasad...

    When i am going to login to Toad, it is showing an error like "Toad: Oracle initialization or shut down in progress".The error self describes itself. The database isn't up or is being shut down while you are connecting.
    log on to server and execute the below steps:
    sqlplus / as sysdba
    select open_mode from v$database;
    if you see "READ WRITE" you can then log in by whichever way you want.
    hth

Maybe you are looking for