2 Getting Started with Oracle and .NET Alex KehPrincipal Product ManagerServer Technologies
3 Agenda Oracle and .NET – Getting Started Oracle Developer Tools for Visual StudioDemoOracle Providers for ASP.NETOracle Data Provider for .NETNext Steps
4 <Insert Picture Here> Oracle and .NET –Getting Started
5 Oracle and Microsoft Relationship EngineeringClose collaboration with Microsoft engineering teamsAccess to pre-release drops of Microsoft productsCommunityDeveloper and database websites for both communitiesJoint training, road shows, tech articles, white papers, etc.Conference sponsorships (TechEd, PDC, OpenWorld, etc.)SupportMicrosoft Premier Support AgreementCollaboration of support teams
6 .NET Development Environment Support Oracle Developer Tools for Visual StudioOracle Data Provider for .NETApplication DevelopmentDeployVisual StudioEnvironment.NET ApplicationDeployWeb or Client/Server ApplicationDatabase DevelopmentOracle Providers for ASP.NETOracle Database Extensions for .NET
7 .NET Components for Oracle Database FreeStay in Visual Studio for project lifecycleSupports Visual Studio 2003, 2005, and 2008Complete access to .NET functionalitySupports .NET Framework 1.0 and higherSupports 32-bit, x64, and 64-bit Itanium platformsASP.NET services and controls via ASP.NET providersEasy to use and intuitiveNative access to Oracle DatabaseUtilize advanced Oracle Database featuresE.g. RAC, performance, security, data types, XML, etc.
8 Develop on Windows, Database on any Platform ODT andODP.NETLinuxVisual StudioEnvironmentUnixWindowsOtherOracle 11g,10g, 9i, or 8i
9 <Insert Picture Here> Oracle Developer Tools for Visual Studio (ODT)
10 Feature Overview Fully integrated with Visual Studio 2008/2005 Server ExplorerData Sources WindowDataset DesignerTableAdapter Configuration WizardQuery Builder/Query DesignerMoreFully integrated with Visual Studio .NET 2003Oracle ExplorerAutomatic code generation – Winform and ASP.NETMakes ASP.NET web application development very easy
11 Visual Studio Integration D E M O N S T R A T I O NVisual Studio Integration
12 Feature Overview Oracle Wizards and Designers Oracle Data Window Table/View DesignerStored Procedure/Function/package WizardsGrant/Revoke Privileges WizardUDT DesignersUDT Custom Class Code Generation WizardTable/View Migration WizardOracle Data WindowOracle Database ProjectEdit and Run SQL scriptsSQL*Plus is built inSource control integrationIntegrated PL/SQL Editor and Debugger
13 Feature Overview Oracle Query Window .NET Stored Procedure Deployment Ad Hoc SQLExplain Plan.NET Stored Procedure DeploymentIntegrated help system – SQL, PL/SQL keywords
14 <Insert Picture Here> Oracle Providers for ASP.NET
15 Oracle Providers for ASP.NET Pre-built services to store website state into OracleServices for commonly used website informationE.g. user info, user roles, shopping cartEasy to learnBased on standard ASP.NET provider APIs and schemaInherits from .NET Framework 2.0 base classesCompatible with ASP.NET service classesNo unique extensions in Oracle ASP.NET providers
16 Oracle Providers for ASP.NET Seamless integration with ASP.NET services and controlsReference to specific providers unnecessaryHigh level of abstraction: services and controls based programmingEasy to switch from SQL Server to Oracle quicklyConfiguration file determines which data source to useEasy to setup and manageCan be managed by IIS or Website Admin Tool
17 Oracle Providers for ASP.NET IISASP.NET ControlsASP.NET ServicesOracle Providers for ASP.NETODP.NET
18 Oracle Providers for ASP.NET Oracle Providers for ASP.NET ComponentsCache Dependency ProviderMembership ProviderProfile ProviderRole ProviderSite Map ProviderSession State ProviderWeb Parts Personalization ProviderWeb Events ProviderAdministrators can pick and choose which providers to use
23 ODP.NET Features Connection pooling RAC Full PL/SQL support Min, Max, Timeout, Lifetime, Increment, DecrementRACAutomatic load balancingAutomatic connection cleanupFull PL/SQL supportPackaged, non-packaged, anonymous, autonomousBatch SQL available with anonymous PL/SQLHere are some of the ODP.NET features that were not previously available to ADO, OLE DB .NET, nor ODBC .NET users:More robust anonymous (use PL/SQL blocks in .NET code) PL/SQL supportNative Oracle types and safe type mappingConnection Pooling ConfigurationPL/SQL can be used more flexibly with ODP.NET. Anonymous PL/SQL allows the client to batch SQL calls to the DB. When you embed multiple commands within anonymous PL/SQL, only one roundtrip to the database is made, thereby improving data access performance.Native Oracle types allow users to use Oracle data types within their .NET programs. This makes using Oracle data easier and much more flexible from .NET. It saves developers and applications from doing unnecessary conversions to .NET data types if they are not needed. Each native Oracle data type can be mapped to a respective .NET data type.Because Oracle data types tend to be higher precision than .NET types, Oracle allows conversion between the two types without losing data. This is known as safe type mapping. For example, Oracle Number can hold 38 digits, whereas .NET Decimal only holds 28. Safe type mapping allows converting Oracle Number to .NET byte array or .NET string and back to Oracle Number without losing any data.Creating DB connections is resource intensive. As such, connection pooling is an invaluable performance tuning option. Previously, .NET developers could only set timeout values for their connection pools. With ODP.NET, connection pools are very flexible to configure for any type of application user load.
24 ODP.NET Features Native Oracle data types Parameters REF Cursors, LOBs, XMLType, TimeStamp, etc.Safe type mapping to .NET data typesParametersPL/SQL Associative Array data typeLOBsAbility to pre-fetch or defer LOB retrieval
25 ODP.NET Features XML Transactions XMLType data type Query and Save XML from the DBBoth relational and object-relationalInteroperate with MS XML APIs (e.g. XmlReader)Supports XSLT, XPATH, and XML SchemaTransactionsEnterprise Services via Oracle Services for MTSLocal (Implicit and Explicit)System.TransactionsSavepointsThere features are not available to ADO, OLE DB .NET, nor ODBC .NET users:ODP.NET XML APIsXML DB is a high performance XML storage and retrieval technology in the Oracle DB. XML DB stores XML natively in the DB with its own data type, XMLType. ODP.NET exposes XMLType as a native type within .NET to manipulate XML and share XML with Microsoft’s XML services, such as XMLReader. ODP.NET can access relational and object-relational data as XML with the ability to query and save XML from the database easily.
26 Top Unique ODP.NET Features Features Oracle SQL 2008Better Result Set Tuning Options Yes NoConfigurable LOB Retrieval Yes NoArray Parameters Yes NoProxy Auth. and Secure App Context Yes NoReal Application Clusters Support Yes NoSelf-Updating Cache Yes No
28 Oracle Technology Network – .NET Developer Center Free downloads of Visual Studio tools, ODP.NET, ASP.NET providers, and Oracle Database XEWhite papersSample codeDemo videosHelp forums“How to” step by step tutorialsLatest Oracle on .NET news
29 More Information .NET Technology Center Windows Server Center Windows Server CenterFor more questions
30 The preceding is intended to outline our general product direction The preceding is intended to outline our general product direction. It is intended for informational purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.