Documente Academic
Documente Profesional
Documente Cultură
Application Development
SecureFiles
Multimedia
Spatial
PL/SQL
XML DB
Java
PHP
SecureFiles
SemiStructured
XML
Unstructured
SemiStructured
XML
Unstructured
Oracle SecureFiles
Consolidated Secure Management of Data
SecureFiles is a new 11g feature designed to break the
performance barrier keeping file data out of databases
Next-generation LOBs - faster, and with more capabilities
transparent deduplication, compression and encryption
leverage the security, reliability, and scalability of database
superset of LOB interfaces allows easy migration from LOBs
Enables consolidation of file data with associated relational
data
single security model
single view of data
single management of data
scalable to any level using SMP scale-up, or grid scaleout
Entirely new:
disk format
network protocol
versioning and sharing mechanisms
caching and locking
redo and undo algorithms
space and memory management
cluster consistency algorithms
High Performance
Query Performance
Insert Performance
100
MB/s
MB/s
1000
10
0.1
10
100
1000
10000
1
0.01
10
100
1000 10000
Secure
hash
3DES168
AES128
AES192 (default)
AES256
SecureFile Interfaces
SecureFiles can be accessed by both database clients and file
system clients
Database clients use extended LOB interfaces
JDBC, ODBC, OCI, .NET, PL/SQL
11g has a highly optimized streaming protocol for SecureFiles
Using SecureFiles
Old LOBs are still supported and are referred to as BASICFILE
Default LOB storage type in Oracle Database 11g
Requires
locally managed tablespaces with ASSM is required to use
SecureFiles
compatibility set to 11.1 or higher
Migration to SecureFiles
Multimedia
Client Name
Usage
ClientMunicipality
Name
Usage
**Hallein
Local
authority
**Hallein
Municipality
Local
authority
**Ludesch
Local
Government
**Ludesch
Local
Government
ARG Verrmessung, Dornbirn
Survey and
mapping
ARG Verrmessung,
Dornbirn
Survey and mapping
ILF-Dornbirn
-8
ILF-Dornbirn
-8
ILF-Innsbrueck - 2
ILF-Innsbrueck
ILF-Prague
-2 -2
ILF-Prague
ILF-Vienna
-2-2
ILF-Vienna
ILF-Villah
-1 -2
ILF-Villah - 1
Ingenieurgemeinschaft
Laesser-Fezlmayr (ILF), Engineering company
Ingenieurgemeinschaft
Laesser-Fezlmayr (ILF),Local
Engineering
company
Lochau
Municipality, Vorarlberg
government
Lochau
Municipality, Vorarlberg
Local government
Manahl,
Feldkirch
Engineering
company
Manahl,Erdgas,
Feldkirch
Vorarlberg
Dornbirn
GasEngineering
distributioncompany
Erdgas, Dornbirn
Gasgovernment
distribution
CityVorarlberg
of Zageb(CV)
Local
City of Zageb(CV)
Local government
Computech
(CV)
Reseller
Computech (CV)
Reseller
Systenge
Reseller
Reseller
CitySystenge
of Edmonton
Local
government
of Edmonton
Local
government
CityCity
of Luduc
Local
government
City of
of Luduc
Local
government
District
Oak Bay
Local
government
District
of
Oak
Bay
Local
government
Energy & Mines (Ottawa)
Energy
&
Mines
(Ottawa)
Energy & Mines (Quebec)
Energy Technologies,
& Mines (Quebec)
Geopower
Inc.
Reseller
Technologies, Inc.
Reseller
H.H.Geopower
Pillar Corp.
H.H.
Pillar
Corp.
University of Toronto
Education
University
of Toronto
Education
Beihai
Urban Construction
BeihaiUrban
UrbanArchive
Construction
Beijing
Local government
Beijing Urban Archive
government
Pohjois-Satakunnan
paikkatietopalvelu OY
GISLocal
systems
house
Pohjois-Satakunnan
paikkatietopalvelu
OY Local
GISgovernment
systems house
Tampere
muncipality (PCX
100 USER LICENCE)
Tampere
muncipality
(PCX
100
USER
LICENCE)
Local
government
Cabinet Dulac
Survey and mapping
Cabinet
Dulac - Anglet - Biarritz
Survey
and mapping
District
Bayonne
Local
government
consortium
Bayonne - Anglet - Biarritz
EPADistrict
Cergy-Pontoise
NewLocal
towngovernment
developmentconsortium
EPATelecom
Cergy-Pontoise
New town development
France
Telecommunic.
company
Telecom
GazFrance
de France
GasTelecommunic.
distribtuion company
Gaz Geographique
de France National (IGN)
Gas distribtuion
Institut
National
mapping agency
National
mapping agency
ITMIInstitut Geographique National (IGN)
Software
developer/integrator
ITMI
Software
developer/integrator
Municipality
of Dijon
Local
government
Municipality
Local
government
Nancy
District of Dijon
Local
government
Nancy
District
Local
government
School
of IGN
IGN's
training
school
School ofof Caen
IGN
IGN's training school
University
Educational
University of Caen
Educational
Locate
To
Reveal
customer
customers
Site
facilities
near
on the
wireless Web
customers
buying
patterns
Understand
customer
demographics
Locate
resources
near
customers
PL/SQL Enhancements
Transparent performance:
Fine Grained Dependency Tracking
The challenge
create table t(a number)
/
create view v as select a from t
/
alter table t add(Unheard_Of number)
/
select status from User_Objects
where Object_Name = 'V'
/
Parameterized Performance:
Real native compilation
The challenge
Through 10.2, PL/SQL compiled to a native DLL is
significantly faster than PL/SQL compiled for
interpretation by the PVM
Oracle translates PL/SQL source to C code and
leaves the last step to a 3rd party
C compiler
BUT some customers religion forbids a C compiler
on a production box!
AND other customers religion forbids paying to
license a C compiler when theyve already paid to
license Oracle Database!
The challenge
create or replace trigger Trg
before insert on My_Table for each row
declare
s number;
begin
-- Annoying locution
select My_Seq.Nextval into s from Dual;
:New.PK := s;
end;
/
Tools support
PL/Scope
Challenge
Inherit code, find a problem in one area that links elsewhere, got
lost following reference after reference
Impact Analysis: how do you determine who references a
particular variable?
Solution
PL/Scope
Usage
alter session set PLScope_Settings = 'identifiers:all'
create or replace...
Select . from
User_Identifiers
Solution
PL/SQL Hierarchical Profiler
reports dynamic execution profile organised by subprogram
accounts for SQL and PL/SQL separately
generates hypertexted HTML reports
Usage
> EXECUTE DBMS_HPROF.START_PROFILING('PLSHPROF_DIR', 'test.trc');
% plshprof
PL/SQL enhancements
Summary
Performance
Functionality
DBMS_Sql security
Intra-unit inlining
Usability
Sequence in a PL/SQL expression
The continue statement
Named and mixed notation from SQL
Tools
PL/Scope
PL/SQL Hierarchical Profiler
Unstructured
Customers
SchemaLess
XML-LOB
Persistence
XML-Binary
Flexibility
Structured
10.2 copyEvolve() unloads and reloads the data when the XML
Schema changes
very flexible but expensive: time to evolve schema is proportionate
to the amount of data being managed
XMLType Partitioning
Challenge
<PurchaseOrder>
<Date></Date>
<Ref></Ref>
<LineItems>
<LineItem>
<LineItem>
<LineItem>
<LineItems>
Solution
leverage 11.1 REF partitioning
nested Tables are partitioned using the same key
as the top level XMLType table
supports partition maintenance operations
supports partition pruning
Binary XML
Challenge
10.2 schema-less XML not well optimized
Solution
11.1 binary XML optimized for schema-less and
flexible schema-based XML
Post Parse compact representation of XML
Flexible XML Schema Support
High performance fragment access and extraction
with new XML Index
Binary XML
Single format for on-disk, in-memory and on-the-wire
Reduced CPU and Memory overhead
Single format avoids parse and serialize issue between tiers
Database
Web
Cache
App
Server
Binary XML
Binary XML
Client
Binary XML
XML Index
New universal index for Binary and LOB based
XMLType
All possible paths are indexed by default
XML index optimization
asynchronous operation possible
path sub-setting controls what is indexed
partial re-indexing (binary XML and securefiles only)
to ate
u
A er
en
G
PL/SQL
SOAP
DB WS
SQL
WSDL
SOA
XQuery
JDBC Performance
Saving 1 Million Roundtrips per Day
OS Authentication
Java Standards
JDBC 4.0
SQLXML
RowId
NChar & Nclob
Wrapper Interface
SQLException Hierarchy
conn.createBlob, createClob, etc
Solution
New JIT compiler compiles Java in the database natively and transparently (on
the fly) without the need of a C compiler
Enabled by default, Out-of-the-Box
Up to an Order of magnitude (~x 10) speed-up for pure Java, 10g versus 11g,
out-of-the-box
Challenge
Ease of Use
Solution
JDK-Like interface, with code on filesystem, using faniliar notation,
e.g. {classpath}, -D system properties
Eases the migration for developers from JDK VM world
PHP
No Connection Pooling
Q&A