Dial-Up Connection to remote Database through a Form

Dear Friends,
I want to call a Dial-up(Windows 95/98)connection through a form.
Hove can I do it.
If you have any idea please send me [email protected]
Thanks and best Regds.
Thusitha

Is the SQLPlus that you use on your client machine or on your middle tier. Make sure to try it from the client machine on which JDeveloper is installed.
If you still find the problem only in JDev it might be a bug, use http://metalink.oracle.com to report it.

Similar Messages

  • Can i connect to the database through the internet

    hi all
    i installed a database oracle 8i enterprise edition on a pc that exists in a town far from me . i wonder can i connect to this database through the internet from my house
    please i need a answer
    thanks in advance

    You can connect from an Oracle client to any Oracle database in the world that meets certain requirements.
    First you need an open network connection between the two points so either no firewall exists between the two stations or the firewall(s) have been configured to allow Oranet traffic. This means both databases must have access to the Internet and certain ports are open.
    Second you will need the IP address and port for the remote listener, which in turn must be up and running on the target server.
    Then you must have the Service Name or SID and a valid username/password combination for the target database. Plus the username must have create session privilege.
    That should be about it.
    HTH -- Mark D Powell --

  • NSV0: Failed to connect to remote database orcl. Error is ORA-12514

    sGetting error on data guard broker configuration. redologs shiping properly, withot any problems.
    Database: 11gR2 , Linux 64-bit
    [root@redhat ~]# su - oracle
    [oracle@redhat ~]$ sqlplus /nolog
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Jun 18 17:39:07 2010
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    SQL> connect /as sysdba
    Connected.
    SQL> connect sys/oracle@primarydb as sysdba
    Connected.
    SQL> connect sys/oracle@physicaldb as sysdba
    Connected.
    SQL>
    */etc/hosts file contents on all nodes*
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1     localhost.localdomain     localhost
    192.168.1.232     redhat          redhat
    192.168.1.234 rac1          rac1
    primary database (drcorcl.log)
    2010-06-18 17:41:39.972 02010001 1362743835 DMON: CTL_GET_STATUS forwarded to site physicaldb for processing
    2010-06-18 17:41:41.044 NSV1: Site physicaldb returned ORA-16664.
    2010-06-18 17:41:41.045 02010001 1362743821 DMON: Database physicaldb returned ORA-16664
    2010-06-18 17:41:41.045 02010001 1362743821 for opcode = CTL_GET_STATUS, phase = NULL, req_id = 1.1.1362743821
    2010-06-18 17:41:41.045 02010001 1362743821 DMON: CTL_GET_STATUS operation completed
    2010-06-18 17:41:41.050 01000000 1362743836 DMON: MON_PROPERTY operation completed
    2010-06-18 17:41:41.054 01010001 1362743837 DMON: MON_PROPERTY operation completed
    2010-06-18 17:41:41.058 01010001 1362743838 DMON: MON_PROPERTY operation completed
    2010-06-18 17:41:41.062 01010001 1362743839 DMON: CTL_GET_STATUS operation completed
    2010-06-18 17:41:56.045 NSV1: Site physicaldb returned ORA-16664.
    2010-06-18 17:41:56.045 02010001 1362743835 DMON: Database physicaldb returned ORA-16664
    2010-06-18 17:41:56.045 02010001 1362743835 for opcode = CTL_GET_STATUS, phase = NULL, req_id = 1.1.1362743835
    2010-06-18 17:41:56.046 02010001 1362743835 DMON: CTL_GET_STATUS operation completed
    physical standby database (drcorcl.log)
    2010-06-17 00:41:30.410 drcx: could not find task req_id=1.1.1362743821 for PROBE.
    2010-06-17 00:41:45.411 drcx: could not find task req_id=1.1.1362743835 for PROBE.
    2010-06-17 00:42:00.546 NSV0: Failed to connect to remote database orcl. Error is ORA-12514
    2010-06-17 00:42:00.547 NSV0: Failed to send message to site orcl. Error code is ORA-12514.
    2010-06-17 00:42:00.547 DMON: Database orcl returned ORA-12514
    2010-06-17 00:42:00.547 for opcode = HEALTH_CHECK, phase = BEGIN, req_id = 1.1.1362743840
    2010-06-17 00:42:15.414 drcx: could not find task req_id=1.1.1362743840 for PROBE.
    2010-06-17 00:43:15.548 NSV0: Failed to connect to remote database orcl. Error is ORA-12514
    2010-06-17 00:43:15.549 NSV0: Failed to send message to site orcl. Error code is ORA-12514.
    2010-06-17 00:43:15.549 DMON: Database orcl returned ORA-12514
    2010-06-17 00:43:15.549 for opcode = HEALTH_CHECK, phase = BEGIN, req_id = 1.1.1362743841
    Standby Lintener file contents
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = rac1)(PORT = 1521))
    ADR_BASE_LISTENER = /oradisk/oracle
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DNAME = physicaldb)
    (ORACLE_HOME = /oradisk/oracle/product/11.2.0/db)
    (SID_NAME = orcl)
    (SID_DESC =
    (GLOBAL_DNAME = physicaldb_DGMGRL)
    (ORACLE_HOME = /oradisk/oracle/product/11.2.0/db)
    (SID_NAME = ORCL)
    Primary database Listener contents
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.232)(PORT = 1521))
    ADR_BASE_LISTENER = /oradisk/oracle
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DNAME = orcl)
    (ORACLE_HOME = /oradisk/oracle/product/11.2.0/db)
    (SID_NAME = orcl)
    (SID_DESC =
    (GLOBAL_DNAME = orcl_DGMGRL)
    (ORACLE_HOME = /oradisk/oracle/product/11.2.0/db)
    (SID_NAME = orcl)
    TNSNAMES.ora on all nodes
    PRIMARYDB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.232)(PORT = 1521)))
    (CONNECT_DATA =(SID = orcl))
    LISTENER_PHYSICALDB =(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.234)(PORT = 1521))
    PHYSICALDB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.234)(PORT = 1521)) )
    (CONNECT_DATA =(SID = orcl))
    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.232)(PORT = 1521)))
    (CONNECT_DATA =(SERVER = DEDICATED)(SID = orcl) )
    )

    Don't use the old syntax 'SID=...' in tnsnames.ora, use 'SERVICE_NAME=...' . Make sure 'SERVICE_NAME' is exactly the same returned by 'lsnrctl status' on both nodes.
    Primary and standby cannot talk to each other currently through the listener:
    ORA-16664: unable to receive the result from a database
    Cause: During execution of a command, a database in the Data Guard broker
    configuration failed to return a result.
    Action: Check Data Guard broker logs for the details of the failure. Fix any
    possible network problems and try the command again.
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Cause: The listener received a request to establish a connection to a database or other service. The connect descriptor received by the listener specified a service name for a service (usually a database service) that either has not yet dynamically registered with the listener or has not been statically configured for the listener. This may be a temporary condition such as after the listener has started, but before the database instance has registered with the listener.
    Action: - Wait a moment and try to connect a second time.
    - Check which services are currently known by the listener by executing: lsnrctl services <listener name>
    - Check that the SERVICE_NAME parameter in the connect descriptor of the net service name used specifies a service known by the listener.
    - If an easy connect naming connect identifier was used, check that the service name specified is a service known by the listener.
    - Check for an event in the listener.log file.
    Werner

  • Connect to Remote Database - ORA-12154

    When attempting to use OCI to attach to a remote database I cannot resolve the service name.
    However, I am able to connect using tnsping.
    Example output is:
    bash-2.03$ bin/msgoptim mo password mo
    Message Optimiser - Version 1.0
    Oracle DB Initialising
    Database Access Error - ORA-12154: TNS:could not resolve service name
    Abort (core dumped)
    bash-2.03$ tnsping mo
    TNS Ping Utility for Solaris: Version 8.1.7.0.0 - Production on 03-APR-2003 11:28:14
    (c) Copyright 1997 Oracle Corporation. All rights reserved.
    Attempting to contact (ADDRESS=(PROTOCOL=TCP)(HOST=qld)(PORT=1521))
    OK (0 msec)
    The remote database name is fed to the OCIServerAttach call as in :
    checkerr( errhp, OCIServerAttach( svrhp, errhp, (text*) server.c_str(),
    (sb4) server.length(), 0));
    Am I doing this in the correct location, or am I missing something else in the process for remote databases.
    I have no trouble connecting to a local database with a empty string in the OCIServerAttach call.
    Thanks in anticipation.

    ORA-12154: "Could not resolve service name"
    ORA-12541: "No listener"
    ORA-12154: "Could not resolve service name"
    When you try to connect to your database through Developer, try using the connect_string you've been using with .world added to it (sometimes it's appended to your connect_string automatically, and if your sqlnet.ora file has NAMES.DEFAULT_DOMAIN and NAME.DEFAULT_ZONE set to anything other than 'world' then you may have to create a new sqlnet.ora file and set NAMES.DEFAULT_DOMAIN and NAME.DEFAULT_ZONE to world for it to work properly.
    ORA-12541: "No listener"
    You just need to verify that the listener is running and also is listening for the SID or CONNECT_DATA value being sent be PL/SQL Developer. For example, if the listener on your remote machine is listening for 'pl_sql' but when you try to connect to the remote database the PL/SQL Developer is sending a request to connect to 'plsql', then there is 'no listener' listening for 'plsql' and it fails. IF you can connect to the remote database via sqlplus, but then when you try it from PL/SQL Developer and it fails, that means the listener is in fact running, but not listening for the correct string being sent to it by the application.
    Hope this helps.
    Roy

  • Connect to remote database

    hello
    i am souvik kundu . i am using tomcat web server that is in india . Through this web server i want to connect oracle data base that is in philipins(remote) .pls tell me the code or procedure how i connect to remote data base ?????????

    Dear Souvik,
    The physical location of the database is not of big concern while working with the java programs.
    U might be aware how to connect to remote database from ur localmachine if u have databaseclient(Oracle client for example) installed in ur system.
    U need to have a tnsnames.ora file to resolve the database.
    An entry in the tnsnames.ora file will lokk like the following
    name=( description = (address = ( host =ipnumber ) ( protocol = tcp ) (port = some port number ))(connect_data = (sid=sidname)))
    Here the sidname is very important
    If u have this description in the tnsnames file , then u can connect to any oracle machine in the world with the valid userid and password.
    al this is another part of the story , but now our concern is to make ur tomcat application capable of conencting to remote database
    there are two ways that i suggest u
    1) Explicitly make connections to the remote database from withing ur java program as follows
    String userId="scott";
    String passWord = "tiger";
    String url = "jdbc:oracle:thin:@ipnumber:portnumber:sidname";
    String driver = "oracle.judbc.OracleDriver";
    //This is very important
    try{
    Class.forName( driver );
    Connection con = DriverManager.getConnection ( url,userId,passWord );
    }catch(){
    Here the difference is that if ur using a local database u need not to give the ip number and portnumber combination
    Note:check whether ur network can contact to the destination by running the command at command prompt
    > tnsping ipnumber
    If tns ping doesnt work then u cant contact the remote database.
    2) Use tomcat admin console screen to set up a datasource and give required information as I provided above,
    Then u can obtain the connection frm the datasource.
    Regards
    mahi

  • Connecting to a database through the Proxy using JDBC

    Hi,
    I am working on core java.
    I want to established connection to remote database(I am working on local network behind the proxy)
    how can i do this using core java
    thanks in advance
    regards
    Man479

    The only issue I see here is configuring the proxy to allow the client program to connect to a certain port on the server. And that issue would normally be dealt with by asking the person who manages the proxy to set it up that way.

  • Connection to remote database failed

    I have configured the cman.ora file and changed the connection
    string for the java applet, but I encountered the error
    "The NT Adapter could not establish the connection" when I tried
    to connect to remote database from JDev2.0(beta).
    Any ideas of what are the possible causes for this?
    At the cman.ora file, the setting are:
    cman = (ADDRESS_LIST=
    (ADDRESS=(PROTOCOL=tcp)(HOST=<web_host_ip>)(PORT=1610))
    (ADDRESS=(PROTOCOL=tcp)(HOST=<db_host_ip>)(PORT=1521))
    cman_profile = (parameter_list=
    (MAXIMUM_RELAYS=1024)
    (LOG_LEVEL=1)
    (TRACING=yes)
    (RELAY_STATISTICS=yes)
    (SHOW_TNS_INFO=yes)
    (USE_ASYNC_CALL=yes)
    (AUTHENTICATION_LEVEL=0)
    At the java applet the connection statement are:
    DriverManager.registerDriver (new
    oracle.jdbc.driver.OracleDriver());
    Connection conn =
    DriverManager.getConnection ("jdbc:oracle:thin:" +
    "@(description=(address_list=" +
    "(address=(protocol=tcp)(host=<web_host_ip>)(port=1610))" +
    "(address=(protocol=tcp)(host=<db_host_ip>)(port=1521)))" +
    "(source_route=yes)" +
    "(connect_data=(sid=<orasid>)))", "<user>", "<id>");
    The error at the dos prompt running from JDev2 are:
    java.sql.SQLException: The NT Adapter could not establish the
    connection
    at oracle.jdbc.dbaccess.DBError.check_error(Compiled
    Code)
    at oracle.jdbc.driver.OracleConnection.<init>(Compiled
    Code)
    at oracle.jdbc.driver.OracleDriver.connect(Compiled Code)
    at java.sql.DriverManager.getConnection(Compiled Code)
    at java.sql.DriverManager.getConnection(Compiled Code)
    at test.Applet1.jbInit(Compiled Code)
    at test.Applet1.init(Compiled Code)
    at sun.applet.AppletPanel.run(Compiled Code)
    at java.lang.Thread.run(Compiled Code)
    Thanks,
    Eye Gee
    null

    I am able to connect to the remote database using SQL*plus but
    does it means it is using CMAN connection?
    How do I test the CMAN connection from SQL*plus? Any example for
    me to follow?
    Thanks,
    Eye Gee
    mark tomlinson (guest) wrote:
    : Have you tried using the CMAN connection from something like
    : SQL*plus to verify that it is configured correctly? Everything
    : looks correct, so it might be hiding an actual NET error
    : underneath.
    null

  • I want to connect Visual foxpro database through forms6i.

    Hi ,
    I want to connect Visual foxpro database through forms6i.
    actually i want to access Visual foxpro database in forms6i and retrive and update data from forms6i.
    please help me urgently how can i do this in forms6i.
    Thanks,
    Md.Muniruzzaman Khan
    Email : [email protected]

    do the following steps for hetrogenous service
    Step 1
    Create ODBC named Access1.
    Step 2
    Go to urs inithsodbc.ora file which reside at
    ORACLE_HOME\hs\admin\inithsodbc.ora
    and overrite by
    # This is a sample agent init file that contains the HS parameters that are
    # needed for an ODBC Agent.
    # HS init parameters
    HS_FDS_CONNECT_INFO = Access1
    HS_FDS_TRACE_LEVEL = off
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    Step 3
    Add the following entry to the tnsnames.ora file:
    ACCESS1.WORLD =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
    (CONNECT_DATA=(SID=ACCESS1))
    (HS=OK)
    Step 4
    Add the following entry into the listener.ora file:
    (SID_DESC=
    (SID_NAME=ACCESS1)
    (ORACLE_HOME=D:\Oracle)
    ---Define urs oracle home path in mine case it is at D:\Oracle--
    (PROGRAM=hsodbc)
    Step 5
    Reload the listener from contol panel services yours listener service
    Step 6
    Create a database link using:
    CREATE DATABASE LINK access1.world CONNECT TO "MyUser" IDENTIFIED BY "MyPassword" USING 'ACCESS1.WORLD';
    Step 7
    Connect to scott/tiger
    Query the table using:
    SELECT *
    FROM [email protected];
    Step 8
    Same you can connect to urs forms and write above sql in cursor
    Acknowledge me.
    Khurram Siddiqui

  • 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

  • I want to connect to remote databases which can be specified by URL

    Hi,
    i'm tinu
    I want to connect to remote databases which can be specified by URL
    the database is ORACLE 9i
    pls help me, how to connect to it
    i have the ip address,port address,sid,username and password of the database
    is there any difference in the actual code of database connection
    plss help

    Hi,
    There is a particular example with MS SQL 2000 in thread http://forum.java.sun.com/thread.jspa?threadID=608314
    In the given example you just need to change the database URL and the JDBC driver. Just examine the code a little bit.
    Also you may wish to visit the SUN's JDBC tutorial on http://java.sun.com/docs/books/tutorial/jdbc/
    Ferad Zyulkyarov

  • Connecting to remote database (idle) with Password File Authentication

    Hi all,
    I was wondering if it's possible to connect to a remote database that is shut down (idle instance) as sys user with sysdba privileges? In the book Oracle - All in One on page 210 in the section - Operating System and Password File Authentication it says:
    Connection with operating system or password file authentication is always possible, no matter what state the instance and database are in, and is necessary to issue STARTUP or SHUTDOWN commands.
    Above indicates that it's possible but I'm unable to do so.
    I managed to connect to remote database that was in nomount mode (see below for details).
    When I first tried to connect to a remote database (idle instance) using password file authentication it was giving following error:
    sqlplus sys@ORCL as sysdbaSQL*Plus: Release 11.2.0.3.0 Production on Fri Dec 21 13:59:28 2012
    Copyright (c) 1982, 2011, Oracle. All rights reserved.
    Enter password:
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    Enter user-name:
    After starting the database to nomount mode I was getting following error:
    sqlplus sys@ORCL as sysdbaSQL*Plus: Release 11.2.0.3.0 Production on Fri Dec 21 13:48:36 2012
    Copyright (c) 1982, 2011, Oracle. All rights reserved.
    Enter password:
    ERROR:
    ORA-12528: TNS:listener: all appropriate instances are blocking new connections
    Enter user-name:
    So I added the clause (UR=A) to my listener.ora file and after that it work and I was able to connect:
    sqlplus sys@ORCL as sysdbaSQL*Plus: Release 11.2.0.3.0 Production on Fri Dec 21 14:04:49 2012
    Copyright (c) 1982, 2011, Oracle. All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL>
    I have all necessairly entries in tnsnames.ora on my local host.
    Also I have no problems when connecting as sys user with sysdba when the DB is open but can't get it work on an idle instance.
    I know that I can use operating system authentication but want to know if there is a mistake in the book or I'm doing something wrong.
    Regards,
    Dawid
    Edited by: 978239 on 2012-12-21 06:24

    978239 wrote:
    Hi all,
    I was wondering if it's possible to connect to a remote database that is shut down (idle instance) as sys user with sysdba privileges? In the book Oracle - All in One on page 210 in the section - Operating System and Password File Authentication it says:
    Connection with operating system or password file authentication is always possible, no matter what state the instance and database are in, and is necessary to issue STARTUP or SHUTDOWN commands.
    Above indicates that it's possible but I'm unable to do so.
    I managed to connect to remote database that was in nomount mode (see below for details).
    When I first tried to connect to a remote database (idle instance) using password file authentication it was giving following error:
    sqlplus sys@ORCL as sysdbaSQL*Plus: Release 11.2.0.3.0 Production on Fri Dec 21 13:59:28 2012
    Copyright (c) 1982, 2011, Oracle. All rights reserved.
    Enter password:
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptorSince the database is down, the only way the listener is going to know of it is if you create a static registration by adding an entry for the db in the SID_LIST section of listener.ora
    >
    Enter user-name:
    After starting the database to nomount mode I was getting following error:
    sqlplus sys@ORCL as sysdbaSQL*Plus: Release 11.2.0.3.0 Production on Fri Dec 21 13:48:36 2012
    Copyright (c) 1982, 2011, Oracle. All rights reserved.
    Enter password:
    ERROR:
    ORA-12528: TNS:listener: all appropriate instances are blocking new connections
    Enter user-name:
    So I added the clause (UR=A) to my listener.ora file and after that it work and I was able to connect:
    sqlplus sys@ORCL as sysdbaSQL*Plus: Release 11.2.0.3.0 Production on Fri Dec 21 14:04:49 2012
    Copyright (c) 1982, 2011, Oracle. All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL>
    I have all necessairly entries in tnsnames.ora on my local host.
    Also I have no problems when connecting as sys user with sysdba when the DB is open but can't get it work on an idle instance.
    I know that I can use operating system authentication but want to know if there is a mistake in the book or I'm doing something wrong.
    Regards,
    Dawid
    Edited by: 978239 on 2012-12-21 06:24

  • Failed to connect to remote database DMWEB_SITE1. Error is ORA-12533

    hello Gurus,
    I don't get what's hapenning with my Standby database
    I've follwoed the procedure as usual to recreate my standby as usually (works fine) exception this time
    I've created a separat listener so tha I've configured a local_listener
    in Site 1 Ok
    Site 2 I get error message below in my dataguard trace File ...
    NSV0: Failed to connect to remote database DMWEB_SITE1. Error is ORA-12533
    DG 2010-01-08-15:56:32 0 2 0 NSV0: Failed to send message to site DMWEB_SITE1. Error code is ORA-12533.
    DG 2010-01-08-15:56:32 0 2 707758231 DMON: DMWEB_SITE2 unable to contact primary for DRC version check
    When I try to enable the dataguatrd configuration it succed but the Site2 remains Disable.
    My Local Listener :
    LISTENER_DMWEB.world =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=TCP)(HOST=srvldbp03.int.imd.ch)(PORT=1523))
    (ADDRESS=(PROTOCOL=TCP)(HOST=srvldbp13.int.imd.ch)(PORT=1523))
    Txs for any Help
    Rgds
    Carlos

    yes i've check Both Adress
    The tnsnames in Both Sites is :
    DMWEB_SITE1.world =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = srvldbp03.int.imd.ch)(PORT = 1523))
    (CONNECT_DATA = (SERVICE_NAME = DMWEB_SIET1)(ORACLE_HOME = /u01/app/oracle/product/10.2)(SERVER = DEDICATED))
    DMWEB_SITE2.world =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = srvldbp13.int.imd.ch)(PORT = 1523))
    (CONNECT_DATA = (SERVICE_NAME = DMWEB_SITE2)(ORACLE_HOME = /u01/app/oracle/product/10.2)(SERVER = DEDICATED))
    *********** FROM SITE 1
    [oracle@srvldbp03 admin]$ tnsping DMWEB_SITE1.world
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = srvldbp03.int.imd.ch)(PORT = 1523))) (CONNECT_DATA = (SERVICE_NAME = DMWEB_SIET1)(ORACLE_HOME = /u01/app/oracle/product/10.2)(SERVER = DEDICATED)))
    OK (0 msec)
    [oracle@srvldbp03 admin]$ tnsping DMWEB_SITE2.world
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = srvldbp13.int.imd.ch)(PORT = 1523))) (CONNECT_DATA = (SERVICE_NAME = DMWEB_SITE2)(ORACLE_HOME = /u01/app/oracle/product/10.2)(SERVER = DEDICATED)))
    OK (10 msec)
    [oracle@srvldbp03 admin]$
    ******** FROM SITE 2
    [oracle@srvldbp13 bdump]$ tnsping DMWEB_SITE1
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = srvldbp03.int.imd.ch)(PORT = 1523))) (CONNECT_DATA = (SERVICE_NAME = DMWEB_SITE1)(ORACLE_HOME = /u01/app/oracle/product/10.2)(SERVER = DEDICATED)))
    OK (0 msec)
    [oracle@srvldbp13 bdump]$ tnsping DMWEB_SITE2
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = srvldbp13.int.imd.ch)(PORT = 1523))) (CONNECT_DATA = (SERVICE_NAME = DMWEB_SITE2)(ORACLE_HOME = /u01/app/oracle/product/10.2)(SERVER = DEDICATED)))
    OK (0 msec)
    [oracle@srvldbp13 bdump]$
    In Both Database the Parameter LOCAL_LISTENER=LISTENER_DMWEB
    When I check Dataguard Configuration
    SITE 1 is OK
    SITE 2 is disabled and the trace shows this Ora:12533 Error

  • Connecting to multi databases from Oracle Forms

    I am trying to connect to 2 databases from my form. The primary
    connection is to a datbase where reports information(i.e. Report
    name,parameters) is saved. When the form runs and user picks a
    report to run, i want to change connection to a different
    database which reports runs against. I am using Forms6.0 against
    8I database.
    Can any one help ??
    Thanks

    Database links are the only answer if you need distributed
    transactions.
    If you only want to access several different databases without
    transaction coordination between those, then, you may use the
    facilities of the EXEC_SQL built-in package.

  • Managing remote databases through OEM

    i have created repository & set preferred credentials in OEM which worked well for local database to be managed through Management server but when i connected 2 more remote databases which were discovered nodes and one more manually connected, i unable to connect and getting the following messages when index tuning.
    XP-21016: A database error has occurred:
    /* OracleOEM */ CREATE TABLE VDK_TMP_RULE_JOURNAL_1502( VDK_STYLE NUMBER,VDK_SEGMENT_ID NUMBER,VDK_TEXT LONG,VDK_MARGIN NUMBER,VDK_ENTRY_TIME DATE)
    ORA-00955: name is already used by an existing object
    Please help me how to connect to the repository of remote databases.

    Hi.,
    You are not discover the new database in name of already existing Database.So you delete the existing node and then perform the discover new node.
    Bye..

  • Unable to connect to SQL database through ODBC calls

    I have been looking around for an answer to this, but haven't found the exact issue I'm seeing.
    I have several Excel spreadsheets which have been working until recently, which use an ODBC call to a remote SQL database. The database is running, remote connections are allowed. The SQL server is in a domain which has no external trusts. Users with accounts
    in this domain can remotely access the SQl databases through ODBC just fine. Users who do not have domain accounts in this domain are being denied access by their domain account, and the SQL authentication is not passed through, even though remote access is
    set to allow "everyone", and the database is set to Windows authentication and SQL authentication. This worked until early this week (the spreadsheet was created in 2010), and I have been looking fruitlessly for a fix ever since. As far as I know,
    no changes were made to group policy on this domain, and no changes were made to the server or database recently, except Microsoft patches. None of the patches this month looked like they would affect this.

    It works locally on the server and remotely for users in the same domain. I am trying to use the SQL account and password to connect to the database, but users from outside this domain fail to reach the SQL database for authentication. It looks like Windows
    authentication is not passing the SQL credentials on if the windows authentication fails. I don't know how to resolve this. The only options in SQL are "Windows authentication and SQL authentication" or "Windows authentication only". The database is already
    set to the first option. Somehow, I need to set the server to allow the SQL authentication even if the Windows authentication fails.
    Hi pkuti01,
    SQL Server mixed mode is "Windows Authentication and SQL Server Authentication", we have to restart SQL Server service after change the authentication to mixed mode.
    In your case, have you got any error message/information if you faild connect to SQL Server via ODBC? If so, please post them to us for further investigation. Furthermore, here is an article regarding steps to troubleshooting SQL connectivity issues for
    your reference. Please see:
    http://blogs.msdn.com/b/sql_protocols/archive/2008/04/30/steps-to-troubleshoot-connectivity-issues.aspx
    If you have any feedback on our support, please click
    here.
    Regards,
    Elvis Long
    TechNet Community Support

Maybe you are looking for