Académique Documents
Professionnel Documents
Culture Documents
focus
OracleScene
An in depth look at
Oracle Database 12c
IN THIS ISSUE
Supplement
sponsor:
www.ukoug.org
An Independent Publication
not affiliated with Oracle Corporation
ORACLE
DATABASES
www.interoute-IAM.com
INTEROUTE
CLOUD
Platinum
Partner
Specialized
Oracle Exadata
Oracle Linux
Oracle Data Warehousing
Oracle Database
Oracle Real Application Clusters
Oracle Database Performance Tuning
Oracle Enterprise Manager
Oracle Database Security Options
Introduction
You may have noticed over the past few months that Oracle
has released 12c of their database. With this release we have
a new architecture and lots of new or enhanced features.
In this special Oracle 12c supplement for Oracle Scene we
have a number of articles that look at some of these features.
You can use these to help you to get started with the new
release. In addition to the 12c release, many of Oracles
products have been updated and released. It has been a
busy few months for Oracle. There are articles for the DBA,
Developer, Architect and even those of you working in the
Oracle Data Science area.
Over the coming months many of you will be upgrading to and
using 12c or one of the many newly released products. You
04
07
11
HISTOGRAMS IN 12C
14
18
21
by Jonathan Lewis
24
PATTERN RECOGNITION:
THE WEATHER
by Alex Nuijten
www.ukoug.org
03
OracleScene
D I G I T A L
AUTUMN 13
12C SUPPLEMENT
Technology
Histograms in 12c
One of the most challenging problems a DBA has to face is defining
a strategy for how and when to create statistics for a database; and
one of the hardest parts of the problem is dealing with histograms
which can be very expensive to create while still leaving the DBA
facing unstable execution plans.
Jonathan Lewis,
Freelance Consultant, JL Computer Consultancy
Background
The first call (which you need only do once) tells Oracle that the
general strategy is to collect no histograms. The second call tells
Oracle that for table T1 you want a histogram of up to 5 buckets
on column n1, a histogram of up to 254 buckets on column n3,
and no histograms on any other column.
www.ukoug.org
Enhancements
50 buckets because you knew that almost all the data would be
one of 50 critical values. Oracle will compare the total number
of rows in the table, with the number of rows in the largest 50
hash buckets, and if the left-over rows in the other 2,950 buckets
account (in this case) for less than 1/50th of the data Oracle
will build a Top-N frequency histogram setting up histogram
information that reflects the top 50 buckets and allows for a
little spare data.
The algorithm is a little more subtle than the description Ive
given as the histogram has to reflect the low and high values
for the column, so Oracle may have to inject a couple of rogue
buckets into the histogram, but the basic principle is this: if you
have a data set which you know has N popular values and a load
of rows that represent no more than 1/Nth of the data, then
create a histogram with N (plus a couple for safety) buckets, and
you will get a histogram that is a good model for your data.
The final new feature of 12c is the Hybrid histogram socalled because it combines features of the frequency histogram
and the height-balanced histogram. The hybrid histogram
is something that Oracle will generate if youve requested a
histogram and the data pattern doesnt allow Oracle to create
a frequency or Top-N histogram. It can be expensive to create
a hybrid histogram because Oracle has to sample the data and
run a query that uses an analytic sum() function the larger the
sample becomes the more expensive the query.
Older versions of Oracle also run an analytic query (using the
ntile() function) against the data, so the amount of work to
generate a hybrid histogram is not different from the heightbalanced version. The difference is in what Oracle does with the
data. This is best described with a small example that gives the
flavour of the mechanism. Imagine that (after sorting) I have the
following 20 values for a column:
32 33 33 33 33 33 33 33 33 34 34 34 35 35 35 35 35 35 35 36
www.ukoug.org
32 33 34 35 36
OracleScene
D I G I T A L
12C SUPPLEMENT
AUTUMN 13
Summary
32 33 33 33 33 33 33 33 33 34 34 34 35 35 35 35 35 35 35 36
As you can see from this little example, Ive managed to capture
both of my popular values, even though in this case they appear
only as single end-point values in the histogram. As a general
rule, the hybrid histogram tends to capture more popular values
for a similar amount of work than the equivalent heightbalanced histogram and thanks to the end-point counts it
captures better information.
Hybrid histograms are a significant step forward from heightbalanced histograms; bear in mind, though, that its still a data
sample the smaller the sample the more variable the effect
may be on your execution plans, the larger the sample the
longer it will take to build the histogram.
ABOUT
THE
AUTHOR
Jonathan Lewis
Freelance Consultant, JL Computer Consultancy
Jonathan Lewis is a freelance consultant whose experience with Oracle goes back
over 24 years. He specialises in physical database design, the strategic use of the
Oracle database engine and solving performance issues.
Jonathan is the author of Oracle Core and Cost Based Oracle Fundamentals
both published by Apress, and Practical Oracle 8i Designing Efficient Databases
published by Addison-Wesley, and has contributed to three other books about Oracle.
He is one of the best-known speakers on the UK Oracle circuit, as well as being
very popular on the international scene having worked or lectured in 50 different
countries and further details of his published papers, presentations
and tutorials can be found through his blog at
http://jonathanlewis.wordpress.com.
06
www.ukoug.org
Technology
Introduction
www.ukoug.org
07
OracleScene
D I G I T A L
AUTUMN 13
12C SUPPLEMENT
reflect the fact that the reason that the attempt is disallowed
might be parameterized, for example by the shortfall amount in
the source account.
The point is obvious: a single API design that exactly reflects the
functional specification may be implemented in many different
ways. The conclusion is equally obvious:
The database module should be exposed by a PL/SQL API.
And the details of the names and structures of the tables,
and the SQL that manipulates them, should be securely
hidden from the middle tier module
I know of many customers who strictly adhere to this rule;
and I know of many who do not to the extent that all calls
to the database module are implemented as SQL statements
that explicitly manipulate the applications tables. Customers
in the first group seem generally to be very happy with
the performance and maintainability of their applications.
Ironically, customers in the second group routinely complain
of performance problems (because the execution of a single
business transaction often involves many round trips from the
middle tier module to the database module). And they complain
of maintenance problems (because even small patches to the
application imply changes both to the implementation of the
database module and to the implementation of the middle
tier module).
Why then do some customers refuse to acknowledge fifty-year
old wisdom, and choose rather to bring themselves problems?
Here, briefly, are the reasons I hear:
my religion prevents me from using PL/SQL in the database
changing PL/SQL in the database requires shutting down the
application; and the downtime might be very long
the datatypes for passing row sets between the client side
code and the database PL/SQL are unnatural, cumbersome to
use, and bring performance problems
it is impractical to give each of a large number of developers
a private sandbox within which to work of the intended
changes to database PL/SQL
Sadly, no release of Oracle Database will be able to address the
first objection. However, 12.1 brings new features that demolish
each of the remaining objections.
EBR allows table changes, too. But to use it for this purpose
requires some thought, some changes to the applications
schema objects, and a new way of writing the patch scripts.
However, the use of EBR, in 12.1, to allow online changes to only
PL/SQL, views, and synonyms is fruit that is hanging so low that
it is literally on the ground.
Those who know something about EBR will know that
the adoption barrier was a consequence of the rule that a
noneditioned object may not depend upon an editioned object1.
This barrier is removed by two distinct enhancements, thus:
The granularity of the editioned state of the name of a PL/SQL
unit, a view, or a synonym is now the single occurring name.
New DDL statements control this new degree of freedom.
This means that, for example, Scott.Name_1 can be chosen
to be editioned and can denote a procedure in one edition
and a function (obviously with a different implementation)
in another edition. On the other hand Scott.Name_2 can be
chosen to be noneditioned, and will, therefore, have the same
implementation in all editions. In 11.2, the granularity of the
editioned state was the entire schema: every name of every
object in that schema, whose type is editionable, was either
editioned or noneditioned.
The new per-object granularity of the editioned state solves
the adoption problem met when a table has a column whose
datatype is defined by a userdefinedtype, hereinafter UDT,
in the same schema as the table. Because tables are not
editionable, and UDTs are editionable, a table is not allowed
to depend on UDT. Therefore if, in 11.2, an attempt was made
to editionsenable a schema owning both a table and a
UDT dependency parent, using the alter user enable editions
statement, then the attempt caused an error, to prevent violation of the rule. The attempt would succeed only after re
establishing the UDT in a different schema, that would not be
editionsenabled. This, of course, implied moving all the data
from a column defined by the UDT in its old location to one
defined by the UDT in its new location.
Materialized views, and virtual columns have new metadata in
12.1 to specify the edition to be used to resolve the name of an
editioned dependency parent. They also have new metadata to
specify the range of editions within which the optimizer may
consider the object. New DDL statements control setting this
new metadata.
In 11.2, the rule for the name resolution of an editioned dependency parent is to look for it in the same edition as the dependent object. So when the dependent object is non-editioned, the rule cannot
be followed. Therefore any attempt to introduce a dependency that violates this rule causes an error. The attempt may be made explicitly, by a DDL statement on an individual object. Or it may be made
implicitly by using the alter user enable editions statement.
1
08
www.ukoug.org
2
www.ukoug.org
09
OracleScene
D I G I T A L
12C SUPPLEMENT
AUTUMN 13
Summary
The following enhancements, brought by Oracle Database 12c, have been discussed in this paper:
Editionbased redefinition: The granularity of the editioned state of the name of a PL/SQL unit, a view, or a synonym is now
the single occurring name. Materialized views and virtual columns have new metadata to specify the edition to be used to
resolve the name of an editioned dependency parent. They also have new metadata to specify the range of editions within
which the optimizer may consider the object.
PL/SQL: Values of non-SQL datatypes can be bound to the formal parameters of database PL/SQL subprograms invoked from
the client. In particular, row sets can now be passed between the client and the database using the natural datatype: an
indexbyPL/SQLtable of records.
The multitenant architecture: The clone PDB operation, taking advantage of the snapshot facility in the underlying filesystem,
and the drop PDB operation are exposed as SQL statements. This makes it very straightforward to write a PL/SQL application
to allow developers to rapidly, and thinly, self provision a private database environment in which to change and test their
checked out code.
There is now no excuse for violating the best practice principle that is already universally followed in the majority of software
projects. Now you can confidently expose the Oracle Database using a PL/SQL API hiding all the details of tables and SQL
statements behind this API knowing that this approach brings only benefits.
ABOUT
THE
AUTHOR
10
Bryn Llewellyn
Distinguished Product Manager, Database Division, Oracle
Bryn has worked in the software field for more than 30 years. He has been with
Oracle since 1990, first in the UK and then, from 1996, in the USA at Oracle
Headquarters. He has been the Product Manager for PL/SQL since 2001. In 2005,
he took on the additional product management responsibility for the Oracle
Database capabilities that support online application upgrade (known as
edition-based redefinition EBR for short).
www.ukoug.org
Technology
Three in 12c
The latest, greatest incarnation of the Oracle database, 12c,
is chockfull of interesting and exciting new features.
This article introduces the reader to just three of them
available within SQL alone.
Melanie Caffrey , Senior Development Manager, Oracle
11 rows selected.
ashton%ORA12CR1> set feedback on
ashton%ORA12CR1> set lines 32000
ashton%ORA12CR1> select employee_id, first_name, last_name, salary
2
from employee
3
order by salary desc nulls last
4 FETCH FIRST 5 ROWS ONLY;
EMPLOYEE_ID
----------6571
28
6569
1234
37
5 rows selected.
FIGURE 1
www.ukoug.org
11
OracleScene
D I G I T A L
12C SUPPLEMENT
AUTUMN 13
5 rows selected.
FIGURE 2
ashton%ORA12CR1> WITH
2 FUNCTION get_prod_name (sku VARCHAR2) RETURN VARCHAR2 IS
3 start BINARY_INTEGER;
4 length BINARY_INTEGER;
5 BEGIN
6 start := INSTR(sku, ***.);
7 length := INSTR(SUBSTR(sku, start + 4), .) 1;
8 RETURN SUBSTR(sku, start + 4, length);
9 END;
10 SELECT get_prod_name(product_sku)
11
FROM product_catalog;
12
/
FIGURE 3
DEPARTED_
--------01-JUL-05
07-DEC-06
03-OCT-10
3 rows selected.
FIGURE 5
Summary
1 row selected.
DEPARTED_
--------07-DEC-06
03-OCT-10
2 rows selected.
FIGURE 6
ABOUT
THE
AUTHOR
Save 10%
With a 2 year fixed
membership
www.ukoug.org
Melanie Caffrey
Senior Development Manager, Oracle
Melanie Caffrey is a senior development manager for Oracle Corporation. She is
co-author of several technical publications including Expert PL/SQL Practices for
Oracle Developers and DBAs and Expert Oracle Practices: Oracle Database
Administration from the Oak Table (Apress), and the SQL 101 series of articles
for Oracle Magazine.
www.ukoug.org/membership
13
OracleScene
D I G I T A L
12C SUPPLEMENT
AUTUMN 13
Technology
Oracle 12c
Security
Selected New Features
Introduction
14
New features
www.ukoug.org
Feature
Free/Cost
Description
Data Redaction
Part of OAS
Prevents sensitive data from being displayed. Uses a policy driven approach. Data
can be redacted at run time without changing applications.
SHA-2 Support
Free
Unified Audit
Free
Easier to turn on and to control via database policies. Also unified audit is more
secure as the trails are written to insert only tablespaces. Two new roles have also
been added to allow separation of audit duties for viewing and admin.
Free
Free
New system privileges are added for Data Guard, key management, backup with
RMAN with the addition of SYS privileges that now mean SYSDBA is not needed for
all tasks.
Smaller Changes
Free
SELECT ANY DICTIONARY is locked down with less SYS objects available (be aware
that this can be turned off with a parameter). The last logon time of a user is
added which is useful for auditing (Note it doesnt work for SYSDBA). UNLIMITED
TABLESPACE is no longer granted with the RESOURCE role. VPD has been extended to
allow one or more context values to control when the policy function is evaluated.
Database Vault
Part of DV
New mandatory realms allow blocking of direct object privileges including object
owner. DV and OLS are now installed by default which greatly simplifies their use
and migration. Both are turned on via configuration.
Password Complexity
Free
Two new password complexity functions are shipped and if you use the dbca then
they can optionally be enabled.
Privilege Analysis
Part of DV
Useful feature that enables you to create a profile for a user that collects details of
privileges that have been used. This can then be used to create lists of privileges to
remove to achieve least privilege.
Key Management
Part of OAS
Free
Allows use of policies to apply protections to data classifications (for example credit
cards). This can be used with data redaction.
TABLE 1
SQL>
who_can_access: Release 1.0.3.0.0 - Production on Tue Aug 27 18:06:14 2013
Copyright (c) 2004 PeteFinnigan.com Limited. All rights reserved.
NAME OF OBJECT TO CHECK [USER_OBJECTS]: UTL_FILE
OWNER OF THE OBJECT TO CHECK [USER]: SYS
OUTPUT METHOD Screen/File [S]:
FILE NAME FOR OUTPUT [priv.lst]:
OUTPUT DIRECTORY [DIRECTORY or file (/tmp)]:
EXCLUDE CERTAIN USERS [N]:
USER TO SKIP [TEST%]:
Checking object => SYS.UTL_FILE
====================================================================
Object type is => PACKAGE (TAB)
Privilege => DEBUG is granted to =>
Role => C##ROLED (ADM = NO) which is granted to =>
User => SYS (ADM = YES)
Role => C##ROLEA (ADM = NO) which is granted to =>
User => SYS (ADM = YES)
User => C##TEST1 (ADM = NO)
Privilege => EXECUTE is granted to =>
User => C##TEST1 (ADM = NO)
User => DVSYS (ADM = NO)
User => ORACLE_OCM (ADM = NO)
User => ORDPLUGINS (ADM = NO)
User => ORDSYS (ADM = NO)
Role => PUBLIC (ADM = NO)
Role => ROLEE (ADM = NO) which is granted to =>
User => TEST3 (ADM = NO)
User => SYS (ADM = YES)
User => WMSYS (ADM = NO)
PL/SQL procedure successfully completed.
For updates please visit http://www.petefinnigan.com/tools.htm
SQL>
FIGURE 1 OUTPUT FROM WHO_CAN_ACCESS.SQL SHOWING PRIVILEGES FOR UTL_FILE
www.ukoug.org
15
www.tech13.ukoug.org
Sound good?
View the full agenda and get registering
www.tech13.ukoug.org
www.ukoug.org
Follow us @UKOUG
www.ukoug.org
ABOUT
THE
AUTHOR
Pete Finnigan
Independent Oracle Security
Consultant, PeteFinnigan.com
Pete Finnigan is well known in the
Oracle world for specialising in helping
people secure data held in their Oracle
databases. Pete runs PeteFinnigan.
com Limited which specialises in
training customers on Oracle security,
performing security audits and also
supplying database security software.
See http://www.pfclscan.com and
http://www.pfclobfuscate.com
for details.
17
OracleScene
D I G I T A L
12C SUPPLEMENT
AUTUMN 13
Technology
New Features of
Oracle
Advanced
Analytics in
Oracle 12c
By now you may have heard that
Oracle 12c has been released. In
addition to the new version of the
database we also get a new version
of SQL Developer (version 4).
Brendan Tierney, Consultant, Oralytics.com
18
The new features of the Oracle Data Miner tool, which comes as
part of SQL Developer 4, can be grouped into 2 categories. The
first category contains the new features that are available to all
users of the tool (11.2g and 12c). The second category contains
the new features that are only available in 12c. The new
features of each of these categories will be explained below.
Category 1 Common new features for 11.2g and 12c
Database users
There is a new View Data feature that allows you to drill down
to view the table object and to view nested tables.
A new Graph Node that allows you to create graphs such as line,
bar, scatter and boxplots for data at any stage of a workflow.
You can specify any of the attributes from the data source for
the graphs. You dont seem to be limited to the number of
graphs you can create.
www.ukoug.org
The second is that you can use it to call some ORE code. This
allows you to use the power of R and extensive range of
packages that are available to expand the analytic functionality
that is available in the database. If there is some particular
function that you cannot do in Oracle and it is available in R,
you can now embed this function/code as an ORE object in the
database. It can then called using SQL and the SQL Node.
WARNING: This particular feature will only work if you have ORE
installed on your 11.2.0.3g, 11.2.0.4g or 12.1c.
New Model Build Node features, include node level text
specifications for text transformations, displays the heuristic
rules responsible for excluding predictor columns and being
able to control the amount of classification and regression test
results that are generated.
New Workflow SQL Script Deployment features. Up to now
the workflow SQL script, I found to be of limited use. The
development team have put a lot of work into generating a
proper script that can be used by developers and DBA. But there
are some limitations still. You can use the script to run the
workflow automatically in the database without having the use
the ODM tool. But it can only be run the in the schema that the
workflow was generated. You will still have to do a lot of coding
(although a lot less than you used to) to get your ODM models
and workflows to run in another schema or database.
www.ukoug.org
It is important to
remember that the
underlying model
produced by these
PQs to not exist in the
database after the
query has executed.
The model is created,
used on the data and then the model is deleted.
The Clustering node has the new algorithm Expectation
Maximization in addition to the existing algorithms of K-Means
and O-Cluster.
The Feature Extraction
node has the new
algorithm called
Principal Component
Analysis in addition
to the existing NonNegative Matrix
Factorization algorithm.
Text Transformations are now
built into the model build nodes.
These text transformations will
19
OracleScene
D I G I T A L
12C SUPPLEMENT
AUTUMN 13
Conclusion
The new features of the Oracle Data Miner tool and the
in-database new features show continued improvement
in the Advanced Analytics Option. The improvments and
new features for the Oracle Data Miner tool conside of
new features for 11.2g and 12.1c users. In particular the
Graph and SQL nodes are two very useful features. With
the SQL node we can now include R code developed using
ORE, in our Oracle data mining and data science projects.
The in-database 12.1c improvements brings greater insight
into what the functions and procedures are doing behind
the senes. Additionaly we get some new algorithms that
increases the types of advanced analytics we can perform
on our data.
To read About the Author please go to page 4.
www.ukoug.org
Technology
FIGURE 1 PRIMARY FEEDS FAR SYNC INSTANCE WHICH THEN FEEDS THE TERMINAL
DATABASES
OracleScene
D I G I T A L
AUTUMN 13
12C SUPPLEMENT
www.ukoug.org
ABOUT
THE
AUTHOR
www.ukoug.org
Once this is all up and running you need to do the usual checks,
manually switch logs and confirm that redo arrives at both
the Far Sync instance AND the Standby database. Make sure to
check the STATUS column in V$ARCHIVE_DEST_STATUS, check
for rows in V$ARCHIVE_GAP, check V$DATAGUARD_CONFIG view
- you should see that the DEST_ROLE column in V$DATAGUARD_
CONFIG shows FAR SYNC INSTANCE and that the DATABASE_
ROLE column in V$DATAB ASE has the new value of FAR SYNC.
Best Practices?
Best Practices are pretty much what you have for a usual
Dataguard system; Use FORCE LOGGING on the primary.
Monitor the Far Sync instances in the same way that you
would monitor the standby databases.
Ensure the Primary, Far Sync and standby database have at
least one standby redolog group more than the primary has
redo logs.
The Far Sync instance needs to be geographically separate
to the primary but not so far away as to introduce the risk of
network slowdowns.
Use more than one Far Sync instance on each site to avoid
a single point of failure. Locate the Far Sync instances away
from each other!
Do plan for switchover and switchback;- Ensure that there are
Far Sync instances running and ready on the standby side.
References
Data Guard 12c New Feature: Far Sync Standby (Doc ID 1565071.1)
Data Guard: Oracle 12c New and updated Features (Doc ID 1558256.1)
Creating a Physical Standby Database (Doc ID 1475344.1)
Oracle Data Guard Concepts and Administration 12c Release 1 (12.1)
Note 1542969.1 Cascaded Standby Databases in Oracle 12c
Oracle Database Licensing Information, 12c Release 1 (12.1)
Bob Mycroft
Oracle DBA, Capgemini
Bob has worked with Oracle as a developer and DBA for over 18 years and has a
general interest in all things Oracle. In 2009 Bob was awarded Oracle ACE by OTN
largely for the many articles written for Oracle Scene, and presentations at the
UKOUG conferences over the last 10 years. Bob is presenting at the UKOUG Tech13
conference in December on the Advanced Security Option so come and
say Hello!
23
OracleScene
D I G I T A L
12C SUPPLEMENT
AUTUMN 13
Technology
Alex Nuijten
Senior Consultant Manager,
Ordina Oracle Solutions
Pattern
Recognition
The weather.
Nobody it seems likes the
weather. Its either too
cold or too hot. Too wet
or too dry. Nobody ever
seems to feel that the
weather is just right.
The Weather
When you talk to people they always, well almost always, complain about
the weather. When you look at the weather data objectively, it might reveal a
different picture. The weather was not as bad as they might say.
In this article we will use one of the new Oracle SQL 12c
capabilities to analyze the actual weather.
Setup
The table above is very straight forward, two columns: one for
the date and one for the amount of rain that has fallen on that
particular date.
24
Now that we have the table, we still need sample data to work
with. To generate some data I will use the following statement:
SQL> insert into weather
2 with rsf(r)
3 as
4 (select 1
5
from dual
6
union all
7 select r + 1
8
from rsf
9 where r < 31)
10 select to_date (to_char (r)||-08-2013, dd-mm-yyyy) dt
11 ,round ((dbms_random.value * 20)) rain
12
from rsf
13 /
31 rows created.
15-AUG-13 5
16-AUG-13 5
17-AUG-13 10
18-AUG-13 5
19-AUG-13 14
20-AUG-13 19
21-AUG-13 15
22-AUG-13 12
23-AUG-13 18
24-AUG-13 2
25-AUG-13 5
26-AUG-13 4
27-AUG-13 15
28-AUG-13 7
29-AUG-13 0
30-AUG-13 12
31-AUG-13 11
DT RAIN
--------- ---------01-AUG-13 14
02-AUG-13 0
03-AUG-13 19
04-AUG-13 6
05-AUG-13 20
06-AUG-13 1
07-AUG-13 17
08-AUG-13 17
09-AUG-13 14
10-AUG-13 18
11-AUG-13 9
12-AUG-13 4
13-AUG-13 17
14-AUG-13 16
31 rows selected.
As you can see in the data, some days it doesnt rain while other
days it rains without stopping. Lets start to analyze some of
this data.
16-AUG-13 5
17-AUG-13 10
18-AUG-13 5
19-AUG-13 14
20-AUG-13 19
21-AUG-13 15
22-AUG-13 12
23-AUG-13 18
24-AUG-13 2
25-AUG-13 5
26-AUG-13 4
27-AUG-13 15
28-AUG-13 7
29-AUG-13 0
30-AUG-13 12
31-AUG-13 11
SAME
WORSE
BETTER
WORSE
WORSE
BETTER
BETTER
WORSE
BETTER
WORSE
BETTER
WORSE
BETTER
BETTER
WORSE
BETTER
31 rows selected.
DT RAIN
--------- ---------01-AUG-13 14
02-AUG-13 0
03-AUG-13 19
04-AUG-13 6
05-AUG-13 20
06-AUG-13 1
07-AUG-13 17
08-AUG-13 17
09-AUG-13 14
10-AUG-13 18
11-AUG-13 9
12-AUG-13 4
13-AUG-13 17
14-AUG-13 16
15-AUG-13 5
www.ukoug.org
TREND
----------------------------BETTER
WORSE
BETTER
WORSE
BETTER
WORSE
SAME
BETTER
WORSE
BETTER
BETTER
WORSE
BETTER
BETTER
25
OracleScene
D I G I T A L
12C SUPPLEMENT
AUTUMN 13
DRYDAY LAST_WETD
--------- --------12-AUG-13 14-AUG-13
26-AUG-13 27-AUG-13
2 rows selected.
26
*
0 or more matches
+
1 or more matches
?
0 or 1 match
{n}
exactly n matches
{n,}
n or more matches
{n, m}
between n and m (inclusive) matches
{, m}
between 0 an m (inclusive) matches
Reluctant quantifier an additional ?
Alternation:
|
Grouping:
()
Permutation:
Permute() alternate all permutations
^:
indicates beginning of partition
$:
indicates end of partition
www.ukoug.org
ABOUT
THE
AUTHOR
Alex Nuijten
Senior Consultant Manager, Ordina Oracle Solutions
Alex Nuijten works as a senior consultant for Ordina Oracle Solutions in The
Netherlands. Besides his consultancy work, he conducts training classes, mainly in
SQL and PL/SQL. Alex has been a speaker at numerous international conferences,
such as ODTUG, Oracle Open World, UKOUG, IOUG, OUGF, OGH and OBUG. He was
part of the Nordic ACE Directors Tour in 2012. He is also a frequent contributor at the
Oracle Technology Network forum for SQL and PL/SQL. He wrote many articles in
Oracle related magazines, and at regular intervals he writes about Oracle Application
Express and Oracle database development on his blog Notes on Oracle (nuijten.
blogspot.com). Alex is co-author of the book Oracle APEX Best Practices (published
by Packt Publishers). In August 2010, Alex was awarded the Oracle ACE
Director membership.
Going Mobile
Our mobile app gives you access to all the information relating
to Apps13 including:
The agenda
Session information such as time, date
and abstracts
Speaker information
Exhibitor information including
contact details
Up to the minute social media feeds
E X P E R I E N C E U KO U G I N W H O L E N E W WAY
Search for:
UK Oracle User Group
www.ukoug.org
27
14
Plan Now for 20
ntent
Peer-Reviewed Co
rts and
Written by expe ld
leaders in your fie
rtunities
Advertising Oppos, variety of
Competitive rateages
advertising pack
e
n
e
c
S
e
l
Orac
e Community
Serving the Oracl
t
n
e
d
n
e
p
e
d
The In
n
o
i
t
a
c
i
l
b
u
P
p
i
Flagsh
s
r
e
s
U
e
l
c
a
r
O
for
In
t
E: eres
isa te
Co bel d in
nt la@ ad
fo act uk ver
r 2 us ou tis
01 no g. in
4! w org g?
www.ukoug.blicoatirgon
pu
An independent
ion
h Oracle Corporat
wit
ed
liat
affi
t
no
be in
Want toScene?
Oracle bmission