Unable to connect to Oracle database running on Windows machine from linux.

Hi,
I'm not able to connect to oracle database running on Windows machine from Linux machine. I'm geting the below mentioned error. I have given below the code I used to connect to database and database propertes.Do I need to use any specific driver?
Please help me.
Thanks,
Sunjyoti
Code :
import oracle.jdbc.pool.OracleDataSource;
import java.sql.Connection;
import java.util.*;
import java.sql.*;
import java.io.*;
class try2{
public static void main(String args[]) {
try {
          System.out.println("hi");
// Load the properties file to get the connection information
Properties prop = new Properties();
prop.load(new FileInputStream("/home/sreejith/EDIReader/Connection.properties"));
// Create a OracleDataSource instance
OracleDataSource ods = new OracleDataSource();
System.out.println("prop is "+prop);
configureDataSource(ods, prop);
Connection conn=null;
// Create a connection object
conn = ods.getConnection();
     System.out.println("Connection is"+conn);
// Sets the auto-commit property for the connection to be false.
conn.setAutoCommit(false);
} catch (SQLException sqlEx){ // Handle SQL Errors
System.out.println("In exception "+sqlEx);
} catch(Exception excep) { // Handle other errors
System.out.println(" Exception "+ excep.toString());
private static void configureDataSource(OracleDataSource ods, Properties prop) {
// Database Host Name
ods.setServerName(prop.getProperty("HostName"));
// Set the database SID
ods.setDatabaseName(prop.getProperty("SID"));
// Set database port
ods.setPortNumber( new Integer( prop.getProperty("Port") ).intValue());
// Set the driver type
ods.setDriverType ("thin");
// Sets the user name
ods.setUser(prop.getProperty("UserName"));
// Sets the password
ods.setPassword(prop.getProperty("Password"));
Connection properties :
# Your Database Connection details
HostName = 10.20.3.19
SID = EDIREAD
Port = 1521
UserName = dbuser
Password = dbuser
Error I'm getting is
error while trying to connect with odbc datasource
[root@iflexpau2217 EDIReader]# java try2
hi
prop is {HostName=10.20.3.19, Password=dbuser, UserName=dbuser, SID=EDIREAD, Port=1521}
In exception java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
Also I tried to connect with weblogic JDBC driver
Code is here:
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.sql.Blob;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
//import com.entrust.toolkit.util.ByteArray;
public class trial{
     public static void main(String args[]) throws IOException{
          System.out.println("hi");
          Connection p_conn = null;
          PreparedStatement xml_insert = null;
          try {
     // Load the JDBC driver
               System.out.println("hi2");
     // String driverName = "oracle.jdbc.driver.OracleDriver";
String driverName = "weblogic.jdbc.oracle.OracleDriver";
     System.out.println("hi2");
     Class.forName(driverName);
     // Create a connection to the database
     String serverName = "10.20.3.19";
     String portNumber = "1521";
     String sid = "EDIREAD";
     //String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;
String url = "jdbc:bea:oracle://10.20.3.19:1521";
     String username = "dbuser";
     String password = "dbuser";
System.out.println("connection is:"+p_conn+"user name is"+username+"password is"+password);
     p_conn = DriverManager.getConnection(url, username, password);
     System.out.println("connection is:"+p_conn+"user name is"+username+"password is"+password);
          xml_insert=p_conn.prepareStatement("insert into PRTB_SUBUNIT (SUBUNT_ID,SUBUNT_SUB_UNIT,SUBUNT_PHYUNT_ID) values (?,?,?)");
          //InputStream in=null;
          File l_file=new File("/home/sreejith/EDIReader/propertyfiles/inputfile/BUG_10802_ES_CSB19_68.txt");
          BufferedReader input =null;
          input=new BufferedReader(new FileReader(l_file));
          String line = null;
          StringBuffer trial=new StringBuffer();
          while (( line = input.readLine()) != null){
               trial.append(line);
               trial.append(System.getProperty("line.separator"));
          //InputStream is = new BufferedInputStream(new FileInputStream(l_file));
          System.out.println(trial.toString());
          //Blob b ;
          //byte[] bytes=trial.toString().getBytes();
          //System.out.println("Size-->"+bytes.length);
          xml_insert.setString(1,new String("SpecailChar"));
          //xml_insert.setBinaryStream(2,new ByteArrayInputStream(bytes),15920);
          xml_insert.setString(3,"SpecailChar");
          xml_insert.executeUpdate();
          p_conn.commit();
          } catch (ClassNotFoundException e) {
               System.out.println("ClassNotFoundException:"+e.getMessage());
          // Could not find the database driver
          } catch (SQLException e) {
               System.out.println("SQEXCEPTIN:"+e.getMessage());
          // Could not connect to the database
          }catch (FileNotFoundException e) {
               System.out.println("filenot found:"+e.getMessage());
          // Could not connect to the database
Error I'm getting is
error while trying with jdbc:
SQEXCEPTIN:[BEA][Oracle JDBC Driver]Error establishing socket to host and port: 10.20.3.19:1521. Reason: Connection refused

Is the Windows firewall active? Have you enabled the port on the firewall, if it is?

Similar Messages

  • Unable to connect to oracle database 10.1.0.2.0 from jdeveloper 11.1.2.1.0

    Hello,
    I am trying to connect to oracle database 10.1.0.2.0 from jdeveloper 11.1.2.1.0 to develop an ADF application.
    But it is giving me the error
    Test failed: Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
    connection type:oracle(JDBC)
    Role :SYSDBA
    Driver:thin
    Host:localhost
    JDBC port:1521
    SID:webaid
    I am able to connect to the database using SQL*Plus with the same credentials.
    Any help is appreciated!

    I take it you solved this problem, since you posted this: installing Oracle 10.1.0.2.0 (32 bit)  on windows 2003 server

  • Unable to connect to Oracle Database using Oracle Sql developer 2.1.1.64

    Hi Everyone,
    I am searching for some help regarding my problem with Oracle connectivity. I have installed Oracle 11g release 2 on my Windows XP Professional Laptop. For a few days after installation i could connect to the Oracle database with the SYSTEM account using Oracle SQL developer ( installed on the same Laptop) but now i am unable to do so.It gives me this annoying message:
    An error was encountered performing the required operation  Got a minus one from read call .Vendor code 0
    However i am able to connect using Sql Plus by supplying the username SYSTEM and the corresponding password.
    My TNSNAMES .ora file is as follows:
    ORACLE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST =localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = ORACLE)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    My Listener.ora file is as follows:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = D:\app\product\11.2.0\dbhome_1)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ONLY:D:\app\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    (SID_DESC =
    (GLOBAL_DBNAME = Oracle)
    (ORACLE_HOME = D:\app\product\11.2.0\dbhome_1)
    (SID_NAME = Oracle)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (PROTOCOL_STACK =
    (PRESENTATION = GIOP)
    (SESSION = RAW)
    ADR_BASE_LISTENER = D:\app
    My Sqlnet.ora file is as follows:
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    I am new to Oracle and so i need someone in this forum who can help me resolve this problem. Also i even tried connecting to the database using Toad 10.5.0.41. It give me the following error:
    ORA 12537 : TNS Connection closed
    Thanks for your patience and help in advance.
    ---Prashant

    Hello Irian and Sue,
    I can connect to the Oracle database using SQL Plus. Now when i TNSPING ORACLE from command line i get the following message :
    Used parameter files:
    D:\app\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =localhost
    *)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ORACLE)))*
    TNS-12537: TNS:connection closed
    Thanks for your response to my initial post.Do u have any other methods to resolve this?

  • Crystal Reports XI is unable to connect to Oracle database

    I try to Create New Conection in y Crystal Reports XI using OLE DB(ADO) ,Microsoft OLD DB Provider for Oracle.
    I entered the right Connection Information for Service, User ID and Pasword and then hit the Finish button.
    I get the following error message.
    Login Failed.
    Detail: ADO Error CodeL 9x80004005
    Source: Microsoft OLE DB Provider for Oracle
    Description: Oracle client and networking components wer not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 or later client software installation.
    Provider is unable to function until these components are installed.
    Where can I get these components?
    How can I install them?
    What should I do to get successfully connected to my Oracle database?
    Please guide me.
    Thanking in advance.
    Samy

    Hi Samy,
    I did some checking and found the old platforms text file for which servers we supported:
    Crystal Reports Data Sources
    =======================================
    Report Data Source              Database Client             
    Oracle 8.1.7                  Oracle Net client 9.2 (Native)
                                    ODBC Oracle 9.2
                                    JDBC Oracle 9.2
                                    OLEDB Oracle 9.2
    Oracle 9.2                    Oracle Net client 9.2 (Native)     
                                    ODBC Oracle 9.2
                                    JDBC Oracle 9.2
                                    OLEDB Oracle 9.2
    Oracle 10.1                   Oracle Net client 10.1 (Native)  
                                    ODBC Oracle 10.1
                                    JDBC Oracle 10.1
                                    OLEDB  Oracle 10.1
    As you can see we needed the 9.2 client. I do recall now there were UNICODE issues with earlier versions and 9.2 was the fix which is why we supported the 8 server but with the 9 client.
    So not sure why it worked previously but likely because Windows 7 doesn't have the dependencies XP would have had it may be the reason....
    Bottom line is you are not on a supported platform so we have not done much testing ourselves on how to get around these issues....
    Thanks again
    Don

  • Unable to connect to Oracle database on RHEL4

    Hi,
    I have completed installation of Oracle 10g release 2. on RHEL 4.
    On logging on to the RHEL 4 machine, I am able to start Oracle database and use sqlplus.
    However, I am unable to connect to it from my desktop, which is windows xp. The tnsnames.ora file in the windows desktop has been updated. However its not able to connect to this machine. The RHEL4 machine is configured with DHCP. Could this be the problem? I would not be able to configure it with static IP, is there a way to configure it with DHCP? tnsping does not identify the database instance either. I get the following error.
    TNS-12560: TNS:protocol adapter error
    Regards,
    Rishikesh

    rishikesh,
    On the RHEL4 machine
    1. check the listener:
    -check if the service name of your database is registered
    -check on which NIC/ip address the listener is listening
    2. check if you can login using TCP
    -do a tnsping of the connection descriptor you are using
    If both tests succeed, go to the client (windows XP machine)
    1. check if the RHEL4 machine responds to the ping command
    if that works:
    2. check if the hostname used in ping is the same as the hostname in the connectstring
    3. check if the service name in the connectstring is the same as in the listener
    4. check if the port number in the connectstrings is the same as in the listener

  • Unable to connect to oracle database using RODM

    Hello,
    I am trying to follow the steps described in
    http://www.oracle.com/technetwork/articles/datawarehouse/saternos-r-161569.html
    but I keep getting the same error message after the
    DB <- RODM_open_dbms_connection(dsn="orcl", uid="dm", pwd="dm")command. The message is
    Error in typesR2DBMS[[driver]] <<- value[c("double", "integer", "character",  :
      cannot change value of locked binding for 'typesR2DBMS'
    and doing a traceback() I get
    2: setSqlTypeInfo(driver, list(double = "double precision", integer = "integer",
           character = "varchar(255)", logical = "varchar(255)"))
    1: RODM_open_dbms_connection(dsn = "orcl", uid = "dm", pw = "dm")
    Could anyone suggest some way to fix this? I am stuck and I need to get this working asap.
    Thank you very much in advance                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hello Mark,
    Thank you for your reply.
    I tried installing Oracle R Enterprise but I got stuck again, this time apparently because I do not have Oracle database 11.2.0.3 but rather 11.2.0.1.0.
    So I would like to ask you if there is some way of using RODM, or some other way of having R access to ODM algorithms?
    Thank you,
    Filipe

  • Connect to Oracle Database on a Guest VM from the  - Problem

    Hello All,
    I've been facing an issue with my Oracle VM. Let me explain:
    I have a VM running CentOS 6 with Oracle Database 11g 11.2.0 installed. What I want to do is use SQL Developer, Toad, SQL*PLUS from the host machine that is running Windows 7 64bits.
    The VM is using a Host-only Adapter as network connection and a bridged adapter (for when I need to use internet in the box).
    Here is the issue, I can ping the VM from the Host without problems and also I can ping the Host from the VM. But I cannot tnsping from the host to the VM.
    Listener is configured as default (port 1521) and the tnsnames.ora in the host is correct, but when I tnsping it I get time out messages.
    Is it something related to the network between host and VM? Can anyone assit?
    Please let me know if you need more information about.
    Thanks in advance.

    Jaumzors wrote:
    Hello All,
    I've been facing an issue with my Oracle VM. Let me explain:
    I have a VM running CentOS 6 with Oracle Database 11g 11.2.0 installed. What I want to do is use SQL Developer, Toad, SQL*PLUS from the host machine that is running Windows 7 64bits.
    The VM is using a Host-only Adapter as network connection and a bridged adapter (for when I need to use internet in the box).
    Here is the issue, I can ping the VM from the Host without problems and also I can ping the Host from the VM. But I cannot tnsping from the host to the VM.
    Listener is configured as default (port 1521) and the tnsnames.ora in the host is correct, but when I tnsping it I get time out messages.
    Is it something related to the network between host and VM? Can anyone assit?
    Please let me know if you need more information about.
    Thanks in advance.http://www.cyberciti.biz/faq/turn-on-turn-off-firewall-in-linux/

  • Connect to Oracle database from SQL Sever

    Can you help on an issue of connection from SQL Server to Oracle database:
    In SQL Server, I create a "linked server" to connect to Oracle database on a different machine. But it will take a unreasonable time (about 30 seconds) to call a Oracle query from SQL Server.

    No there are no entries required in the TNSNAMES.ORA
    When you are using ODBC for connection, Oracle does not look fo rany enteries in TNSNAMES.ORA file.
    Now I am able to connect to both SQL Plus and Forms 6i. But while connecting to SQL Plus its giving an error
    Error accessing PRODUCT_USER_PROFILE
    Warning: Product user profile information not loaded!
    You may need to run PUPBLD.SQL as SYSTEM
    Server not available or version too low for this feature
    Connected to:
    Oracle Open Client Adapter for ODBC 6.0.5.35.0
    Microsoft SQL Server 08.00.0534
    Also while disconnecting the Windows Program Error comes, and the application closes abruptly.

  • Unable to connect to datasource:(database not running)

    I was running this example Car Application.
    I downloaded SQL Studio and wanted to check if the db tables are created or not.
    Tried to open through SQL studio but got the following exception as a pop-up:
    <b>
    [SAP-AG][SQLOD32 DLL][SAP DB]unable to connect to datasource:(database not running).return-code:SQL_ERROR(-709)</b><i></i>
    I believe my J2EE engine is running fine with all the three boxes in green.
    Does anyone went through this kind of situation?
    Please help me in this regards.
    Thanks
    -Sudheer

    Nitzan,
    Thanks for the reply.
    To be honest, I didnt understand what u meant.Iam a beginner trying to learn N/W though Iam in J2EE for a long while.
    Here is what I have done so far:
    Installled WAS with developer studio ran this Car rental application.While doing this I installed SQL studio to check if the tables r created or not.
    I dont have any back end database like oracle or SQL server installed.The car application example documentation doesnt say so.
    This is what I have given in persistant.xml:
    Datasource Name:CAR_RENTAL_POOL
    Database Vendor: SAPDB
    I dont have visual admin installed.
    Please let me know if this makes any sense.
    And also there is another problem with car reservation application:
    The application seems to running fine except withe the saving part:
    when I tried to add a car reservation, there is no response , it's not getting added to the DB.There are no error messages on screen. The screen is same before and after.
    Any help would be greatly greatly appreciated.
    Thanks

  • Unable to connect to Oracle Applications database (afscpgcs) after clone

    Hi,
    I have just moved (clone using rapidclone) two of our 11.5.10.2 install from a solaris SPARC 8 to 10 . After the clone, while discoverer 10g works perfectly well in one environment, it is giving the error below in the another environment.
    - Failed to connect to database - Unable to connect to Oracle Applications database (afscpgcs)
    Notes:
    1. For the 2 environments, nothing as changed apart from the hostnames.
    2. The password has not changed on both - from source to targets.
    3. This happens when launching discoverer 10g from Apps.... discoverer works well on it own if not launched from apps.
    I raised a SR with oracle and the 2 things they said have not worked. they said
    1. change signon password case parameter - but I cannot find that in the list of system parameters on our system.
    2. The other note says apply patch 6430269 and I can confirm this patch has been on the system for sometime.
    Please advise on this if you have come accross this before and you can help here.
    Thanks

    Thanks for your concern. I have used the notes you listed but no luck. One thing I have to point out here is that I have always cloned from solaris 8 to 8 for years without this problem. Now I am cloning from solaris 8 to 10 and the problems is on just one environment. The other is working well. The problem seems to be related to the apps password but the password has not changed at all. Also, I have tried to change the password to something else and ran autoconfig but no luck. Please help

  • Unable to connect to Oracle Applications database invalid username/password

    Hi,
    Ou Requirement is we want to connect to Oracle Applications using discoverer plus and discoverer viewer.
    Application Server used : 10.1.2.0.2
    Oracle Applications : R12 RUP4
    We have installed application server 10g with OID and when we try to connect to oracle applications we are getting
    A connection error has occurred.
    - Failed to connect to database - Unable to connect to Oracle Applications database: invalid username/password.
    Regards
    Ketan

    Hi,
    I think better to check with your sysadmin or DBA on this, I had the same isuse before but Apps 11i with Discoverer, I talked to ERP sysadmin and worked fine.
    Since applications userid cannot talk with Discoverer schema (eul10_us) and it should directly talk with APPS user and then APPS user can talk with Discoverer user.
    To the best of my knowledge I provided.
    --skat                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Client unable to connect to Oracle 10g on linux

    I have installed Oracle 10g on an Intel box running RedHat AS 3.0. The database installation was succesful but I am unable to connect to it from the client on my laptop running Oracle 10g client and Winfdows XP Pro. The server ip is 192.168.1.10 and I can ping it from the client:
    C:\>ping attila.n3kje.net
    Pinging attila.n3kje.net [192.168.1.10] with 32 bytes of data:
    Reply from 192.168.1.10: bytes=32 time<1ms TTL=64
    Reply from 192.168.1.10: bytes=32 time<1ms TTL=64
    Reply from 192.168.1.10: bytes=32 time<1ms TTL=64
    Reply from 192.168.1.10: bytes=32 time<1ms TTL=64
    Ping statistics for 192.168.1.10:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
    Here is some info about the 2 environments:
    [oracle@attila bin]$ uname -a
    Linux attila.n3kje.net 2.4.21-9.0.1.ELsmp #1 SMP Mon Feb 9 22:26:51 EST 2004 i686 i686 i386 GNU/Linux
    Server hosts file
    ======================================================
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 attila.n3kje.net attila localhost.localdomain localhost
    hostname output
    ======================================================
    [root@attila root]# hostname
    attila.n3kje.net
    ifconfig output
    =======================================================
    [root@attila root]# ifconfig
    eth0 Link encap:Ethernet HWaddr 00:C0:9F:1D:0C:C8
    inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:13772171 errors:0 dropped:0 overruns:0 frame:0
    TX packets:13748842 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:1269613311 (1210.7 Mb) TX bytes:4065314800 (3876.9 Mb)
    Interrupt:16 Base address:0xecc0 Memory:fe100000-fe120000
    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:5513840 errors:0 dropped:0 overruns:0 frame:0
    TX packets:5513840 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:865454291 (825.3 Mb) TX bytes:865454291 (825.3 Mb)
    Client TNSNAMES.ORA
    ======================================================
    # tnsnames.ora Network Configuration File: C:\Oracle\product\10.1.0\Client_1\NETWORK\ADMIN\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORACLE10G =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.10)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = DEV10G)
    PRDSRR =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.10)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = dev10g)
    Client SQLNET.ORA
    ======================================================
    # sqlnet.ora Network Configuration File: C:\Oracle\product\10.1.0\Client_1\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (EZCONNECT, TNSNAMES)
    Server TNSNAMES.ORA
    ======================================================
    # tnsnames.ora Network Configuration File: /u01/app/oracle/product/10.1.0/db_1/n
    etwork/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    DEV10G =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = attila.n3kje.net)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = DEV10G)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    Server LISTENER.ORA
    ======================================================
    # listener.ora Network Configuration File: /u01/app/oracle/product/10.1.0/db_1/n
    etwork/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/10.1.0/db_1)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = attila.n3kje.net)(PORT = 1521))
    Results from the TNSPING command issued at the client
    =================================================================
    C:\>tnsping prdsrr
    TNS Ping Utility for 32-bit Windows: Version 10.1.0.2.0 - Production on 02-APR-2
    004 09:26:11
    Copyright (c) 1997, 2003, Oracle. All rights reserved.
    Used parameter files:
    C:\Oracle\product\10.1.0\Client_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    (HOST = 192.168.1.10)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = dev10g)))
    TNS-12541: TNS:no listener
    C:\>tnsping oracle10g
    TNS Ping Utility for 32-bit Windows: Version 10.1.0.2.0 - Production on 02-APR-2
    004 09:26:38
    Copyright (c) 1997, 2003, Oracle. All rights reserved.
    Used parameter files:
    C:\Oracle\product\10.1.0\Client_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    (HOST = 192.168.1.10)(PORT = 1521))) (CONNECT_DATA = (SERVER = DEDICATED) (SERVI
    CE_NAME = DEV10G)))
    TNS-12541: TNS:no listener
    C:\>
    Trying to connect to the database from the server
    ==================================================
    [oracle@attila bin]$ echo $ORACLE_SID
    DEV10G
    [oracle@attila bin]$ ./sqlplus system
    SQL*Plus: Release 10.1.0.2.0 - Production on Fri Apr 2 12:22:29 2004
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Pr
    oduction
    With the Partitioning, OLAP and Data Mining options
    [oracle@attila bin]$ ./sqlplus system@dev10g
    SQL*Plus: Release 10.1.0.2.0 - Production on Fri Apr 2 12:23:09 2004
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Enter password:
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    tnsping issued at the server
    ======================================================
    [oracle@attila bin]$ tnsping dev10g
    TNS Ping Utility for Linux: Version 10.1.0.2.0 - Production on 02-APR-2004 12:3
    :44
    Copyright (c) 1997, 2003, Oracle. All rights reserved.
    Used parameter files:
    /u01/app/oracle/product/10.1.0/db_1/network/admin/sqlnet.ora
    TNS-03505: Failed to resolve name
    What am I doing wrong?
    Thanks
    Renato

    Ok, I was able to succesfully connect to the database from the client. I made the following changes to the sqlnet.ora, tnsnames and listener. Here are the changes I made:
    sqlnet.ora
    ==============================
    # SQLNET.ORA Network Configuration File: /u01/app/oracle/product/9.2.0.1.0/netwo
    rk/admin/sqlnet.ora
    # Generated by Oracle configuration tools.
    # NAMES.DIRECTORY_PATH= (EZCONNECT)
    NAMES.DIRECTORY_PATH= (EXCONNECT, TNSNAMES, ONAMES, HOSTNAME)
    listener.ora
    ==============================
    # listener.ora Network Configuration File: /u01/app/oracle/product/10.1.0/db_1/n
    etwork/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/10.1.0/db_1)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = DEV10G)
    (ORACLE_HOME = /u01/app/oracle/product/10.1.0/db_1)
    (SID_NAME = DEV10G)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.10)(PORT = 1521))
    tnsnames.ora
    ===========================================
    # tnsnames.ora Network Configuration File: /u01/app/oracle/product/10.1.0/db_1/n
    etwork/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    DEV10G =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.10)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = DEV10G)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    Here is the new problem!
    I start the dbconsole using the folowing command:
    [oracle@attila bin]$ ./emctl start dbconsole
    TZ set to US/Eastern
    Oracle Enterprise Manager 10g Database Control Release 10.1.0.2.0
    Copyright (c) 1996, 2004 Oracle Corporation. All rights reserved.
    http://attila.n3kje.net:5500/em/console/aboutApplication
    Starting Oracle Enterprise Manager 10g Database Control ........................
    ... started.
    Logs are generated in directory /u01/app/oracle/product/10.1.0/db_1/attila.n3kje
    .net_DEV10G/sysman/log
    When I try and access it from the client I get the following error message:
    "The database status is currently unavailable. It is possible that the database is in mount or nomount state. Click 'Startup' to obtain the current status and open the database. If the database cannot be opened, click 'Perform Recovery' to perform an appropriate recovery operation."
    What am I doing wrong this time?
    Your help would be greatly appreciated
    Thanks
    Renato

  • Unable to Connect to the database in RCU, Oracle11g XE on Laptop/Windows

    Software downloaded unzipped and installed from OTN
    OBIEE foundation 11.1.1.5
    Repository Creation Utility 11.1.1.5
    Oracle Database Express Edition 11.2
    Issues
    1. I installed Oracle 11g express edition. I am able to start/stop and run sql against the database however the homepage ("get started " accessed from Start > Programs > Oracle Database 11g XE > Get Started) does not work. This i will post in a separate thread but I am writing this anyway just in case it has some relevance.
    2, This is the one I need help with. Can you confirm that these are the parameters when I hit the "create" option in RCU because I get the error message saying I cannot connect.
    Hostname:This is the same as the hostname, when I go to cmd prompt like below
    C:>hostname<enter> That is what I am using.
    Port and Service :Can you confirm, Port = "1521" and Service = "XE". 1521 is the Database listener port when I installed Oracle 11g Database Express Edition. I am not putting the quotes in the boxes in the RCU.
    Should the service be OracleServiceXE - i have tried it but does not work.
    Anyway I get this message:
    Unable to connect to the database using the provided details.
    Please enter a valid hostname and port or check if the listener is up and running.
    Any ideas appreciated.
    By the way My lsnrctl status returns the following: (meaning the listeners are up!0
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\dir>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 13-MAR-2012 13:44
    :03
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Produ
    ction
    Start Date 13-MAR-2012 10:55:11
    Uptime 0 days 2 hr. 48 min. 51 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Default Service XE
    Listener Parameter File C:\oraclexe\app\oracle\product\11.2.0\server\network\a
    dmin\listener.ora
    Listener Log File C:\oraclexe\app\oracle\diag\tnslsnr\myspecifichostname\listene
    r\alert\log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=myspecifichostname)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=myspecifichostname)(PORT=8080)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Edited by: ideakat on Mar 13, 2012 1:57 PM

    Hi,
    Like Abhi said, check your tnsnames.ora file to check the port number and service name is correct or not for the Express Edition database you have installed.
    and when you are running RCU installer, Please give system adminstrator account of OracleXE like 'sys' or 'system' account with confirmed port number and service name.
    Hope this helps.
    Regards,
    Bose
    Edited by: Bose on Mar 16, 2012 11:42 AM
    Edited by: Bose on Mar 16, 2012 5:35 PM

  • Unable to connect to 10g database from developer suite 10g

    I have loaded oracle 10g on my server with OS windows 2003 and it is working fine.Now I have installed Oracle developer suite 10g on windows XP client . we have configured local listener also and its entry is found in tnsnames.ora
    My database name is mbxdata .
    I have defined my host name as
    MBXDATA.mbxnet.com in tnsnames but I am unable to connect to the database since I get error as ORA-12154 : TNS :could not resolve the connect identifier specified.
    Please suggest matter urgent.
    Thanks in advance

    We are having the same issue now. Was this ever resolved? We created 2 new databases and added those entries in both tnsnames on the local pc, and the tnsnames on the application server. Able to connect via sqlplus, toad, etc. but not through forms developer. We are running 10g app server, 10g developer suite, 10g databases. Any ideas?
    Thanks,
    Deb

  • Unable to connect to the database through OEM

    Hi,
    ORACLE VERSION: 10.2.0.1.0
    OPERATING SYSTEM:LINUX
    I was unable to connect to my database through OEM.It is showing error like this in my OEM .
    Enterprise Manager is not able to connect to the database instance. The state of the components are listed below.
    The below is the list of errors written in the trace file .
    2009-07-13 14:55:18,351 [EMUI_14_55_18_/console/aboutApplication] ERROR em.console doGet.311 - java.lang.IllegalStateException: Response has already been committed
    java.lang.IllegalStateException: Response has already been committed
         at com.evermind.server.http.EvermindHttpServletResponse.resetBuffer(EvermindHttpServletResponse.java:1901)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:211)
         at oracle.sysman.emSDK.svlt.PageHandler.render(PageHandler.java:773)
         at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:396)
         at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:688)
         at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:291)
         at oracle.sysman.eml.app.Console.doGet(Console.java:135)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(EMRedirectFilter.java:101)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
         at oracle.sysman.db.adm.inst.HandleRepDownFilter.doFilter(HandleRepDownFilter.java:123)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
         at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:239)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:793)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    2009-07-13 14:55:20,893 [HttpRequestHandler-25640626] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:20,925 [HttpRequestHandler-25640626] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:20,926 [HttpRequestHandler-25640626] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://VTL3200DB:3938/emd/main)(ERROR = INTERNAL_ERROR)
    2009-07-13 14:55:20,959 [HttpRequestHandler-23946437] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:20,990 [HttpRequestHandler-23946437] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:20,991 [HttpRequestHandler-23946437] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://VTL3200DB:3938/emd/main)(ERROR = INTERNAL_ERROR)
    2009-07-13 14:55:42,047 [OmsServiceDriver thread] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:51,030 [HttpRequestHandler-12767107] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:51,062 [HttpRequestHandler-12767107] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:51,063 [HttpRequestHandler-12767107] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://VTL3200DB:3938/emd/main)(ERROR = INTERNAL_ERROR)
    2009-07-13 14:55:51,096 [HttpRequestHandler-28346522] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:51,127 [HttpRequestHandler-28346522] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:51,127 [HttpRequestHandler-28346522] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://VTL3200DB:3938/emd/main)(ERROR = INTERNAL_ERROR)
    2009-07-13 14:56:21,162 [HttpRequestHandler-32110028] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:56:21,193 [HttpRequestHandler-32110028] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-01017: invalid username/password; logon denied
    2009-07-13 14:56:21,194 [HttpRequestHandler-32110028] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://VTL3200DB:3938/emd/main)(ERROR = INTERNAL_ERROR)
    2009-07-13 14:56:21,227 [HttpRequestHandler-12767107] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:56:21,258 [HttpRequestHandler-12767107] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-01017: invalid username/password; logon denied
    2009-07-13 14:56:21,259 [HttpRequestHandler-12767107] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://VTL3200DB:3938/emd/main)(ERROR = INTERNAL_ERROR)

    Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    Don't say password is correct, if password is correct then tell us what last changes you did. did you change SYSMAN password throught alter user ...identified ... ?
    Regards,
    Taj

Maybe you are looking for

  • I have mail Ver. 7 and I am having trouble syncing my work gmail account

    Hi, From the time I have upgraded to Mavericks, I am having trouble syncing my gmail emails. After the mail update my personal mail accounts from gmail are working fine but I am still having trouble with my office gmail account. I am receving new ema

  • Preauth ACL for Wired guest not working

    Hi Guys, I have 5508 wireless lan controller running code 7.2. We recently implemented Wired guest access on the WLC and configured necessary changes on the switch. We also have wireless guest profile as well configured on the WLC. We have some peopl

  • How to add cleaning process in BOM?

    In my process weekly cleaning is done but I have BOM which is created for per Brew.How can I add the cleaning components in my BOM,Should I create different BOM if yes then How can I connect associate the cost of components with reference to the orde

  • XmlNode.selectSingleNode(String pattern) - Java xml parser v.2

    Hi, I cannot understand how this method is supposed to be used :( I use it so: xmlNode.selectSingleNode("element[@name='some_name']") and I don't get a node as a result although I know such node exists. What the format of the pattern argument is supp

  • EAX on players or operating system without games in Win 7

    Can I turn on EAX in music or videoplayers or at the usual time with no games but on Win 7? In Win XP it was possible with the aid of a tool but in Win 7 no. Without EAX sounds like with worst quality as a bad sound card and would like to include the