Agent Connection to Instance error in Oracle Database 11G EM

Hi
I am getting the following error message when logging into EM on Oracle 11G Database.
Failed to connect to database instance: ORA-12541: TNS:no listener (DBD ERROR: OCIServerAttach).
Users can connect to the database no problem and it shows the Database Instance down, Agent Connection to Instance failed. The General tab shows green and the database is up.
I have checked the emctl status and lsnrctl commands and the listener is up and servicing the database. I checked the ORACLE_SID environment (in Windows Server 2003) and this is correct.
I have recently changed the passwords for SYSMAN and DBNSMP which were due to expire and since then the EM console has not loaded correctly.
As I said the database is up and can service users through their application.
Any help would be appreciated.
Respect.

Hi
The listener is up and is handling the database and users are connecting succesfully. I think it is more to do with the Enterprise Manager.
Can anyone give me some further info to troubleshoot?
Regards
Spencer

Similar Messages

  • Using php to connect to Oracle Database 11g Release 2 Enterprise Edition

    Greetings everyone!
    Please i dont know how to connect to Oracle Database 11g Release 2 Enterprise Edition with php even though i connected with php successfully with Oracle Database 11g Express Edition with the php code below. can someone help please...
    define('ORA_CON_UN', 'hr'); // User name
    define('ORA_CON_PW', 'Adlibs14$'); // Password
    define('ORA_CON_DB', '//localhost/XE'); // Connection identifier
    // use constants defined in anyco_cn.inc
    $conn = oci_pconnect(ORA_CON_UN, ORA_CON_PW, ORA_CON_DB);
    if (!$conn) {
    db_error(null, __FILE__, __LINE__);
    Edited by: user11273096 on Jul 14, 2011 3:41 PM

    Note that this forum is for XE Beta, not EE.
    Can you connect from some other client tool, such as sqlplus?
    There's a {forum:id=178} forum that may be more suitable, if basic connectivity outside php works (i.e. issue is only php specific).

  • Using php to connect to Oracle Database 11g Release 2 Enterprise Edition EE

    Greetings everyone!
    Please i dont know how to connect to Oracle Database 11g Release 2 Enterprise Edition with php even though i connected with php successfully with Oracle Database 11g Express Edition with the php code below. can someone help please...Note im referring to oracle EE not XE.
    define('ORA_CON_UN', 'hr'); // User name
    define('ORA_CON_PW', 'Adlibs14$'); // Password
    define('ORA_CON_DB', '//localhost/EE'); // Connection identifier
    // use constants defined in anyco_cn.inc
    $conn = oci_pconnect(ORA_CON_UN, ORA_CON_PW, ORA_CON_DB);
    if (!$conn) {
    db_error(null, __FILE__, __LINE__);
    Edited by: user11273096 on Jul 15, 2011 12:03 AM

    Find the hostname and service name of the database and use those values in the ORA_CON_DB constant.
    Use 'lsnrctl status' on the database host to find the service name.
    If you use a "tns" alias, you may need to create a tnsnames.ora file where PHP can access it.
    Set the environment variable TNS_ADMIN (on Linux) to the directory containing the file.
    See the section "Oracle Database Name Connection Identifiers" p 102 of the free book
    http://www.oracle.com/technetwork/topics/php/underground-php-oracle-manual-098250.html

  • ORA-12505: Database Instance and Agent Connection to Instance will not work

    Hi,
    I have the following error: in Oracle 10g I try to connect to OEM and the listener is up but the Database Instance and Agent Connection to Instance are down. When I attempt to restart the instance, OEM will just hang indefinitely. I have used tnsping and the results are OK. Is that descriptive enough? What can I do to fix this?
    regards,
    John

    I changed the SID because I was mistaken and thought of the oracle database name. I have corrected the ORACLE_SID to that given in my tnsnames.ora file which I post here:
    ORACLE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Lasirius-laptop)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = oracle)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    These are the default settings that were made on installation. I have been working with this installation for 2 months, and it just suddenly stopped working. I have changed no other settings apart from the mistaken ORACLE_SID environment variable in this post, which has now been changed to PLSExtProc. Here is my init.ora:
    # replace "clustdb" with your database name
    db_name = clustdb
    compatible=9.0.0
    db_files = 1024 # INITIAL
    #INITIAL
    #db_files=80
    #SMALL
    #DB_files=400
    #MEDIUM
    #db_files=1000
    #LARGE
    control_files = ("\\.\clustdb_control1", "\\.\clustdb_control2")
    db_file_multiblock_read_count = 8 # INITIAL
    # db_file_multiblock_read_count = 8
    #SMALL
    #db_file_multiblock_read_count = 16
    #MEDIUM
    #db_file_multiblock_read_count = 32
    #LARGE
    #Datawarehouse
    db_block_size=8192
    # Transaction processing
    # db_block_size=4096
    open_cursors=300
    #Transaction processing
    #sort_area_size=524288
    #Datawarehouse
    sort_area_size=1048576
    large_pool_size=1048576 #Transaction processing, Datawarehouse
    db_cache_size=50331648 #Datawarehouse, Transaction processing
    java_pool_size=67108864 #Datawarehouse, Transaction processing
    # db_block_buffers = 200 # INITIAL
    # db_block_buffers=100 #SMALL
    # db_block_buffers =550 # MEDIUM
    # db_block_buffers=3200 #LARGE
    #shared_pool_size = 52428800 # INITIAL
    shared_pool_size = 67108864 # datewarehouse, transaction processing
    log_checkpoint_interval = 10000
    processes = 59 # INITIAL
    # processes = 50
    #SMALL
    #processes = 100
    #MEDIUM
    #processes = 200
    #LARGE
    parallel_max_servers = 5
    #SMALL
    # parallel_max_servers = 4 x (number of CPUs)
    #MEDIUM
    # parallel_max_servers = 4 x (number of CPUs)
    # LARGE
    log_buffer = 8192 # INITIAL
    #log_buffer = 8192
    #SMALL
    #log_buffer = 32768
    #MEDIUM
    #log_buffer = 163840
    #LARGE
    # audit_trail = true # if you want auditing
    # timed_statistics = true # if you want timed statistics
    max_dump_file_size = 10240 # limit trace file size to 10 K each
    # Uncommenting the line below will cause automatic archiving if archiving has
    # been enabled using ALTER DATABASE ARCHIVELOG.
    # log_archive_start = true
    # log_archive_dest = %ORACLE_HOME%/admin/clustdb/arch
    # log_archive_format = "%%ORACLE_SID%%T%TS%S.ARC"
    # If using private rollback segments, place lines of the following
    # form at the end of this file:
    # <sid>.rollback_segments = (name1, name2)
    # If using public rollback segments, define how many
    # rollback segments each instance will pick up, using the formula
    # # of rollback segments = transactions / transactions_per_rollback_segment
    # In this example each instance will grab 40/10 = 4:
    # transactions = 40
    # transactions_per_rollback_segment = 10
    # Global Naming -- enforce that a dblink has same name as the db it connects to
    global_names = TRUE
    # Edit and uncomment the following line to provide the suffix that will be
    # appended to the db_name parameter (separated with a dot) and stored as the
    # global database name when a database is created. If your site uses
    # Internet Domain names for e-mail, then the part of your e-mail address after
    # the '@' is a good candidate for this parameter value.
    # db_domain = us.acme.com # global database name is db_name.db_domain
    # Uncomment the following line if you wish to enable the Oracle Trace product
    # to trace server activity. This enables scheduling of server collections
    # from the Oracle Enterprise Manager Console.
    # Also, if the oracle_trace_collection_name parameter is non-null,
    # every session will write to the named collection, as well as enabling you
    # to schedule future collections from the console.
    # oracle_trace_enable = TRUE
    # define directories to store trace and alert files
    background_dump_dest=%ORACLE_HOME%/admin/clustdb/bdump
    user_dump_dest=%ORACLE_HOME%/admin/clustdb/
    db_block_size = 4096
    remote_login_passwordfile = exclusive
    # text_enable = TRUE
    # The following parameters are needed for the Advanced Replication Option
    job_queue_processes = 2
    # job_queue_processes = 4 #datawarehouse
    # job_queue_interval = 10
    # job_queue_keep_connections = false
    distributed_transactions = 5
    open_links = 4
    # The following parameters are instance-specific parameters that are
    # specified for two instances named clustdb1 and clustdb2
    undo_management=AUTO # For automatic undo management
    # = MANUAL For manual/RBS undo management
    cluster_database= true
    cluster_database_instances=2
    remote_listener=LISTENERS_CLUSTDB
    # First instance specific parameters
    clustdb1.thread=1
    clustdb1.instance_name=clustdb1
    clustdb1.instance_number=1
    clustdb1.local_listener=listener_clustdb1
    clustdb1.remote_login_passwordfile = exclusive
    # Comment out clustdb1.undo_tablespace and uncomment clustdb1.rollback_segments
    # when undo_management=MANUAL
    clustdb1.undo_tablespace = UNDOTBS1
    # clustdb1.rollback_segments = (rbs1_1,rbs1_2)
    # Second instance specific parameters
    clustdb2.thread=2
    clustdb2.instance_name = clustdb2
    clustdb2.instance_number = 2
    clustdb2.local_listener = listener_clustdb2
    clustdb2.remote_login_passwordfile = exclusive
    # Comment out clustdb2.undo_tablespace and uncomment clustdb2.rollback_segments
    # when undo_management=MANUAL
    clustdb2.undo_tablespace = UNDOTBS2
    # clustdb2.rollback_segments = (rbs2_1,rbs2_2)

  • Database Instance down Agent Connection to Instance down

    Hi
    I have installed Oracle 10g on Windows XP SP2 and i m new to Oracle 10g.
    In Oracle Enterprise manager I have
    1. database instance Down
    2. Listener is UP
    3. Agent Connection to Instance is Down and giving an error
    ORA-12505: TNS:listener does not currently know of SID given in connect scriptor (DBD ERROR: OCIServerAttach)
    I m unable to connect through sql*plus command window it gives protocol adapter error
    But I am able to connect through windows command prompt
    but each time when i connect through it i have to set sid by command
    set ORACLE_SID=orcl10g
    I m also not able to use isqlplus
    what should i do
    pleease help me

    I tried ur suggestion and the command i typed are here
    C:\Documents and Settings\tony>sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Apr 2 15:05:01 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> conn / as sysdba
    Connected.
    SQL>
    but problem is same database instance is down Agent Connection to Instance is down and listener is up.

  • Agent Connection to Instance Unavailable

    Win2k3 64 bit
    Oracle Database 10g Release 10.2.0.5.0 - 64bit Production
    I brought up a new 10.2.0.5.0 db on Win2k3 64 bit server. Everything is working fine, at least it seems so. This server has been running for 2 months now and this issue kept coming up in the last 2 months.
    Database Instance status is Open
    Listener status is Up
    General status is Up
    Agent Connection to Instance is Unavailable.
    Users SYSMAN and DBSNMP are OPEN.
    This will be the 3rd time in the last 2 months if I rebuild EMCA again.
    Is anyone else besides me experiencing this issue? Why is this happening and how do I fix it permanently?

    1.Post the output of :
    SQL> select global_name from global_name;
    SQL> show parameter db_domain;
    2.lsnrctl service
    3.lsnrctl status
    4.Did you change the hostname?
    5.Is timezon of agent and console the same?
    6.In the file $AGENT_HOME/sysman/config/emd.properties, make sure the following parameters are correct. Obtain the values from $OMS_HOME/sysman/config/emd.properties
    1. REPOSITORY_URL
    2. emdWalletSrcUrl
    3. emdWalletDest (ensure that this destination is present on your management server).
    7.If you're using Data Guard in 11g for primary/standby configuration, you may want to check the Data Guard configuration status. With this type of error, it's usually caused by the database parameter setting for log archive that differs with the Data Guard config for log transport and apply. For example, if the local archive log destination on the primary is pointing to the standby site instead of local archive directory (or local flash_recovery_area), The GC will generate this error and blank out the options for database instance in GC.
    I am just pasting the above texts from different forum link when I just said "Agent Connection to Instance Unavailable" to google.
    Regards
    Girish Sharma

  • Not able to connect to oracle database 11g from application server10g

    Hello,
    I have installed oracle database 11g. We are using forms and report services through application server 10g. I have add required entries in tnsnames.ora file. But I am not able to connect to database. I am getting following error:
    ORA-12514-TNS:listener does not currently know of service requested in connect descriptor
    Please help me.
    Thanks
    Trusha

    lsnrctl status...
    oracle@orcl11gd:~> lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 13-FEB-2013 09:16:06
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date 11-FEB-2013 12:40:23
    Uptime 1 days 20 hr. 35 min. 42 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /opt/oracle/product/11gR2/db/network/admin/listener.ora
    Listener Log File /opt/oracle/diag/tnslsnr/orcl11gd/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=orcl11gd.irma.ac.in)(PORT=1521)))
    Services Summary...
    Service "orcl11gd.irma.ac.in" has 1 instance(s).
    Instance "orcl11gd", status READY, has 1 handler(s) for this service...
    Service "orcl11gdXDB.irma.ac.in" has 1 instance(s).
    Instance "orcl11gd", status READY, has 1 handler(s) for this service...
    The command completed successfully
    oracle@orcl11gd:~>
    tnsnames.ora
    # tnsnames.ora Network Configuration File: /opt/oracle/OraBi/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    REP_ASDEMO_ORABI.IRMA.AC.IN =
    (ADDRESS = (PROTOCOL = tcp)(HOST = asdemo)(PORT = 1950))
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = asdemo.irma.ac.in)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = PLSExtProc)
    ORCLDEMO =
         (DESCRIPTION =
              (ADDRESS_LIST =
                   (ADDRESS = (PROTOCOL = TCP) (HOST = 172.16.11.80)(PORT = 1521))
              (CONNECT_DATA =
                   (SERVICE_NAME = ORCLDEMO)
                   (SERVER = DEDICATED)
    ORCL11GD =
         (DESCRIPTION =
              (ADDRESS_LIST =
                   (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.100.180)(PORT = 1521))
              (CONNECT_DATA =
                   (SERVICE_NAME = ORCL11GD)
                   (SERVER = DEDICATED)
         )

  • Oracle Database 11g Installation Issue: ORA-12560:TNS: protocol adapter error.

    Folks,
    Hello. Initially, my Windows XP host name is "localhost" and IP address 127.0.0.1.
    I installed Oracle Database 11g with Windows XP successfully and all Database clients work with Database instance correctly.
    For some reasons, I uninstalled the entire Database Server and delete the entire installation directory /oracle.
    I configured Windows XP IP address into 192.168.196.101 in order to ping other machines.
    For my need, I installed Oracle Database 11g with Windows XP again. On step 7 of 8: Oracle Database Configuration Assistant, I got this error:
    ORA-12560:TNS: protocol adapter error.
    I click "Password Management" button, there are no rows in this Windows (no username, no lock accounts).
    I check listener as below:
    C:\>lsnrctl
    LSNRCTL>start
    Its output: listener name LISTENER has already been started.
    LSNRCTL>status
    Its output: ......Service DB1 has 1 instance. Instance DB1 status ready. The command completed successfully.
    I check \Oracle\cfgtoollogs\dbca\DB1\trace file, the entry is :
    listen[0]=LISTENER address=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(port=1522))
    I also check \oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN\SAMPLE\tnsnames.ora file and listener.ora file, the entries are the same as below
    HOST=localhost  port=1522
    I think HOST=localhost and port=1522 is the cause of the error ORA-12560 because Windows XP has been configured into HOST=192.168.196.101.
    But I don't understand how to solve this issue.
    Can any folk tell me how to solve this issue ? need to cancel the installation on step 7 of 8 and install it again ?
    Thanks.

    Folks,
    Hello. Oracle Database 11g Installation Wizard is on step 7 of 8. I don't cancel the Wizard. I am not sure whether there is effect or not. listener.ora is not removed. I have been waiting for a while after stop listener.  I run the 3 commands again and copy the result as below:
    C:\>lsnrctl stop
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 14-AUG-2013 19:32
    :14
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1522)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
      TNS-00511: No listener
       64-bit Windows Error: 2: No such file or directory
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1522)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
      TNS-00511: No listener
       64-bit Windows Error: 61: Unknown error
    C:\>
    C:\>
    C:\>
    C:\>
    C:\>
    C:\>lsnrctl start
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 14-AUG-2013 19:33
    :04
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Starting tnslsnr: please wait...
    TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Production
    System parameter file is C:\SecondTime_OracleDatabase_Install_Directory\product\
    11.2.0\dbhome_1\network\admin\listener.ora
    Log messages written to c:\secondtime_oracledatabase_install_directory\diag\tnsl
    snr\user-19yyar8x0d\listener\alert\log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1522
    ipc)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1522)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1522)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Produ
    ction
    Start Date                14-AUG-2013 19:33:07
    Uptime                    0 days 0 hr. 0 min. 3 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   C:\SecondTime_OracleDatabase_Install_Directory\product
    \11.2.0\dbhome_1\network\admin\listener.ora
    Listener Log File         c:\secondtime_oracledatabase_install_directory\diag\tn
    slsnr\user-19yyar8x0d\listener\alert\log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1522ipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1522)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    C:\>
    C:\>
    C:\>
    C:\>
    C:\>lsnrctl service
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 14-AUG-2013 19:36
    :37
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1522)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0
             LOCAL SERVER
    Service "DB1XDB" has 1 instance(s).
      Instance "DB1", status READY, has 1 handler(s) for this service...
        Handler(s):
          "D000" established:0 refused:0 current:0 max:1022 state:ready
             DISPATCHER <machine: user-19YYAR8X0D, pid: 120>
             (ADDRESS=(PROTOCOL=tcp)(HOST=user-19yyar8x0d)(PORT=1051))
    Service "DB1" has 1 instance(s).
      Instance "DB1", status READY, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:19 refused:0 state:ready
             LOCAL SERVER
    The command completed successfully
    C:\>
    As we see, listener.ora file is not removed by Stop command. I am on the installation Wizard. How to solve this issue ?
    Thanks.

  • [b]Unable to connect a Jdbc Program to Oracle database.[/b]

    Hi all,
    i am able to access Oracle database from server to my machine(client) without any connectivity of java.now,I am trying to connect my java program to Oracle database. i have no idea about any other driver.when i am trying to execute this code then it is showing fatal error: java.sql.SQLException: No suitable driver
         at java.sql.DriverManager.getConnection(Unknown Source)
    my code is here.if anyone is having idea then plz sort out it.
    Thanks n Regards,
    Abhi
    class Jdbc{   public static void main (String args [])throws SQLException, IOException{
    System.out.println ("Loading Oracle driver...");
         try {
         Class.forName ("sun.jdbc.odbc.JdbcOdbc");
           System.out.println("Driver Loaded!");}
         catch (ClassNotFoundException e) {
         System.out.println ("Could not load the driver");
         e.printStackTrace (); }
    System.out.println ("Connecting to the Oracle database...");
    String url = "Jdbc:Odbc:[email protected]:1521:rf","scott","tiger"
    //10.10.0.78 is oracle server IP address and rf is oracle instance.
    Connection conn = DriverManager.getConnection(url);

    Hi all,
    i am able to access Oracle database from server to my
    machine(client) without any connectivity of
    java.now,I am trying to connect my java program to
    Oracle database. i have no idea about any other
    driver.when i am trying to execute this code then it
    is showing fatal error: java.sql.SQLException: No
    suitable driver
    at java.sql.DriverManager.getConnection(Unknown
    n Source)
    my code is here.if anyone is having idea then plz
    sort out it.
    Thanks n Regards,
    Abhi
    class Jdbc{   public static void main (String args
    [])throws SQLException, IOException{
    System.out.println ("Loading Oracle driver...");
         try {
         Class.forName ("sun.jdbc.odbc.JdbcOdbc");
           System.out.println("Driver Loaded!");}
         catch (ClassNotFoundException e) {
         System.out.println ("Could not load the driver");
         e.printStackTrace (); }
    System.out.println ("Connecting to the Oracle
    database...");
    String url =
    "Jdbc:Odbc:[email protected]:1521:rf","scott","tiger"
    //10.10.0.78 is oracle server IP address and rf is
    oracle instance.
    Connection conn = DriverManager.getConnection(url);
    Hi , I dont know if u got the answer but couple of things i wanted to let u know.
    1. the driver u r using make it a thin driver as u r specifying that in the url .
    http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/winsoft.html
    loading class 'oracle.jdbc.driver.OracleDriver'
    and url u have to change a little, this depends on the driver u use.
    "jdbc:oracle:thin:@balrog:1521:testJdbc"
    Regards,
    Lakshmi Narayana
    /********************* the code which i have tested **************************/
    public class Jdbc {
         * @param args
         public static void main(String[] args)     throws SQLException, IOException{
                   System.out.println ("Loading Oracle driver...");
                        try {
                        Class.forName ("oracle.jdbc.driver.OracleDriver");
                        System.out.println("Driver Loaded!");}
                        catch (ClassNotFoundException e) {
                        System.out.println ("Could not load the driver");
                        e.printStackTrace (); }
                   System.out.println ("Connecting to the Oracle database...");
                   String url = "\"Jdbc:Odbc:[email protected]:1521:rf\",\"scott\",\"tiger\"";
    //               10.10.0.78 is oracle server IP address and rf is oracle instance.
                   Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@balrog:1521:testJdbc","ispsapp","ispsappbalrog");
                   Statement st = conn.createStatement();
                   ResultSet rs = st.executeQuery("select * from BC_PMT_APPLN");
                   if (rs.next()){
                        System.out.println("Column Count ="+rs.getMetaData().getColumnCount());
    }

  • Agent Connection to Instance - Failed  ORA-12541

    Hi folks, I recently changed the SID (but not name) of my database. Everything has been working great, but I get the following error message in OEM after it's been running for about 10 minutes:
    Agent Connection to Instance
    Status Failed
    Details Failed to connect to database instance: ORA-12541: TNS:no listener (DBD ERROR: OCIServerAttach).
    Since everything else is running fine (everything else in OEM is working fine, network connections via SQL Developer, Toad, JDBC, I'm not sure where to look.
    I also have a second server running (on which I haven't changed the SID) to compare to. Outputs of lsnrctl services, the tnsnames.ora file, and everything else seems to line up.
    I'd be happy to post anything that might be useful, thanks very much!

    Hello,
    recently I was hitting the same problem:
    Listener Status: Up
    Agent Connection to Instance Status: Failed
    Details          Failed to connect to database instance: ORA-12541: TNS:no listener (DBD ERROR: OCIServerAttach).
    It turns out that the message is misleading and the problem lies in the locked dbsnmp account. I resolved that through
    Grid Control / Targets / Search List / (Select DB with problems) -> Configure
    where it showed the following error:
    "java.sql.SQLException: ORA-28000: the account is locked The Connect Descriptor was (description=(address=(host=xx)(protocol=tcp)(port=xxxx))(connect_data=(service_name=xx)(instance_name=xx)(UR=A)))
    Change dbsnmp Password - The error message shown above indicates that the agent is unable to monitor this database because the agent cannot logon. To correct this, the Monitor Password needs to match the corresponding database password for dbsnmp. To change both the dbsnmp database password and the Monitor Password, click the Change dbsnmp Pasword button. This operation will also unlock the dbsnmp user."
    It is possible to change the password from that dialog what I did. It is working fine now.
    I do not know if the problem lies in accout locked or wrong password after all, but repeating the configuration resolved the case.
    Greetings
    Remigiusz Boguszewicz

  • Unable to connect to the informatica repository on oracle database 11g

    hi all,
    i have installed OBI Apps 7.9.6.0 with informatica 8.6.0 and no hotfix.
    Now the problem is , when i create a repository service i get the error
    " The service did not start due to the following error: *Unable to connect to the repository Oracle_BI_DW_Base on database* . " here Oracle_BI_DW_Base is also the name of my .rep repository that came with OBI APPS installation.
    i have oracle database 11g installed and also created respective user for repository of informatica.
    what should i do in this case??
    plz help

    Good Morning.
    I had the same problem and I had the same IE 6, the problem was the translation between the IE6 from http and https, to solve it you just need to open your url typing
    https:url:port, do no forget to put the s after the http, with this my problem was solved.
    best regards.
    Digudi - São Paulo - Brazil
    Edited by: user12267194 on 24/11/2009 05:37
    Edited by: user12267194 on 24/11/2009 05:38
    Edited by: user12267194 on 24/11/2009 05:38

  • Hyperion errors after installing Oracle Database 11G

    Hello,
    The company I work for has a bunch of Oracle databases available, two which I connect to (use to connect to). I have multiple applications that I use to connect to these databases, Hyperion Interactive Reporting Studio 9.3.1 being one of them. I'm using Windows XP as my client.
    I made the mistake of installing Oracle Database 11G Express Edition and now I cannot connect to any of the database using my applications, but I can connect to the same databases using SQL Developer. When I try connectiing using Hyperion, I get "SQL NATIVE ERROR [12504] SQL MESSAGE [[INTERSOLV][ODBC ORACLE 8 DRIVER][ORACLE 8][ORA-12504; TNS LISTERNER WAS NOT GIVEN THE SERVICE_NAME IN CONNECT DATA".
    When connectiing using other company applications, which use the same database, i get "IM006: [INTERSOLV][ODBC ORACLE 8 DRIVER] DRIVERS SQLSETCONNECTATTRFAILED. UNABLE TO CONNECT TO DATABASE. CHECK USER NAME AND PASSWORD AND TRY AGAIN"
    I'm assuming that I updated a driver or registry setting and I need to know how to reverse . I also copied a tnsnames and listerner from an associates computer and placed it in the same location on my computer, but this has not helped at all, even after rebooting the computer.
    I even double checked and logged onto anothe computer and I can connect to the database using these same applications, so I definetly messed something up locally on my computer.
    Any help is appreciated. Joe.

    Probably you could solve odbc driver issues by removing the PATH entry from XE installation.
    It looks something like:
    Path=C:\oracle\oraclexe\app\oracle\product\11.2.0\server\bin;<remaining paths>
    In system variabels settings, edit PATH to remove the "oraclexe" path and semicolon, leaving only <remaining paths>.
    However, removing it will likely have an affect on XE usage. But that may be preferred over other apps working.
    Edited by: orafad on Oct 12, 2011 2:55 PM

  • Forms 6i don't connect to Oracle Database 11g.

    Hi people, I'm having a great problem, first I have a old server runing Red Hat with oracle 10g XE, this oracle XE is almost full, so I need to install Oracle Database 11g XE to get more space in another server, this another server is runing windows server 2003, I did it tow time in tow diferent server, a restore for migration is all right, the problem is when I try to connect forms6i to the database 11g XE, forms only closed without no error message...
    Some one has some help?
    Regards,

    Also take a peek at some of the compatibility settings within 11g XE. You can get it to act like 10g XE regarding password caps vs lower case and such. We've been able to get a client/server forms/reports app (patch 18) to connect to and run just fine to 11g XE.

  • SQL Developer Oracle Database 11g XE error

    Hi,
    I'm trying to create a new connection in SQL Developer Version 3.2.20.09 to Oracle Database 11g XE but I keep on encountering the error "Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection".
    I type the commands below in command prompt.
    lsnrctl stop
    lsnrctl start
    lsnrctl status
    lsnrctl service
    set
    Below are the results in Command Prompt:
    C:\Users\paul.john.s.calzado>lsnrctl stop
    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 05-APR-2013 17:58
    :52
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    32-bit Windows Error: 2: No such file or directory
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MW74Q2YZ4X4F09.dir.svc.a
    ccenture.com)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 1004: Unknown error
    C:\Users\paul.john.s.calzado>lsnrctl start
    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 05-APR-2013 17:58
    :57
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Starting tnslsnr: please wait...
    TNS-12560: TNS:protocol adapter error
    TNS-00530: Protocol adapter error
    C:\Users\paul.john.s.calzado>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 05-APR-2013 17:59
    :01
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    32-bit Windows Error: 2: No such file or directory
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MW74Q2YZ4X4F09.dir.svc.a
    ccenture.com)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 1004: Unknown error
    C:\Users\paul.john.s.calzado>lsnrctl service
    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 05-APR-2013 17:59
    :05
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    32-bit Windows Error: 2: No such file or directory
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MW74Q2YZ4X4F09.dir.svc.a
    ccenture.com)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 1004: Unknown error
    C:\Users\paul.john.s.calzado>set
    ALLUSERSPROFILE=C:\ProgramData
    APPDATA=C:\Users\paul.john.s.calzado\AppData\Roaming
    CommonProgramFiles=C:\Program Files\Common Files
    CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
    CommonProgramW6432=C:\Program Files\Common Files
    COMPUTERNAME=MW74Q2YZ4X4F09
    ComSpec=C:\windows\system32\cmd.exe
    FP_NO_HOST_CHECK=NO
    HOMEDRIVE=C:
    HOMEPATH=\Users\paul.john.s.calzado
    LOCALAPPDATA=C:\Users\paul.john.s.calzado\AppData\Local
    LOGONSERVER=\\MRCDC1801
    NUMBER_OF_PROCESSORS=4
    OS=Windows_NT
    Path=C:\oraclexe\app\oracle\product\11.2.0\server\bin;;C:\windows\system32;C:\wi
    ndows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    PROCESSOR_ARCHITECTURE=AMD64
    PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 37 Stepping 2, GenuineIntel
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=2502
    ProgramData=C:\ProgramData
    ProgramFiles=C:\Program Files
    ProgramFiles(x86)=C:\Program Files (x86)
    ProgramW6432=C:\Program Files
    PROMPT=$P$G
    PSModulePath=C:\windows\system32\WindowsPowerShell\v1.0\Modules\
    PUBLIC=C:\Users\Public
    SESSIONNAME=Console
    SYSDRIVE=%SYSTEMFOLDER%
    SystemDrive=C:
    SystemRoot=C:\windows
    TEMP=C:\Users\PAULJO~1.CAL\AppData\Local\Temp
    TMP=C:\Users\PAULJO~1.CAL\AppData\Local\Temp
    UATDATA=C:\windows\SysWOW64\CCM\UATData\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77
    USERDNSDOMAIN=DIR.SVC.ACCENTURE.COM
    USERDOMAIN=DIR
    USERNAME=paul.john.s.calzado
    USERPROFILE=C:\Users\paul.john.s.calzado
    windir=C:\windows
    windows_tracing_flags=3
    windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log
    C:\Users\paul.john.s.calzado>
    Below is the ping results as well:
    C:\Users\paul.john.s.calzado>ping localhost
    Pinging MW74Q2YZ4X4F09.dir.svc.accenture.com [127.0.0.1] with 32 bytes of data:
    Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    Ping statistics for 127.0.0.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
    C:\Users\paul.john.s.calzado>tnsping localhost
    TNS Ping Utility for 32-bit Windows: Version 11.2.0.2.0 - Production on 05-APR-2
    013 18:07:46
    Copyright (c) 1997, 2010, Oracle. All rights reserved.
    Used parameter files:
    C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\sqlnet.ora
    Used HOSTNAME adapter to resolve the alias
    Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROTO
    COL=TCP)(HOST=127.0.0.1)(PORT=1521)))
    TNS-12541: TNS:no listener

    JP wrote:
    I type the commands below in command prompt.Use the View local services control panel to start the XETNSListener service, if command line is not working for you.
    >
    lsnrctl stop
    lsnrctl startThose two cmmands, on any recent Win variants, needs a elevated privs command prompt i.e started with Run as administrator...
    to avoid below error.
    C:\Users\paul.john.s.calzado>lsnrctl start
    Starting tnslsnr: please wait...
    TNS-12560: TNS:protocol adapter error
    TNS-00530: Protocol adapter error
    Used HOSTNAME adapter to resolve the alias
    Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROTO
    COL=TCP)(HOST=127.0.0.1)(PORT=1521)))
    TNS-12541: TNS:no listenerAs long as you have "no listener", you can't expect to connect from SQL Developer or any other client.

  • Error while opening Oracle Database 11g Express Edition after installation.

    After finishing the installation of Oracle database 11g Express Edition, when I tried to open it, it shows following error : windows cannot find `http://127.0.0.1:%HTTPPORT%/apex/f?p=4950`.Make sure you typed the name coorectly, and then try again.
    What the above error means? I followed the installation steps as given in the link.

    Hi,
    Follow thread may help you.
    <<Newbie on running Oracle 11g - Windows cannot find http:something
    Regards,

Maybe you are looking for

  • Boot Camp 3 Nightmare - External Hard Drive

    Ok, so I install Snow Leopard and updated Boot Camp to version 3. Half the drivers failed to install for some reason.. I restarted and was greeted by a message: 'Windows is missng hal.dll please re-install' I didn't mind much I just wiped Windows and

  • Using regr_slope in sql query

    Hi , I have one question on predicting the sale for next 5 years  along with month  the data as follows. YEAR  Month  Total_Sale 2009    1          88187 2009     2         87654 2009     3         87656 2008     1         10000 2008     2          3

  • Question on Verbose GC output - JVM 1.5 on Solaris

    Hi, I noticed quite a few instances of the following lines in verbose gc file before the garbage collection. The output snippet is pasted below. Application time: 4.1012270 seconds Total time for which application threads were stopped: 0.0005752 seco

  • Custom CCMS metrics and alert in solman 7.1

    Friends, I have created custom CCMS metrics and alert in solman 7.1 as per below document. http://wiki.scn.sap.com/wiki/download/attachments/269157890/How+to+create+custom+CCMS+metrics+in+MAI.pdf?original_fqdn=w- I am getting the alerts generating in

  • Problem Installing Microsoft Visual Studio Professional 2010 in my laptop ( OS: Windows 8.1 64bit )

    hi staff of microsoft or anybody,                     I have problem installation of VS pro in my laptop windows 8.1 (64bits) using web installer and offline unzipping iso. BTW i have VS 2013 installed in my computer at the moment. Before i upgrade f