Connection Hangs

Hi All,
Platform : Oracle - 10.1.0.4.0
OS - HP-UX B11.23
PeopleSoft -8.11 P1
From the People Soft logs we get an error;
12241/1 WRK:Init Remote Env Token  
OCI0000141 - Error - ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
HPUX-ia64 Error: 2: No such file or directory
The connection hangs and we need to re-start the application to get back to normal.
But this error (0RA-27101) is not reported in database Alert Logs. The oracle is available when we access through sql*plus

Hi,
To resolve this issue with ORA-27101, you should be sure that ORACLE_HOME and ORACLE_SID are correct, and ORACLE_HOME should not have trailing slash.
The error will appear on the client side and not in the alert log.
Thanks
Soundappan

Similar Messages

  • Connection hange while trying to connect via ssh.

    Hi all,
    I have this problem and i fixed it, just wanted to understand the logic behiend it.
    I tried to login to a machine via ssh.
    After providing the username and password, the connection hang until you press CTRL -C.
    I checked DNS configuration, and some other stuff.
    The problem was a NFS entry in the vfstab that was unreachable.
    When i removed it, the connection went smoothlly.
    My question is, why that entry caused that problem ?
    Thanks!

    At login, the shell runs 'quota -v' to display any over-quota conditions that might exist.
    If the NFS mount was not mounted with "noquta", then it will send an RPC request to the server. If the server is down, that request will take 60 seconds to time out. If you have multiple mounts to the server, they might run sequentially.
    The login should complete after a minute or so, but most users won't wait that long.
    Darren

  • Connection hanging with java

    Hello
    we apply some simple Connection pool mechanism from our java code to Oracle
    8.1.6. Due to some reason, oracle connections get hanging after a while. So
    far I have not found out why :-(. The result is that whatever command they
    are running at that moment gets blocked. This may be something so simple as
    Connection.createStatement(). Result: my thread is blocked, the program is
    blocked. Parts of it I solved by doing a test before delivering a connection
    in a separate thread that gets a timeout. Not really elegant :-(. First,
    when the connection gets corrupted in the code that uses it, I have no
    access. And secondly, when the thread gets timed out, and the pool creates a
    new connection, I still have this connection hanging ...
    So, I hope that someone has some useful tips how should handle hanging
    connections, and properly clean them. Meanwhile I will try to find the
    reason of the hanging as well (maybe v$session or v$open_cursor has a clue).
    Regards

    You're right.
    The Norton personal firewall does not handle localhost to localhost correctly. I do all the tests on the same machine. The netstat -an shows the port is listening in either case. But now I know the firewall blocks one of them silently. No rule prompt was triggered. Worse, no logging produced for that particular access.
    Thanks. You've been very helpful.

  • [SOLVED] SSH, email - connection 'hangs'

    Hello,
    I have a problem with connections at work - it happens only at work, I tried on Arch and also Debian.
    I haven't noticed it to affect 'web browsing' - it affects for sure ssh (incl. git) and sending email mesages.
    What happens:
    About 3/4 of times I try to send an email (google account from thunderbird), or log in to one of our servers with ssh (or pull/push some code from/to github) the connection 'hangs' and nothing happens. If I try ^C and 'redo' few times I finally manage to log in.
    Log from ssh (unsuccessfull connection):
    ssh bb5 -vvvv
    OpenSSH_5.9p1, OpenSSL 1.0.0g 18 Jan 2012
    debug1: Reading configuration data /home/kaczor/.ssh/config
    debug1: /home/kaczor/.ssh/config line 18: Applying options for bb5
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug2: ssh_connect: needpriv 0
    debug1: Connecting to XXX.XXX.XXX.XXX [XXX.XXX.XXX.XXX] port 22.
    debug1: Connection established.
    debug3: Incorrect RSA1 identifier
    debug3: Could not load "/home/kaczor/.ssh/id_rsa" as a RSA1 public key
    debug1: identity file /home/kaczor/.ssh/id_rsa type 1
    debug1: identity file /home/kaczor/.ssh/id_rsa-cert type -1
    debug1: identity file /home/kaczor/.ssh/id_dsa type -1
    debug1: identity file /home/kaczor/.ssh/id_dsa-cert type -1
    debug1: identity file /home/kaczor/.ssh/id_ecdsa type -1
    debug1: identity file /home/kaczor/.ssh/id_ecdsa-cert type -1
    [-- and I can wait for ages on this --]
    If the login is successfull the next lines are:
    debug1: Remote protocol version 2.0, remote software version OpenSSH_5.5p1 Debian-6+squeeze1
    debug1: match: OpenSSH_5.5p1 Debian-6+squeeze1 pat OpenSSH*
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_5.9
    debug2: fd 3 setting O_NONBLOCK
    My /etc/ssh/ssh_config on Arch is default (everything commented out)
    ~/.ssh/config has only few Host, User, entries
    On Debian:
    /etc/ssh/ssh_config
    Host *
    SendEnv LANG LC_*
    HashKnownHosts yes
    GSSAPIAuthentication yes
    GSSAPIDelegateCredentials no
    Trying to ssh to server's IP doesn't change anything.
    Any ideas how could I track where lies the problem? Or maybe I could at least make it 'retry' automatically?
    Edit:
    After setting timeout in ssh_config I get
    Connection timed out during banner exchange
    at the end of unsuccessfull connection.
    Last edited by kaczor1984 (2012-04-24 15:15:17)

    firecat53 wrote:
    Try downgrading openssl and openssh to the previous versions. I had issues similiar (but not exactly) to this. I think try openssl-1.0.0.h and openssh-5.9p1-5
    Scott
    On Debian the openssl is 0.9.8g-15 and openssh is 5.1p1-5
    Gcool wrote:Try connecting with the "-o ConnectTimeout=60" parameter....
    I've set it already in ssh_config file (see my edit). Is there any way to make ssh 'retry' few times because now it gives up after first failure.
    I've set   ConnectionAttempts 5 but i'm not sure if it works - I'll have to give it another try on tuesday.
    mr.MikyMaus wrote:Can it be that your employer does not like encrypted traffic in his network? I could imagine an IPS system trying to decipher the connection... Try moving the server-side ssl service to a non-standard port if you can...
    It is possible - however I don't know exactly how is the network 'distributed'. Maybe I'll try to change it at least at one server and give it a try.
    Anyway - what about emails for example - this uses port 25 (smtp on gmail) and is experiencing the same problems (message sending lasts until timeout 8 out of 10 times).
    I don't know too much about networks - maybe there is some kind of service which doesn't work properly in my network at the office. Any clues what could it be?
    Most important for me is to make 'git pull' work - because it's executed automatically on those Debian boxes and if it fails they are not updated.
    So solution like 'make it retry 10 times per 5 seconds' will do the job for 90% cases I think.

  • IPhone connections hangs when sending email after upgrade.

    After upgrading to 2.0 firmware on my first generation IPhone, the phone now regulary hangs when sending email via smtp. Even if I try to close the connection by putting it into AirPlane mode and back again it still hangs and from that point onwards doesn't check or send any new emails. If I then shut the phone down and restart it looses the email as it's not either in the sent or outbox folders. This has happened quite a few times since upgrading. Does anybody have any advice?

    Found this useful tidbit by mdwelsh231 on another thread:
    "I'm having this problem too. Rather than rebooting the phone, an even easier solution is to hold down the Home button for several seconds (I believe it's 8 sec) which will kill the Mail application and return you to the home screen. Restarting Mail (by tapping the Mail icon) will cause it to reconnect. I find that this resolves the connection hanging issue. However, it is still kind of a pain. I suspect a bug in the 2.0 iPhone firmware. "
    Worked for me
    Cheers,
    C

  • HT201415 My wi if connection Hangs at random and the iPad then needs to be restarted for it to reconnect!

    My wi if connection Hangs at random and the iPad then needs to be restarted for it to reconnect!
    Has anyone had a problem like this or know a solution.?

    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    Additional things to try.
    Try this first. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    Another thing to try - Go into your router security settings and change from WEP to WPA with AES.
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    If none of the above suggestions work, look at this link.
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • JCO connections hanged in SMGW transaction at SAP

    Hi ,
    I have deployed an ear application in SAP WAS 7.0 which basically talks to my SAP backend using JCO 2.1 connectors. The application will fetch the data from SAP backend calling FM using JCO 2.1.
    I m using JCO pool manager and set to default 100 connections and taken care of release connections after every RFC call in finally block. The connections released successfully in  Dev and QA landscapes. In prod environment of customer, we are facing connections hang issues when it reaches to peak state of 100. It is due to max conversations reached at SAP backend, but the connections should eventually drop in SMGW which is not happening. There are some lost connections got hanged and remains for days and even they are not re-used. When i run method to release the pool, all connections are focibly returned back to pool, but lost connections still remain there.
    Can somebody has similar situation ?
    if connections reached to max in SMGW, will the connections from external client applications will get hanged ?
    Does the JCO have control on the hanged connections if it reaches to max number?
    Any help is appreciated!!!
    Regards,
    Ravi.

    The relevant SAP note here is [549268|https://service.sap.com/sap/support/notes/549268].
    But in this context there is big difference between the terms "not supported" and "does not work".
    When SAP speaks of "not supported" this means that there won't be any SAP support for this configuration but this does not say anything about if this works technically. "Not supported" is more a legal issue than a technical one. SAP did not test this configuration and therefore also cannot guarantee to work.
    Regarding JCo 2.1 I can say that technically it works with all Windows 32- and 64-bit versions. In contrast to that it really does not work with JRE releases >= 1.5 when using BCD types (type P) within your function modules.
    From my point of view the connection issues don't have anything to do with the Windows version here.
    And it is still not clear to me, if the maximum number of CPIC connections is reached at the AS ABAP/gateway side or the Java side. Furthermore it is not clear if these "hanging connections" were opened with your application at all or if they belong to another application.

  • Jdbc connection hang?

    I used thin JDBC driver 9.0.1 comes with oracle 9i.
    However, the connection hang in heavy load.
    1. I try to check isClosed(), then reopen is more stable but problem is still exist.
    2. It's more stable than 1. when do.. getConnection, do job and Close it. But another application connect more difficult get some error like 'not found oracle realm' or something.
    Anybody has comment?
    Thanks,
    Kittikun Potivanakul
    [email protected]

    Hi to all and sorry for the delay of my reply.
    I am not using RAC. After setting of the system property +"-Djava.security.egd=file:///dev/random"+ it has solved the +"Connection reset"+ problem, but after about one hour I get +"Connection closed"+ from each connection of the pool when the application uses it.
    The pool uses the implicit cache mechanism of Oracle. Follow the properties of cache:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
    <properties>
    <comment> Oracle connection pool configuration file. </comment>
    <!-- Sets how many connections are created in the cache when it is created or reinitialized -->
    <entry key="InitialLimit">0</entry>
    <!-- Sets the minimum number of connections the cache maintains. -->
    <entry key="MinLimit">0</entry>
    <!-- Sets the maximum number of connection instances the cache can hold. If missing no limit-->
    <entry key="MaxLimit">10</entry>
    <!-- Sets the maximum time a physical connection can remain idle in a connection cache.
    An idle connection is one that is not active and does not have a logical handle associated with it. -->
    <entry key="InactivityTimeout">240</entry>
    <!-- Sets the maximum time that a connection can remain unused before the connection is closed and returned to the cache.
         A connection is considered unused if it has not had SQL database activity. -->
    <entry key="AbandonedConnectionTimeout">240</entry>
    <!-- If no connection is returned to the cache before the timeout elapses, then the connection request returns null. -->
    <entry key="ConnectionWaitTimeout">5</entry>
    <!-- If true causes the connection cache to test every connection it retrieves against the underlying database. If a valid connection cannot be retrieved, then an exception is thrown. -->
    <entry key="ValidateConnection">true</entry>
    </properties>
    Edited by: user12098943 on Aug 24, 2011 10:31 AM

  • Hi! I bought my notebook in october last year but from last month oftenly my WiFi connection hangs up nd stops catching any available Wifi connection? please suggest the solution

    Hi! I bought my Macbook Pro 13" in october last year but from last month oftenly my WiFi connection hangs up nd stops catching any available Wifi connection?
    At last I restart the modem and dn it catches the signal but that too is short lived.
    please suggest some solutions
    Thanking U,

    I have this problem on my home network but at the same time when my connection hangs up my other wifi machine remians connected. So i think there's no problem with the modem.

  • Why is my Internet connection hanging on both MacBook and Mac mini, but not PCs, Xbox, or iOS devices?

    I have a MacBook pro and Mac mini both running the latest version of lion.  I've had this issue with my MacBook for sometime now, but just dealt with it and figured it was isolated, but now I am finding its not.
    Essentially, I will open up safari, or Chrome, and the first few pages will load fine.  Sometimes I will get lucky and be able to browse normally, but after awhile, safari just hangs there and stops loading.  I can close the window, and open a few more pages before it does it again.  Both my mini and MacBook do this, but only on my home network.  My MacBook runs perfectly fine on my work wi if, and other wi fis, so I definitely know its my home modem.  If I wait it out I can surf the Internet again, but this dead time is absolutely killing me. It just randomly stalls, on both computers.
    I current have time Warner cable roadrunner, with a cable modem gateway.  The issue was happening on a straight connection.  I had hoped getting a time capsule and connecting to that network would solve things, but it didn't.  Interestingly enough, my Pcs, Xbox,and all 4 of my iPads and iPhones work just fine on the wifi, so there has to be a communication issues with the MacBook and mini with the cable router.
    I've tried messing with lions network DNS servers and tried opendns ones, but those didn't work.  Sometimes I can fix the problem for a few hours by power cycling the modem and router, but I shouldn't  have to do that over and over every time it's an issue.  I've also tried removing and adding the wi if connections, but that.works for a minute or two and then the problem resumes.
    Now, I have my time capsule connected to the gateway, and tuned the time Warner modem wireless off, which didn't help of course, but at least I'm properly backed up.
    I'm not sure what the issue is.  I've even tried typing an ip address of apple during a dead time to see if that worked and didn't.
    Does anyone have any other ideas?  I'm pretty much at my wits end in this, any ideas would be greatly appreciated

    Have you tried a simple reset of your iPod to see if that helps?  To do this, press and hold both the Sleep/Wake and Home buttons together long enough for the Apple logo to appear.
    Otherwise, have you tried any of the troubleshooting mentioned in this Apple support document?
    iOS: Troubleshooting Wi-Fi networks and connections
    B-rock

  • Database connection Hangs - Urgent

    Hello
    I installed 9i db on one machine and I was able to connect from clients, then I installed 9ias on the same machine and now sqlplus hangs on the client when i try to connect. however tnsping is going thru.
    Please , where/what do i need to do?. Such a configuration already exists on another machine and works fine (development).
    Please help. my client getting impatient

    Hi Thanks for the response.
    Below are the listener configs for both infra and db, and also the status of the db listener.
    NB. My application is able to connect via the middle tier(application server) !
    Listener Status at DB Home:
    LSNRCTL> status
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC0)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 9.2.0.4.0 - Produc
    tion
    Start Date 11-MAR-2004 12:26:41
    Uptime 3 days 20 hr. 20 min. 6 sec
    Trace Level off
    Security OFF
    SNMP OFF
    Listener Parameter File C:\oracle\ora92\network\admin\listener.ora
    Listener Log File C:\oracle\ora92\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=pProd)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "pProdhru.pProd.com" has 1 instance(s).
    Instance "pProdhru", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    Listener Config at DB Home:
    # LISTENER.ORA Network Configuration File: C:\oracle\ora92\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = pProd)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\ora92)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = pProdhru.pProd.com)
    (ORACLE_HOME = C:\oracle\ora92)
    (SID_NAME = pProdhru)
    Listener at Infrastructure Home:
    # LISTENER.ORA Network Configuration File: c:\ProdINFRA\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = pProd)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = c:\ProdINFRA)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = iasdb.pProdhru.pProd.com)
    (ORACLE_HOME = c:\ProdINFRA)
    (SID_NAME = iasdb)
    Any Thing I'm Missing ?

  • JDBC Connection Hangs

    I'm using the connection pooling system from Jakarta commons. My database access works fine most of the time, but for some reason sometimes the database hangs. I will try to access the web-app and the login screen will come up fine, but when I try to log in the app will just sit there trying to access the database forever, and from that point on no database access will work. Here is the code I use to get the connections and access the database. Is there anything I am doing wrong that could be causing this?
    import java.sql.DriverManager;
    import java.sql.Connection;
    import javax.sql.DataSource;
    import java.io.PrintWriter;
    import org.apache.commons.pool.ObjectPool;
    import org.apache.commons.pool.impl.GenericObjectPool;
    import org.apache.commons.dbcp.ConnectionFactory;
    import org.apache.commons.dbcp.PoolingDataSource;
    import org.apache.commons.dbcp.PoolableConnectionFactory;
    import org.apache.commons.dbcp.DriverManagerConnectionFactory;
    public class ConnectionManager {
         private static final ConnectionManager INSTANCE = new ConnectionManager();
         //Name of SQL Driver to load
         private static final String DRIVERNAME = "com.mysql.jdbc.Driver";
         private static final String CONNECTSTRING = "jdbc:mysql:///mysite:admin:mypasswd?autoReconnect=true";
         //The actual pool of Database Connections
         private static DataSource dataSource;
         private static ObjectPool connectionPool;
         // Private constructor supresses
         // default public constructor
         private ConnectionManager( ) {
              // Load the Database SQL Driver
              try{
                   Class.forName(DRIVERNAME);
              } catch (java.lang.ClassNotFoundException e) {System.out.println ("Database SQL Driver not found!");}
              try {
                   // First, we'll need a ObjectPool that serves as the
                   // actual pool of connections.
                   // We'll use a GenericObjectPool instance, although
                   // any ObjectPool implementation will suffice.
                   connectionPool = new GenericObjectPool(null);
                   // Next, we'll create a ConnectionFactory that the
                   // pool will use to create Connections.
                   // We'll use the DriverManagerConnectionFactory,
                   // using the connect string passed in the command line
                   // arguments.
                   ConnectionFactory connectionFactory = new DriverManagerConnectionFactory(CONNECTSTRING,null);
                   // Now we'll create the PoolableConnectionFactory, which wraps
                   // the "real" Connections created by the ConnectionFactory with
                   // the classes that implement the pooling functionality.
                   PoolableConnectionFactory poolableConnectionFactory = new PoolableConnectionFactory(connectionFactory,connectionPool,null,null,false,true);
                   // Finally, we create the PoolingDriver itself,
                   // passing in the object pool we created.
                   // We then save the datasource object to the class for later use in getting connections
                   dataSource = new PoolingDataSource(connectionPool);
                   //System.out.println("Idle: " + connectionPool.getNumIdle() + " - Active: " + connectionPool.getNumActive());
                   } catch (Exception e){}
         //Returns and Instance of the ConnectionManager object (not really necessary)
         public static ConnectionManager getInstance( ) {
              return INSTANCE;
         //Returns a database connection object
         public static Connection getConnection(){
              Connection conn = null;
              try{
                   conn = dataSource.getConnection();
                   } catch(java.sql.SQLException e){
                       System.err.print (e.getStackTrace());
              //System.out.println("Idle: " + connectionPool.getNumIdle() + " - Active: " + connectionPool.getNumActive());
              return conn;
    And here is my database code:
    import java.sql.*;
    import com.mysite.ConnectionManager;
    import java.util.HashMap;
    import java.util.Iterator;
    Manages a database after getting a database connection from a {@url ConnectionManager} object.
    Can do queries and database updates, as well open and close connections.
    public class DatabaseManager {
         private Connection con = null;
         private Statement st;
         private ResultSet rs;
         //The Structure of the Table, used for query operations
         private String[] tableStruct;
         Constructor
         public DatabaseManager(){
         Retrieves a database connection from a {@url ConnectionManager} object.
         @param
         @return
         @see
         public void connect(){
              con = ConnectionManager.getConnection();
         Identifies whether this database connection is still open
         @param
         @return
         @see
         public boolean isClosed() throws java.sql.SQLException{
              return con.isClosed();
         Execute a query on a database connection and get the resultset for that query
         @param queryString A String representing the database query
         @return The results of the query to the database
         @see Statement, ResultSet
         public ResultSet query(String queryString) throws java.sql.SQLException{
              if (con != null){
                   st = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
                   st.executeQuery (queryString);
                   rs = st.getResultSet();
                   return rs;
              else {
                   throw new java.sql.SQLException ("Error has occurred in Datamanager, no Database Connection has been Established.");
         Returns the Number of Rows the last query has executed.
         @return Number of Rows
         public int getRows() throws java.sql.SQLException{
              int count = 0;
              if (rs != null){
                   //get the current row number in case were in the middle of a read and want the size
                   int rowNumber = rs.getRow();
                   rs.beforeFirst();
                   while (rs.next()){
                        count = count + 1;
                   if (rowNumber == 0){
                        rs.beforeFirst();     
                   else {
                        rs.absolute(rowNumber);     
                   return count;
              else {
                   return 0;
         Does a record in a particular table exist.
         @param tableName name of Table to look in
         @param idName Name if Table ID
         @param id value of ID
         @return True if record exists
         @see
         public boolean doesExist(String tableName, String idName, String id) throws java.sql.SQLException{
              query ("SELECT " + idName + " FROM " + tableName + " WHERE " + idName + "='" + id + "';");
              if (getRows() == 1){
                   return true;
              else {
                   return false;
         Update a line (or multiple lines) in the database.
         @param updateString The Update Query String to use to update the database
         @return
         public int update(String updateString) throws SQLException{
              int j = 0;
              try {
                   st = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
                   j = st.executeUpdate (updateString);     
              catch (SQLException e) {
                   throw new SQLException (updateString);
              st.close();
              return j;
         Update a line in the database.
         @param  tableName Name of table to update the line
         @param  items The data to be updated in the table
         @return
         public int update(String tableName, HashMap items, String idname) throws SQLException{
              // UPDATE <tablename> SET name1="value1", name2="value2" WHERE id="idvalue"
              String updateString;
              Iterator keys = items.keySet().iterator();
              Iterator values = items.values().iterator();
              String optionsString = "";
              //Combine the keys into Strings with ,'s separating.
              while (keys.hasNext()){
                   optionsString = optionsString + (String)keys.next() + "=\"" + (String)values.next() + "\",";
              //Chop off the last , in the Strings
              optionsString = optionsString.substring (0, optionsString.length()-1);
              updateString = "UPDATE " + tableName + " SET " + optionsString + " WHERE " + idname + "=" + items.get(idname) + ";";
              return insert (updateString);
         Delete a Record or Records from the database
         @param table Name of the Table to delete data from
         @param whereClause what to delete from the table
         @see
         public void delete(String table, String whereClause) throws SQLException{
              String deleteString;
              deleteString = "DELETE FROM " + table;
              if (whereClause != null) {
                   if (!whereClause.equals("")){
                        deleteString += (" WHERE " + whereClause);
              deleteString += ";";
              st = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
              st.execute (deleteString);
              st.close();
         Inserts a line of data into a database connection under a given table
         @param insertString String Containing the query to send with the Insert Data
         @return Number of Rows Affected
         public int insert(String insertString) throws SQLException{
              int j = 0;
              try {
                   st = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
                   j = st.executeUpdate (insertString);     
              catch (SQLException e){
                   throw new SQLException (insertString);
              st.close();
              return j;
         Inserts a line of data into a database connection under a given table
         @param  tableName Name of table to update the line
         @param  items The data to be updated in the table
         @return Number of Rows Affected
         public int insert(String tableName, HashMap items) throws SQLException{
              // REPLACE INTO <tablename> (itemname1, itemname2) VALUES ("value1", "value2");
              String insertString;
              Iterator keys = items.keySet().iterator();
              Iterator values = items.values().iterator();
              String keysString = "";
              String valuesString = "";
              //Combine the keys into Strings with ,'s separating.
              while (keys.hasNext()){
                   keysString = keysString + (String)keys.next() + ",";
                   valuesString = valuesString + "\"" + (String)values.next() + "\",";
              //Chop off the last , in the Strings
              keysString = keysString.substring (0, keysString.length()-1);
              valuesString = valuesString.substring (0, valuesString.length()-1);
              insertString = "REPLACE INTO " + tableName + " (" + keysString + ") VALUES (" + valuesString + ");";
              return insert (insertString);
         Sets the table structure for subsequent operations.
         @param An array of names that represent a table in a database.
         @return
         @see
         public void setStructure(String[] struc){
              tableStruct = struc;
         Flushes the Statement and ResultSet object
         in case any resources are being used when they
         shouldn't be.
         public void flushSources() throws java.sql.SQLException{
              if (rs != null){
                   rs.close();
                   rs = null;
              if (st != null){
                   st.close();
                   st = null;
         Kills the database connection in this object
         public void close() throws java.sql.SQLException{
              flushSources();
              if (con != null){
                   con.close();     
              con = null;     
         }

    How do I do that, it doesn't even report an error. I could try sticking log traces all over the place, but it may not tell me anything about why the problem is happening.

  • Business View data foundation with dynamic data connection hangs

    We are running Business Objects XI 3.0 with Crystal Reports 2008 and Business View Manager 12.0.0.683.  In the Business View Manager tool, when I try to open a data foundation that uses the ACD Dynamic data connection, it hangs with the hourglass icon.  I have left it trying to open for at least an hour before killing the Business View Manager with the Windows Task Manager.  Data foundations using a static connection open fine as do the elements and views based on the data foundation with the dynamic connection.  The static data connections included in the ACD Dynamic connector point back to an Oracle Server.  Any ideas how to get the data foundations to open so I can edit our custom business views?
    Thanks,
    Kathy

    I created some Views to pull the data in from the Oracle side.

  • Openning oracle connection hangs in aspx page

    I have an application(on win2k) which connnects to oracle database(on Solaris machine).Application connects to DB & executes a simple query. As .NET application it works fine.
    if the same code is copied & pasted in a aspx page, page just hangs. Have created a DSN(ORAJOBINFO). Ran in debug Mode at statement connection.open() system hangs.
    following is snipet of code:
    string connString = "Provider=OraOLEDB.Oracle.1;DSN=ORAJOBINFO;system;manager";
    OdbcCon = new OdbcConnection(connString);
    OdbcCommand OdbcCom = new OdbcCommand(Query);
    OdbcCom.Connection = OdbcCon;
    OdbcCon.Open();
    same code with DB2 DSN works fine.
    can any one help me.

    try using
    OleDBConnection con=new OleDBConnection("provider=MSDAORA.1;user id=system;password=manager;data source=<<connectionstring>>");
    con.Open();

  • Error 12545 on Connecting with sqlplus to Database. Remote connect hangs.

    Hi there,
    i'am new to Oracle.
    After installing 11g on Windows 2008 x64 Server i had solved many Problems. But this Problem now i do not get fixed.
    If i connect through SQLPlus local to DB it works. But if i connect on client (Win XP Service Pack 3) it hangs.
    Firewalls are turned off.
    Ping and TNSping works fine.
    Listener.ora:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = D:\app\Administrator\product\11.2.0\dbhome_1)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ONLY:D:\app\Administrator\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = de0-vsidcoes-p1)(PORT = 1521))
    ADR_BASE_LISTENER = D:\app\Administrator
    tnsname.ora:
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    INDACO11 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = de0-vsidcoes-p1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = INDACO11)
    sqlnet.ora:
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    Alert.log:
    Fatal NI connect error 12545, connecting to:
    (LOCAL=NO)
    VERSION INFORMATION:
         TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for 64-bit Windows: Version 11.2.0.1.0 - Production
         Windows NT TCP/IP NT Protocol Adapter for 64-bit Windows: Version 11.2.0.1.0 - Production
    Time: 09-APR-2013 10:10:33
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12545
    TNS-12545: CONNECT nicht erfolgreich, da Ziel-Host oder -Objekt nicht vorhanden
    ns secondary err code: 12560
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
    opiodr aborting process unknown ospid (2208) as a result of ORA-609
    Listener.Log:
    09-APR-2013 10:10:33 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=indaco11)(CID=(PROGRAM=D:\app\Cyber\product\11.2.0\client_1\sqlplus.exe)(HOST=XPSUPCLNT)(USER=Cyber))) * (ADDRESS=(PROTOCOL=tcp)(HOST=169.254.238.212%11)(PORT=1047)) * establish * indaco11 * 0
    lsnrctl services
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 09-APR-2013 10:35:31
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Anmeldung bei (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    Services ▄bersicht...
    Dienst "CLRExtProc" hat 1 Instanzen.
    Instanz "CLRExtProc", Status UNKNOWN, hat 1 Handler f³r diesen Dienst...
    Handler:
    "DEDICATED" eingerichtet:0 abgewiesen:0
    LOCAL SERVER
    Dienst "INDACO11XDB" hat 1 Instanzen.
    Instanz "indaco11", Status READY, hat 1 Handler f³r diesen Dienst...
    Handler:
    "D000" eingerichtet:0 abgewiesen:0 aktuell:0 max:1022 Status:ready
    DISPATCHER <machine: DE0-VSIDCOES-P1, pid: 1296>
    (ADDRESS=(PROTOCOL=tcp)(HOST=de0-vsidcoes-p1)(PORT=49168))
    Dienst "indaco11" hat 1 Instanzen.
    Instanz "indaco11", Status READY, hat 1 Handler f³r diesen Dienst...
    Handler:
    "DEDICATED" festgelegt:3 abgelehnt:0 Status:ready
    LOCAL SERVER
    Der Befehl wurde erfolgreich ausgef³hrt.
    lsnrctl status
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 09-APR-2013 10:36:05
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Anmeldung bei (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS des LISTENER
    Alias LISTENER
    Version TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Production
    Startdatum 09-APR-2013 10:02:57
    Uptime 0 Tage 0 Std. 33 Min. 8 Sek.
    Trace-Ebene off
    Sicherheit ON: Local OS Authentication
    SNMP OFF
    Parameterdatei des Listener D:\app\Administrator\product\11.2.0\dbhome_1\network\admin\listener.ora
    Log-Datei des Listener d:\app\administrator\diag\tnslsnr\de0-vsidcoes-p1\listener\alert\log.xml
    Zusammenfassung Listening-Endpunkte...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=de0-vsidcoes-p1)(PORT=1521)))
    Services ▄bersicht...
    Dienst "CLRExtProc" hat 1 Instanzen.
    Instanz "CLRExtProc", Status UNKNOWN, hat 1 Handler f³r diesen Dienst...
    Dienst "INDACO11XDB" hat 1 Instanzen.
    Instanz "indaco11", Status READY, hat 1 Handler f³r diesen Dienst...
    Dienst "indaco11" hat 1 Instanzen.
    Instanz "indaco11", Status READY, hat 1 Handler f³r diesen Dienst...
    Der Befehl wurde erfolgreich ausgef³hrt.
    Variables are set to:
    ORACLE_HOME=D:\app\Administrator\product\11.2.0\dbhome_1
    ORACLE_SID=INDACO11
    TWO_TASK=INDACO11
    I hope this is all information you need.
    Any Idea to solve this problem?
    Thanks!
    Jens
    Edited by: 998906 on 09.04.2013 01:40
    Edited by: 998906 on 09.04.2013 01:53

    Ok. Sorry, i solved this.
    Set the local_listener helps:
    alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=169.254.154.98)(PORT=1521))' sid='INDACO11';
    Thanks!

Maybe you are looking for

  • Help me choose a technology please ??

    Hi, I am a MSc (Software Development) student from University of Huddersfield, UK. I have to submit a final year project proposal by the end of July. My real client is a pharmaceutical company with many offices in many cities. They maintain a central

  • Where can I  find DSM log

    I am running EP7 SP7 and I turned on the DSM logger.  Where can I find the DSM log ? EP is on a UNIX server. Message was edited by:         Denise Carew

  • Unable to save info record

    hello guru's i am unable to save info record it is asking for planned delivery time in days even if i enter values there i am unable to save regards

  • How to recover partition with osx after install

    yea so i decided to install win 7 using bootcamp and made a partition for 50gigs. after following instructions the win 7 install menu came up were the partitions are located, and on the bottom it showed the partition i made for 50gigs that read (boot

  • N8 unable to download map at device, why?

    Why my n8 unable to download map or update map at device? Prompt me message "Connection failed!" while I have data plan and there is no connection problem on my data plan as I can surf net & chatting. Did I miss some steps or setting to enable map do