(Ebook) ODP.NET Developer's Guide: Oracle Database 10g Development with Visual Studio 2005 and the Oracle Data Provider for .NET: A practical guide for developers ... Developer Tools for Visual Studio 2005 by Jagadish Chatarji Pulakhandam, Sunitha Paruchuri ISBN 9781847191960, 1847191967 download
(Ebook) ODP.NET Developer's Guide: Oracle Database 10g Development with Visual Studio 2005 and the Oracle Data Provider for .NET: A practical guide for developers ... Developer Tools for Visual Studio 2005 by Jagadish Chatarji Pulakhandam, Sunitha Paruchuri ISBN 9781847191960, 1847191967 download
(Ebook) Professional VSTO 2005: Visual Studio 2005 Tools for Office
(Programmer to Programmer) by Alvin Bruney ISBN 9780471788133,
0471788139
https://ebooknice.com/product/professional-vsto-2005-visual-
studio-2005-tools-for-office-programmer-to-programmer-1787238
https://ebooknice.com/product/vsto-for-mere-mortals-tm-a-vba-
developer-s-guide-to-microsoft-office-development-using-visual-
studio-2005-tools-for-office-979652
(Ebook) Visual Web Developer 2005 Express Edition For Dummies by Alan
Simpson ISBN 9780764583605, 0764583603
https://ebooknice.com/product/visual-web-developer-2005-express-
edition-for-dummies-930580
(Ebook) Oracle Database Administrator's Guide 10g Release 2 (10.2) by
Oracle ISBN 9781576602379, 1576602370
https://ebooknice.com/product/oracle-database-administrator-s-
guide-10g-release-2-10-2-1403298
https://ebooknice.com/product/visual-c-2005-a-developer-s-
notebook-50194512
(Ebook) The Book of Visual Basic 2005: .NET Insight for Classic VB
Developers by Matthew MacDonald ISBN 9781593270742, 1593270747
https://ebooknice.com/product/the-book-of-visual-basic-2005-net-
insight-for-classic-vb-developers-1280858
https://ebooknice.com/product/working-with-microsoft-visual-
studio-2005-team-system-1383650
(Ebook) Visual Studio Code: End-to-End Editing and Debugging Tools for
Web Developers by Bruce Johnson ISBN 9781119588184, 1119588189
https://ebooknice.com/product/visual-studio-code-end-to-end-editing-
and-debugging-tools-for-web-developers-10461468
ODP.NET Developer's Guide
BIRMINGHAM - MUMBAI
ODP.NET Developer's Guide
Oracle Database 10g Development with Visual Studio 2005 and the
Oracle Data Provider for .NET
All rights reserved. No part of this book may be reproduced, stored in a retrieval
system, or transmitted in any form or by any means, without the prior written
permission of the publisher, except in the case of brief quotations embedded in
critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of
the information presented. However, the information contained in this book is sold
without warranty, either express or implied. Neither the authors, Packt Publishing,
nor its dealers or distributors will be held liable for any damages caused or alleged to
be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all the
companies and products mentioned in this book by the appropriate use of capitals.
However, Packt Publishing cannot guarantee the accuracy of this information.
ISBN 978-1-847191-96-0
www.packtpub.com
Sunitha Paruchuri has been programming with Microsoft tools and Oracle
since 1997. She has developed numerous desktop, web, mobile, and distributed
applications using Microsoft .NET and has good experience with other Microsoft
products like Microsoft SQL Server, Microsoft Sharepoint Portal Server, etc.
[ ii ]
Table of Contents
[ iii ]
Table of Contents
[ iv ]
Table of Contents
[]
Preface
Oracle's ODP.NET is a .NET data provider that can connect to and access Oracle
databases with tight integrity. It can be used from any .NET language, including
C# and VB.NET. This book will show you how ODP.NET is the best choice for
connecting .NET applications with Oracle database. We will be dealing with the
concepts of ODP.NET and its requirements, working with SQL, PL/SQL, and
XML DB using ODP.NET, looking at application development with ODP.NET:
Web Applications, Web Services, and Mobile Applications. We will also learn to
manipulate Oracle databases from within Visual Studio using Oracle Developer
Tools for Visual Studio.
Chapter 3 shows you several methods to retrieve data from an Oracle database. You
will work with the core ODP.NET classes like OracleCommand, OracleDataReader,
OracleDataAdapter, OracleParameter, and ADO.NET classes like DataSet,
DataTable, and DataRow etc.
Chapter 4 is about inserting, updating, and deleting data in the database. You
will also learn about statement caching, array binding, working with offline data,
implementing transactions, and handling errors and exceptions encountered during
database work.
Preface
Chapter 5 deals with working with PL/SQL blocks, PL/SQL stored procedures, and
functions. It also teaches you how to execute routines in PL/SQL packages, how to
pass arrays to and receive arrays from the Oracle database, and working with REF
CURSOR using ODP.NET.
Chapter 6 is completely dedicated to dealing with large objects in Oracle. This chapter
illustrates concepts, configurations, and programming for BFILE, BLOB, and CLOB
(or NCLOB) in conjunction with ODP.NET.
Chapter 7 gives details about Oracle XML DB, an add-on feature of Oracle database.
It provides information about generating XML from existing rows in tables,
manipulating rows in a table using XML, and working with native XML in the
Oracle database.
Chapter 9 introduces you to Oracle Developer Tools for Visual Studio 2005. It
teaches you to connect to Oracle from the Visual Studio 2005 environment, retrieve
Oracle information from Visual Studio, and work with database objects from Visual
Studio. It also provides information about how to create and debug PL/SQL stored
procedures and .NET CLR stored procedures in Oracle.
Conventions
In this book, you will find a number of styles of text that distinguish between
different kinds of information. Here are some examples of these styles, and an
explanation of their meaning.
There are three styles for code. Code words in text are shown as follows: "�����������
Connecting
to a default Oracle database is purely dependent on the ORACLE_SID key available in
your registry.�"
[]
Preface
When we wish to draw your attention to a particular part of a code block, the
relevant lines or items will be made bold:
Dim dt As DataTable = _
DbProviderFactories.GetFactoryClasses()
Me.DataGridView1.DataSource = dt
New terms and important words are introduced in a bold-type font. Words that you
see on the screen, in menus or dialog boxes for example, appear in our text like this:
"clicking the Next button moves you to the next screen".
Reader Feedback
Feedback from our readers is always welcome. Let us know what you think about
this book, what you liked or may have disliked. Reader feedback is important for us
to develop titles that you really get the most out of.
If there is a book that you need and would like to see us publish, please send
us a note in the SUGGEST A TITLE form on www.packtpub.com or email
[email protected].
If there is a topic that you have expertise in and you are interested in either writing
or contributing to a book, see our author guide on www.packtpub.com/authors.
[]
Preface
Customer Support
Now that you are the proud owner of a Packt book, we have a number of things to
help you to get the most from your purchase.
Errata
Although we have taken every care to ensure the accuracy of our contents, mistakes
do happen. If you find a mistake in one of our books—maybe a mistake in text or
code—we would be grateful if you would report this to us. By doing this you can
save other readers from frustration, and help to improve subsequent versions of
this book. If you find any errata, report them by visiting http://www.packtpub.
com/support, selecting your book, clicking on the Submit Errata link, and entering
the details of your errata. Once your errata are verified, your submission will be
accepted and the errata added to the list of existing errata. The existing errata can be
viewed by selecting your title from http://www.packtpub.com/support.
Questions
You can contact us at [email protected] if you are having a problem with
some aspect of the book, and we will do our best to address it.
[]
Introduction to ODP.NET
In the early days of databases, developers used to have knowledge on only one data
access technology as they would usually concentrate on a single database. Later,
numerous database products advanced quickly, leaving programmers in a confused
state when selecting a particular data access methodology. The era of evolving
architectures like client/server (two tier), three tier, and multi-tier (which includes
web-enabled) has dramatically changed the way of accessing databases.
The paradigm got shifted from simple "connection-oriented" applications to
connection-less or disconnected (or offline) applications to meet the demands of
devices like PDAs/Handhelds, Smart Phones, Pocket PCs etc.
Introduction to ODP.NET
We now have several types of data access methodologies to develop applications.
Choosing the best data access methodology is totally dependent on the type of
application you are working on.
The data access through ADO.NET is shown in the following figure (along with
other data access methodologies available prior to .NET):
Microsoft
Microsoft Microsoft Microsoft Oracle Data Other / 3rd
SQL Server
Oracle ODBC OLEDB .NET Provider party .NET
.NET Data
.NET Data .NET Data Data Provider (ODP.NET) Data Provider
Provider
ADO
RDO
OLEDB (with OLEDB Providers)
DAO
Even though Microsoft designed its own .NET data providers, it has also opened
its doors (specification) to the public and is encouraging other database companies
to develop their own .NET data providers. Microsoft made the data access model
consistent among all of the .NET data providers and thus any .NET data provider
should definitely conform to the standards and architecture of ADO.NET. One of
those is Oracle's ODP.NET, a .NET data provider that can connect to and access
Oracle databases with tight integrity.
[]
Chapter 1
The ODP.NET features optimized data access to the Oracle database from a .NET
environment. It is one of the several data access methods to connect to and access
Oracle databases. Oracle didn't simply stop giving support to Microsoft platform
with only ODP.NET. Instead, it has extended its commitment for Microsoft .NET
by adding� Oracle database extensions for .NET and Oracle Developer Tools for
Visual Studio.
The upcoming sections will give you a solid understanding of ODP.NET along with
its features.
[]
Exploring the Variety of Random
Documents with Different Content
Tuoneppa tuo kulkoo tie.
Joka meit' kapakkaan vie.
Sinnek polkemme pojamme,
Siinä juomme joukkonamme.
Käykee sinnek joka mies,
Joka mies,
Kuin on tässä, kuka ties!
Veisu.
(Ruotista suomennettu).
(Muihen tekemä).
Turun Tulipalo.
Muovits.
Ruvettiinpa jutteloon:
Jos tavaksipa kuuluu
Juomarillen muuttelo
Elämä-laitan muullon?
Ja ja ei,
Hoi ja hei!
Yks' ja toinen huusi.
Muovits kysyi: "mitenpäin?"
Ja kaikkii suututt' uusi.
Äskoinen Tanssi.
Selkeänsä soamisestaan.
[Lauletaan kuin: "Ack Movits hvi står du och gråter, så hungrig och
frusen och stinn" &c.]
[Päin = pain tahi pani. (Norjan Suomea) samaten tuil, oil (tuli,
oli).]
Tuli-palosta.
(Suomentaminen Fredmanin Lauseista N:o 34).
[Lauletaan kuin: "Ack hvad för en usel koja, spräckta rutor, brutna
lås." &c.]
Viinan-Juoja.
[Lauletaan kuin: "Aldrig ett ord, för ta mig tusan tunnor bänkar
och bord" &c. Tässä kuvaillaan muka sitä reuhoamista, milt'ei
tappelemista, kuin syntyy, koska isäntä hyvin jo juovuksissaan, ja
välistenkin horajaissaan, tahtoo pakottoo vieraitansa ylenpalttiseen
juomiseen; ja koska nämät kokeevat, hänen kiini-pitämisellänsä,
esteä turmioita tekemästä. Äsken painettu "Suomessa" 1847, N:o
10.]
Ei puhettakaan!
Sill saakeli soikoon — kuin suuttuisin voan,
Niin penkit ja pöyvät, ja taivas ja moa,
Ne pelkäis,
Ett' selkääns'
Hyö kohtapa, jokainen, soa.
Ei Pohjolan portto, eik' hiijenkään väki,
Ne pystynek minuun, kuin viinoa laskussain näki.
Peikko, tuo väitteä,
Heitteä,
Peitteä
Meitä.
Kyllämä kuritan tuon!
Pois tieltäin,
Pois tieltäin! :|:
Jos et sä pulloisi juok.
Olkaappas vait!
Saakeli soikoon — jo selkäisi sait!
Paukutan peähäis, ett' halkiaa luu.
Niin tuokaa,
Ja juokaa!
Sill Bacchus ei suvaihtek muu.
Hattuisi näin!
Kallellaan, kokallaan, — takoapäin! —
Ja nuttuisi pois! Jotta näkisi kaikk',
Ett' tämäkin työ onpa saakeli kova ja vaikk'. —
Yksinki pappi,
Tappi,
Nappi,
Sappi —
Totta moar' — kaikkipa nuo…
Pois tieltäin,
Pois tieltäin! :|:
Jos et sä pulloisi juo.
Juopuneen valitus.
[Lauletaan kuin: "Ack du min moder, säg hvem, dig sände" &c.
Tämä laulu onki kaikista Bellmanin lauluin-laitoksista, meijän
mielestämme, kauniin, syvä-luontoisin ja synkkä-sanaisin. Kuvataan
muka, hänessä, juoppo-lallin surkuteltavata ja meitä hirmuttavaa
mielen-luontoa, koska hään, selväpeässä, turmelustansa katuvainen,
kiroillen syntymisensä, päivittelöö tätä onnetointa elämän laitoa,
mutta kuitenkin haluttaa häntä heti toas, hillihtemätäk, entiset
himonsa, kunnekka hään viinalta vähittäin virvoitettu, siihen jo
unouttaa surunsa ja mieli-murheensak, ja jälleen toas,
juovuksissaan, humala-riemuillaan rehettelöö.]
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebooknice.com