Building Innovative Applications With Oracle Database 11g

2y ago
12 Views
2 Downloads
5.38 MB
56 Pages
Last View : 9d ago
Last Download : 3m ago
Upload by : Roy Essex
Transcription

Building Innovative Applicationswith Oracle Database 11gMark Drake, Manager, Product Management

The following is intended to outline our generalproduct direction. It is intended for informationpurposes only, and may not be incorporated into anycontract. It is not a commitment to deliver anymaterial, code, or functionality, and should not berelied upon in making purchasing decisions.The development,development releaserelease, and timing of anyfeatures or functionality described for Oracle’sproducts remains at the sole discretion of Oracle.

Agenda Database SQL,SQL PL/SQL,PL/SQL SecureSFilesFil Analytics Secure Files XML Performance By Design Query Cache In-Memory Database Cache Partitioning High Availability Architecture Enterprise Manager Packs SQL Developer Data Modeler SQL Developer Insert Picture Here

Enhanced SQL and PL/SQL CapabilitiesOracle Database 11g PivotNew analytical window functionsReal Time SQL MonitoringSequences– No Longer need a select PL/SQL Hierarchical Profiler PL/Scope5

Pivot SQL Command Simpler and more maintainable Better performanceSELECT * FROM (SELECT dname ,JOBSELECTdname,FROM EMP e,dept dsum(decode(job,'PRESIDENT',1,0)) president,where e.deptno d.deptno)sum(decode(job,'MANAGER',1,0)) MANAGER,PIVOTsum(decode(job,'ANALYST',1,0)) ANALYST,(COUNT(*) FOR JOB IN (sum(decode(job,'SALESMAN',1,0)) SALESMAN,'PRESIDENT' as President,sum(decode(job,'CLERK',1,0)) CLERK'MANAGER' as MManager,FROM EMP e,deptd t d'ANALYST' as Analyst,where e.deptno d.deptno'SALESMAN' as Salesman,GROUP BY dname'CLERK' as Clerk))6

PL/SQL New Features Direct Sequence Assignmentsg– Old select my seq.nextval into l var from dual;– New l var : my seq.nextval; PL/SQL Hierarchical Profiler PL/Scope7

Statistics and SQL Analytics Ranking functions rank,k dense rank,dk cume dist,di t percent rank,tk ntiletil Window Aggregate functions(moving and cumulative) Avg, sum, min, max, count, variance, stddev,first value, last value LAG/LEAD functions Direct inter-row reference using offsets Reporting Aggregate functions SumSum, avg,avg min,min maxmax, variancevariance, stddevstddev, countcount,ratio to report Statistical Aggregates Correlation, linear regression family, covariance Linear regression Fitting of an ordinary-least-squares regressionline to a set of number pairs. Frequently combined with the COVAR POP,COVAR SAMP, and CORR functions.N t StatisticsNote:St ti ti andd SQL AAnalyticsl ti are iincludedl d d iin OOraclelDatabase Standard Edition Descriptive Statistics average, standardt d dddeviation,i tivariance,imin,i max, mediandi(via percentile count), mode, group-by & roll-up DBMS STAT FUNCS: summarizes numerical columnsof a table and returns count, min, max, range, mean,stats mode, variance, standard deviation, median,quantile values, /- n sigma values, top/bottom 5 values Correlations Pearson’s correlation coefficients, Spearman's andKendall's (both nonparametric). Cross Tabs Enhanced with % statistics: chi squared, phi coefficient,Cramer's V, contingency coefficient, Cohen's kappa Hypothesis Testing Student t-test , F-test, Binomial test, Wilcoxon SignedRanks test, Chi-square, Mann Whitney test, KolmogorovSmirnov test, One-way ANOVA Distribution Fitting Kolmogorov-Smirnov Test, Anderson-Darling Test, ChiSquared Test, Normal, Uniform, Weibull, Exponential

Insert Picture Here Demo

Files in the Database Reinvented Files are an integral part of modern database applications Best of Both Worlds File Capabilities File System InterfaceHigh PerformanceCompressionEncryptionDeduplicationHSM Database Capabilities TTransactionsti Query Consistency Advanced Backup andRecovery Powerful Security Flashback Scale up SMPs Scale out Clusters Product images, contracts, XML, ETL files, manuals, etc. Applications developers want to store business data filesin the database to benefit from transactional consistency,and unify HA and Security Poor performance, limited functionality, and lack of access byexisting file based tools have held them back Oracle Database 11g reinvents files in the databaseprovides superp fast and ppowerful file storageg SecureFiles p Removes performance barrier to storing files in the database DBFS provides a file system interface to files in the DB Enables existing file based tools to easily access DB files

SecureFiles Performance Performance compared to Linux FS– Tests run using both SecureFiles and ext3 in metadatajournaling onlyonly, no networkFile ReadsFile 0LinuxFilesLOBs0.010.10110File Size(MB)1006050403020100SecureFilesLinux FilesLOBs0.010.10110File Size (MB)100

Cube Organized Materialized ViewsTransparent to SQL QueriesMaterialized ViewsSQL RefreshOLAP Cube

XML Use cases

Oracle’s XML Vision Enable a singleg source of truth for XML Provide the best platform for managing all your XML– Flexibility to allow optimal processing of data-centric andcontent centric XMLcontent-centric– Deliver Oracle’s commitment to Reliability, Security,Availability and Scalability DDrivei andd iimplementlt kkey XML StStandardsd d Support SQL-centric, XML-centric and documentcentric development paradigms

PerformanceeOracle and XML: Sustained InnovationXQueryXMLAPI’s1998BinaryXMLStorage& IndexingXMLStStorage&Repository200120042007

Why XML in the Database? XML contains mission critical information– Interchange with external organizations– Web Services Need to manage XML effectively and efficiently––––Number and size of documents increasingReliability, Scalability, AvailabilitySecurityCompliance Accurate and fast information location and retrieval

What is XML DB? XMLType: Native flexible, scalable, XML storage, processingand indexing XQuery, XML Schema, XSLT: enable XML centric development XMLDB repository: XML specific content management– File / Folder access metaphors– Xlink for integrity management– Xinclude for compoundpdocuments SQL/XML for SQL-Centric XML publish and SQL/Xqueryinteraction SQL/XML and XML/SQL interoperability Standards compliant

Advanced XML CapabilitiesXML ApplicationJDBCFilesXMLTypeDocument and dataCentric AccessFoldersXMLSchemaNative XQueryQyEngineACLSXQueryXML and ve storage forschema-based andschema-less XML.NETXDKOCISOAPHTTPFTPDocumentor MessageWebDavEventsDOMXML views ofrelational Content18

Insert Picture Here Demo

Why Java in the Database? Implement thingsg yyou cannot do in PL/SQL Reuse Java classes and libraries to extend database– Reduce development time and costs– ExtendE t d databased t bfunctionalityftilit–e.g., custom image transformation and data formatconversion (GIF, PNG, JPEG) Partition Java applications between middle-tier anddatabase– Compute bound applications in client/middle-tierclient/middle tier– Data, data-and-compute intensive applications in thedatabase Reuse Java skills for database development

Java in the Database: Use Cases Trigger-based NotificationSystem using RMI Secure Credit-Card Processingusing JSSE Custom Alert applications thatmonitor business data Sending emails with attachmentfrom within the database Produce PDF files from ResultSet Execute external OS commandsand external procedures ImplementI lMd5 CRC Publish Repository Content toPortal Portable Logistic Applications Implement Parsers for various FileFormats (txt,(txt zip,zip xml,xml binary) Implement Image Transformation andFormat Conversion (GIF, PNG, JPEG,etc)) Implement database-resident ContentManagement System HTTP Call-Out JDBC Call-Out RMI Call-Out to SAP Web Services Call-Out Messaging across Tiers RESTful Database Web Services* Lucene Domain Index** ne%20Domain%20Index

What’s New for Java in Oracle Database 11g Standard compliance:– IPv6 Support via System properties ses Standards Compliance:pJDK 1.5 Supportpp Performance: Innovative JIT Compiler– Transparent, On-the-fly compilation, no C compiler required– CompiledCil d JJava codesd persistedi t d ffor ffuturetiinvocationsti Ease of Deployment: JMX Instrumentation forMonitoringg– Management MBean, standard JMX tools (e.g., JConsole) Ease of Development: JDK Command-line likeI t fInterface

Agenda Database SQL,SQL PL/SQL,PL/SQL SecureSFilesFil Analytics Secure Files XML Performance By Design Query Cache In-Memory Database Cache Partitioning High Availability Architecture Enterprise Manager Packs SQL Developer Data Modeler SQL Developer Insert Picture Here

Server SQL Results Cache Database caches results of queries, sub-queries, or PL/SQLfunction calls– Cache is shared across statements and sessions on server– Full consistency and proper semantics2x speedup on hit for worst case of trivial query100x speedup on hit for complex queriesStatement hints specify caching - /* result cache */Onlyy for veryy read intensive tables

OCI Consistent Client CacheApplication ServerDatabaseConsistentCachingSimplest queries can speedup: 50x in elapsed time 20x in CPU time Caches query results on client Primarily for caching small (10s or 100s of KB) readread-intensiveintensive tables– Queries where network overhead dominates– e.g. lookup tables CacheCis ffully consistent– Coherence messages bundled into responses to DB callsensure cache remain consistent– Like Cache Fusion extended out to clients

Client Query Result Cache Database Configuration (init.ora)client result cache size 200Mclient result cache lag 5000A li ti ServerApplicationS Client Configuration (sqlnet.ora)OCI QUERY CACHE SIZE 200MOCI QUERY CACHE MAXROWS 20Database Oracle Database 11gg Release 2– Table Annotation: transparent, no code changealter table emp result cache; Oracle Database 11g Release 1– Query Annotation: hint for Caching the Result Setselect /* result cache */ * from employees

Oracle In-Memory Database CacheAccelerator for Oracle Database ApplicationsTelco ServicesFinancial Services IMDB Cache is an Optionpfor the OracleDatabase Enterprise Edition Deployedp y in the applicationpptier, asa real-time, updatable cache forthe Oracle Database Reduced response time andincreased throughput forOracle Database applications Available for download on tenCRM, M & e

Oracle In-Memory Database CacheOptimize In-Memory Database TechnologyClient-ServerApplication Built usingg Oracle TimesTen as arelational cache database Entire database in memory Standard SQL with JDBC, ODBC, OCI,P *C PL/SQLPro*C, Persistent and durable Fast, consistent response times Cross-tierCross tier High Availability Cache Oracle Database tables in theapplication-tierTimesTenCli t mesTenLib iLibrariesJDBC / ODBC / OCI / PLSQLCheckpointFilesLogFilesMid-TierServer GroupsGoff relatedl t d tablest bl All or subset of rows and columnsDatabaseTier

Oracle In-Memory Database CacheLow-Cost Extreme Performance in the Middle-tier Scalable cache grid ReadRead-onlyonly and updatable caches Access cache tables like regular databasetables Joins/search,, insert/update/deletep Flexible caching options Pre-load or dynamic load data Local cache groups for consistentresponse time Global cache groups for locationtransparency and data sharingacross all cache nodes Automatic data synchronization with theOracle seCacheAutomaticSynchronizationUpdates

Oracle In Memory Database CacheApplication DevelopmentODBCOCSQLttClassesOCI, Pro*CC/C PL/SQLLanguagesJ2EE App ServersIMDB CACHENew in 11g release PL/SQL, Oracle Call Interface (OCI) and Pro*C SupportPlanned for CY2010 ODP.NETODP NET data provider,provider PHPOR Mapping

Order Matching ApplicationDemo Three different types of transactions:– Place market order– Place limit order– Process quote Business logic implemented inPL/SQL stored procedures Applicationppwritten in Java Execute 1000 times in one thread– Place an order– Process a quoteStartDemoPL/SQLExecuted onOOraclel abaseCachePL/SQLExecuted inIMDB Cache

Data Growth Impacts PerformanceSource: HP Presentation, Enterprise Information World

Advanced OLTP CompressionSignificantly Reduce Storage Usage Compress largeg application tables– Transaction processing, data warehousing Compress all data types– StructuredSt t d andd unstructuredt t d datad t typest Improve query performance– Cascade storageg savingsg throughoutgdata centerUp To4XCompression

Real World Compression Results10 Largest ERP Database TablesData Storage25001500Table Scans10000.45000.33x SavingDML MMB200002.5x Faster20100 3% OOverheadh d

Size Reduction Factor by TTableReal-World Compression RatiosOracle Production E-Business Suite Tables5045403530252015105052OLTP Compression (avg 3.3)43Query Compression (avg 14.6)A hi CompressionArchiveCi(avg 22.6)(22 6)1010101129161919192021 Columnar compression ratios Query 14.6X Archive 22.6X VaryVbyb applicationli tiandd tablet bl35

PartitioningDivide and conquer large tables and e TablePartitionDifficult to ManageEasier to ManageCompositePartitionImprove PerformanceHigher PerformanceMatch business needs

Reduce the impact of Data GrowthPartition for performanceperformance, management and costORDERS TABLE ((7 yyears))2003200895% Less ActiveLow End Storage Tier2 3 less2-3xl per terabytet b t20095% ActiveHigh End StorageTier

Agenda Database SQL,SQL PL/SQL,PL/SQL SecureSFilesFil Analytics Secure Files XML Performance By Design Query Cache In-Memory Database Cache Partitioning High Availability Architecture Enterprise Manager Packs SQL Developer Data Modeler SQL Developer Insert Picture Here

Oracle’s Database HA Solution SetUnplannedDowntimePlannedDowntimeServerF ilFailuresReal ApplicationppClustersDataFailuresFlashbackpRMAN & Oracle Secure BackupASMData GuardStreamsSystemChangesOnline ReconfigurationRolling UpgradesDataChangesOnline Redefinition

TraditionalRecoveryFlashback TechnologiesError Detection & Correction– View ‘good’gdata as of a ppast ppoint-in-time– Simply rewind data changes– Time to correct error equals time to make error70Reccovery Time Flashback revolutionizes error recovery80605040302010Flashback0 Low impact ExcellentEll t ttooll ffor configuringfi i QAQA, DDev anddTTrainingi i ddatabasest b Flashback is easy – simple commands, no complex procedure, e.g.Flashback Query: select * from Salary AS OF ‘12:00 P.M.’ where Flashback Database: FLASHBACK DATABASE TO TIMESTAMP TO TIMETAMP('12-10-2008 10:00:00', 'DD-MM-YYYY HH24:MI:SS');

Recovery at the Level of Business Objects – notBits & ionFlashbackDatabaseContinuous Data Protection (CDP) Built Within the Database

New in 11.2Edition-based RedefinitionOverview Enables online application patches and upgradesg Allows old and new version of application to co-existeven thoughthh schemahiis changedhdbby new versioni Capabilities primarily used by application developers

New in 11.2Edition-based RedefinitionHow Does it Work?Post-upgradeEdition Maintains logical versions of changed databaseobjects, through:– Edition– Editioning View– Crossedition TriggerCrosseditionTriggers PL/SQL code changes and view changes installedin the privacy of a new editionPre-upgrade Edition New data changes made to newcolumns/tables not seen by old edition Editioningg view exposespapprivateprojection of a table into each edition Crossedition trigger propagates changes made byold edition into new edition’s columns, or vice-versa

Agenda Database SQL,SQL PL/SQL,PL/SQL SecureSFiles.Fil Analytics Secure Files XML Performance By Design Query Cache In-Memory Database Cache Partitioning High Availability Architecture Enterprise Manager Packs SQL Developer Data Modeler SQL Developer Insert Picture Here

Enterprise Manager Packs DiagnosticsgPack––––Automatic Database Diagnostic Monitor (ADDM)Automatic Workload Repository (AWR)Performance MonitoringActive Session History (ASH) Tuning Pack–––––SQL Tuning AdvisorSQL ProfilesSQL Access AdvisorSQL Tuning SetsReal Time SQL Monitoring

Automatic Performance DiagnosticsAWR and ADDM Snapshots inAutomatic WorkloadRepository AutomaticDiagnosticEngineSelf-DiagnosticEngine Top DownTDAnalysisA l i UUsingiAWR SnapshotsClassification Tree - based onddecadesd off OOraclelperformance tuning expertisePerformance expert, now aRAC SpecialistSi li t ttoo iin 1111gReal-time results– High-loadSQLIO / twork DB configAdvicePinpoints root cause– Don’t need to wait hours toltsee ththe resultsDistinguishes symptomsffromtheth roott causeReports non-problem areas,e.g., I/O is not a problem

Real-Time SQL MonitoringLookingg inside SQL Execution Automatically monitors long runningSQL Enabled out-of-the-box with noperformance impact Monitors each SQL execution ExposesEmonitoringit i statisticst ti ti– Global execution level– Plan operation level– Parallel Execution level Guides tuning efforts

Agenda Database SQL,SQL PL/SQLPL/SQL, Secure Files Analytics Secure Files XML Performance By Design Query Cache In-Memory Database Cache Partitioning High Availability Architecture RAC RAC OneOne-NodeNode Enterprise Manager Packs SQL Developer Data Modelerp SQL Developer Insert Picture Here

What is SQL Developer Data Modeler? A diagramminggg and data modelingg tool A single tool for different users and functionality– Data Architect builds logical data models– DatabaseD t bDDeveloperlmodelsd lrelational models (tables and columns)– DBA adds tablespaces, partitions Use data models to– Verify accuracy and completenessof data requirementsqandbusiness rules with customers– Build standards-driven DDL scripts

Oracle SQL Developer Data Modeler Supports a variety of visual models including––––Entity Relationship (ERD)RelationalDataTypes (SQL99)Multi-Dimensional Records details for physical implementation Importspfrom various sources– DDL and Dictionary import from Oracle and non-Oracle databases– Oracle Designer repository– Ca Erwin Data Modeler Exports to various sources– DDL for Oracle and non-Oracle databases

Agenda Database SQL,SQL PL/SQLPL/SQL, Secure Files Analytics Secure Files XML Performance By Design Query Cache Partitioning High Availability Architecture RAC RAC One-Node Enterprise Manager Packs In-Memory Database Cache SQL Developer Data ModelerQ Developerp SQL Insert Picture Here

Oracle SQL DeveloperTargeting the Database Developer Lightweight, graphical interface– Enhanced database development productivity– Browsing, creating, editing, debugging and reporting– Integrated migration with third-party databases Easy installation– Download and unzip– Uses thin JDBC driver No Oracle Home required Free and fully supported Adoption– Over 1 million downloads– Distributed with Oracle Database 11g– 1.5 million users Provides framework for extensions

SQL Developer 2.1 – Features PL/SQL Unit TestingData Modeler ViewerMigration support for IBM DB2 UDB and TeradataUpdated Data Grids– Manage columns, filter on data New SQL Worksheet– Dockable dbms output, multiple worksheets IncreasedIdCConnectionstinavigatori t supportt ffor– Jobs, Editions (for 11gR2), XML DB Repository Updated display editors– PL/SQL edit modemode, subpartitions Version Control Support for Serena Dimensions, Perforce Updated filtering mechanism– Schema levellevel, generated objects

Insert Picture Here Demo

Database RecapSupporting the new normal with a thousand cores and petabytesof data requires new algorithms Scalable Execution–Scale to 1000 Cores systems Parallelism, locks, connections–Transparent caching in middle tier Scalable Availability–Scale Backup and recovery toPetabyte databases–Optimized cache fusion algorithms–Use Standby to isolate faults andimprove scaling ScalableScalable Storage–Disks get bigger but not faster Scalable Management–Compression to speed data access–Manage larger systems–RealisticRealistic testing at scale–FasterFaster LOBs–Manage ultra-complex applications–More sophisticated data partitioning e.g. Oracle Fusion Apps–Exadata Storage Server

For More Informationhttp://search.oracle.comoraclel databased t b11g11orwww.oracle.com/database

Oracle Database 11g reinvents files in the database . from within the database Produce PDF files from Result Implement database-resident Content Management System HTTP Call-Out . New in 11g release PL/SQL, Oracle Call Interface (OCI) and Pro*C Support.

Related Documents:

Oracle is a registered trademark and Designer/2000, Developer/2000, Oracle7, Oracle8, Oracle Application Object Library, Oracle Applications, Oracle Alert, Oracle Financials, Oracle Workflow, SQL*Forms, SQL*Plus, SQL*Report, Oracle Data Browser, Oracle Forms, Oracle General Ledger, Oracle Human Resources, Oracle Manufacturing, Oracle Reports,

Oracle e-Commerce Gateway, Oracle Business Intelligence System, Oracle Financial Analyzer, Oracle Reports, Oracle Strategic Enterprise Management, Oracle Financials, Oracle Internet Procurement, Oracle Supply Chain, Oracle Call Center, Oracle e-Commerce, Oracle Integration Products & Technologies, Oracle Marketing, Oracle Service,

7 Messaging Server Oracle Oracle Communications suite Oracle 8 Mail Server Oracle Oracle Communications suite Oracle 9 IDAM Oracle Oracle Access Management Suite Plus / Oracle Identity Manager Connectors Pack / Oracle Identity Governance Suite Oracle 10 Business Intelligence

Advanced Replication Option, Database Server, Enabling the Information Age, Oracle Call Interface, Oracle EDI Gateway, Oracle Enterprise Manager, Oracle Expert, Oracle Expert Option, Oracle Forms, Oracle Parallel Server [or, Oracle7 Parallel Server], Oracle Procedural Gateway, Oracle Replication Services, Oracle Reports, Oracle

Oracle Compute hosting Oracle Data Integrator, the Oracle BI Applications Configuration Manager and Oracle Database Cloud Service. See detailed deployment documentation published on Oracle Support. (Figure 2) Hybrid solutions deploy the BI semantic model, analyses and dashboards on Oracle Analytics Cloud with Oracle Data Integrator and Oracle .

PeopleSoft Oracle JD Edwards Oracle Siebel Oracle Xtra Large Model Payroll E-Business Suite Oracle Middleware Performance Oracle Database JDE Enterprise One 9.1 Oracle VM 2.2 2,000 Users TPC-C Oracle 11g C240 M3 TPC-C Oracle DB 11g & OEL 1,244,550 OPTS/Sec C250 M2 Oracle E-Business Suite M

Oracle Database using Oracle Real Application Clusters (Oracle RAC) and Oracle Resource Management provided the first consolidation platform optimized for Oracle Database and is the MAA best practice for Oracle Database 11g. Oracle RAC enables multiple Oracle databases to be easily consolidated onto a single Oracle RAC cluster.

Specific tasks you can accomplish using Oracle Sales Compensation Oracle Oracle Sales Compensation setup Oracle Oracle Sales Compensation functions and features Oracle Oracle Sales Compensation windows Oracle Oracle Sales Compensation reports and processes This preface explains how this user's guide is organized and introduces