Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

Rated
Read 56,312 times

Contents

Related Categories

Oracle8 and Oracle8i - Summary

Wrox

Summary

That just about brings us to the end of this guide to connecting to an Oracle database from an ASP application. We covered quite lot of ground here:

  • Installation and configuration of the Oracle8 client software, Net8
  • Using the Microsoft OLE DB Provider for Oracle
  • Using the Microsoft OLE DB Provider for ODBC
  • Using Oracle Objects for OLE (OO4O)
  • PL/SQL fundamentals
  • Creating a sample ASP application based on the scott account
  • Showing that it is possible to retrieve an ADO Recordset from an Oracle stored procedure, using both PL/SQL tables and reference cursors
  • Before we finish this chapter, take look at the chart below comparing  each of the common methods of data access for Oracle. I added an additional 7000 records to the emp table and then used each of the methods to retrieve these records and display them using an ASP script. Each method was executed three times and after each test I rebooted the server machine so that there would be very little chance of data being cached by either Oracle or the web server (for this test the web server also doubled as the Oracle database server to cut the time taken to shutdown and restart).


    In these tests, MSDAORA  was used with a standard SQL SELECT statement, as was the ODBC Driver for Oracle and OO4O, and finally I used the ODBC Driver for Oracle in conjunction with PL/SQL tables, and Oracle's Oracle Provider for OLE DB  with a reference cursors as just described. The Y-axis shows the amount of time taken to complete each test in seconds. I also monitored the CPU and memory usage and they were all very similar for each test.

    You can see that there is not that much difference between each method. When choosing which method to use, the underlying factor will always be good database design and coding practices.

    Don't forget that you can download all of the SQL and ASP scripts for this chapter from the Wrox web site at http://www.wrox.com.


    Copyright © Wrox Press Limited 2001; all rights reserved.

    No part of this chapter may be reproduced, stored in a retrieval system or transmitted in any form or by any means -- electronic, electrostatic, mechanical, photocopying, recording or ot

    Comments

    • Master detail using ASP

      Posted by pjarvis on 16 Mar 2004

      How can I create a master detail web form using ASP, ADO, vbscript, and HTML?[email="pjarvis@anteon.com"]email me[/email]

    • HELP!!!

      Posted by tckk75 on 02 Dec 2003

      Hi all,

      I've been trying to use the OLE DB connection from ASP to Oracle. Used the code from the examples. Working fine but it did not release the session connection and when the sessions reach the...

    • How to use .NET, Oracle with Unicode datatype (nch

      Posted by tcanvn on 19 Jun 2003

      Hi,
      I using [b].NET[/b] to access [b]Oracle DB[/b] (with [i]OLEDB Provider for Oracle[/i]) but I have a trouble that I couldn't use [b]Unicode datatype[/b] (such as: [b]NCHAR, NVARCHAR2[/b]).
      ...

    • deleting rows in listview control

      Posted by gonzo on 24 Feb 2003

      im trying to get this to work:

      when the form loads, a csv file is opened and whose contents are displayed in the Current list view control. if the user selects an item from the Current listview con...

    • College Project

      Posted by goughi on 24 Feb 2003

      Hi,
      i am currently do a project on oracle and microsoft. The question is compare and contrast the latest database offerings from Oracle and Microsoft under the following headings: History and e...