!C99Shell v. 1.0 pre-release build #13!

Software: Apache. PHP/5.5.15 

uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 

SYSTEM 

Safe-mode: OFF (not secure)

E:\oracle\product\10.2.0\client_2\oledb\samples\DataSet\DSPopulateVB\doc\   drwxrwxrwx
Free 4.94 GB of 239.26 GB (2.06%)
Detected drives: [ a ] [ c ] [ d ] [ e ] [ f ]
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Readme.html (13.34 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
OLEDB - Populate DataSet - Readme

View Products - Populate Dataset through Oracle Provider for OLEDB

Table of Contents 

Overview of the Sample Application 

Back To Top
This .NET sample application aims at demonstrating how to populate a DataSet through Oracle Provider for OLE DB . The Oracle9i Release 2 OLE DB provider introduces full support for .NET via the Microsoft OLE DB .NET data provider. With OLE DB .NET, applications can access the Oracle database from any .NET programming language. OLEDB .NET Data Provider provides a collection of classes that are used to  access database.  Figure 1.1, describes how the data is accessed using OLEDB .NET Provider. 


                                                         Figure 1.1 Data Access Using OLEDB .NET  Provider

DataSet is a major component of ADO .NET. It is an in-memory cache of the data retrieved from the database. OleDbDataAdapter represents a set of data commands and a database connection that are used to fill the Dataset based on the query given. OleDbCommand represents SQL statements to execute against datasource. OleDBConnection is used to build the database connection. 

This sample application is a Visual Basic .NET Application that displays a product catalog for a product store. When this sample is run, a list of products from database appears in a DataGrid (in tabular format). The DataGrid gets populated from a DataSet which is filled by a DataSource using OleDbDataAdapter. Hence demonstrating how to populate DataSet through Oracle Provider for OLE DB.

User Notes with Screen Shots

Back To Top
When this sample application is run, a list of Products from database is displayed as shown in figure 1.2, 
On clicking the 'Close' button, the application gets closed. 

                                            Figure 1.2 Screen Shot for DataSet Populate VB Sample 

Required Software 

Back To Top
1. Visual C# installed with MS Development Environment 7.0 version (MS Visual Studio .NET)  including MS .NET Framework 1.0 version

2. Oracle8i Database or later running SQL*Net TCP/IP listener (can be downloaded here

3. Oracle Provider for OLE DB (can be downloaded here

Extracting the Sample

Back To Top
Unzip DSPopulateVB.zip using Winzip or command utility to your convenient directory. Extraction of the zip file results 
in the creation of 'DSPopulateVB' directory.  Refer Description of Sample Files section for more details. 

 

Database Setup 

Back To Top
Connect to your database as any user and run the script DSPopulateVB\setup\DatabaseSetup.sql at the 
SQL prompt
SQL> @<your directory structure>\DSPopulateVB\setup\DatabaseSetup.sql

This creates a user "OraNet" with password "OraNet". All the database objects required by the application
are created and populated with initial data.

Following is the list of database objects that get created by running DatabaseSetup.sql file. 
Object Name Description
Products Table that store information about products.
Printmedia Table that stores information about the advertisement related to products.
Prodid_seq Sequence for auto generating Product ID.
Adid_seq Sequence for auto generating Advertisement ID.
Populate_ADID Trigger for populating value of Ad_ID field from Adid_seq sequence, on insertion. 
PopulateProduct_ID Trigger for populating value of Product_ID field from Prodid_seq sequence, on insertion. 

Preparing and Running the Sample

Back To Top
1. Ensure that the Database setup has been completed. 

2. Open DSPopulateVB.sln using Visual Studio .NET from <your-directory-structure>\DSPopulateVB\src folder. 

3. Edit ConnectionParams.vb file to change the database connection parameters i.e.TNSName for  database 
you want to use . Save this file. 

4. Ensure that the following .NET Component References have been added to DSPopulateVB project: 
           System, 
           System.Data, 
           System.Drawing, 
           System.Windows.Forms, 
           System.XML. 

To add the above .NET Components 
     a)Go to Menu ->View-> Solution Explorer.
     b)Right click on DSPopulateVB project, choose 'Add Reference'. 
     c)Choose the above .NET Components from the list displayed.
     d)Click 'Select', then OK.
     e) The chosen .NET component gets added to the project.

5. Build and run the sample. 
 

Description of Sample Files 

Back To Top
Directory File Name Description
DSPopulateVB\doc Readme.html This file
blaf.css This is a cascading stylesheet applied to Readme.html
DSPopulateVB\doc\images This folder contains images used in the Readme.html file
DSPopulateVB\src\ DSPopulateVB.sln Microsoft Visual Studio Solution
  DSPopulateVB.suo Solution User option (this file gets automatically generated when a Visual Studio Solution is created)
DSPopulateVB\src\ ConnectionParams.vb This Visual Basic file contains parameters for database connection
ViewProductsFrm.vb This Visual Basic file contains source code for UI of this sample application and its functionality
DSPopulateVB.vbproj Visual Basic project file
DSPopulateVB.vbproj.user Visual Studio Project User Options (this file gets automatically generated when a Visual Studio Project is created).
ViewProductsFrm.resx .NET XML Resource Template (this file gets automatically generated when a Visual Studio Project is created)
DSPopulateVB\setup DatabaseSetup.sql This is a SQL script file 


Please enter your comments about this sample in the OTN Sample Code Discussion Forum.


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0312 ]--