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.

Similar Messages

  • 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.

  • 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

  • How to connect to remote oracle system from webDynpro

    HI Experts,
       i am trying to call some remote oracle stored procedures in webdynpro using jdbc.
    i am using "jdbc:oracle:thin" driver for connecting to
    oracle database.when i am running this one as java standalone application it is working fine.but when i am
    using this in webdynpro server is getting restarted.
    what might be the problem
    or is there is another way for this.
    thanks in advance
    With Regds
    Naidu

    Hi,
    It seems the flwg thread has the solution for you:
    Oracle as Back-end with Web Dynpro
    Regards
    Srinivasan T

  • Access denied to remote Oracle server from job

    Hello
    I have a LINKED ORACLE server to SQL Server 2008 R2 (SP1). All the linked tables work OK. I wrote a couple of procedures to transfer/update data between my DB on the SQL Server and the Oracle linked server tables.
    When running a procedure from a query it works. But when putting the same procedure in a job (scheduled) it returns this error:
    Access to the remote server is denied because no login-mapping exists. [SQLSTATE 42000]
    How can I map logins in such a case to make this work? Or any other options?
    Thx in advance
    Miha

    Good Day,
    Recommended Steps as follows:-
    1.Create a credential under SQL Security tab
    2.Create a Proxy(Operating system CMDExec) under SQL Server Agent Tab and link the credential to the proxy.
    3.Create an SQL Agent Job with type - operating system(cmdExec)and Run as the proxy name or SQL Server Agent Service Account .
    4.Use SQLCMD -S instancename -Q "Exec databasename.schemaname.storedprocedurename;" in the command box.
    Consider the Security permission for the user credential.
    Regards,
    Sajith.
    http://sqllive.wordpress.com/

  • 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

  • How to connect to a Sql server from Oracle using db link

    Hi All,
    Does anybody have any idea about how to connect to a sql server from oracle database using db link to syncronize the data? I need to pull the data from Sql server table to Oracle tables and relay messages back to the sql server.
    Thank you,
    Praveen.

    we have 2 products - DG4MSQL and DG4ODBC.
    DG4ODBC is for free and requires a 3rd party ODBC driver and it can connect to any 3rd party database as long as you use a suitable ODBC driver
    DG4MSQL is more powerfull as it is designed for MS SQL Server databases and it supports many functions it can directly map to SQL Server equivalents - it can also call remote procedures or participtae in distributed transactions. Please be aware DG4MSQL requires a license - it is not for free.
    Check out Metalink and you'll find notes how to configure both products.
    For a generic overview:
    Note.233876.1 Options for Connecting to Foreign Data Stores and Non-Oracle Databases
    And the setup notes:
    DG4ODBC
    Note.561033.1 How to Setup DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX) :
    Note.466225.1 How to Setup DG4ODBC (Oracle Database Gateway for ODBC) on Windows 32bit RDBMS.HS-3-2 :
    Note.109730.1 How to setup generic connectivity (HSODBC) for 32 bit Windows (Windows NT, Windows 2000, Windows XP, Windows 2003) V817:
    Note.466228.1 How to Setup DG4ODBC on Linux x86 32bit
    DG4MSQL
    Note.466267.1 How to Setup DG4MSQL (Database Gateway for MS SQL Server) on Windows 32bit
    Note.562509.1 How to Setup DG4MSQL (Oracle Database Gateway for MS SQL Server) 64bit Unix OS (Linux, Solaris, AIX,HP-UX)
    Note.437374.1 How to Setup DG4MSQL (Oracle Database Gateway for MS SQL Server) Release 11 on Linux

  • 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 ?

  • Connecting to Oracle database from ASP = please help!

    i have tried every kind of combination of connection string to connect to a 9i database from ASP but it does not work!
    I am using XP Professional and have 9i Developer and ODP.NET installed but I want to use OLE DB (Oracle or Microsoft) to access the database. I have a feeling the web page is not seeing the driver. here is my code:
    <% Option Explicit %>
    <HTML>
    <HEAD><TITLE>Oracle Data Access</TITLE></HEAD>
    <BODY>
    <%
    Dim objConnection
    Dim objRecordset
    Set objConnection = Server.CreateObject("ADODB.Connection")
    With objConnection
    .ConnectionString = "Provider=MSDAORA;Data Source=obiwan;" & _
    "User ID=user; Password=pass;"
    .Open
    Response.Write "ADO Provider=" & .Provider & "<BR>"
    Set objRecordset = .Execute("SELECT sysdate, user FROM dual")
    End With
    </body>
    </html>

    Try using this connect string:
    Provider=MSDAORA.1;Password=tiger;User ID=scott;Data Source=ORA92;Persist Security Info=True
    substitute your username/password and Data Source here.
    This works on Windows2000 with Microsoft OLEDB provider
    for Oracle.

  • Need to access/connect Remote Unix server from Java

    Please any one give me a direct solution for connecting a remote Unix server through telnet connection from java application. Thanks in advance..

    If I run the below program codes, in the console it is asking to enter username and password in manual but I need to give it automatically.
    The highlighted "root" is entered by the user manually using keyboard.
    Expected:
    I mean the username, password and some action is set to be automatic, so that it should not ask the user to enter the input from keyboard.
    import java.awt.Robot;
    import java.awt.event.KeyEvent;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import org.apache.commons.net.telnet.TelnetClient;
    import org.apache.commons.net.telnet.TelnetNotificationHandler;
    import org.apache.commons.net.telnet.SimpleOptionHandler;
    import org.apache.commons.net.telnet.EchoOptionHandler;
    import org.apache.commons.net.telnet.TerminalTypeOptionHandler;
    import org.apache.commons.net.telnet.SuppressGAOptionHandler;
    import org.apache.commons.net.telnet.InvalidTelnetOptionException;
    import java.util.StringTokenizer;
    * This is a simple example of use of TelnetClient.
    * An external option handler (SimpleTelnetOptionHandler) is used.
    * Initial configuration requested by TelnetClient will be:
    * WILL ECHO, WILL SUPPR
    * ESS-GA, DO SUPPRESS-GA.
    * VT100 terminal type will be subnegotiated.
    * <p>
    * Also, use of the sendAYT(), getLocalOptionState(), getRemoteOptionState()
    * is demonstrated.
    * When connected, type AYT to send an AYT command to the server and see
    * the result.
    * Type OPT to see a report of the state of the first 25 options.
    * <p>
    * @author Bruno D'Avanzo
    public class UnixConnect implements Runnable, TelnetNotificationHandler
        static TelnetClient tc = null;
         * Main for the TelnetClientExample.
        public static void main(String[] args) throws IOException
            FileOutputStream fout = null;
            /*if(args.length < 1)
                System.err.println("Usage: TelnetClientExample1 <remote-ip> [<remote-port>]");
                System.exit(1);
            String remoteip = "192.168.20.11";
            int remoteport;
            if (args.length > 1)
                remoteport = (new Integer(args[1])).intValue();
            else
                remoteport = 23;
            try
                fout = new FileOutputStream ("spy.log", true);
            catch (Exception e)
                System.err.println(
                    "Exception while opening the spy file: "
                    + e.getMessage());
            tc = new TelnetClient();
            TerminalTypeOptionHandler ttopt = new TerminalTypeOptionHandler("VT200", false, false, true, false);
            EchoOptionHandler echoopt = new EchoOptionHandler(true, false, true, false);
            SuppressGAOptionHandler gaopt = new SuppressGAOptionHandler(true, true, true, true);
            try
                tc.addOptionHandler(ttopt);
                tc.addOptionHandler(echoopt);
                tc.addOptionHandler(gaopt);
            catch (InvalidTelnetOptionException e)
                System.err.println("Error registering option handlers: " + e.getMessage());
            while (true)
                boolean end_loop = false;
                try
                    tc.connect(remoteip, remoteport);
                    Thread reader = new Thread (new UnixConnect());
                    tc.registerNotifHandler(new UnixConnect());
                    reader.start();
                    OutputStream outstr = tc.getOutputStream();
                    byte[] buff = new byte[1024];
                    int ret_read = 0;
                    do
                        try
                            ret_read = System.in.read(buff);
                            if(ret_read > 0)
                            outstr.write(buff, 0 , ret_read);
                            outstr.flush();
                        catch (Exception e)
                            System.err.println("Exception while reading keyboard:" + e.getMessage());
                            end_loop = true;
                    while((ret_read > 0) && (end_loop == false));
                    try
                        tc.disconnect();
                    catch (Exception e)
                              System.err.println("Exception while connecting:" + e.getMessage());
                catch (Exception e)
                        System.err.println("Exception while connecting:" + e.getMessage());
                        System.exit(1);
         * Callback method called when TelnetClient receives an option
         * negotiation command.
         * <p>
         * @param negotiation_code - type of negotiation command received
         * (RECEIVED_DO, RECEIVED_DONT, RECEIVED_WILL, RECEIVED_WONT)
         * <p>
         * @param option_code - code of the option negotiated
         * <p>
        public void receivedNegotiation(int negotiation_code, int option_code)
            String command = null;
            if(negotiation_code == TelnetNotificationHandler.RECEIVED_DO)
                command = "DO";
            else if(negotiation_code == TelnetNotificationHandler.RECEIVED_DONT)
                command = "DONT";
            else if(negotiation_code == TelnetNotificationHandler.RECEIVED_WILL)
                command = "WILL";
            else if(negotiation_code == TelnetNotificationHandler.RECEIVED_WONT)
                command = "WONT";
            System.out.println("Received " + command + " for option code " + option_code);
         * Reader thread.
         * Reads lines from the TelnetClient and echoes them
         * on the screen.
        public void run()
            InputStream instr = tc.getInputStream();
            try
                byte[] buff = new byte[1024];
                int ret_read = 0;
                do
                    ret_read = instr.read(buff);
                    if(ret_read > 0)
                       System.out.print(new String(buff, 0, ret_read));
                while (ret_read >= 0);
            catch (Exception e)
                System.err.println("Exception while reading socket:" + e.getMessage());
            try
                tc.disconnect();
            catch (Exception e)
                System.err.println("Exception while closing telnet:" + e.getMessage());

  • Connecting to an Oracle database using ASP

    Hi
    I am having problems connecting to an Oracle database using ASP. I am trying to do this for a school project the school's database server is running Oracle 9i. The repository is version 6. The web server I have access to only has ASP not ASP.net. What kind of connection string would I need to be able to connect to the database?

    You do need to ensure that the Oracle client and Oracle server are compatible, but that is generally pretty easy to accomplish. Unless you are trying to cross more than one major release (i.e. 9.2 client to a 7.3.4 database), you're pretty safe there.
    You could try downloading and installing the latest 8.1.7.x Oracle ODBC driver from OTN on the machine with the 8.1.7 Oracle client (I believe the last ODBC patchset was 8.1.7.10), but I don't have particular confidence that that will solve the problem. If it doesn't, we can do an ODBC trace to focus in on the issue, but installing a new driver is a much easier process, so that probably ought to be the first step.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • 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!

Maybe you are looking for