Connect to Remote Oracle Server?

Hi all,
What is the recommended method for connecting a Windows 2000 web server to a remote Oracle database? Ideally, a driver could add the remote Oracle database to our local list of ODBC datasources.
We're using ColdFusion (web application development package) to connect to local ODBC datasources. A prospective client of ours would like to use our ColdFusion web server, but with their own Oracle server providing the back-end database, rather than use our native Access or SQL databases. I'm happy to do this, provided a simple, secure and free solution is available.
The ColdFusion support forums talk about an "Oracle Client" though I can find no reference to it -- let alone, a download page -- on Oracle.com.
Any help is greatly appreciated.
Dave

The general procedure for connecting a web server to an Oracle database via ODBC is as follows:
1) Install the Oracle client on the web server machine. You can download the Oracle client from OTN by going to "Software" and choosing "Oracle 8i EE". If you have an Oracle CD, "client-only" is an installation option. Note that the 8.1.7.0 ODBC driver will be installed automatically when the Oracle client is installed. You may want to download and install the updated 8.1.7.2 ODBC driver.
2) Use the Net8 Configuration Assistant to provide the Oracle client with the connection information for the remote Oracle database.
3) Create a new ODBC DSN for the Oracle database (alternately, your application can make a DSN-less connection)
4) Now, your application should be able to connect with the Oracle database.
Justin

Similar Messages

  • Connecting to remote oracle server from asp

    Hi All
    How can I access remote oracle server from asp?. I'm using the following connection string.
    " Provider=MS Remote;Remote Provider=MSDAORA;Data Source=XYZ;Remote Server=http://DBServersIP;User Id=id;Password=pw"
    Both the web server and DB server has oracle client. I can tnsping, connect using sql * plus from the webserver.
    But when I try to do simple connection & query , I get the following error.
    " Microsoft ADO/RDS(0x80072EFD)
    Internet Client Error: Cannot Connect to Server.
    All the permission settings are given correctly (after referring Microsoft & Oracle websites)
    Can someone throw some links or help.?
    Your replies much appreciated.
    Thank you
    Arum

    why do you have http://DBServersIP as the remote server?
    Your connection string should look like:
    "Driver={Microsoft ODBC for Oracle};Server=MY_SID;Uid=my_user;Pwd=my_pwd;"
    There are other variations, but none of them should include HTTP anywhere.

  • How to connect a remote Oracle Server with its IP

    is it possible to connect Oracle SerVer in VC
    I have used Microsoft ODBC driver for oracle and Oracle odbc driver to test in VC++6.0,
    but SQLDriverConnect, OCI methods failed.

    with VC++ an odbc driver for oracle is also installed with which u can connect to oracle db all u need to know is the database SID or oracle server name
    try doing this it will work hopefully
    regards

  • Connecting To Remote Oracle Server

    Hi All,
    I'm new to Oracle and have been given the task of migrating photographs stored as BLOBs in Oracle to Fedora Commons.
    At the moment I'm having problems using SQL-PLUS to connect to the remote database.
    So far this is what I've done:
    1 .Downloaded:
    instantclient-basiclite-win32-11.1.0.7.0.zip
    instantclient-sqlplus-win32-11.1.0.7.0.zip
    2. Extracted the above to C:\Program Files\Oracle Instant Client
    3. Added C:\Program Files\Oracle Instant Client to the start of my PATH variable
    4. Created a tnsnames.ora file in the above directory with the following contents:
    RDF = (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.209.2.40)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = orcl)
    5. Added a new environment variable called TNS_ADMIN and set it to C:\Program Files\Oracle Instant Client
    I then checked the setup by opening cmd and running sqlplus [username]/[password]@rdf which results in this error:-
    SP2-1503 Unable to initialize Oracle call interface
    SP2-0152 ORACLE may not be functioning properly.
    I have Googled this and most suggestions point to setting the ORACLE_HOME variable. However, I want to connect to a remote Oracle database so I don't see why this causes the problem and also even if I had to set that variable what would I set it to?
    Any help is appreciated,
    Keith
    PS:
    I followed this tutorial (it is 2 years old however): http://www.bernzilla.com/item.php?id=784

    is your tns listener up?
    goto command prompt
    type
    lsnrctl
    in the listener control utility type
    status
    and it copy paste the data here

  • Oracle 10.2 on AIX -- need to connect to remote SQL server by dblink

    oracle 10.2 on AIX -- need to connect to remote SQL server by dblink
    i didn't see a odbc diectory in our oracle home path. how do i know odbc driver is installed in the oracle on our AIX server.
    If it is there, do i just need to modify the odbc.ini and then the inithsodbc.ora, linster.ora, tnsnammes.ora files, or am I missing something
    Appreciate your response
    Edited by: user10876711 on May 12, 2011 9:18 AM
    Edited by: user10876711 on May 12, 2011 9:18 AM

    when you want to connect from Oracle to a SQl Server you need the Oracle Gateway (HSODBC or even better Dg4ODBC) and a FOREIGN ODBC DRIVER for your foreign database - a SQL Server ODBC driver. You have to get this driver from a 3rd party vendor - Oracle does not offer any foreign ODBC drivers.
    So before being able to use DG4ODBC/HSODBC you need to install from a 3rd paryt vendor a SQL Server ODBC driver. Commercial vendrs are for example Data Direct, Openlink or Easysoft.
    On Unix ODBC drivers commonly also require a driver manager. If the ODBC driver vendor does not ship one with the ODBC driver you can get it from www.unixodbc.org

  • Oracle raise ORA-03113 when connect to a remote oracle server using toad

    Hi there,
    when i use the tool toad connect to a remote oracle server which located in a different city,
    when i submit a query in toad,
    if the query returns many rows of data, it will raise the error ORA-03113:end-of-file on communication channel,
    however if the query returns only a few rows, i won't raise such error,
    however, when i use sqlplus connect to that remote server, it won't raise such error,
    what's the reason is, can any one tell me how to tackle this problem if using the tool toad. thanks/

    hi my oracle vsersion is:
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE 11.2.0.1.0 Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    my oracle server is 2 nodes rac server,
    and i've tried two different kind version of toad v9.6 and v10.5, and both have the same problem
    once i query a table, if the result returned more than 30 rows, then it will raise that error, if query returns less than 30 rows, it's ok.
    i assume it is a problem concern with network, but i don't know why no such error raise when using sqlplus ?

  • In Java,how can I get remote oracle server's system time using a XAOracle datasource

    I want to get remote oracle server's system time,for example,I use a TxDataSource:
    DRIVER className:weblogic.jdbc.oci.xa.XADataSource
    URL:jdbc:weblogic:oracle:lanhaibo
    JNDI Name:
    the following is the code which shows the exception that: sqlexception:the JDBC2.0
    method is not implemented,why? what should I do?:
    Properties prop = new Properties();
    prop.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    prop.put(Context.PROVIDER_URL,"t3://"+"localhost"+":" + "7001");
    initCtx = new InitialContext(prop);
    DataSource ds = (DataSource)initCtx.lookup(strDataSource);
    Connection conn = ds.getConnection();
    String sqlQuery = "select to_char(sysdate,'yyyy') YYYY,to_char(sysdate, 'MM')
    MM,to_char(sysdate, '" +
    "dd') DD,to_char(sysdate, 'hh24') HH,to_char(sysdate, 'mi') MI,to_char(sysdate,
    '" +
    "ss') SS from dual"
    preparedStatement pstmt = conn.prepareStatement(sqlQury);
    StringBuffer sb = new StringBuffer();
    ResultSet resultset = pstmt.executeQuery();
    if(rs.next()){
    strYear = rs.getString("yyyy");
    strMonth = rs.getString("MM");
    strDay = rs.getString("DD");
    strHour = rs.getString("HH");
    strMinute = rs.getString("MI");
    strSecond = rs.getString("SS");
    sb.append(strYear);
    sb.append("/");
    sb.append(strMonth);
    sb.append("/");
    sb.append(strDay);
    sb.append(" ");
    sb.append(strHour);
    sb.append(":");
    sb.append(strMinute);
    sb.append(":");
    sb.append(strSecond);

    Joden asked:
    "I want to get a remote oracle server's time by XADataSource,
    use:"select sysdate from dual", but return a null value,and give
    the message"sqlexception the jdbc2.0 method is not implemented",
    why?"
    Let me see your code. A simple executeQuery() should do the trick:
    Statement s = c.createStatement();
    ResultSet r = s.executeQuery("select sysdate from dual");
    while (r.next())
    java.sql.Timestamp t = r.getTimestamp(1);
    Guillaume Grussenmeyer wrote:
    Hi.
    I guess you are using weblogic.jdbc.oci.xa.XADataSource as a
    datasource.
    Weblogic JDriver for Oracle "implementation" is really weak as a lot
    of methods are not implemented.
    This is why you get this message.
    You may find the (very impressive) list of non implemented methods at
    http://e-docs.bea.com/wls/docs70/oracle/API_joci.html#1162621 (sorry
    HTML links don't seem to work here).
    Any call to one of this methods will give you these nasty message and
    exception.
    Try to use the "official" Oracle JDBC driver XA Datasource
    (oracle.jdbc.xa.client.OracleXADataSource) instead of Weblogic JDriver
    for Oracle one's.

  • Connecting to aa Oracle Server Using Power Query

    Hi 
    Just got started with Power Query, 
    I want to get connected to the remote Oracle Server, which is used as DB  by our Internal Ticketing system.
    Can Any one let me know how can  I get connected to Oracle Server.  I had gone through some documentation from below link 
    http://office.microsoft.com/en-us/excel-help/connect-to-an-oracle-database-HA104019815.aspx?CTT=5&origin=HA104003952 
    and downloaded the "instantclient-basic-windows.x64-12.1.0.1.0" from Oracle Site too.
    Can some one guide me on how to proceed further.
    Regards
    Surya

    Any ideas for Surya?
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • JDBC connect to remote Oracle, IOException,Help!

    I am trying to connect to remote Oracle 8.1.6 resides on IBM AIX server, the oracle SID is correct, and ping host address is also successful. also, downloaded JDBC driver classes12.zip from oracle...but i still encounter the IOException: Network adapter cannot establish connection!...could anyone tell me how to test whether the oracle's listener works...?
    i also tried to run the following piece of code on that IBM server, changed the host address to 'localhost', but still, the IOExcetpion:Network adapter cannot establish connection!...why? cos i am running the code on the server where Oracle resides.....
    great appreciation for anyone replies me.....the code is here:
    import java.io.*;
    import java.sql.*;
    import java.text.*;
    import oracle.jdbc.driver.*;
    public class viewtable
    Connection con;
    Statement st;
    public viewtable (String args[]) throws ClassNotFoundException,FileNotFoundException,IOException,SQLException
    url="jdbc:oracle:thin:system/manager@IP:1521:SID";
    Class.forName ("oracle.jdbc.driver.OracleDriver");
    try
    con=DriverManager.getConnection(url);
    st = con.createStatement ();
    doexample ();
    st.close ();
    con.close ();
    }catch(SQLException e)
    System.err.println(e.getMessage());
    public void doexample () throws SQLException
    ResultSet rs = st.executeQuery("select * from sales");
    if(rs!=null) {
    while(rs.next())
    int a = rs.getInt("no"); System.out.println("NO = "+a);
    rs.close();
    public static void main (String args[])
    System.out.println ("Oracle Exercise 1 \n");
    try
    viewtable test = new viewtable(args);
    } catch (Exception ex)
    System.err.println ("Exception caught.\n"+ex);
    ex.printStackTrace ();

    with an RS/6000, don't you have a db admin ? he/she should know how to set up the listener properly.
    if you have to do it on your own, try the following things:
    - www.orafaq.com is often very helpful
    - search the web for "oracle listener" etc. A first goolg search gave me the following link: http://www.ibiblio.org/mdw/HOWTO/Oracle-7-HOWTO.html
    - check the files listener.ora and tnsnames.ora. They should be located somewhere in your oracle home direcotry on the server
    good luck
    PS: to start a listenter, type "startup" in the lsnrctl tool, maybe you can already see something.

  • Flex mobile connect to remote secure server!!

    Hi guys
    I'm a beginner with flex mobile.
    i'm trying to create an appllication flex mobile. and i have to connect to remote secured server (apache) to get some services deployed.
    i did it and when i try with emulator from flash builderit's worked, a pop up window started to enter a login and password for connect to the remote server. it's okay, i get a result.
    but now when i try this application with my mobile phone, application launched correctly but i can't connect to remte server ( i dont have anythig like a popup to enter the login and pssword).
    i need your help.
    thanks

    Did you ever figure this out? I'm having the same issue.

  • Find how many users are connected in the Oracle Server

    Hi,
    I am using Oracle 10g. My question is, is it possible to find how many users are connected in the Oracle Server. We are having one Server and we are having many client machines which will connect the Oracle.
    And one more question in the meanwhile i want to take Backup of one database which client as connected. Is it get any problem to the client machine which is accessing the server. And How to take the backup from the server machine. Any commands to process.
    Thank u...!

    Hi there.
    If You run
    select count(*) from v$session where username is not null;you'll get the number of users connected to Oracle server,
    and yes , you could do backup while users are connect to db you are backing up.
    cheers

  • Connect to Remote Oracle Database

    I am unsuccessfully trying to connect to remote Oracle database using OleDB/ODBC/Oracle Client.
    Do I have to install Oracle Client in order to use those drivers and which version?
    I would really appreciate any help. THANK YOU!

    Marina,
    Please refer this question to the general Installation forum. Thanks!
    The short answer is yes, you need to have the Oracle client software installed.

  • Connecting to the Oracle Server

    I want to write a small application which will connect to the Oracle Server (10g).
    I have downloaded the ojdbc14.jar from the Oracle site. What should I do with it now ?
    Someone told me that you have to add it to classpath. Which classpath ? the systems ? or in the project itself ?
    and how will I be able to connect to it ? I mean which api(s) should I use.
    Can anyone help me please

    It should be in the classpath of your application that connects to DB.

  • To update my remote oracle server through e mail

    hai,
    i want to update my remote oracle server through e mail which should run automatically for every 3 hours(for example)
    both(remote and local) are oracle 8.1.7 running in windows 2000 server
    Please let me know how to go about....
    help me in this context...
    urs
    srini

    Sri
    you can do with some SMTP programming like that one available in VisuaBasic. you can read the mail from an inbox
    from a mail account of an SMTP SERVER. Then you may try to update the remote database.
    Well i have mentioned VB as i heard it long back from my GURUJI that it is possible thru SMTP programming in VB
    using the socket controls etc,.
    Please check it out in some visuabasic forum sites and ask some VB Gurus.
    Thanks
    Prakash
    [email protected]

  • Connect to 10g oracle server from 9i client

    Hi All,
    Is it possible to connect to 10g oracle server from 9i client or Should i install 10g client on my machine?
    Regards,
    Seena

    Depend of what releases you are talking about.
    The client 9iR1 has never been supported against a 10gR2 server.
    Find out more in the metalink note : Client / Server / Interoperability Support Between Different Oracle Versions - 207303.1
    Nicolas.

Maybe you are looking for