Connectivity of Oracle 9i DB With ASP Application

Dear friends,
Can Any one please help me in solving my problem as follows. I run Oracle 9i Release 2 Database on Red HAt Linux Advanced Server. I also run a web server running on windows 2000 server and IIS 5.0. Now my problem is that whenever i try to coonnect the databse using ASP Pasges it returns me error of the following nature :
1) objconn.Open "Provider=MSDASQL;Driver={Microsoft ODBC For Oracle};UID = kms;PWD=kms;Server=KMS;"
Error Message :
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed
/ORACLE77.ASP, line 8
2)objconn.Open "Provider=MSDAORA.1;User Id = kms;Password=kms;Data source=KMS;Persist Security Info=False"
Error Message:
Microsoft OLE DB Provider for Oracle error '80004005'
Oracle client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 or later client software installation. Provider is unable to function until these components are installed.
3) objconn.Open "DSN=KMS;uid=kms;pwd=kms"
Error Message :
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
Specified driver could not be loaded due to system error 5 (Oracle in OraHome92).
My service name is KMS,database name & sid name also is KMS
PLease Help me out of this problem.

You may probably look at the possibility of using Oracle Provider for OLEDB.
You can refer samples on this at following url
http://otn.oracle.com/sample_code/tech/windows/ole_db/content.html
This url also gives links for downloading the software.
Chandar

Similar Messages

  • Unable to connect SQL server 2005 databse with JSF applications !

    Hello guys!
    Help me out to connect SQL server 2005 Databse with JSF applications using JDBC-ODBC bridge. I'm working with Netbeans 6.1 IDE.
    I tried for the basic applications but instead got this error:
    "unable to deploy jdbc drivers to the <project>domain/lib"
    Please help me out with working sample codes that connects MS SQL server 2005 DB with JSF!!
    Thank you guys!

    1) don't use the bridge driver
    2) don't do database access from JSF
    3) learn how to use your application server
    4) learn how to use your IDE

  • How to integrate Oracle Right Now with our application Calling Button and Chat Button  Application is on WebCenter  Sites

    How to integrate Oracle Right Now with our application Calling Button and Chat Button. Application is on WebCenter  Sites

    Thanks handar. As per your instructions I have tried OAM authorization policy and its working fine. But we also wants to check the same with OES also. Currently I have configure weblogic SM and created domain. In same domain I have deployed my application also. I have created application, resources and authorization policy to authorize /myfolder/index.jsp if user has some specific role. Now if I try to access my web application using http://host:8001/CONTEXT/myfolder/index.jsp, it doesn't check if user is authorized or not. I guess my application is not related to the resource I have created. Please help me with this. Also, let me know if we can retirive logged in user from session and use for authorization.

  • Connection to Oracle XE via IIS/ASP app was working then stopped

    I am prototyping an application for my new management here so that I can recommend they use Oracle XE.
    The connection to the Oracle XE database appears to have stopped working, via an IIS/ASP application I wrote. I can still connect through ODBC using native MS Access to Oracle XE, when logged into XP, its just when I try to log in using the app via IIS I get the following error:
    Unable to establish connection to database.
    Error information:
    Microsoft OLE DB Provider for ODBC Drivers (0x80040E4D)
    [Oracle][ODBC][Ora]ORA-12154: TNS:could not resolve the connect identifier specified
    It was working for a while, like the whole first week. It might be related to the fact that that I finally rebooted, not sure.
    I have tried many, many things. I made the IUSR account an admin on the box hoping that maybe it had just lost access to the local ODBC/TNSNAMES. Right now all the components are local to my development box, from the IIS server to the Oracle eXtended Edition database (XE, free). Like I said, it was working. I did have this same message I believe early on, which turned out due to the fact that my ODBC DSN was a local DSN, instead of a System DSN, which I overcame at that time. But it just started happening again, possibly after a reboot.
    I also tried switching to a local MS Access database, and I got a similar message. I moved the Access db to c: root, and it appears to work, so it appears to be a file/directory access issue.
    But I'm not sure how to resolve it because I would much prefer to use the Oracle database.
    Thoughts?

    As far as the connect string goes, I'm not sure exactly what to specify to you.
    I am using the default connect string that comes when you install XE.
    I.e., "XE".
    I suspect this might be a path issue for the virtual account that is used by IIS sessions. As you may know, when IIS runs, it logs the web user into the box using a dummy account, typically prefixed with the string "IUSR".
    Although I made this account an admin to the box, I think I may need to add some of the Oracle Client directories to the path which is accessed by this IUSR account. The problem is, the acount, with its password, was set up by default and I don't know what its password is. But I think that I could try to adde Oracle's home path to the default system path, what do you think?
    In other words, I don't think the XE connection libraries are available to this dummy IIS account. The strange thing is, it worked for a while, ostensibly till I rebooted.
    Know also that I am not using the Oracle Client per se, although I did install it and try it with mixed results. I am just using the Oracle OLE DB ODBC that appeared when I installed the Oracle XE server itself.

  • Oracle Database Diconnection with VC Application

    Hi,
    We are facing a major issue in our application such as the Application shows customized error as "Connection to the database server is disconnected" and terminates the application abruptly. The error pops up sometimes immediately after opening the application or after a period of time.
    I cannot able to figure out how the error is coming. Application is not generating any logs.
    The application is built on VC and it has two tier architecture. Application uses the Oracle tnsnames and ODBC Connection to connect to the Oracle Database.
    I had done some basic analysis for network availability such as i opened the Oracle Sql*plus and our application simultaneously on the client machine (Windows XP). But application was disconnected with the above mentioned error and sql*plus working normal.
    I have also done by switching on connection trace in the sqlnet.ora file. But I can't able to understand the trace file as it has no "null" named entries for connection values.
    Whenever the Application is closed abnormally its leaving the ACTIVE session as INACTIVE. Then, I'm killing the oracle sessions manually using ORAKILL.
    Please provide some pointers like how would I log the exception information if any exception is raised in oracle database. Depending on that log information i like to back track the issue.
    Oracle Database Environment Details*
    OS : Windows 2000 Server (SP4)
    Oracle Database : Oracle 8i Enterprise Edition (8.1.7)
    Please revert in case of any further information is required.

    @SomeoneElse
    Its happening from the beginning say two or three times a day. But from last two months the problem is very often (once per 15mins). User can't able to work on the application.

  • Error in connecting to Oracle webcenter DB with Endeca

    Hi,
    I gave the passthrough values and the rest of the details in the developer studio. However, on running baseline, I am getting the below error:
    Apr 15, 2013 5:22:23 PM com.endeca.soleng.itl.jdbc.AdvancedJDBCColumnHandler <init>
    WARNING: Could not find properties file in classpath; defaults will be used.
    Apr 15, 2013 5:22:23 PM com.endeca.soleng.itl.jdbc.AdvancedJDBCColumnHandler <init>
    WARNING: outputDataDir ..\incoming not writable
    Apr 15, 2013 5:22:24 PM com.endeca.edf.adapter.AdapterRunner run
    SEVERE: Failed to open connection to: jdbc:oracle:<host>:<port>/<dbname>.
    com.endeca.edf.adapter.plugins.JdbcAdapterException: Failed to open connection to: jdbc:oracle:<host>:<port>/<dbname>.
    +     at com.endeca.edf.adapter.plugins.JdbcAdapter.connect(JdbcAdapter.java:201)+
    +     at com.endeca.edf.adapter.plugins.JdbcAdapter.execute(JdbcAdapter.java:94)+
    +     at com.endeca.edf.adapter.AdapterRunner.run(AdapterRunner.java:168)+
    +     at com.endeca.edf.adapter.AdapterRunner.main(AdapterRunner.java:43)+
    Caused by: java.sql.SQLException: Invalid Oracle URL specified
    +     at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:423)+
    +     at java.sql.DriverManager.getConnection(DriverManager.java:582)+
    +     at java.sql.DriverManager.getConnection(DriverManager.java:154)+
    +     at com.endeca.edf.adapter.plugins.JdbcAdapter.connect(JdbcAdapter.java:188)+
    +     ... 3 more+
    Getting invalid oracle url for jdbc:oracle:<host>:<port>/<dbname>. Please suggest correct url for connecting to oracle db.
    Thanks.

    Hi,
    I found out that the db bundled with webcenter sites is HSQL. So, I performed the same steps using hsql jar but getting the below error:
    Apr 16, 2013 2:18:09 PM com.endeca.soleng.itl.jdbc.AdvancedJDBCColumnHandler <init>
    WARNING: Could not find properties file in classpath; defaults will be used.
    Apr 16, 2013 2:18:09 PM com.endeca.soleng.itl.jdbc.AdvancedJDBCColumnHandler <init>
    WARNING: outputDataDir ..\incoming not writable
    Apr 16, 2013 2:18:11 PM com.endeca.edf.adapter.AdapterRunner run
    SEVERE: Failed to open connection to: jdbc:hsqldb:hsql://<host>:<port>.
    com.endeca.edf.adapter.plugins.JdbcAdapterException: Failed to open connection to: jdbc:hsqldb:hsql://<host>:<port>.
         at com.endeca.edf.adapter.plugins.JdbcAdapter.connect(JdbcAdapter.java:201)
         at com.endeca.edf.adapter.plugins.JdbcAdapter.execute(JdbcAdapter.java:94)
         at com.endeca.edf.adapter.AdapterRunner.run(AdapterRunner.java:168)
         at com.endeca.edf.adapter.AdapterRunner.main(AdapterRunner.java:43)
    Caused by: java.sql.SQLException: socket creation error
         at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
         at org.hsqldb.jdbc.jdbcConnection.<init>(Unknown Source)
         at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
         at org.hsqldb.jdbcDriver.connect(Unknown Source)
         at java.sql.DriverManager.getConnection(DriverManager.java:582)
         at java.sql.DriverManager.getConnection(DriverManager.java:154)
         at com.endeca.edf.adapter.plugins.JdbcAdapter.connect(JdbcAdapter.java:188)
         ... 3 more
    Getting Socket creation error :( Can u pls help in connecting to hsql db? Probably my DB_URL is also wrong, not sure of the correct parameter. I have given :
    jdbc:hsqldb:hsql://<host>:<port>
    Also, 1 more surprising thing is that even though hsql db is working from webcenter sites explorer, in services, there is no hsql service visibile.

  • Connect on Oracle 11g Xe with ADODB c++ and VS2010 (compiled in 64)

    Hello everybody,
    I develop an application in C++ and ADODB to connect at Oracle 11g XE. I use this connection string : *"Provider=OraOLEDB.Oracle;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=MyHost)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=XE)));User Id=MyUserId;Password=MyPwd*;";*
    when I compiled in win32, it's run successfuly but in x64 i catch exception : Can not find the provider. It may not be installed.
    At this line
    hr=m_pConnection->Open(strCs.AllocSysString(),"","",adConnectUnspecified);
    someone have an idea ? Thanks for you answer.
    Edited by: user13819505 on 3 sept. 2012 06:31

    user13819505 wrote:
    when I compiled in win32, it's run successfuly but in x64 i catch exception : Can not find the provider. It may not be installed.Did you install the 64-bit Oracle client?

  • Oracle Reports Integration with iPlanet Application/Web Server

    Do any body know if we can integrate Oracle Reports with iPlanet Application Server or Web Server?

    Theoretically yes, in Reports 6i there is either a CGI or servlet to set up, in 9i there is a servlet interface.
    In practice through this is not simple, at least in the 9i case, and with Oracle 9iAS a reports server comes configured out of the box.
    Regards,
    Danny

  • Connecting to a java db with an application in netbeans 6.7

    I'm working through the example found here [http://java.sun.com/docs/books/tutorial/jdbc/basics/] and have successfully created and connected to a database in the services tab. The driver is org.apache.derby.jdbc.ClientDriver and the url is jdbc:derby://localhost:1527/COFFEEBREAK. I have two tables setup just like the example and I can view the data in the services tab. I'm having problems connecting to it with an application. I have included the derby.jar file in my library. I'm trying to use the following code to connect but get a "java.sql.SQLException: Database 'COFFEEBREAK' not found" error. Any help would be appreciated, I've been staring at the for 2 days.
            try         {             Class.forName("org.apache.derby.jdbc.EmbeddedDriver");         } catch (ClassNotFoundException ex)         {             System.out.println("Driver not loaded");             Logger.getLogger(MainWindow.class.getName()).log(Level.SEVERE, null, ex);         }         try         {             Connection conn = DriverManager.getConnection("jdbc:derby:COFFEEBREAK");         } catch (SQLException ex)         {             Logger.getLogger(MainWindow.class.getName()).log(Level.SEVERE, null, ex);         }

    Your embedded Derby is not looking for the database in the same place as your Derby server.
    If the server is running as a separate process (which it probably is if you started it using the Netbeans menus) and has booted the database, you won't be able to connect using the embedded driver anyway. You will get an error message which is different from the one you got (I will get back to that).
    I assume you have already created the database, since you say you have connected to it via Netbeans' services tab using the client driver. In that case, your problem is that you are not able to find the database, i.e. the embedded Derby driver is looking in a different place than where it is.
    The embedded Derby driver does not necessarily know the working directory, or the "derby.system.home" of the server which booted the database when you created it. So you either need to tell it where it is, or use the client driver in your application instead.
    Look at your Java DB / Derby server properties in your NetBeans installation. The value for "Database location" is what is your "derby.system.home". So, you can set that in your application as well, by setting it as a system property before booting the embedded driver.
    Alternatively, you can specify full path to your database in the connection URL. A third alternative is to move the database to the working directory of your application, but then you need to adjust client URLs if you also want to connect using the client driver....
    Going with the first alternative, it will be something like this:
            System.setProperty("derby.system.home", pathFromDatabaseLocationSetting);
            try
                Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
            } catch (ClassNotFoundException ex)
                System.out.println("Driver not loaded");
                Logger.getLogger(MainWindow.class.getName()).log(Level.SEVERE, null, ex);
            try
                Connection conn = DriverManager.getConnection("jdbc:derby:COFFEEBREAK");
            } catch (SQLException ex)
                Logger.getLogger(MainWindow.class.getName()).log(Level.SEVERE, null, ex);
            }If you get an error saying the database is already booted, you need to either shut down the server (or shut down the database that is booted in the server) first, or use the client driver instead. If you use the client driver, you don't need to set derby.system.home, but you need to have the server running.

  • Report.Load Error with ASP application

    Hi,
    I experienced a few instances where my the follow statement where my ASP application (using VS2005, CRXI-R2+SP4, Datasets and CR Viewer on the server) thows an error on my server (running Server 2003).
            Dim Report As CrystalDecisions.CrystalReports.Engine.ReportDocument = _
                New CrystalDecisions.CrystalReports.Engine.ReportDocument()
            Try
                Report.Load(Server.MapPath("~/Private/Event/WebEvent.rpt"))
            Catch ex As Exception
                JavaMessage("Report Not Found")
                Exit Sub
            End Try
    I don't know what the exception is at this point. But something happens and the crystal reports in all my websites break uniformly. I need to restart IIS to get things back working. This has happended to me 3x now.
    Any ideas?
    Thanks,
    Eric

    Hi,
    As a best practice use Close() and Dispose() method also gc.Collect();
    Check if this helps!!
    Amit

  • Oracle OLEDB PRovider with ASP

    hi,
    Can anyone provide me a piece of code which demonstrates how to call an Oracle sp from asp using the Oracle OLEDB provider.
    I would also appreciate if the Oracle package code could be provided too, since with the Provider we have to have a different code for the stored procedure (Ref cursor..??)
    I have been successfully connecting using the Microsoft ODBC Driver, but looks like it has some big time bugs in it which causes our server to hang and a dllhost.exe to consume large amounts of database memory.
    Anybody can help me with that?
    Many Thanks,
    Harshad.

    Harshad,
    Oracle OLEDB samples are available at
    http://otn.oracle.com/sample_code/tech/windows/ole_db/content.html
    URL.
    "Returning multiple recordsets from a stored procedure" sample demonstrates
    how REF cursors are returned from a Stored Procedure (contained in a DB package).
    This sample is a stand alone application and not an ASP program, but the same code
    can be helpful for ASP too.
    Regards
    Jagriti

  • Connecting to Oracle 8i.7 Database on Application Server 10g (10.1.2)

    Hi
    Dear All
    i have gust installed Oracle Application Infrastructure & middle tire 10g(10.1.2)
    and i am asking
    for the capability to connect (After Configuring Tnsname) to Oracle Database 8i(8.1.7.0.0)
    the message after trying to connect is :
    Connecting to This Version of database is no longer supported ..!
    and please i want clarification note if we can't connect to give my officer so we can discuss the upgrade for database to 10g.
    Best Regards .
    Ibrahim.

    Bug 3437884 - 10g client cannot connect to 8.1.7.0 - 8.1.7.3 server : if your Customer needs to stay on 8i, then the last available patch should be applied.
    10.1.4 Client (the one used by AS 10.1.2) shouldn't have problems with 8.1.7.4 DB.

  • I have a error when i connect to sql exprees 2012 with my application

     hi  
    I have a application , its connected to sql server 2012  express
    user name  :  sa 
    and i have a password 
    in my computer and our company's computer its ok
    now 
    i setup sql server 2012 express in a customer's server 
    i setup my  windows application in server ... its works good (local)
    when i install my app in another network's computer  i see my sql server & i selected my server and create a provider & i tested my connection string its ok
    i have a succesfull connectionstring
    but when i read  records & ... i have a login failed server\ user
    why ?
     attention in customers' server have a sql server 2008 r2 for web
    my database can't restore in 2008 r2
    and any setting its same with my setting

    There can be too many problems that prevent connecting to the database. I suggest you get back with more information when you will have it in order to save us from guessing game :-)
    Don't worry we will be here to help tomorrow too (some of us probably) :-) 
    [Personal Site] [Blog] [Facebook]
    We Iranians do not like insult to others.
    good luck
    Hello Reza,
    I would like you to take answers in lighter way.As far as i can see there was no insult there Pituach just ( with simley) tried to tell you that such a error could be because of many reasons and please can you provide more details.
    SQL server forum includes people from all around world and only thing matters here is knowledge.
    Hope this helps
    Thanks for cooperation
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers
    hello Shanky_621 & RSingh
    &  pituach
    sorry  , You are right 
     i deleted my post 

  • Oracle ODBC driver with Access Application

    I get a problem when using MS-Access 2007 DAO recordset built on table hosted by an Oracle database 10g and connected thru ODBC
    The table scheme is :
    idPartenaire : number(11)
    libelle : varchar2(250)
    code : varchar2(5)
    actif : number(1)
    idCollege :numner(11)
    idPartenaire is generated by a sequence read in a trigger fired before insert on th table.
    The code I use in Access is :
    The query associated with the form is :
    "select * from table1"
    and the event procedure connected to a button on the form is :
    Private Sub Commande0_Click()
    Dim rs As DAO.Recordset
    Me.Recordset.AddNew
    Me.Recordset!libelle = CStr(Rnd) ' some value
    Me.Recordset!code = “”
    Me.Recordset!actif = -1
    Me.Recordset!idCollege = 1
    Me.Recordset.Update
    Me.Recordset.Bookmark = Me.Recordset.LastModified
    Dim idtemp As Long
    idtemp = Me.Recordset.idPartenaire
    Me.Requery
    Me.Recordset.FindFirst "idPartenaire = " & idtemp
    Set rs = Nothing
    End Sub
    When I run this code, I get an error 3167 (current record is deleted) on the line :
    idtemp = Me.Recordset.idPartenaire
    If I change the ligne :
    Me.Recordset!code = “”
    By :
    Me.Recordset!code = “xxxx”
    or if I comment this line, the error does not appear and I get the right value in idtemp variable.
    I tried also with the same table in a SQL Server database table. In this case it works fine in all cases.
    So, I seems that the problem is due to the Oracle ODBC driver. I tried with different versions of Oracle ODBC drivers (v10.0.2.4, v11.1.6)
    I search on Internet but I have not found any explanation or solution.
    Does anybody experiment the same problem (and find a solution)?
    Gilles Roussel.

    The two lines you quote aren't errors, they're warnings and they're pretty standard fare. If there isn't anything else in the ODBC log, then the driver isn't returning any errors. I'm not sure why Access is failing, so let's look at the client configuration first.
    - I assume you've successfully installed the 8.1.6 client on the machine with Access. Were there any errors during the install?
    - You say you're using the 8.1.6 version of the Oracle ODBC driver-- can you look to see what the last digit of the version is? If possible, I'd start by downloading the most recent 8.1.6.x ODBC driver from OTN.
    - Check which version of the MDAC you have installed (new versions & a version checker are available from Microsoft at <http://www.microsoft.com/data>.
    - The ODBC driver you download above will list which versions of the MDAC it is expected to work with. Make sure your version is one of the listed versions.
    Justin

  • Integrating Oracle Social Network with ADF Application in UI

    Hello,
    I'm new to ADF as well as OSN, I went through the ADF tutorial (Developing RIA Web Applications with Oracle ADF) and understood a little bit.
    My requirement is to integrate the Oracle Social Network in the ADF web application UI. I found the link "Implementing Oracle Social Network Integration - 11g Release 7 (11.1.7)"
    I'm finding difficulties in following the documentation, particularly the pre-requisites.
    * I use JDeveloper version 11.1.1.7.0 and I have downloaded all updates related to webcenter in my JDeveloper.
    May I request you to add few more screen shots that explain where to enter the Oracle Social Network URL in JDeveloper.
    Else a simple tutorial with screen shots would be a great help!
    Thank you,
    MC.

    MC, the documentation you are looking at is specific to Fusion Apps developers integrating with Oracle Social Network.  If you are looking to do generic ADF development including work against OSN then this is probably not the place to start.  Are you a Fusion Apps developer, or are you an Oracle Cloud Apps customer that has an application and OSN that you are trying to extend?  If you could provide a little more context about what you are trying to achieve we will be able to advise the right route for you to take.
    Thanks,  Andy

Maybe you are looking for

  • How can I get a newEpson Printer Utility?

    I deleted all the printers except my Epson Stylus Photo 820. I was trying to create more room on my hard drive and fix the slow down I have been experiencing. I also emptied the trash. Since then I can't clean my printer ink jets because the Printer

  • How to create an image slideshow?

    Hello, I am a beginner in web design and I need your help somewhere. Please look at the follwoing website: www.safaribig5.com Considering the image slideshow at the top of the home page, how do I add it to a webpage that I'm currently desiging in Dre

  • Firefox version 27 does not launch when i click on the icon

    When I click on the Firefox icon (version 27) in the task bar (Windows 7), it does not want to launch. I have to restart my PC and reinstall version 26...

  • VF05N not displaying all documents correctly

    Dear all, I am facing the Problem while executing the VF05n. When I specify a time period as selection criteria,  I am getting few documents. But with the same criteria as earlier & the Date field as empty, I am getting many more documents for the sa

  • Weblogic_sp.jar

    After I sucefully installed the Weblogic Sever 7.0 with SP5, I can not find the the weblogic_sp.jar in the %W_H%\server\lib, and I can not find it by search the entire %W_H% dir. Then I ran the smart_update, and can not find any item need updated. Is