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

  1. #1

    Default Asp and Oracle

    Hi,
    I'm trying to connect to Oracle from my asp page and the connection
    fails. I use this sub to connect. If I want to connect to an Access db, it
    works fine with the good connection string, but if I want to connect to
    Oracle, it does not work (yes, I changed the connection string). Can someone
    point me what is wrong in it please?

    thanks

    (here is the sub)
    public sub CreateConnWithOracleDB(byval strUser, byval strPass, byval
    strConnection, byref Conn)

    ' Create an ADO Connection to connect to the database.
    Set Conn = Server.CreateObject("ADODB.Connection")

    Conn.ConnectionTimeout = 15
    Conn.CommandTimeout = 30

    ' This line is for the Oracle database:
    Conn.Open "Provider=OraOLEDB.Oracle;Data Source=" & strConnection &
    ";User Id=" & strUser & ";Password=" & strPass & ""
    end sub

    ThunderMusic


    ThunderMusic Guest

  2. Similar Questions and Discussions

    1. Oracle Table Access With Oracle OLEDB Driver
      If I use the Oracle client to access the Oracle database with DW 2004, it does not display any tables. If I use the Microsoft client it does work. ...
    2. [Macromedia][Oracle JDBC Driver][Oracle]ORA-01000:maximum open cursors exceeded
      Here is the technote from Macromedia regarding this issue: http://www.macromedia.com/go/tn_17660 Hope this helps!
    3. #13053 [Com]: oci8 error, this kill oracle-prosseces in the oracle-instance.
      ID: 13053 Comment by: gid at gifpaste dot net Reported By: jsun at basefarm dot no Status: Bogus Bug Type: ...
    4. #24950 [Bgs]: Compiling PHP --with-oci8 --with oracle (Oracle 9i) fails
      ID: 24950 User updated by: fschulze at more-radio dot de Reported By: fschulze at more-radio dot de Status: Bogus...
    5. New 'Oracle Express / Oracle 9i OLAP' White Paper Available For Download
      Plus Consultancy (http://www.plusconsultancy.co.uk) recently presented a white paper entitled "Express Evolution - What Oracle 9i OLAP Offers The...
  3. #2

    Default Re: Asp and Oracle


    "ThunderMusic" <NOdlatulippe@teldig.comSPAM> wrote in message
    news:OGi6qxZYDHA.2344@TK2MSFTNGP09.phx.gbl...
    > Hi,
    > I'm trying to connect to Oracle from my asp page and the connection
    > fails.
    How? Do you get an error?

    Ray at work


    Ray at Guest

  4. #3

    Default Re: Asp and Oracle

    yes, the page does not load and the error is precisely on the Conn.Open
    line. the error is this

    "Error Type:
    OraOLEDB (0x80004005)
    ORA-12640: Authentication adapter initialization failed
    /dvd/scripts/db.asp, line 53"

    And the provider is installed on the machine because I connect with the same
    database from my visual basic application using data environment. So it's
    something else.

    can you see what it is?

    thanks

    ThunderMusic


    "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
    news:%23yCy80ZYDHA.2648@TK2MSFTNGP09.phx.gbl...
    >
    > "ThunderMusic" <NOdlatulippe@teldig.comSPAM> wrote in message
    > news:OGi6qxZYDHA.2344@TK2MSFTNGP09.phx.gbl...
    > > Hi,
    > > I'm trying to connect to Oracle from my asp page and the connection
    > > fails.
    >
    > How? Do you get an error?
    >
    > Ray at work
    >
    >

    ThunderMusic Guest

  5. #4

    Default Re: Asp and Oracle

    ok, I found it, I changed my sqlnet.ora. for the variable
    "SQLNET.AUTHENTICATION_SERVICES" I changed (NTS) to (NONE) and it worked
    just fine. It's the solution advised on the Oracle site.

    thanks

    ThunderMusic

    "ThunderMusic" <NOdlatulippe@teldig.comSPAM> wrote in message
    news:%23Udvk6ZYDHA.1916@TK2MSFTNGP12.phx.gbl...
    > yes, the page does not load and the error is precisely on the Conn.Open
    > line. the error is this
    >
    > "Error Type:
    > OraOLEDB (0x80004005)
    > ORA-12640: Authentication adapter initialization failed
    > /dvd/scripts/db.asp, line 53"
    >
    > And the provider is installed on the machine because I connect with the
    same
    > database from my visual basic application using data environment. So it's
    > something else.
    >
    > can you see what it is?
    >
    > thanks
    >
    > ThunderMusic
    >
    >
    > "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
    > news:%23yCy80ZYDHA.2648@TK2MSFTNGP09.phx.gbl...
    > >
    > > "ThunderMusic" <NOdlatulippe@teldig.comSPAM> wrote in message
    > > news:OGi6qxZYDHA.2344@TK2MSFTNGP09.phx.gbl...
    > > > Hi,
    > > > I'm trying to connect to Oracle from my asp page and the
    connection
    > > > fails.
    > >
    > > How? Do you get an error?
    > >
    > > Ray at work
    > >
    > >
    >
    >

    ThunderMusic Guest

  6. #5

    Default Re: Asp and Oracle


    In General for web-based Oracle access, the database cannot use NT authentication methods since no authentiicated user
    name is passed to it by the web server - as you found, setting it to NONE ( or just removing that line from the
    sqlnet.ora file ) will solve most of that type of problem..



    On Wed, 13 Aug 2003 09:35:12 -0400, "ThunderMusic" <NOdlatulippe@teldig.comSPAM> wrote:
    >ok, I found it, I changed my sqlnet.ora. for the variable
    >"SQLNET.AUTHENTICATION_SERVICES" I changed (NTS) to (NONE) and it worked
    >just fine. It's the solution advised on the Oracle site.
    >
    >thanks
    >
    >ThunderMusic
    >
    >"ThunderMusic" <NOdlatulippe@teldig.comSPAM> wrote in message
    >news:%23Udvk6ZYDHA.1916@TK2MSFTNGP12.phx.gbl...
    >> yes, the page does not load and the error is precisely on the Conn.Open
    >> line. the error is this
    >>
    >> "Error Type:
    >> OraOLEDB (0x80004005)
    >> ORA-12640: Authentication adapter initialization failed
    >> /dvd/scripts/db.asp, line 53"
    >>
    >> And the provider is installed on the machine because I connect with the
    >same
    >> database from my visual basic application using data environment. So it's
    >> something else.
    >>
    >> can you see what it is?
    >>
    >> thanks
    >>
    >> ThunderMusic
    >>
    >>
    >> "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
    >> news:%23yCy80ZYDHA.2648@TK2MSFTNGP09.phx.gbl...
    >> >
    >> > "ThunderMusic" <NOdlatulippe@teldig.comSPAM> wrote in message
    >> > news:OGi6qxZYDHA.2344@TK2MSFTNGP09.phx.gbl...
    >> > > Hi,
    >> > > I'm trying to connect to Oracle from my asp page and the
    >connection
    >> > > fails.
    >> >
    >> > How? Do you get an error?
    >> >
    >> > Ray at work
    >> >
    >> >
    >>
    >>
    >
    TurkBear 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