Can't connect to oracle

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Can't connect to oracle

    I am trying to connect to Oracle 9i release 2 from my IIS
    5 on win 2000 pro development machine.

    I have oracle 8.1.7 client which has the OO4O installed.

    My connect string looks like this:

    Provider=OraOLEDB.Oracle.1;Password=xxx;Persist Security
    Info=True;User ID=xxx;Data Source=xxx

    I am getting an error:
    The remote procedure call failed and did not execute.

    My asp code looks like this:



    cstIntranetdb = "VALID string"

    set Conn = server.createobject("adodb.connection")
    conn.open cstIntranetdb
    Conn.Close
    Set Conn = Nothing

    What am I missing? I don't want to use a DSN.

    Thanks
    Mike

    Mike D Guest

  2. Similar Questions and Discussions

    1. #25688 [Bgs->Csd]: Connect To Oracle 9i using IIS & PHP
      ID: 25688 User updated by: ramez at faraah dot com dot sa Reported By: ramez at faraah dot com dot sa -Status: Bogus...
    2. #25688 [Opn->Bgs]: Connect To Oracle 9i using IIS & PHP
      ID: 25688 Updated by: sniper@php.net Reported By: ramez at faraah dot com dot sa -Status: Open +Status: ...
    3. #25688 [Bgs->Opn]: Connect To Oracle 9i using IIS & PHP
      ID: 25688 User updated by: ramez at faraah dot com dot sa Reported By: ramez at faraah dot com dot sa -Status: Bogus...
    4. #25688 [NEW]: Connect To Oracle 9i using IIS & PHP
      From: ramez at faraah dot com dot sa Operating system: Win XP PHP version: 4.3.1 PHP Bug Type: OCI8 related Bug description:...
    5. Cannot connect with OCI driver and Oracle 9i (9.2)
      Hello all, I have been trying to use the OCI driver to connect to Oracle 9i, but have been getting the following error: java.sql.SQLException:...
  3. #2

    Default Re: Can't connect to oracle

    > cstIntranetdb = "VALID string"

    "VALID" = an assumption, I presume, based on it working elsewhere (probably
    with different security configuration). Please try the string using
    OraOLEDB.Oracle found in [url]http://www.aspfaq.com/2126[/url]

    --
    [url]http://www.aspfaq.com/[/url]
    (Reverse address to reply.)


    Aaron [SQL Server MVP] Guest

  4. #3

    Default Re: Can't connect to oracle

    ASPFAQ was the first place I went for the string.

    I said valid string because I made a .udl file and tested
    the connection through it and the connection succeeded.

    Mike


    >-----Original Message-----
    >> cstIntranetdb = "VALID string"
    >
    >"VALID" = an assumption, I presume, based on it working
    elsewhere (probably
    >with different security configuration). Please try the
    string using
    >OraOLEDB.Oracle found in [url]http://www.aspfaq.com/2126[/url]
    >
    >--
    >[url]http://www.aspfaq.com/[/url]
    >(Reverse address to reply.)
    >
    >
    >.
    >
    Mike D Guest

  5. #4

    Default Re: Can't connect to oracle

    "Mike D" wrote in message news:174b501c448e8$ecab0520$a301280a@phx.gbl...
    : ASPFAQ was the first place I went for the string.
    :
    : I said valid string because I made a .udl file and tested
    : the connection through it and the connection succeeded.

    With a UDL file that works you can drag that to notepad and view the
    content. However, if this is Oracle from Oracle and not MSFT, then this
    should work:

    [url]http://able-consulting.com/MDAC/ADO/Connection/OLEDB_Providers.htm#OLEDBProviderForOracleFromOrac le[/url]

    --
    Roland Hall
    /* This information is distributed in the hope that it will be useful, but
    without any warranty; without even the implied warranty of merchantability
    or fitness for a particular purpose. */
    Technet Script Center - [url]http://www.microsoft.com/technet/scriptcenter/[/url]
    WSH 5.6 Documentation - [url]http://msdn.microsoft.com/downloads/list/webdev.asp[/url]
    MSDN Library - [url]http://msdn.microsoft.com/library/default.asp[/url]


    Roland Hall Guest

  6. #5

    Default Re: Can't connect to oracle

    > ASPFAQ was the first place I went for the string.

    And what happened when you tried THAT string? The string I've listed
    mentions nothing about persist security info, etc.
    > I said valid string because I made a .udl file and tested
    > the connection through it and the connection succeeded.
    YES! You executed that as YOU. Now, let's go back to IIS fundamentals...
    IIS doesn't run ASP pages as YOU, it executes them as IUSR_YourMachineName.
    Which, by default, is a very low-privileged, local user account. Which is
    why the "Persist Security Info" part of your string appeared quite
    suspicious to me. If Oracle is running on another machine, it has no idea
    who IUSR_YourMachineName is.

    A


    Aaron [SQL Server MVP] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139