Connection Refused Error!! Please help to resolve

I am using Oracle 9i in Windows 2000. I have created a new db called DTSDB. And I have used the following program for getting connection
code:
package com.example; import java.sql.Connection;import java.sql.DriverManager;import java.sql.SQLException;      public class ConnectionPool{          public ConnectionPool(){}          public Connection getConnection(){          Connection con = null;          try{               Class.forName("oracle.jdbc.driver.OracleDriver");                         con = DriverManager.getConnection("jdbc:oracle:thin:@mike-dm210ghop:1521:DTSDB","scott","tiger");                              System.out.println("con ::##############"+con);          }catch(SQLException e){               e.printStackTrace();          }catch(Exception e){               e.printStackTrace();          }          return con;     }      public static void main(String[] args) {          System.out.println(new ConnectionPool().getConnection());     }     }
Error I am getting:
code:
java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12500)(ERROR_STACK=(ERROR=(CODE=12500)(EMFI=4))(ERROR=(CODE=12537)(EMFI=4))(ERROR=(CODE=12560)(EMFI=4))(ERROR=(CODE=507)(EMFI=4))(ERROR=(BUF='32-bit Windows Error: 109: Unknown error'))))     at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)     at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)     at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)     at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:404)     at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)     at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)     at java.sql.DriverManager.getConnection(Unknown Source)     at java.sql.DriverManager.getConnection(Unknown Source)     at com.example.ConnectionPool.getConnection(ConnectionPool.java:17)     at com.example.ConnectionPool.main(ConnectionPool.java:28)null
I have also tried to create a connection thru ODBC and given the DSN name as "reg" and username and password and I am getting the error as
TNS:listener could not start a dedicated server error
My tnsnames.ora File
====================
code:
# TNSNAMES.ORA Network Configuration File: D:\oracle\ora92\network\admin\tnsnames.ora# Generated by Oracle configuration tools. DTSDB = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = mike-dm210ghop)(PORT = 1521)) ) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = DTSDB) ) ) INST1_HTTP = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = mike-dm210ghop)(PORT = 1521)) ) (CONNECT_DATA = (SERVER = SHARED) (SERVICE_NAME = MODOSE) (PRESENTATION = http://HRService) ) ) EXTPROC_CONNECTION_DATA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0)) ) (CONNECT_DATA = (SID = PLSExtProc) (PRESENTATION = RO) ) ) ORACLE = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = mike-dm210ghop)(PORT = 1521)) ) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ORACLE) ) )
My listener.ora File:
======================
code:
# LISTENER.ORA Network Configuration File: D:\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 = mike-dm210ghop)(PORT = 1521)) ) ) ) SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = D:\oracle\ora92) (PROGRAM = extproc) ) (SID_DESC = (GLOBAL_DBNAME = ORACLE) (ORACLE_HOME = D:\oracle\ora92) (SID_NAME = ORACLE) ) (SID_DESC = (GLOBAL_DBNAME = DTSDB) (ORACLE_HOME = D:\oracle\ora92) (SID_NAME = DTSDB) ) )
PLease help to reolve my problem

Did you started the Oracle Net Listener for your database instance ?
Can you connect with SQL*Plus to your database instance ?
If no, what are the errors message do you get ?
Did you have a look to the Oracle Net Services Administrator's Guide relevant section.

Similar Messages

  • SQL Insert Error - Please help. RESOLVED

    I have a page with several VOs and search options. One of the search options is a list of Emp IDs which (when one is selected and user clicks 'search') results in an editable table of profiles for that Emp Id.
    I have in the Footer of the results table an input field and a button 'add' bound to a method that takes two params and inserts a 'new' profile for the searched Emp Id and the value entered in the input field.
    When I enter a value and click 'add' I get the following:
    JBO-29000: Unexpected exception caught: oracle.jbo.DMLConstraintException, msg=JBO-26048: Constraint "BADGE_ACCESS_EMP_FK" violated during post operation:"Insert" using SQL Statement "BEGIN INSERT INTO BADGE_ACCESS(EMPLOYEE_ID,BADGE,ROW_ID) VALUES (?,?,?) RETURNING ROW_ID INTO ?; END;".
    JBO-26048: Constraint "BADGE_ACCESS_EMP_FK" violated during post operation:"Insert" using SQL Statement "BEGIN INSERT INTO BADGE_ACCESS(EMPLOYEE_ID,BADGE,ROW_ID) VALUES (?,?,?) RETURNING ROW_ID INTO ?; END;".
    ORA-02291: integrity constraint (HR.BADGE_ACCESS_EMP_FK) violated - parent key not found ORA-06512: at line 1
    My Emp table is simple - just an ID, First and Last names with ID as PK. My profile table (called Badge_Access) has the EmpId as FK and it's own PK set by a DBSequence. The other column in Badge_Access is for the input value (number).
    I do not know how to debug in JDeveloper such that I can see the values that are being passed to the method. My 'add' button method is:
    public void createBadgeAccess(Number empId, Number badge) {
    BadgeAccessImpl ba = (BadgeAccessImpl)getDBTransaction().createEntityInstance(BadgeAccessImpl.getDefinitionObject(), null);
    ba.setEmployeeId(empId);
    ba.setBadge(badge);
    getDBTransaction().commit();
    I have the 'value' of the empId param = ${bindings.AccessByEmployeeEmployeeId.inputValue}
    This is the selectOneChoice field the user uses to search...
    and the 'value' of the badge param = ${bindings.Badge.inputValue}
    This is the input field the user fills in before clicking 'add'...
    The values I think I am passing are empId=106 and badge=102 - both are valid & the 'parent key' 106 is valid...
    any help will be greatly appreciated!!! Thanks
    Ginni
    Message was edited by:
    ginnim
    I found a Tip that described what was happening.

    Wrap some try/catch around the statements instead of trying to decipher the Java junk. Could be a problem in the PS, could be a number of things. At least figure where in the application the error takes place.

  • Hi, I am new to Mac and i managed to install and configure all the services. Now my issue is when i sending mail using the local server to internal, mail are not receiving. Mail queue showing Connection refused error. Please help me

    I am new to Mac and i managed to install and configure all the services. Now my issue is when i sending mail using the local server to internal, mails are not receiving. Mail queue showing Connection refused error. Please help me
    Thanks
    GIRI

    Try this -> http://support.apple.com/kb/TA38632?viewlocale=en_US

  • I got an internet connection on my phone. After getting the internet connection, I was unable to make a call or check the missed calls that I got. Please help me resolve this problem.

    I got an internet connection on my phone. After getting the internet connection, I was unable to make a call or check the missed calls that I got. Please help me resolve this problem.

  • My iphone won't pass the connect to itunes. when i try to restore is says that there is an error. please help!

    hi my iphone is broken. it won't pass the connect to itunes. when i try to restore is says that there is an error. please help!
    thanks,
    jg2013
    <Subject Edited by Host>

    Hello, 02633. 
    Thank you for visiting Apple Support Communities. 
    If your iPhone is disabled, you will need to process the steps in the article below.
    iOS: Forgotten passcode or device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    Cheers,
    Jason H.

  • HT4623 I have updated my iphone with the current software but it is showing you need to connect to  of itunes to activate your phone, when i did that it is continuously showing an error.please help me to get through.

    I have updated my iphone with the current software but it is showing you need to connect to  of itunes to activate your phone, when i did that it is continuously showing an error.please help me to get through.
    Kindly Activate my phone.

    Rajan Gupta wrote:
    ...it is continuously showing an error.
    See here  >  http://support.apple.com/kb/TS3424
    Also see this discussion.
    https://discussions.apple.com/message/21189708

  • I have iPhone 3gs. I was trying to update the software using itunes but it is showing Error "-3259" saying  connection timeout. Please help.

    I have just bought iPhone 3gs in Sept.11. I was trying to update the software using itunes but it is showing Error "-3259" saying  connection timeout. Please help.

    Did you already check your securit software settings? iTunes has to contact Apple during the update process.
    See this article: iTunes for Windows: Troubleshooting security software issues

  • Hi, i just try to update my 3g in itunes unfortunatly it got error while updating it asked me to restore update but unable to restore it , now my 3g i locked and on screen it displying usb symbol connect to itunes ,please help me regarding this

    hi, i just try to update my 3g in itunes unfortunatly it got error while updating it asked me to restore update but unable to restore it , now my 3g i locked and on screen it displying usb symbol connect to itunes ,please help me regarding this

    I suspect your error was 1015, not 1051. This usually involves a jailbroken iPhone, use Google to find your solution.

  • I can not connect my i phon with my pc it shows athorised computer when i am trying to do authorised process the process done but again i connect my phon again show this errore please help me to solve my prob....

    i can not connect my i phon with my pc it shows athorised computer when i am trying to do authorised process the process done but again i connect my phon again show this errore please help me to solve my prob....

    I have clicked on the  connect button, but it brings up the same There is a problem connecting,  and I have also tried SMB://
    i tried pinging the ip address with in termial and it times out.  
    From my windows PC and I can access my MacBook Air just fine,

  • RMI: connection refused error while invoking remote method from client mac.

    Hi All,
    when i run client program, which is calling remote object from other system, it shows the below error.
    please help me solving this issue, i also have policy file and installed security manager.
    Exception in Cliendjava.rmi.ConnectException: Connection refused to host: 10.66.
    112.137; nested exception is:
    java.net.ConnectException: Connection refused: connect
    thanks in advance.
    Regards,
    Anand.

    See item A.1 of the [RMI FAQ|http://java.sun.com/j2se/1.5.0/docs/guide/rmi/faq.html].

  • Database get hang  please help to resolved the issue.

    Hi,
    we are getting below error at that time db not allowed user to connect database.please help to resolved the issue.
    db version is 10.2.0.3
    Errors in file /oracle/oradata/bdump/pmspr_j002_1593486.trc:
    ORA-12012: error on auto execute of job 42597
    ORA-27468: "EXFSYS.RLM$SCHDNEGACTION" is locked by another process
    Tue Jan 3 10:21:55 2012
    Errors in file /oracle/oradata/bdump/pmspr_j003_1347686.trc:
    ORA-12012: error on auto execute of job 42596
    ORA-27468: "EXFSYS.RLM$EVTCLEANUP" is locked by another process
    Tue Jan 3 10:21:55 2012
    Errors in file /oracle/oradata/bdump/pmspr_j004_1995004.trc:
    ORA-12012: error on auto execute of job 42596
    ORA-27468: "EXFSYS.RLM$EVTCLEANUP" is locked by another process
    Tue Jan 3 10:21:55 2012
    Process OS id : 2064550 alive after kill
    Errors in file /oracle/oradata/udump/pmspr_ora_1572972.trc
    Tue Jan 3 10:21:55 2012
    Errors in file /oracle/oradata/bdump/pmspr_j005_1617988.trc:
    ORA-12012: error on auto execute of job 42597
    ORA-27468: "EXFSYS.RLM$SCHDNEGACTION" is locked by another process
    Tue Jan 3 10:21:55 2012
    Errors in file /oracle/oradata/bdump/pmspr_j007_1523820.trc:
    ORA-12012: error on auto execute of job 42596
    ORA-27468: "EXFSYS.RLM$EVTCLEANUP" is locked by another process
    Tue Jan 3 10:21:55 2012
    Errors in file /oracle/oradata/bdump/pmspr_j009_1933354.trc:
    ORA-12012: error on auto execute of job 42596
    ORA-27468: "EXFSYS.RLM$EVTCLEANUP" is locked by another process
    Tue Jan 3 10:21:55 2012
    Errors in file /oracle/oradata/bdump/pmspr_j006_1536044.trc:
    ORA-12012: error on auto execute of job 42597
    ORA-27468: "EXFSYS.RLM$SCHDNEGACTION" is locked by another process
    Thanks

    I think the following Oracle two note looks interesting:
    Note: 330725.1 Scheduler Job has Been Locked For Days Ora-27468
    Note: 731678.1 Scheduled jobs do not run as expected after 10.2 upgrades
    HTH -- Mark D Powell --

  • Connection Refused Error In Connection Client

    Hello Geeks
    I am runnig a RMI application in which runs on internet , i have setup RMI server on a host server and it is running there.
    Now, when i try to call client using ip address of the Host , i am getting Connection Refused error.
    Example :
    Registry registry=LocateRegistry.getRegistry("70.33.246.110");
    System.out.println("Above connectMe");
    String  serverName = "rmi://70.33.246.110:2786/connectUser";
    connectMe stub=(connectMe)Naming.lookup(serverName);
    System.out.println("Below connectMe");
    boolean log=stub.login(username,password,1);
    System.out.println("Below login");Here "connectuser" is name i have given in server to which client lookups.I am getting -> Above connectMe and Below connectMe
    but then i am getting connection refused error.
    Please Help Me Out.....ASAp
    Edited by: Hardik.Mishra on Oct 3, 2009 5:46 PM

    Registry registry=LocateRegistry.getRegistry("70.33.246.110");There's no point to doing that ...
    System.out.println("Above connectMe");
    String serverName = "rmi://70.33.246.110:2786/connectUser";
    connectMe stub=(connectMe)Naming.lookup(serverName);... if you're doing that. The getRegistry() doesn't do a network operation, it just constructs a stub to that Registry locally. Only by using it would you find out whether it meant anything: and you're not using it.
    I am getting -> Above connectMe and Below connectMe
    but then i am getting connection refused error.See item A.1 on the RMI Frequently Asked Questions list in the Javadoc.

  • JNDI Connection refused error

    HI
    I am new to Java so please excuse my stupid questions and general lack of ignorance. I am trying to connect to an Oracle database using JNDI to retrieve a Datasource using a 'data-source.xml' file but I get a 'Connection refused' error I am at a total loss at what this can be, I just have a simple Java Class which gets an InitialContext then does a lookup from here but this is were it fails.
    Could anybody give me any idea as to where to look. Could it be a problem with the JNDI server itself?. I'm using JDeveloper 10.1.3 and am just trying to run it in the embedded server.
    Sorry for the general rambling nature of this post and please ask me to provide any extra information required.
    Any help would be much appreciated as I'm going nowhere with this at the moment and very frustrated as have searched everywhere with no results.
    Thanks
    Andy

    Hi
    Thanks for the reply. I have checked my data-sources.xml and this all seems fine. I can even connect to the DB using DriverManager rather than the JNDI method. One thing that confuses me is which data-sources.xml it is using as there appear to be many. In JDeveloper you can specify the data sources in 'embeeded oc4j preferences' plus create your own under meta-inf. Which is being used when run in embedded, maybe thats obvious the first one?
    thanks once again

  • RDS Server : Connection refused error

    Hi All,
        I am using flash builder 4.
       When i try to connect rds from DataServices - > Connect to LCDS it throws a connection refused error.
       I have uncommented the rds in web.xml and set the useappSecurity to false.
       Can any body please help me get rid of this issue.
       I am still using a trial version. Does this have any impact.
       Any help is highly appreciated !!!!!!!!!!!!!!!!!!!!!!!
    Thanks

    I have the same problem.

  • EPM Workspace EPM Inside Frame error- Please help ASAP!!

    Can someone please help me resolve below error with EPM-
    I've created resports in web analysis studio and am emailing smartcut URL to about 200 users. 3 of the users are getting below error-
    "EPM Workspace cannot function inside of a frame"
    pop ups are allowed; java is up to date; hyperion 11.1.2.1.102
    any tips?

    Hi,
    The document can be found in support.oracle.com
    I had pasted the contents though, which might be helpful
    After embedding a Financial Reporting (FR) report or Web Analysis (WA) report to a Planning Task List using the Smartcut url in the Planning, and then try to open the report through Task list in Workspace, you will get the following error:
    "EPM Workspace cannot function inside of a frame. Contact your system administrator."
    Cause
    This issue is caused by unpublished BUG 11854015 "ERROR OPENING PLANNING TASK LIST REPORT WITH "WITHNAV_GET"
    Solution
    Until a service fix is released to address this issue, the following workaround currently exists to resolve this issue:
    1. Use the below URL while specifying in the Smart Cut, http://server.example.com:19000/workspace/WorkspaceLaunch.jsp?uri=index.jsp%3fmodule%3dwksp.relatedcontent%26repository_path%3d%2Fmyfolder-name-here%2Fmy-report-name-here
    2. Replace myfolder-name-here with the name of the folder and my-report-name-here with the name of the report. The URL must be encoded.
    3. You must use %2F where you would use a slash in the repository path. You might also need to encode the report name due to the double-byte characters in the report name. The encoding for % is %25. So, if the character %8a appears in the SmartCut URL for the report, then the encoding for the URL above would be encoded %258a.
    Hope this helps,
    Thank you,
    Charles Babu J

  • HT4211 I'm not able to download apps from App Store. It never downloads and it shows waiting status.can somebody please help me resolve this issue

    I'm not able to download apps from App Store. It never downloads and it shows waiting status.can somebody please help me resolve this issue

    I really do not think it is the iPad or your network connection. Other users have reported this very same issue. Try this and see if it works for you - it may not work - but it's easy to try - harmless - and it has worked in the past for others.
    Try signing out of your account and restart your iPad.
    Go to Settings>Store>Apple ID and tap the ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button. Go back to Settings>Store> Apple ID and sign in again.

Maybe you are looking for

  • Latest version firefox cannot open not supported by architecture on mac G5 with OSX 10.5.8

    Have been using firefox as preferred browser on Mac G5 OSX 10.5.8. Today, message said new version optimized for yahoo available. I downloaded it and now firefox logo has do not enter sign superimposed and when I try to open, it says can't open not s

  • Error getting an iBook to iTunes

    Need your help.. I created my first iBook using iBook Author tool, and this is picture book with lot of pictures and stories etc. About 250 MB size.. It worked just great on my iPad after exporting as an iBooks format and now trying to get this to iT

  • PDF Document will not print on wireless network

    Recently purchased Fujitsu laptop with Vista Home Premium O/S, 2.4 Gig chip, 2 Gig Ram. Printer is Canon Image Class 880 multi-function printer. I am able to print Microsoft Word documents via the wireless network and can also print documents off of

  • How do I access XMLType using JDBC ?

    This thread will address a number of issues related to accessing XMLType tables and columns from Java via JDBC.

  • Negative values in Service Entry Sheet

    Hi, I am in need of creating service entry sheet lines with negative values (for a certain account assignment). Bare with me, this will be long (-; In my business scenario, (PS module, Construction Business) I use PO`s for external services with limi