Trying to simply connect to Oracle with VBscript/ASP - and I cannot.

This is rather embarrassing. I am pretty fluent with ASP and VBscript, and I have written many a web application connecting to Microsoft SQL Server. Now I have a need to connect to an Oracle database, and I'm beating my head against the wall.
1) Web server is Windows Server 2003 SP1
2) Using ASP (not ASP.NET) & VBscript
3) I have installed the Oracle drivers on the server - it is version 10g
4) The administrator of the Oracle database to which I want to connect has created a username and password for me to use from within my code
5) Here is the code I am trying to run:
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open "Provider=MSDAORA;Data Source=XXXXXXX;User Id=YYYYYYY;Password=ZZZZZZZ;"
That's it. 2 lines of code just trying to establish a connection. Using the user name and password provided to me by the administrator, and for Data Source I am using the IP address of the Oracle server (like I have done in the past when connecting to SQL Server). I receive the following error message when viewing this in a browser:
Microsoft OLE DB Provider for Oracle error '80004005'
ORA-12154: TNS:could not resolve the connect identifier specified
Evidently, the Data Source I am using is not correct, but I was provided no other information from the admin. This is the first time any of us have tried to connect to Oracle using ASP/VBScript, so the administrator isn't sure what I need to do ... any help would be so appreciated.

Hello,
I got mine to work by setting up an ODBC System DSN and connecting to it. I think this bypasses the Microsoft driver, which might be what's causing the problem.
Set Db = Server.CreateObject("ADODB.Connection")
Db.Open "DSN=TEST;User ID=userid;Password=password;"
Good luck, I've found it requires a lot of persistence...
Al
Springfield, MO

Similar Messages

  • Error with Connection to Oracle with Wallet , JDBC, and UNIX

    Hello - our application has been getting this error periodically while connecting to an oracle database using OCI JDBC drivers.
    caused by: java.sql.SQLException: ORA-28759: failure to open file
    at oracle.jdbc.driver.DatabaseError.throwsSqlException(DatabaseError.java:125)
    at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:681)
    at oracle.jdbc.driver.T2CConennection.logon(T2CConnection.java :362)
    at oracle.jdbc.driver.PhysicalConnection.<init>
    at oracle.jdbc.driver.T2CConnection.<init>
    at oracle.jdbc.driver.T2CDriverExtension.getConnection
    at oracle.jdbc.driver.OracleDriver.connect
    at java.sql.DriverManager.getConnection
    at java.sql.DriverManager.getConnection
    Once we get this error we keep getting it and are unable to get a connection until we restart it. the file it has the issue with is the cwallet.sso, which I figured out by turning on tracing. The file is there and it gets the connection originally - but for some reason periodically we lose access to that file. But when we get the error the file is there and when we restart the process it's perfectly fine.
    The only way we have been able to replicate this error is by create a sameple JAVA app which just keeps opening connections to the database with the wallet without closing the connections. Everytime we hit the 50th connection that error appears and it's unable to get another connection. If we close the connections everytime it's alright.
    It's not a limit on the amount of connections to oracle because we have no limit set. The best explaination we can find is that unix has some sort of limit on how many concurrent accesses to that file can be done within one process. We have been unable to figure out that limit. We tried playing around with the file descriptor limits to see if it gets more or less then 50, but no luck.
    If anyone has any other suggestions it would be greatly appreciated - we are stuck right now.
    Thanks!

    No suggestions?

  • HT4623 I am trying to update my iPad 32 with retina display and whenever I do it tells me that I am not connected to the Internet even though I am. I have tried several different wifi spots with the same results. Any suggestions would be helpful. Thanks

    I am trying to update my iPad 32 with retina display and whenever I do it tells me that I am not connected to the Internet even though I am. I have tried several different wifi spots with the same results. Any suggestions would be helpful. Thanks

    Try a reset: hold down the home button along with the power button until you see the Apple, then let go.

  • I've got a new MacBookair11 2weeks ago and I am very happy with it. Today I've tried to synchronize it via icloud with my ipad and I have lost the camera. Looking through help in internet I found out that I had to reset the SMC. I did exactly as per instr

    I’ve got a new MacBookair11 2weeks ago and I am very happy with it. Today I’ve tried to synchronize it via icloud with my ipad and I have lost the camera.
    Looking through help in internet I found out that I had to reset the SMC. I did exactly as per instructions given but with no luck.
    Is there any other solutions that will fix my camera for facetime and iphoto?
    Thanks for your help 

    MacBook Air (Mid 2013): FaceTime HD Camera might not work after OS X 10.8.5 update:
    "Apple is investigating this issue."

  • I am trying to upload photos from my iPhone to my macbook but each time I plug my iPhone into the macbook, a message comes up which says my device is locked with a passcode and I cannot load the photos.  Please help.

    I am trying to upload photos from my iPhone to my macbook but each time I plug my iPhone into the macbook, a message comes up which says my device is locked with a passcode and I cannot load the photos. When I plug my phone in, it is on the home screen and unlocked so I don't understand what I am doing wrong. This has never occurred before. Please help.

    Get a powered USB hub.
    https://discussions.apple.com/community/notebooks/macbook_pro?view=documents

  • Ive got this problem with itouch 4th gen when im trying to upgrade my ios to ios 6.1.3 when it is verifying it suddenly shutdown and it keeos on blinking with the logo and i cannot open it...what is the main cause of thst..tnx

    ive got this problem with itouch 4th gen when im trying to upgrade my ios to ios 6.1.3 when it is verifying it suddenly shutdown and it keeos on blinking with the logo and i cannot open it...what is the main cause of thst..tnx

    - Reboot the computer
    - Try DFU mode and then restore/update
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - Delete the update file so that new one has to be download.
    IPSW file location for Mac and Windows
    - Try on another computer to help determine if you have an iPod or computer problem.

  • HT1977 I downloaded the itunes and I update it and also I downloaded many apps but when I am connecting my iphone with my pc and want to put the downloaded apps to my iphone and when I am sync them on step 3 the sync process is hidding, plz help me..

    Dear All, please help me.
    I downloaded the itunes and I update it and also I downloaded many apps but when I am connecting my iphone with my pc and want to put the downloaded apps to my iphone and when I am going to sync them on step 3 the sync process is hidding, I don't know what is the probleme please advice me/help me in this
    my iPhone version is 6.0
    regard...?
    Thanks,
    Abdullah Misrat

    Connect the device to the computer.
    Open iTunes.
    Select the content desired to sync.
    Sync.

  • Tried updating software but now frozen with itunes logo and usb cable picture on screen help

    Tried updating ipod software, now frozen with itunes logo and usb cable picture on the screen. Computer will not reconise it

    - If ou can turn the iPod off, then see if manually placing the iPod in Recovery mode  will allow a restore. Next try DFU mode.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If it always remains on let the battery fully drain. After charging for at least an hour try a rest and restore.

  • Vbscript / asp and DATEs in recordset query

    I've been using dreamweaver for about 5 years now, and its all be mostly vbscript - classic asp based stuff....   mostly small scale stuff using MS Access db as backend datasource.
    i've always had issues with using the recordset building dialogue window/box under server behaviors in terms of building a query using the 'advanced' tab/option and having a date field from my database (formatted like mm/dd/yyyy) used  in the filtering of records... the text based  queries are all a cinch and very easy to do, but for dates I always run into issues.
    right now im simply trying to make sure all the returned records are AFTER the 'current date'  - date() ...
    and dw cs5 has this line added for the default value: RS_Events_cmd.Parameters.Append RS_Events_cmd.CreateParameter("param3", 135, 1, 1, RS_Events__MMColParam3) ' adDBTimeStamp
    in my query im asking And EventDate > ?     ---- basically, where the date of the record in the database is GREATER than or AFTER the current date or a user-defined variable for the date... the default is the current date though.
    something tells me the problem is probably related to the 135,1,1 area  of that string, but i dont know what to try... i've tried changing the last 1 to -1 and 0  but still same error "Application uses a value of the wrong type for the current operation." and it cites that same line of code i just mentioned.
    i might add the database has the date field formatted correctly and im able to use hand-written code to query it just fine, but i know there has to be a way for dw to handle it so my code isnt 'tacked' on and making a mess of the dw routines.
    anyone familiar with any of these issues as relates specifically to vbscript / asp and the use of date() in dw recordset queries?

    Hi,
    <i>I need to use a date to calculate a key figure.</i>
    Here you will use the formula variable with replacement path.
    <i> Can I filter these null values at the query level.</i>
    Yes, it is possible in query level.
    For example, in the formula :
    (0calday = '')* (do what ever you wan to do in case date is null) + (NOT (0calday = ''))* (do what ever you wan to do in case date is not null)
    With rgds,
    Anil Kumar Sharma .P

  • Error: There is a problem with the file and it cannot be copied

    I've been trying to copy (and essentially move) the contents of an NTFS-formatted external HDD to my iMac's internal HDD so I can then format the external HDD to Mac OS Extended. However, when I simply try to drag and drop, I get an error during the transfer that states:
    There is a problem with the file and it cannot be copied.
    I tried a basic cp command in Terminal to copy all contents of the external HDD to a folder on my iMac's desktop, and found that while there were no errors, there were many individual files missing full chunks of data (ie. original file would be 4GB on my external HDD, but only 350MB on my desktop).
    Any ideas on how I can successfully copy a large amount of data (approx. 170GB) from my external HDD to my internal HDD while avoiding this error, so I can ultimately format my external HDD to Mac OS Extended? ANY help is greatly appreciated.

    That's not a good error to see. It indicates something is very wrong. Pulled out of an old programming header file:
    ioErr = -36, /*I/O error (bummers)*/
    If Apple labelled it "bummers," they had a good reason! Unfortunately, that doesn't bode well for you.
    Try running Disk Utility again. Keep repairing over and over until one of two things happens: 1) Disk Utility says no repair was needed, or 2) Disk Utility reports the same error in two sequential repair sessions and is unable to repair it both times.
    If you hit the second case, or if you hit the first but still can't copy files, then you've got two basic options:
    = Buy a third-party disk utility or two and try them. Try TechTool as a first choice.
    = Recover what files you can and write the rest off as gone.
    = Send your drive to a data recovery service and hope they can extract more than you can.
    Of course, none of this is necessary if you have a backup of the contents of that hard drive. (If you don't, this is your learning experience. Once bitten, twice shy, so they say.) Also, regardless of the outcome, once you've got your data or have decided it's gone, you're going to want to wipe that drive completely clean. Reformat the drive with Disk Utility, then when it's done, select the drive in Disk Utility and hit command-i. (Don't select the new volume you just created on that drive, select the drive itself. Mine looks like "232.9 GB Hitachi ..." with the volume name indented underneath.) Look for an item that says S.M.A.R.T. Status, and if it doesn't say Verified, you might as well throw out the drive. Don't trust any more data to it.
    If all appears safe, you can start moving data back onto it. But, as always, make sure you have a backup of everything!

  • New hard drive installed in Mac.  iTunes keeps asking to authorize a very old email address which is not associated with my iPhone and I cannot sync iTunes to my iPhone.

    New hard drive installed in Mac.  iTunes keeps asking to authorize a very old email address which is not associated with my iPhone and I cannot sync iTunes to my iPhone.

    It is referring to purchases made using an Apple ID that was set with that email as the Apple ID. Did you simply create a new Apple ID when the old email address was no longer being used? If so, then that old Apple ID is still tied (and will always be tied) to the purchases made with it, and you will have to sign into iTunes with that Apple ID in order to authorize the computer to it.
    If you don't remember the password for it, you can go to Manage your Apple ID and click on Reset password. If you don't remember the answers to your Security Questions, you can contact Apple Support to get them reset:
    ACCOUNT SECURITY CONTACT NUMBERS
    Cheers,
    GB

  • Mail page now black background with white print and I cannot fix.

    Today when I signed on, my mail page is now black background with white letters and I cannot figure out how to change it back to what was there before -- black on white -- and cannot find anything in help on this problem.

    Some web pages give the user the option on page styles. For the rest of
    them,<BR><BR>
    Go to the
    '''''[https://addons.mozilla.org/en-US/firefox/ Mozilla Add-ons Web Page]'''''
    (There’s a lot of good stuff here)
    and check out
    '''''[https://addons.mozilla.org/en-US/firefox/addon/nosquint/?src=external-Add-ons_Manager_Context_Menu-extension NoSquint]'''''.
    This add-on can override web page setting to give you control.

  • When trying to download an app, a message pops up and says "cannot download due to not enough memory". I have checked there seems to be enough memory on pc and ipod?

    when trying to download an app, a message pops up and says "cannot download due to not enough memory". I have checked there seems to be enough memory on pc and ipod?

    I followed the advice of another user, cleared my payment information and re-entered my credit card info and this took care of it, I was immediately able to download new purchases. Apparently they called and got this info from someone at Apple, there is some sort of "bug".  worked for me...hope it helps you out too!!

  • Not event 6 month i already got a problem with the sound and i cannot watch youtube or any video using my Ipad

    Not event 6 month i already got a problem with the sound and i cannot watch youtube or any video using my Ipad. Please help

    Reset iPad
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.

  • Trying to pull SQL from Oracle via VBScript - Help required connecting

    Hi,
    I really need some help please as I’m new to vbscripting and TNS connections and all this complicated stuff.
    I’m trying to make a connection from one of our Oracle servers and extract some basic data via SQL commands but after trying for a couple of days I’m stumped.
    Here’s the details and I hope someone can advise me in a simple language on where I’m going wrong.
    The server I am trying to connect from is an Essbase server which already has an ODBC connection to the Oracle server setup in the ODBC Datasource Administrator. The driver that I can see in the ODBC Datasource Administrator is ‘Oracle in OraClient10g_home1’ and a ‘SQL Sever’ driver along with some MEARNT OEM drivers.
    The tnsnames.ora has the information for the Oracle server and I can tnsping to it successfully.
    Browsing round the web I have tried a couple of methods to connect:
    "Driver={Microsoft ODBC for Oracle};Dbq=ABCD;Uid=LOGIN;Pwd=PASSWORD;"
    I get the error message:
    'Provider is not specified and there is no designated default Provider.'
    I understand that I don’t have the Microsoft ODBC for Oracle driver installed, not sure if we need it if we have the Oracle in OraClient10g_home1 driver and already have a connection set up. So I tried:
    "Driver={ Oracle in OraClient10g_home1 };Dbq=ABCD;Uid=LOGIN;Pwd=PASSWORD;"
    Again.. 'Provider is not specified and there is no designated default Provider.'
    I also tried another method suggested:
    Dim strCon
    strCon = "Driver={Oracle in OraClient10g_home1}; " & _
             "CONNECTSTRING=(DESCRIPTION=" & _
             "(ADDRESS=(PROTOCOL=TCP)" & _
             "(HOST=EssbaseServer)(PORT=1592))" & _
             "(CONNECT_DATA=(SERVICE_NAME=ABCD))); uid=LOGIN;pwd=PASSWORD;"
    Dim oCon: Set oCon = WScript.CreateObject("ADODB.Connection")
    Dim oRs:  Set oRs  = WScript.CreateObject("ADODB.Recordset")
    oCon.Open strCon
    oCon.Close
    Set oRs = Nothing
    Set oCon = Nothing
    Same error message again:
    Provider is not specified and there is no designated default Provider.
    This leads me to believe that maybe I need to have the Microsoft ODBC for Oracle drivers installed on the server. Maybe I need to set my script differently and am totally doing it wrong. Any help please? If you think I need the driver could you please explain why and how it works so I can put forward for my arguement to install it on the server.
    Many thanks

    I am not a vbscript expert, However a couple of times I have used ADODB to connect with Oracle successfully. Something like
    'Database connection info
    set Conn = CreateObject("ADODB.connection")
    Conn.ConnectionTimeout = 30
    Conn.CommandTimeout = 30
    if dbType = "oracle" then
         conn.open("Provider=MSDAORA.1;User ID=" & dbUser & ";Password=" & dbPass & ";Data Source=" & dbName & ";Persist Security Info=False")
    elseif dbType = "sqlserver" then
         conn.open("Driver={SQL Server};Server=" & dbHost & ";Database=" & dbName & ";Uid=" & dbUser & ";Pwd=" & dbPass & ";")
    elseif dbType = "mysql" then
         conn.open("DRIVER={MySQL ODBC 3.51 Driver}; SERVER=" & dbHost & ";PORT=3306;DATABASE=" & dbName & "; UID=" & dbUser & "; PASSWORD=" & dbPass & "; OPTION=3")
    end ifThe variables are defined as
    dbType = "oracle"                 ' Valid values: "oracle", "sqlserver", "mysql"
    dbHost = "mrs-db-00021.abc-xyz.com"                 ' Hostname of the database server
    dbName = "LDBS_PRD"                 ' Name of the database/SID
    dbUser = "myuser"               ' Name of the user
    dbPass = "xxxx2212"               ' Password of the above-named user

Maybe you are looking for

  • T530 - is it right for me?

    Hey all, I will be entering university in software engineering in the fall and am looking for a new laptop; the release of the newest lenovo line seems like a perfect opportunity for me to jump into the thinkpad community. If I had to list three i'm

  • Fillable forms come back BLANK mainly from Mac Users

    Hello, I created a fillable form from scratch in Adobe Acrobat 9 Pro Extended version 9.3.2, using Adobe Livecycle Designer ES version 8.2.1.  I'm on Windows XP.  When I first created the form I saved it on the company server, but, I can't remember w

  • Strange cover flow behavior

    Just got a 32 GB iPod Touch, and I'm encountering an odd bug with cover flow. For example: say I want to play Amy Winehouse's "Back to Black". If I choose the album from list view, the correct artwork comes up. If I flip horizontal and look at cover

  • ERP Implemetation - Experience the MGL's Indian Manufacturing IT buzz

    MGL SAP Found in 1981, Mascon Global Limited (MGL) has grown to be known as a global provider of technology services with offices and software development centers across USA, Mexico, Europe, Australia and Asia. For the past 28 years, MGL has been the

  • Macbook Pro (2010) and iPad don't see each other on same network

    I'm running OSX10.10 on a MacBook Pro 15" mid 2010 and a brand new iPad Air running iOS 8 on the same wifi NETWORK with bluetooth activated (and not) - AND AIRDROP DOES NOT RECOGNIZE EITHER DEVICE!!!! I've gone through every system preference option