Connection Oracle with ASP

Hi all.
I have problems with connection ASP and Oracle. I use Windows Server 2008 Enterprise R2 64 bit.
All this string connections not working:
cn.Open "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=ROOT;PWD=XXXXXX;Server=ORCL"
cn.Open "Provider=MSDAORA.1;Password=XXXXXX;User ID=ROOT;Data Source=ORCL;Persist Security Info=True;"
cn.Open "Provider=msdaora; Data Source=ORCL; User Id=ROOT; Password=XXXXXX;"
cn.Open "Driver={Microsoft ODBC for Oracle};Server=ORCL;Uid=ROOT;Pwd=XXXXXX;" Can you help me?
Many thanks
MR

Thanks x your help.
Now I have this error:
ORA-12154: TNS:could not resolve the connect identifier specified
Connection string:
cn.Open "Provider=OraOLEDB.Oracle;Data Source==C800FSI1;UserId=DIP;Password=XXXXXX;"Listener.ora
# listener.ora Network Configuration File: C:\app\Administrator\product\11.2.0\dbhome_2\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = CLRExtProc)
      (ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_2)
      (PROGRAM = extproc)
      (ENVS = "EXTPROC_DLLS=ONLY:C:\app\Administrator\product\11.2.0\dbhome_2\bin\oraclr11.dll")
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
      (ADDRESS = (PROTOCOL = TCP)(HOST = C800FSI1)(PORT = 1521))
ADR_BASE_LISTENER = C:\app\Administratorsqlnet.ora
# sqlnet.ora Network Configuration File: C:\app\Administrator\product\11.2.0\dbhome_2\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
NAMES.DEFAULT_DOMAIN = C800FSI1
SQLNET.AUTHENTICATION_SERVICES = (none)
SQLNET.AUTHENTICATION = (none)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)TnsNames.ora
# tnsnames.ora Network Configuration File: C:\app\Administrator\product\11.2.0\dbhome_2\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
C800FSI1_2 =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = C800FSI1)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = C800FSI1_2)
ORACLR_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (CONNECT_DATA =
      (SID = CLRExtProc)
      (PRESENTATION = RO)
C800FSI1 =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = C800FSI1)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = C800FSI1)
ORCL =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = C800FSI1)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = orcl)
  )Can you help me?
Edited by: user6317803 on 26-gen-2011 13.01

Similar Messages

  • Need advice, sql server with asp or oracle with asp

    hi !
    i have been given a task to improve the design of a sql server database with more than 1 million records, front end is asp (code has to be written also, keeping user interface same). I would like to use oracle with asp, is it practical or should i go for sql server. i need your advice.
    thanks in advance
    lavinder

    Depends on your definition of "practical".
    My guess is that most of the work will be porting your back-end code from SQL*Server to Oracle. The Migration Workbench can help here, but there are often things that you do in SQL*Server code that you really don't want to do in Oracle code (i.e. frequent commits).
    There is a good chance that you'd be able to improve the scalability of the application faster by fixing the problems that exist in the SQL*Server implementation. I think Oracle is inherently a much more scalable platform than SQL*Server, however, so I'm not trying to dissuade you from moving. It really depends on the end state you need to achieve and the amount of time & effort you're willing to put forward.
    Justin

  • Connect Oracle with AS400

    Iam new in this , what I need, for connect Oracle with AS400...? someone Can Help me please.....
    Thanks!!!

    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/integrat.htm#sthref3364

  • How connect Oracle with AS400?

    Hi!
    I don´t know how i can connect oracle with AS400 , what I need for make the connection?

    Hi,
    You have 3 options:
    - Oracle Transparant Gateway for DRDA
    This product is available for Windows, Linux, AIX, HP-UX PA-RISC and Solaris SPARC
    It uses the IBM DRDA protocol (over TCP/IP) to establish a connection with DB2400
    - Oracle Transparant Gateway for DB2/400
    This product needs to be installed on the AS/400
    - Generic Connectivity (aka HSODBC)
    This is a default Oracle Database feature that is available for Windows, Linux x86,
         AIX, HP-UX PA RISC and Solaris Sparc.
         In addition it requires a suitable ODBC-Driver (32-bit) that is able to connect to
         DB2/400
    The gateways require additional license from Oracle, while HSODBC requires additional license for a third party ODBC vendor. Furthermore do gateways support the two phase commit protocol and calling DB2/400 stored procedures.
    Regards,
    Ed
    DRDA over TCP/IP
    Message was edited by:
    ebangma

  • Need Help on Connection pooling with asp

    Hi,
    I am need ur help on how i want set up the minimum and maximum connection for my asp programming.
    I am using Oracle 9i database with driver "Oracle in orahome 9.02.00.54".
    Ihave create the odbc to this driver for handle the connection pool.
    How i want to set the minimum and maximum connection ?
    This is my code:
    Set cn = Server.CreateObject("ADODB.Connection")
    cn. open "dsn=loadtest;uid=guardreg3;pwd=guardreg3;min pool size=15"
    I hope you all can help me.
    Thanks

    James,
    sometimes it makes sense to look at these things from a different (and broader) perspective.
    Especially in a context of a corporation it makes sense to use a Single Sign On (SSO) server for authentication (usually against LDAP) . Something like Netegrity Siteminder, Oracle SSO Server (as part of Oracle Internet Application Server) or something similar.
    Then you could have all your applications use the authentication method of the SSO server which will keep track of the valid session and the applications that participate in the SSO context.
    On the Apex side you would have to write a custom authentication scheme to leverage that functionality, the session handling will no longer be of any concern to you.
    Just a different way to look at it.
    ~Dietmar.

  • How to connect oracle with ms access database

    Dear
    We are on release r12, right now we have requirement to connect oracle database with ms access to get some information. We have found gateway(Heterogeneous services) using ODBC, but at the database side where is installed oracle r12 there is no installed ms access software becuse of linux operating system, so how could it will connect ms access because without installing ms-access we are unable to find ms ODBC gateway in ODBC driver under the control panel.
    Can any body guide me how could achieve this
    Edited by: oracle0282 on Sep 21, 2011 12:47 AM

    If I understand you correctly you want to access Oracle on Linux from MS-Access (possible on Windows only). You need neither a gateway nor Heterogeneous Services, but an Oracle client including ODBC driver (Instant client with ODBC driver is enough) on the Windows machine.
    Configure the ODBC driver with the connect informations to the Oracle server.
    Werner

  • Error in Remote Connect Oracle with MTS Mode

    I've configed my database to run MTS.
    My db is 8.1.5 with x86 Unix SunOS 5.7
    If I connect db through local area network, I can connect it with MTS mode.
    But if I try to connect db from a remote site, I can't connect and the following error shown :
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    By adding a clause (SERVER = DEDICATED) in my remote client's tnsnames.ora
    I can connect it.
    Rgds,
    Edward
    The following is my configuration.
    init.ora :
    mts_dispatchers = "(PROTOCOL=TCP)(DISP=3)"
    mts_dispatchers = "(PROTOCOL=TCP)(PRE=oracle.aurora.server.SGiopServer)"
    mts_servers = 1
    mts_max_servers = 40
    mts_max_dispatchers = 4
    listener.ora :
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = QQQQdb)(PORT = 1521))
    (DESCRIPTION =
    (PROTOCOL_STACK =
    (PRESENTATION = GIOP)
    (SESSION = RAW)
    (ADDRESS = (PROTOCOL = TCP)(HOST = QQQQdb)(PORT = 2481))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/8.1.5)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = QQQQdb.net)
    (ORACLE_HOME = /u01/app/oracle/product/8.1.5)
    (SID_NAME = QQQQdb)
    tnsnames.ora :
    QQQQDB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = QQQQdb)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = QQQQdb.net)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    null

    I have run into the same problem using oracle 8.1.6.1 with redhat 6.2..
    I have found out that only when I specify host ip in the mts_dispatchers the mts will work correctly..(specifying host domain name is no use)
    Here is a sample of the configuration, hope that helps..
    mts_dispatchers = "(address=(protocol=tcp)(host=192.168.0.1))(dispatchers=4)"

  • Connecting oracle with php

    hi all,
    i am using Xammp 1.7.4, PHP version 5.3.5, apache 2.2, and oracle 11g. actually i know how to connect MySql using php, but now i am trying to connect oracle using php. Can any 1 tell me the clear cut steps to do the same ?

    You need to add the right oci8 DLL or .so to php.ini and make sure it has access to Oracle client libraries. These Oracle libraries are from an Oracle Home or Oracle Instant Client.
    Without knowing your platform and whether the Oracle DB is on the same machine as Xampp the best place to start is to look at
    http://www.oracle.com/technetwork/articles/technote-php-instant-084410.html

  • How to connect  oracle with c++

    i wanted to know that how should i connect oracle to c++.
    kindly list me the commands which i need to write to access database fro oracle.
    thanks ...

    If you're attempting to use the ODBC API directly, have you downloaded the ODBC SDK from Microsoft? That will include some sample code, which is a great starting point. So far as I'm aware, you shouldn't need to configure anything in Borland C++ that you don't have to configure in any other C++ compiler to use ODBC.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • How to connect Oracle with Jsp?

    Hi,
    I am student and I am trying to use Jsp to connect oracle. Do you have any sample to show how to do it?
    Thanks a lot.
    Amy

    In JSP, you connect to the Oracle in a same way as you would do it in any Java application, using JDBC. Please refer to Java Tutorial -> JDBC on sun site and you will get easy and straight forward concepts.

  • Cannot connect to Oracle with ASP

    I'm having problems connecting to an Oracle database in ASP. I am using the following code:
    Inc_ConnString = "Provider=OraOLEDB.Oracle;Data Source=my_db;" & _
              "User Id=user_name;Password=password"
    Set DBconn = Server.CreateObject("ADODB.Connection")
    DBconn.Open Inc_ConnString
    I am always getting the following error message:
    ADODB.Connection (0x800A0E7A)
    Provider cannot be found. It may not be properly installed.
    However, when I run the Visual Basic sample code, everything works fine.. with the same code. I have downloaded and installed the latests Oracle Provider for OLE DB, Oracle ODBC Drivers, Oracle Objects for OLE from www.oracle.com.. but I am still getting this error message..
    Any pointers?

    Give the IWAM_XXXX User full NTFS access rights to your %ORACLE_HOME%, ie. C:\oracle\ora92 and all subdirectories (this is documented in Metalink Doc-ID 258471.995).
    g

  • How do I get LONG RAW from Oracle with ASP page designed in Dreamweaver

    Hello,
    I have a single entry field the user enters a SSN to search a database, the query searches one table which returns the data.
    Unfortunately one of the fields in the table is a LONG RAW field.
    How do I create the ASP page to display the LONG RAW data correctly?
    Thanks,
    Adam

    You can use XSU with Oracle 8.1.6:
    xsu12_816.jar: for Java 1.2
    xsu111_816.jar: for Java 1.1
    Please refer to the following link to download the XDK for Java:
    http://otn.oracle.com/software/tech/xml/xdk_java/content.html
    For XSU document:
    http://otn.oracle.com/docs/tech/xml/xdk_java/doc_library/Producti
    on9i/java/xsu/readme.html
    XSU provide both JAVA and PL/SQL APIs.

  • Can I connect Oracle with SQL-Server

    Hi,
    Is it possible to do Oracle hetrogeneous connectivity with Sql Server??
    Regards,
    Darshan

    Hi,
    I wanted to know whether Transparent Gateway for SQL Server is installed or not?
    In my $ORACLE_HOME I found following folders
    tg4ifmx, tg4ingr, tg4sybs, tg4tera.
    =========================
    If I want to install Gateway for SQL Server, From where do I install it???
    JAI HIND
    Darshan

  • How to Connect Oracle with Crystal Reports

    Hi Everyone,
    I am new to Crystal Report,
    Just tell me how to connect Crystal Report thro' Oracle 9i or 10g Forms
    With regards,
    Krishnan

    You may want to use ODBC for the connectivity.

  • Connect Oracle with Java

    I want to access oracle database from my java program which is written on Java Swing. e.g suppose my program shows a screen containing a "Name" field and a button "Submit". When i will enter a name and press the submit button the name will be stored into a table . How can i do that?
    I use Oracle 8i for database and JDK 1.7.0 for Java environment.

    Hi,
    Use the below code to connect to the Oracle DB and do the required Operation with the custom parameters for IP etc.,.
    public static void updatEmp(int empNo, String eName){
              System.out.println("Oracle Connect Example.");
              Connection conn = null;
              String ipAddress ="";
              //Spedify your IP address
              String tnsName = "";
              // Specify your tns name eg. "orcl"
              String url = "jdbc:oracle:thin:@"+ipAddress+":1521:"+tnsName;
              String driver = "oracle.jdbc.driver.OracleDriver";
              String userName = "scott";
              String password = "tiger";
              try {
              Class.forName(driver).newInstance();
              conn = DriverManager.getConnection(url,userName,password);
              System.out.println("Connected to the database");
              conn.setAutoCommit(false);
              PreparedStatement preStmt = conn.prepareStatement("update emp set ename = ? where empno =?");
              preStmt.setInt(2, empNo);
              preStmt.setString(1,eName);
              preStmt.executeUpdate();
              Statement st = conn.createStatement();
                        // For insertion to oracle
              int i = st.executeUpdate("insert into emp (empno,ename) values("+empno+",'"+ename+"')");
              System.out.println("No. of rows updated = "+i);
                        //For Selection from oracle
              /* ResultSet res = st.executeQuery("SELECT empno,ename FROM EMP ");
              while (res.next()){
                   System.out.println("Number of column:"+res.getInt(1));
                   System.out.println("Number of column:"+res.getString(2));
                   conn.rollback(); */
                   // For Updation to oracle
              /*int i = st.executeUpdate("update emp set ename='Hamlet' where empno=7369");
              System.out.println("No. of rows updated = "+i);*/          
              conn.close();
              System.out.println("Disconnected from database");
              } catch (Exception e) {
              e.printStackTrace();
    Note:
    Have to include the ojdbc14-10.2.0.2.0.jar in your java environment, which is the driver for Java to connect to oracle. If it is in Eclipse include using External jar files. If the java environment is Servers put the jar file in your lib folder under Web-INF folder..:-)
    Thanks
    Edited by: Ramesh_R on Aug 26, 2009 8:53 PM

Maybe you are looking for

  • Major flaws of Windows Phone 8

    Leuven, UTC+1, Nokia Lumia 920, Amber + GDR3. I have been a consumer and professional iPhone user for many years and still do with a 4S containing about 200 apps. However in April 2013 I decided to try an alternative OS and bought the Nokia Lumia 920

  • HT201250 Will using Time Machine on my external drive, reformat or wipe my external drive?

    I need to backup my whole computer, and was wondering if I can do this with Time Machine using my external hardrive. The problem is, that I am using this same external hardrive for other things and I don't want to lose that data. Will using Time Mach

  • Installation on a B&W G3 with Stock 16 Meg Video

    This is one of those cases where when you boot off of the installation DVD you get the wonderful greyscale colors. I'm just wondering if there is any fix to this. I do know that if you install 10.3 and then install the 10.3.9 update, the driver is in

  • Mail server prefiltering of junk mail

    I am wondering if there is an Apple service, software, etc. or another approach offered by a third party that allows a mac user to filter junk mail before it gets to Mail from any email server. For example, Yahoo! Mail uses something to filter and co

  • GTX 560 Ti - not enough memory. So now what?

    I upgraded my old card to a GTX 560 Ti with 1GB RAM for use with Premiere Pro.  Works great with hardware rendering sometimes (I had to add the card to the CUDA text file to enable acceleration).  But half the time when skimming through a project or