SlideShare a Scribd company logo
1/29/2019
1
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
Connor McDonald
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
2
1
2
1/29/2019
2
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
3
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Stuff
youtube bit.ly/youtube-connor
blog bit.ly/blog-connor
twitter bit.ly/twitter-connor
400+ posts mainly on database & development
250 technical videos, new uploads every week
rants and raves on tech and the world :-)
3
4
1/29/2019
3
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
etc...
facebook bit.ly/facebook-connor
linkedin bit.ly/linkedin-connor
instagram bit.ly/instagram-connor
slideshare bit.ly/slideshare-connor
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
https://asktom.oracle.com
5
6
1/29/2019
4
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
7https://asktom.oracle.com/officehours
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
150 hours of free access (so far)
8
7
8
1/29/2019
5
18c - The Autonomous Database
Connor McDonald
Developer Advocate
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 10
18c - The Autonomous Database
9
10
1/29/2019
6
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
"18c - the autonomous database"
11
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
12c, 13, 14, 15, 16, 17, 18c
12
?
11
12
1/29/2019
7
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
18c = 12.2.0.2
13
MOS 2285040.1
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 14
No “FIRST” and “SECOND” releases anymore!
13
14
1/29/2019
8
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 15
Fewer One-Off Patches!
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 16
3 Number Format
Year.Update.Revision
15
16
1/29/2019
9
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 17
Version number reflects patch level!
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 18
A Release Update or Revision is only a patch,
not a database upgrade!
17
18
1/29/2019
10
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 19
Patch: Oracle 18.2.1 ⇢ Oracle 18.6.0
opatch
Upgrade: Oracle 18.2.1 ⇢ Oracle 19.1.0
dbupgrade and DBUA
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 20
18.1.0
18.2.0
First
Update
18.1.1
First
Revision
security,
regression,
no functionality changes
no optimizer changes
security,
regression,
functional changes
optimizer changes
19
20
1/29/2019
11
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
"18c - the autonomous database"
21
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
autonomous is a cloud offering
22
21
22
1/29/2019
12
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 23
Autonomous
Database
= + +
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
so what is the big deal ?
24
23
24
1/29/2019
13
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
trip down memory lane #1
25
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
who remembers these numbers ?
26
25
26
1/29/2019
14
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
121
249
505
27
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 28
ORA-1631: max # extents 505 reached in table SCOTT.EMP
121 = 2k block size
249 = 4k block size
27
28
1/29/2019
15
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
who thinks about extents anymore?
29
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
7.3 = unlimited extents
30
semi-automatic
uet$, fet$
29
30
1/29/2019
16
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
8.1 = locally managed tablespaces
31
fully automatic
bitmap extents
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
trip down memory lane #2
32
31
32
1/29/2019
17
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 33
create table SALES (
...
...
...
)
freelists 4
freelist groups 1
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
ASSM
34
33
34
1/29/2019
18
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
automatic segment space management
35
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
automation =
36
"we know the implementation, and
it is being performed by the software
based on our rules"
35
36
1/29/2019
19
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
automation ... towards autonomy
37
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
trip down memory lane #3
38
37
38
1/29/2019
20
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
who remembers these parameters ?
39
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 40
ROLLBACK_SEGMENTS = (r0,r1,r2,r3,r4,r5,r6)
TRANSACTIONS_PER_ROLLBACK_SEGMENT = 20
CLEANUP_ROLLBACK_ENTRIES = 10
SYSTEM non-SYSTEM
39
40
1/29/2019
21
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
who thinks about undo anymore?
41
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
9.0 = automatic undo
42
undo_tablespace =
41
42
1/29/2019
22
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 43
but it's more than automation
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 44
SQL> select count(*) from dba_rollback_segs;
COUNT(*)
----------
????
43
44
1/29/2019
23
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 45
segment count growth / reduction ...
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 46
... decided by the database
45
46
1/29/2019
24
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
autonomy =
47
"we do not know the implementation,
we do not set the rules,
decisions by the software"
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 48
Oracle has been doing this for a while :-)
47
48
1/29/2019
25
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 49
Oracle Database 10g and below
• Automatic Storage Management (ASM)
• Automatic Memory Management
• Automatic DB Diagnostic Monitor (ADDM)
• Automatic Workload Repository (AWR)
• Automatic Undo tablespaces
• Automatic Segment Space Management
• Automatic Statistics Gathering
• Automatic Standby Management (Broker)
• Automatic Query Rewrite
Oracle Database 11g, 12c
• Automatic SQL Tuning
• Automatic Workload Replay
• Automatic Capture of SQL Monitor
• Automatic Data Optimization
• Automatic Storage Indexes
• Automatic Columnar Cache
• Automatic Diagnostic Framework
• Automatic Refresh of Database Cloning
• Autonomous Health Framework
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
49
50
1/29/2019
26
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 51
well ... sort of
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 52
databases ... are hard
transactional,
instantaneous response
standard reports,
fast response
end of day/week/month batch,
longer but capped window
ad hoc query,
arbitrary criteria/duration
51
52
1/29/2019
27
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 53
all at the same time
transactional,
instantaneous response
standard reports,
fast response
end of day/week/month batch,
longer but capped window
ad hoc query,
arbitrary criteria/duration
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 54
so we started with "easy" :-)
53
54
1/29/2019
28
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 55
data warehousing
usage commonality
flexible response times
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 56
Oracle Autonomous Database
Enterprise
OLTP
Data
Warehousing
Q1 2018 C4 2018
Data
Warehousing
55
56
1/29/2019
29
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 57
autonomous objectives
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 58
1) easy
storage
quotas
indexing
partitioning
parallelism
compression
availability
etc
etc
load data
run queries
57
58
1/29/2019
30
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 59
2) fast or faster
Exadata infrastructure
Enterprise edition
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 60
3) elastic
59
60
1/29/2019
31
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 61
3) truly elastic
scale CPU & storage up, no outage
scale CPU down to save $
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 62
4) fully managed
backup / recovery
patching
upgrades
HA (99.95)
61
62
1/29/2019
32
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 63
walkthrough
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 64
"5 easy steps"
63
64
1/29/2019
33
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 65
1
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
creating your database
66
name
region
CPUs
storage
65
66
1/29/2019
34
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
you're done!
67
admin user password
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
"demo"
68
67
68
1/29/2019
35
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
69
70
1/29/2019
36
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
71
72
1/29/2019
37
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
73
74
1/29/2019
38
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 75
2
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
connecting to your database
76
75
76
1/29/2019
39
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
emphasis on security
77
SSL only
wallet
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
single download
78
service console
77
78
1/29/2019
40
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
"demo"
79
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
79
80
1/29/2019
41
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
81
82
1/29/2019
42
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
SQL Developer
84
native support
83
84
1/29/2019
43
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
85
86
1/29/2019
44
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
most tools
87
standard connectivty
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 88
C:temp>unzip -l credential.zip
Archive: credential.zip
Length Date Time Name
--------- ---------- ----- ----
0 04/06/2018 08:37
7045 04/06/2018 08:22 cwallet.sso
0 04/06/2018 08:37 cwallet.sso.lck
7000 04/06/2018 08:22 ewallet.p12
0 04/06/2018 08:37 ewallet.p12.lck
3182 04/06/2018 08:22 keystore.jks
132 11/06/2018 11:04 sqlnet.ora
334 04/06/2018 08:22 tnsnames.ora
3797 04/06/2018 08:22 truststore.jks
--------- -------
21490 9 files
87
88
1/29/2019
45
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 89
sqlnet.ora
WALLET_LOCATION = (SOURCE = (METHOD = file)
(METHOD_DATA = (DIRECTORY="...")))
SSL_SERVER_DN_MATCH=yes
tnsnames.ora
DW = (description=
(address=(protocol=tcps)(port=1522)(host=...))
(connect_data=(service_name=...))
(security=(ssl_server_cert_dn="CN=..."))
)
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
JDBC
90
more complicated
89
90
1/29/2019
46
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 91
props.setProperty("oracle.net.ssl_server_dn_match" ,"true");
props.setProperty("javax.net.ssl.trustStore" ,"truststore.jks" );
props.setProperty("javax.net.ssl.trustStorePassword","blahblah" );
props.setProperty("javax.net.ssl.trustStoreType" ,"JKS" );
props.setProperty("javax.net.ssl.keyStore" ,"keystore.jks" );
props.setProperty("javax.net.ssl.keyStoreType" ,"JKS" );
props.setProperty("javax.net.ssl.keyStorePassword" ,"blahblah");
con =
DriverManager.getConnection(
"jdbc:oracle:thin:myuser/mypassword@tnsdetails",props);
use latest drivers!
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
database services
92
predefined
91
92
1/29/2019
47
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
No of concurrent queries Max idle time CPU shares
HIGH 3 5 mins 4
MEDIUM 20 5 mins 2
LOW 32 1 hour 1
MY_DBNAME_
MY_DBNAME_
MY_DBNAME_
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 94
3
93
94
1/29/2019
48
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
users for your database
95
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 96
SQL> create user MY_DATA identified by MY_PASSWORD;
SQL> grant DWROLE to MY_DATA;
You're done!
95
96
1/29/2019
49
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
other users as per normal
97
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 98
4
97
98
1/29/2019
50
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
loading your database
99
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
ADW
Object
Storage
SQL*Net
99
100
1/29/2019
51
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
DBMS_CLOUD
101
focus on "1) easy"
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
external tables are .... "fun"
102
101
102
1/29/2019
52
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 103
CREATE TABLE emp_ext (
EMPNO NUMBER(4),
ENAME VARCHAR2(10),
JOB VARCHAR2(9),
MGR NUMBER(4),
HIREDATE DATE,
SAL NUMBER(7,2),
COMM NUMBER(7,2),
DEPTNO NUMBER(2)
)
ORGANIZATION EXTERNAL
(
TYPE ORACLE_LOADER
DEFAULT DIRECTORY NFS_DIR
ACCESS PARAMETERS
...
( RECORDS DELIMITED BY NEWLINE
DNFS_ENABLE
DNFS_READBUFFERS 10
FIELDS TERMINATED BY ','
MISSING FIELD VALUES ARE NULL
(
empno,
ename,
job,
mgr,
hiredate CHAR(21) DATE_FORMAT MASK "DD-MON-YYYY HH24:MI:SS",
sal,
comm,
deptno
) ) LOCATION ('EMP.dat')
)
PARALLEL 1
REJECT LIMIT UNLIMITED;
SQL> select * from emp_ext;
ORA-12801: error signaled in parallel query server P002
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
ORA-06512: at "SYS.ORACLE_LOADER", line 19
?
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
loading from object store
104
103
104
1/29/2019
53
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
1) credentials
105
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 106
begin
dbms_cloud.create_credential(
credential_name => 'OBJ_STORE_CRED',
username => 'connor',
password => 'password'
);
end;
/
105
106
1/29/2019
54
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
2) load/transform to table
107
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 108
begin
dbms_cloud.copy_data(
table_name=>'CHANNELS',
credential_name=>'OBJ_STORE_CRED',
file_uri_list=>
'https://objectstorage..../DEMO_DATA/chan_v3.dat',
format=>
json_object('ignoremissingcolumns' value 'true',
'removequotes' value 'true')
);
end;
107
108
1/29/2019
55
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
3) do the usual :-)
109
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 110
SQL> select table_name,
2 status,
3 rows_loaded,
4 logfile_table,
5 badfile_table
6 from user_load_operations;
TABLE_NAME STATUS ROWS_LOADED LOGFILE_TABLE BADFILE_TABLE
------------ ------- ------------ ------------- ---------------
CHANNELS FAILED COPY$1_LOG COPY$1_BAD
CHANNELS COMPLETED 5 COPY$2_LOG COPY$2_BAD
109
110
1/29/2019
56
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
data pump option
111
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 112
begin
dbms_cloud.create_credential(
credential_name => 'OBJ_STORE_CRED',
username => 'connor',
password => 'password'
);
end;
/
impdp sh/sh@salesdb_low
directory=data_pump_dir
credential=OBJ_STORE_CRED
dumpfile=https://objectstorage.../dump/sh.dmp
111
112
1/29/2019
57
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 113
5
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
querying your database
114
113
114
1/29/2019
58
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 115
SQL> select *
2 from MY_TABLE
3 ...
"Well...duh"
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
but you can do more
116
115
116
1/29/2019
59
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
ADWC
Object
Storage
SQL*Net
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
query before you load
118
117
118
1/29/2019
60
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
external table on object store
119
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 120
begin
dbms_cloud.create_external_table(
table_name =>'CHANNELS_EXT',
credential_name =>'OBJ_STORE_CRED',
file_uri_list => 'https://...chan_v3.dat',
format =>
json_object('ignoremissingcolumns' value 'true',
'removequotes' value 'true'),
column_list => 'CHANNEL_ID NUMBER,
CHANNEL_DESC VARCHAR2(20),
CHANNEL_CLASS VARCHAR2(20),
CHANNEL_CLASS_ID NUMBER,
CHANNEL_TOTAL VARCHAR2(13),
CHANNEL_TOTAL_ID NUMBER'
);
end;
select count(*) from channels_ext;
119
120
1/29/2019
61
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
recap
121
creation/connection
users
loaded
queried
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
We're done !!!
122
121
122
1/29/2019
62
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
"Fast, unlimited data access is the
crack cocaine for data scientists"
- James Morle
123
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
"3) elasticity"
124
123
124
1/29/2019
63
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
CPU increase ... anytime, no outage
125
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
125
126
1/29/2019
64
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
127
128
1/29/2019
65
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 130
SQL> show parameter cpu_count
NAME TYPE VALUE
------------------------------------ ----------- ---------------
cpu_count integer 1
SQL> show parameter cpu_count
NAME TYPE VALUE
------------------------------------ ----------- ---------------
cpu_count integer 2
SQL>
129
130
1/29/2019
66
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 131
"Yeah...I know what that means"
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
131
132
1/29/2019
67
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
You can scale to zero
133
service console
REST API
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
134
load yesterday's data
cpu = 2
133
134
1/29/2019
68
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
135
unleash the dogs :-)
cpu = 8
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
all other times = zero CPU cost
136
135
136
1/29/2019
69
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
"4) fully managed"
137
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 138
FAQ
137
138
1/29/2019
70
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
OS access
139
nope
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
SYSDBA access
140
nope
139
140
1/29/2019
71
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
patching
141
automated
online* (AppCont)
gold image
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
encryption
142
mandatory
141
142
1/29/2019
72
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
init.ora
143
all automatic
nls...
approx...
plsql...
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
tablespaces
144
nope
143
144
1/29/2019
73
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
indexes
145
nope*
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
materialized views
146
nope
145
146
1/29/2019
74
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
constraints
147
nope ... "yes"
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
compression
148
nope (HCC)
147
148
1/29/2019
75
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 149
SQL> create table t
2 as select a.* from all_objects a,
3 ( select 1 from dual connect by level <= 100 );
Table created.
CREATE TABLE "ADMIN"."T"
( "OWNER" VARCHAR2(128) NOT NULL ENABLE,
"OBJECT_NAME" VARCHAR2(128) NOT NULL ENABLE,
...
...
"MODIFIED_VSNID" NUMBER
)
PCTFREE 1 PCTUSED 40
COLUMN STORE COMPRESS FOR QUERY HIGH
ROW LEVEL LOCKING
TABLESPACE "DATA"
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
partitioning
150
nope*
149
150
1/29/2019
76
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
sidebar: Maybe you're doing it wrong :-)
151
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
statistics
152
advanced direct mode
automatic or explicit
151
152
1/29/2019
77
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
recall: 12c, direct load statistics
153
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 154
SQL> insert /*+ APPEND */ into MY_EMPTY_TABLE
2 select ...
10000 rows inserted.
SQL> select num_rows
2 from user_tables
3 where table_name = '...';
NUM_ROWS
----------
10000
SQL> insert /*+ APPEND */ into ...
10000 rows inserted.
SQL> select num_rows
2 from user_tables
3 where table_name = '...';
NUM_ROWS
----------
20000
153
154
1/29/2019
78
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
histograms too!
155
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
caching
156
result_cache
everything!
155
156
1/29/2019
79
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
in-memory
157
yes*
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 158
SQL> select *
2 from v$sgastat
3 where pool like 'in%';
POOL NAME BYTES
-------------- -------------------------- ----------
in-memory pool data area 536870912
in-memory pool metadata area 536870912
157
158
1/29/2019
80
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
hints
159
can be enabled
ignored by default
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
backup / recovery
160
daily incremental
weekly full
159
160
1/29/2019
81
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
backup / recovery
161
point-in-time nomination
(process is automatic)
(flashback possible)
60 days
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 162
161
162
1/29/2019
82
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
graph, text, spatial
163
coming later
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
migration
164
focus on easy
data pump
(tde, compression, etc)
163
164
1/29/2019
83
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 165
SQL> create table T ( x int) tablespace system;
Table created.
SQL> insert into t values (1);
1 row created.
SQL> select tablespace_name
2 from dba_segments
3 where segment_name = 'T';
TABLESPACE_NAME
------------------------
DATA
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
monitoring
166
real time SQL monitoring
service console
(and REST)
165
166
1/29/2019
84
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
167
168
1/29/2019
85
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
169
170
1/29/2019
86
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
from "easy" to "not so easy"
171
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 172
Oracle Autonomous Database
Enterprise
OLTP
Data
Warehousing
Q1 2018 CY 2018
Data
Warehousing
171
172
1/29/2019
87
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 173
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
173
174
1/29/2019
88
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
just a normal database?
176
175
176
1/29/2019
89
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
based on 19c
177
critical features
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 178
automatic indexes
177
178
1/29/2019
90
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 179
we follow best practice
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 180
Identify index
candidates based
on column usage
(SQL workload)
Create indexes in
unusable and
invisible mode
Compile
statements hard
parsed in current
cycle/iteration
Rebuild indexes
that optimizer
selected (status
as invisible)
Mark indexes as
visible if the perf
of the statements
improved
Repeated every
15 minutes
Validation continues
for the entire
workload. The index
status changes to
complete or revoked
179
180
1/29/2019
91
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 181
SQL> select ...
2 from EMP e,
3 DEPT d
4 where e.JOB = 'SALES'
5 and d.LOC = 'NORTH';
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 182
SQL> select REGION, min(AMOUNT)
2 from EMP e,
3 SALES_TRANSACTIONS s
4 where e.JOB = 'SALES'
5 and s.EMPNO = e.EMPNO
6 and s.REGION = 'CA'
7 and s.TAX_AMT > 10
8 or s.SUBSIDY > 0
9 group by REGION
181
182
1/29/2019
92
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
which brings us to ...
183
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 184
•Will my job go away?
•Will my job change?
•What is in it for me?
183
184
1/29/2019
93
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 185
% of presentations that
have a pie graph
% of presentations that
need a pie graph
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
72%
http://www.computerworld.com/article/2486278/it-management/how-to-balance-maintenance-and-it-innovation.html
185
186
1/29/2019
94
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
think back to automatic undo ...
187
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
... did you lose your job ?
188
or just get more databases :-)
187
188
1/29/2019
95
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
it is about business success
189
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 190
Data Modeling
Architecture,
Design
189
190
1/29/2019
96
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 191
End-to-End Service
Level Management
Full stack availability
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 192
Data Security
Data classification,
Data life-cycle management
191
192
1/29/2019
97
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 193
Application Tuning
SQL tuning,
Connection management
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 194
stop focussing on the negatives
193
194
1/29/2019
98
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 196
•Will my job go away?
•Will my job change?
•What is in it for me?
195
196
1/29/2019
99
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 197
security patching
after the CVE was published
- DB Maestro
Breaches
85%
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 198
zugzwang for DBAs
197
198
1/29/2019
100
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 199
"A player who has no move that
does not worsen his position is
said to be in 'zugzwang'"
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 200
2) problem detection
199
200
1/29/2019
101
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 201
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 202
ORAchk
Cluster Verification Utility
Cluster Health Monitor
Cluster Trace File Analyzer
etc
Autonomous Health Framework
201
202
1/29/2019
102
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 203
3) control ...
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 204
... is a terrible thing :-)
203
204
1/29/2019
103
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
205
206
1/29/2019
104
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 207
wrap up
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
the appeal of "set and forget"
208
207
208
1/29/2019
105
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
the appeal of bypassing this!
209
Request for Provisioning of Resources
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
2TB for 3500 compute hours
210
https://cloud.oracle.com/try-autonomous-database
209
210
1/29/2019
106
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Enjoy the day!
youtube bit.ly/youtube-connor
blog bit.ly/blog-connor
twitter bit.ly/twitter-connor
211

More Related Content

PPTX
Perth APAC Groundbreakers tour - The Autonomous Database
Connor McDonald
 
PDF
ILOUG 2019 - 18c/19c features
Connor McDonald
 
PPTX
Hyderabad Mar 2019 - Autonomous Database
Connor McDonald
 
PDF
Hyderabad Mar 2019 - Database 18c / 19c
Connor McDonald
 
PPTX
Perth APAC Groundbreakers tour - 18c features
Connor McDonald
 
PPTX
OpenWorld 2018 - 20 years of hints and tips
Connor McDonald
 
PPTX
Melbourne Groundbreakers Tour - Hints and Tips
Connor McDonald
 
PDF
ITOUG 2019 - 18c, 19c features
Connor McDonald
 
Perth APAC Groundbreakers tour - The Autonomous Database
Connor McDonald
 
ILOUG 2019 - 18c/19c features
Connor McDonald
 
Hyderabad Mar 2019 - Autonomous Database
Connor McDonald
 
Hyderabad Mar 2019 - Database 18c / 19c
Connor McDonald
 
Perth APAC Groundbreakers tour - 18c features
Connor McDonald
 
OpenWorld 2018 - 20 years of hints and tips
Connor McDonald
 
Melbourne Groundbreakers Tour - Hints and Tips
Connor McDonald
 
ITOUG 2019 - 18c, 19c features
Connor McDonald
 

Similar to ILOUG 2019 - Autonomous, what does it mean for DBAs (20)

PDF
18c and 19c features for DBAs
Connor McDonald
 
PDF
[Oracle Innovation Summit Tokyo 2018] インダストリアルIoTの今、そしてこれからの進化
オラクルエンジニア通信
 
PDF
20190220 Oracle Blockchain Day公開資料
オラクルエンジニア通信
 
PDF
Using Machine Learning to Debug complex Oracle RAC Issues
Anil Nair
 
PDF
Latin America Tour 2019 - 18c and 19c featues
Connor McDonald
 
PPTX
AMIS Oracle OpenWorld en Code One Review 2018 - Pillar 1: Data
Getting value from IoT, Integration and Data Analytics
 
PPTX
AMIS Oracle OpenWorld & CodeOne Review - Pillar 1 - Data (5 november 2018)
Lucas Jellema
 
PDF
Kscope19 - Understanding the basics of SQL processing
Connor McDonald
 
PDF
Replication Whats New in Mysql 8
Luís Soares
 
PPTX
OpenWorld 2018 - SQL Tuning in 20 mins
Connor McDonald
 
PDF
Troubleshooting Ecommerce Performance
Diego Cardozo
 
PPTX
The Oracle Autonomous Database
Connor McDonald
 
PDF
AIOUG - Groundbreakers - Jul 2019 - 19 Troubleshooting Tips and Tricks for Da...
Sandesh Rao
 
PDF
OG Yatra - 25 years of hints and tips
Connor McDonald
 
PDF
AUSOUG - NZOUG - Groundbreakers - Jun 2019 - 19 Troubleshooting Tips and Tric...
Sandesh Rao
 
PDF
Diagnose Your Microservices
Marcus Hirt
 
PDF
CSPA Keynote: BLOCKCHAIN for Enterprise
David Haimes
 
PDF
Public hyperledger meetup sf may 2018
Oracle Developers
 
PDF
FOSDEM'18: MySQL InnoDB Cluster - MySQL HA Made Easy!
Miguel Araújo
 
PPTX
MySQL Performance Schema in MySQL 8.0
Mayank Prasad
 
18c and 19c features for DBAs
Connor McDonald
 
[Oracle Innovation Summit Tokyo 2018] インダストリアルIoTの今、そしてこれからの進化
オラクルエンジニア通信
 
20190220 Oracle Blockchain Day公開資料
オラクルエンジニア通信
 
Using Machine Learning to Debug complex Oracle RAC Issues
Anil Nair
 
Latin America Tour 2019 - 18c and 19c featues
Connor McDonald
 
AMIS Oracle OpenWorld en Code One Review 2018 - Pillar 1: Data
Getting value from IoT, Integration and Data Analytics
 
AMIS Oracle OpenWorld & CodeOne Review - Pillar 1 - Data (5 november 2018)
Lucas Jellema
 
Kscope19 - Understanding the basics of SQL processing
Connor McDonald
 
Replication Whats New in Mysql 8
Luís Soares
 
OpenWorld 2018 - SQL Tuning in 20 mins
Connor McDonald
 
Troubleshooting Ecommerce Performance
Diego Cardozo
 
The Oracle Autonomous Database
Connor McDonald
 
AIOUG - Groundbreakers - Jul 2019 - 19 Troubleshooting Tips and Tricks for Da...
Sandesh Rao
 
OG Yatra - 25 years of hints and tips
Connor McDonald
 
AUSOUG - NZOUG - Groundbreakers - Jun 2019 - 19 Troubleshooting Tips and Tric...
Sandesh Rao
 
Diagnose Your Microservices
Marcus Hirt
 
CSPA Keynote: BLOCKCHAIN for Enterprise
David Haimes
 
Public hyperledger meetup sf may 2018
Oracle Developers
 
FOSDEM'18: MySQL InnoDB Cluster - MySQL HA Made Easy!
Miguel Araújo
 
MySQL Performance Schema in MySQL 8.0
Mayank Prasad
 
Ad

More from Connor McDonald (20)

PDF
Flashback ITOUG
Connor McDonald
 
PDF
Sangam 19 - PLSQL still the coolest
Connor McDonald
 
PDF
Sangam 19 - Analytic SQL
Connor McDonald
 
PDF
UKOUG - 25 years of hints and tips
Connor McDonald
 
PDF
Sangam 19 - Successful Applications on Autonomous
Connor McDonald
 
PDF
Sangam 2019 - The Latest Features
Connor McDonald
 
PDF
UKOUG 2019 - SQL features
Connor McDonald
 
PDF
APEX tour 2019 - successful development with autonomous
Connor McDonald
 
PDF
APAC Groundbreakers 2019 - Perth/Melbourne
Connor McDonald
 
PDF
OOW19 - Flashback, not just for DBAs
Connor McDonald
 
PDF
OOW19 - Read consistency
Connor McDonald
 
PDF
OOW19 - Slower and less secure applications
Connor McDonald
 
PDF
OOW19 - Killing database sessions
Connor McDonald
 
PDF
OOW19 - Ten Amazing SQL features
Connor McDonald
 
PDF
Latin America tour 2019 - Flashback
Connor McDonald
 
PDF
Latin America Tour 2019 - 10 great sql features
Connor McDonald
 
PDF
Latin America Tour 2019 - pattern matching
Connor McDonald
 
PDF
Latin America Tour 2019 - slow data and sql processing
Connor McDonald
 
PDF
ANSI vs Oracle language
Connor McDonald
 
PDF
OG Yatra - upgrading to the new 12c+ optimizer
Connor McDonald
 
Flashback ITOUG
Connor McDonald
 
Sangam 19 - PLSQL still the coolest
Connor McDonald
 
Sangam 19 - Analytic SQL
Connor McDonald
 
UKOUG - 25 years of hints and tips
Connor McDonald
 
Sangam 19 - Successful Applications on Autonomous
Connor McDonald
 
Sangam 2019 - The Latest Features
Connor McDonald
 
UKOUG 2019 - SQL features
Connor McDonald
 
APEX tour 2019 - successful development with autonomous
Connor McDonald
 
APAC Groundbreakers 2019 - Perth/Melbourne
Connor McDonald
 
OOW19 - Flashback, not just for DBAs
Connor McDonald
 
OOW19 - Read consistency
Connor McDonald
 
OOW19 - Slower and less secure applications
Connor McDonald
 
OOW19 - Killing database sessions
Connor McDonald
 
OOW19 - Ten Amazing SQL features
Connor McDonald
 
Latin America tour 2019 - Flashback
Connor McDonald
 
Latin America Tour 2019 - 10 great sql features
Connor McDonald
 
Latin America Tour 2019 - pattern matching
Connor McDonald
 
Latin America Tour 2019 - slow data and sql processing
Connor McDonald
 
ANSI vs Oracle language
Connor McDonald
 
OG Yatra - upgrading to the new 12c+ optimizer
Connor McDonald
 
Ad

Recently uploaded (20)

PDF
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PDF
Advances in Ultra High Voltage (UHV) Transmission and Distribution Systems.pdf
Nabajyoti Banik
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
Doc9.....................................
SofiaCollazos
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PDF
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
PDF
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
Advances in Ultra High Voltage (UHV) Transmission and Distribution Systems.pdf
Nabajyoti Banik
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
Doc9.....................................
SofiaCollazos
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 

ILOUG 2019 - Autonomous, what does it mean for DBAs

  • 1. 1/29/2019 1 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Connor McDonald Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 2 1 2
  • 2. 1/29/2019 2 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 3 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Stuff youtube bit.ly/youtube-connor blog bit.ly/blog-connor twitter bit.ly/twitter-connor 400+ posts mainly on database & development 250 technical videos, new uploads every week rants and raves on tech and the world :-) 3 4
  • 3. 1/29/2019 3 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. etc... facebook bit.ly/facebook-connor linkedin bit.ly/linkedin-connor instagram bit.ly/instagram-connor slideshare bit.ly/slideshare-connor Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | https://asktom.oracle.com 5 6
  • 4. 1/29/2019 4 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 7https://asktom.oracle.com/officehours Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 150 hours of free access (so far) 8 7 8
  • 5. 1/29/2019 5 18c - The Autonomous Database Connor McDonald Developer Advocate Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 10 18c - The Autonomous Database 9 10
  • 6. 1/29/2019 6 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | "18c - the autonomous database" 11 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 12c, 13, 14, 15, 16, 17, 18c 12 ? 11 12
  • 7. 1/29/2019 7 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 18c = 12.2.0.2 13 MOS 2285040.1 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 14 No “FIRST” and “SECOND” releases anymore! 13 14
  • 8. 1/29/2019 8 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 15 Fewer One-Off Patches! Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 16 3 Number Format Year.Update.Revision 15 16
  • 9. 1/29/2019 9 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 17 Version number reflects patch level! Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 18 A Release Update or Revision is only a patch, not a database upgrade! 17 18
  • 10. 1/29/2019 10 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 19 Patch: Oracle 18.2.1 ⇢ Oracle 18.6.0 opatch Upgrade: Oracle 18.2.1 ⇢ Oracle 19.1.0 dbupgrade and DBUA Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 20 18.1.0 18.2.0 First Update 18.1.1 First Revision security, regression, no functionality changes no optimizer changes security, regression, functional changes optimizer changes 19 20
  • 11. 1/29/2019 11 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | "18c - the autonomous database" 21 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | autonomous is a cloud offering 22 21 22
  • 12. 1/29/2019 12 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 23 Autonomous Database = + + Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | so what is the big deal ? 24 23 24
  • 13. 1/29/2019 13 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | trip down memory lane #1 25 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | who remembers these numbers ? 26 25 26
  • 14. 1/29/2019 14 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 121 249 505 27 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 28 ORA-1631: max # extents 505 reached in table SCOTT.EMP 121 = 2k block size 249 = 4k block size 27 28
  • 15. 1/29/2019 15 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | who thinks about extents anymore? 29 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 7.3 = unlimited extents 30 semi-automatic uet$, fet$ 29 30
  • 16. 1/29/2019 16 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 8.1 = locally managed tablespaces 31 fully automatic bitmap extents Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | trip down memory lane #2 32 31 32
  • 17. 1/29/2019 17 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 33 create table SALES ( ... ... ... ) freelists 4 freelist groups 1 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | ASSM 34 33 34
  • 18. 1/29/2019 18 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | automatic segment space management 35 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | automation = 36 "we know the implementation, and it is being performed by the software based on our rules" 35 36
  • 19. 1/29/2019 19 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | automation ... towards autonomy 37 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | trip down memory lane #3 38 37 38
  • 20. 1/29/2019 20 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | who remembers these parameters ? 39 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 40 ROLLBACK_SEGMENTS = (r0,r1,r2,r3,r4,r5,r6) TRANSACTIONS_PER_ROLLBACK_SEGMENT = 20 CLEANUP_ROLLBACK_ENTRIES = 10 SYSTEM non-SYSTEM 39 40
  • 21. 1/29/2019 21 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | who thinks about undo anymore? 41 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 9.0 = automatic undo 42 undo_tablespace = 41 42
  • 22. 1/29/2019 22 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 43 but it's more than automation Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 44 SQL> select count(*) from dba_rollback_segs; COUNT(*) ---------- ???? 43 44
  • 23. 1/29/2019 23 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 45 segment count growth / reduction ... Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 46 ... decided by the database 45 46
  • 24. 1/29/2019 24 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | autonomy = 47 "we do not know the implementation, we do not set the rules, decisions by the software" Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 48 Oracle has been doing this for a while :-) 47 48
  • 25. 1/29/2019 25 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 49 Oracle Database 10g and below • Automatic Storage Management (ASM) • Automatic Memory Management • Automatic DB Diagnostic Monitor (ADDM) • Automatic Workload Repository (AWR) • Automatic Undo tablespaces • Automatic Segment Space Management • Automatic Statistics Gathering • Automatic Standby Management (Broker) • Automatic Query Rewrite Oracle Database 11g, 12c • Automatic SQL Tuning • Automatic Workload Replay • Automatic Capture of SQL Monitor • Automatic Data Optimization • Automatic Storage Indexes • Automatic Columnar Cache • Automatic Diagnostic Framework • Automatic Refresh of Database Cloning • Autonomous Health Framework Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 49 50
  • 26. 1/29/2019 26 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 51 well ... sort of Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 52 databases ... are hard transactional, instantaneous response standard reports, fast response end of day/week/month batch, longer but capped window ad hoc query, arbitrary criteria/duration 51 52
  • 27. 1/29/2019 27 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 53 all at the same time transactional, instantaneous response standard reports, fast response end of day/week/month batch, longer but capped window ad hoc query, arbitrary criteria/duration Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 54 so we started with "easy" :-) 53 54
  • 28. 1/29/2019 28 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 55 data warehousing usage commonality flexible response times Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 56 Oracle Autonomous Database Enterprise OLTP Data Warehousing Q1 2018 C4 2018 Data Warehousing 55 56
  • 29. 1/29/2019 29 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 57 autonomous objectives Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 58 1) easy storage quotas indexing partitioning parallelism compression availability etc etc load data run queries 57 58
  • 30. 1/29/2019 30 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 59 2) fast or faster Exadata infrastructure Enterprise edition Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 60 3) elastic 59 60
  • 31. 1/29/2019 31 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 61 3) truly elastic scale CPU & storage up, no outage scale CPU down to save $ Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 62 4) fully managed backup / recovery patching upgrades HA (99.95) 61 62
  • 32. 1/29/2019 32 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 63 walkthrough Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 64 "5 easy steps" 63 64
  • 33. 1/29/2019 33 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 65 1 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | creating your database 66 name region CPUs storage 65 66
  • 34. 1/29/2019 34 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | you're done! 67 admin user password Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | "demo" 68 67 68
  • 35. 1/29/2019 35 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 69 70
  • 36. 1/29/2019 36 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 71 72
  • 37. 1/29/2019 37 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 73 74
  • 38. 1/29/2019 38 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 75 2 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | connecting to your database 76 75 76
  • 39. 1/29/2019 39 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | emphasis on security 77 SSL only wallet Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | single download 78 service console 77 78
  • 40. 1/29/2019 40 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | "demo" 79 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 79 80
  • 41. 1/29/2019 41 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 81 82
  • 42. 1/29/2019 42 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | SQL Developer 84 native support 83 84
  • 43. 1/29/2019 43 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 85 86
  • 44. 1/29/2019 44 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | most tools 87 standard connectivty Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 88 C:temp>unzip -l credential.zip Archive: credential.zip Length Date Time Name --------- ---------- ----- ---- 0 04/06/2018 08:37 7045 04/06/2018 08:22 cwallet.sso 0 04/06/2018 08:37 cwallet.sso.lck 7000 04/06/2018 08:22 ewallet.p12 0 04/06/2018 08:37 ewallet.p12.lck 3182 04/06/2018 08:22 keystore.jks 132 11/06/2018 11:04 sqlnet.ora 334 04/06/2018 08:22 tnsnames.ora 3797 04/06/2018 08:22 truststore.jks --------- ------- 21490 9 files 87 88
  • 45. 1/29/2019 45 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 89 sqlnet.ora WALLET_LOCATION = (SOURCE = (METHOD = file) (METHOD_DATA = (DIRECTORY="..."))) SSL_SERVER_DN_MATCH=yes tnsnames.ora DW = (description= (address=(protocol=tcps)(port=1522)(host=...)) (connect_data=(service_name=...)) (security=(ssl_server_cert_dn="CN=...")) ) Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | JDBC 90 more complicated 89 90
  • 46. 1/29/2019 46 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 91 props.setProperty("oracle.net.ssl_server_dn_match" ,"true"); props.setProperty("javax.net.ssl.trustStore" ,"truststore.jks" ); props.setProperty("javax.net.ssl.trustStorePassword","blahblah" ); props.setProperty("javax.net.ssl.trustStoreType" ,"JKS" ); props.setProperty("javax.net.ssl.keyStore" ,"keystore.jks" ); props.setProperty("javax.net.ssl.keyStoreType" ,"JKS" ); props.setProperty("javax.net.ssl.keyStorePassword" ,"blahblah"); con = DriverManager.getConnection( "jdbc:oracle:thin:myuser/mypassword@tnsdetails",props); use latest drivers! Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | database services 92 predefined 91 92
  • 47. 1/29/2019 47 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | No of concurrent queries Max idle time CPU shares HIGH 3 5 mins 4 MEDIUM 20 5 mins 2 LOW 32 1 hour 1 MY_DBNAME_ MY_DBNAME_ MY_DBNAME_ Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 94 3 93 94
  • 48. 1/29/2019 48 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | users for your database 95 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 96 SQL> create user MY_DATA identified by MY_PASSWORD; SQL> grant DWROLE to MY_DATA; You're done! 95 96
  • 49. 1/29/2019 49 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | other users as per normal 97 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 98 4 97 98
  • 50. 1/29/2019 50 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | loading your database 99 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | ADW Object Storage SQL*Net 99 100
  • 51. 1/29/2019 51 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | DBMS_CLOUD 101 focus on "1) easy" Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | external tables are .... "fun" 102 101 102
  • 52. 1/29/2019 52 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 103 CREATE TABLE emp_ext ( EMPNO NUMBER(4), ENAME VARCHAR2(10), JOB VARCHAR2(9), MGR NUMBER(4), HIREDATE DATE, SAL NUMBER(7,2), COMM NUMBER(7,2), DEPTNO NUMBER(2) ) ORGANIZATION EXTERNAL ( TYPE ORACLE_LOADER DEFAULT DIRECTORY NFS_DIR ACCESS PARAMETERS ... ( RECORDS DELIMITED BY NEWLINE DNFS_ENABLE DNFS_READBUFFERS 10 FIELDS TERMINATED BY ',' MISSING FIELD VALUES ARE NULL ( empno, ename, job, mgr, hiredate CHAR(21) DATE_FORMAT MASK "DD-MON-YYYY HH24:MI:SS", sal, comm, deptno ) ) LOCATION ('EMP.dat') ) PARALLEL 1 REJECT LIMIT UNLIMITED; SQL> select * from emp_ext; ORA-12801: error signaled in parallel query server P002 ORA-29913: error in executing ODCIEXTTABLEOPEN callout ORA-29400: data cartridge error ORA-06512: at "SYS.ORACLE_LOADER", line 19 ? Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | loading from object store 104 103 104
  • 53. 1/29/2019 53 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 1) credentials 105 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 106 begin dbms_cloud.create_credential( credential_name => 'OBJ_STORE_CRED', username => 'connor', password => 'password' ); end; / 105 106
  • 54. 1/29/2019 54 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 2) load/transform to table 107 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 108 begin dbms_cloud.copy_data( table_name=>'CHANNELS', credential_name=>'OBJ_STORE_CRED', file_uri_list=> 'https://objectstorage..../DEMO_DATA/chan_v3.dat', format=> json_object('ignoremissingcolumns' value 'true', 'removequotes' value 'true') ); end; 107 108
  • 55. 1/29/2019 55 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 3) do the usual :-) 109 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 110 SQL> select table_name, 2 status, 3 rows_loaded, 4 logfile_table, 5 badfile_table 6 from user_load_operations; TABLE_NAME STATUS ROWS_LOADED LOGFILE_TABLE BADFILE_TABLE ------------ ------- ------------ ------------- --------------- CHANNELS FAILED COPY$1_LOG COPY$1_BAD CHANNELS COMPLETED 5 COPY$2_LOG COPY$2_BAD 109 110
  • 56. 1/29/2019 56 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | data pump option 111 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 112 begin dbms_cloud.create_credential( credential_name => 'OBJ_STORE_CRED', username => 'connor', password => 'password' ); end; / impdp sh/sh@salesdb_low directory=data_pump_dir credential=OBJ_STORE_CRED dumpfile=https://objectstorage.../dump/sh.dmp 111 112
  • 57. 1/29/2019 57 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 113 5 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | querying your database 114 113 114
  • 58. 1/29/2019 58 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 115 SQL> select * 2 from MY_TABLE 3 ... "Well...duh" Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | but you can do more 116 115 116
  • 59. 1/29/2019 59 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | ADWC Object Storage SQL*Net Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | query before you load 118 117 118
  • 60. 1/29/2019 60 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | external table on object store 119 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 120 begin dbms_cloud.create_external_table( table_name =>'CHANNELS_EXT', credential_name =>'OBJ_STORE_CRED', file_uri_list => 'https://...chan_v3.dat', format => json_object('ignoremissingcolumns' value 'true', 'removequotes' value 'true'), column_list => 'CHANNEL_ID NUMBER, CHANNEL_DESC VARCHAR2(20), CHANNEL_CLASS VARCHAR2(20), CHANNEL_CLASS_ID NUMBER, CHANNEL_TOTAL VARCHAR2(13), CHANNEL_TOTAL_ID NUMBER' ); end; select count(*) from channels_ext; 119 120
  • 61. 1/29/2019 61 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | recap 121 creation/connection users loaded queried Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | We're done !!! 122 121 122
  • 62. 1/29/2019 62 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | "Fast, unlimited data access is the crack cocaine for data scientists" - James Morle 123 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | "3) elasticity" 124 123 124
  • 63. 1/29/2019 63 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | CPU increase ... anytime, no outage 125 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 125 126
  • 64. 1/29/2019 64 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 127 128
  • 65. 1/29/2019 65 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 130 SQL> show parameter cpu_count NAME TYPE VALUE ------------------------------------ ----------- --------------- cpu_count integer 1 SQL> show parameter cpu_count NAME TYPE VALUE ------------------------------------ ----------- --------------- cpu_count integer 2 SQL> 129 130
  • 66. 1/29/2019 66 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 131 "Yeah...I know what that means" Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 131 132
  • 67. 1/29/2019 67 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | You can scale to zero 133 service console REST API Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 134 load yesterday's data cpu = 2 133 134
  • 68. 1/29/2019 68 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 135 unleash the dogs :-) cpu = 8 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | all other times = zero CPU cost 136 135 136
  • 69. 1/29/2019 69 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | "4) fully managed" 137 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 138 FAQ 137 138
  • 70. 1/29/2019 70 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | OS access 139 nope Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | SYSDBA access 140 nope 139 140
  • 71. 1/29/2019 71 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | patching 141 automated online* (AppCont) gold image Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | encryption 142 mandatory 141 142
  • 72. 1/29/2019 72 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | init.ora 143 all automatic nls... approx... plsql... Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | tablespaces 144 nope 143 144
  • 73. 1/29/2019 73 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | indexes 145 nope* Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | materialized views 146 nope 145 146
  • 74. 1/29/2019 74 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | constraints 147 nope ... "yes" Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | compression 148 nope (HCC) 147 148
  • 75. 1/29/2019 75 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 149 SQL> create table t 2 as select a.* from all_objects a, 3 ( select 1 from dual connect by level <= 100 ); Table created. CREATE TABLE "ADMIN"."T" ( "OWNER" VARCHAR2(128) NOT NULL ENABLE, "OBJECT_NAME" VARCHAR2(128) NOT NULL ENABLE, ... ... "MODIFIED_VSNID" NUMBER ) PCTFREE 1 PCTUSED 40 COLUMN STORE COMPRESS FOR QUERY HIGH ROW LEVEL LOCKING TABLESPACE "DATA" Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | partitioning 150 nope* 149 150
  • 76. 1/29/2019 76 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | sidebar: Maybe you're doing it wrong :-) 151 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | statistics 152 advanced direct mode automatic or explicit 151 152
  • 77. 1/29/2019 77 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | recall: 12c, direct load statistics 153 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 154 SQL> insert /*+ APPEND */ into MY_EMPTY_TABLE 2 select ... 10000 rows inserted. SQL> select num_rows 2 from user_tables 3 where table_name = '...'; NUM_ROWS ---------- 10000 SQL> insert /*+ APPEND */ into ... 10000 rows inserted. SQL> select num_rows 2 from user_tables 3 where table_name = '...'; NUM_ROWS ---------- 20000 153 154
  • 78. 1/29/2019 78 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | histograms too! 155 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | caching 156 result_cache everything! 155 156
  • 79. 1/29/2019 79 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | in-memory 157 yes* Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 158 SQL> select * 2 from v$sgastat 3 where pool like 'in%'; POOL NAME BYTES -------------- -------------------------- ---------- in-memory pool data area 536870912 in-memory pool metadata area 536870912 157 158
  • 80. 1/29/2019 80 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | hints 159 can be enabled ignored by default Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | backup / recovery 160 daily incremental weekly full 159 160
  • 81. 1/29/2019 81 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | backup / recovery 161 point-in-time nomination (process is automatic) (flashback possible) 60 days Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 162 161 162
  • 82. 1/29/2019 82 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | graph, text, spatial 163 coming later Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | migration 164 focus on easy data pump (tde, compression, etc) 163 164
  • 83. 1/29/2019 83 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 165 SQL> create table T ( x int) tablespace system; Table created. SQL> insert into t values (1); 1 row created. SQL> select tablespace_name 2 from dba_segments 3 where segment_name = 'T'; TABLESPACE_NAME ------------------------ DATA Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | monitoring 166 real time SQL monitoring service console (and REST) 165 166
  • 84. 1/29/2019 84 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 167 168
  • 85. 1/29/2019 85 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 169 170
  • 86. 1/29/2019 86 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | from "easy" to "not so easy" 171 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 172 Oracle Autonomous Database Enterprise OLTP Data Warehousing Q1 2018 CY 2018 Data Warehousing 171 172
  • 87. 1/29/2019 87 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 173 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 173 174
  • 88. 1/29/2019 88 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | just a normal database? 176 175 176
  • 89. 1/29/2019 89 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | based on 19c 177 critical features Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 178 automatic indexes 177 178
  • 90. 1/29/2019 90 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 179 we follow best practice Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 180 Identify index candidates based on column usage (SQL workload) Create indexes in unusable and invisible mode Compile statements hard parsed in current cycle/iteration Rebuild indexes that optimizer selected (status as invisible) Mark indexes as visible if the perf of the statements improved Repeated every 15 minutes Validation continues for the entire workload. The index status changes to complete or revoked 179 180
  • 91. 1/29/2019 91 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 181 SQL> select ... 2 from EMP e, 3 DEPT d 4 where e.JOB = 'SALES' 5 and d.LOC = 'NORTH'; Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 182 SQL> select REGION, min(AMOUNT) 2 from EMP e, 3 SALES_TRANSACTIONS s 4 where e.JOB = 'SALES' 5 and s.EMPNO = e.EMPNO 6 and s.REGION = 'CA' 7 and s.TAX_AMT > 10 8 or s.SUBSIDY > 0 9 group by REGION 181 182
  • 92. 1/29/2019 92 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | which brings us to ... 183 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 184 •Will my job go away? •Will my job change? •What is in it for me? 183 184
  • 93. 1/29/2019 93 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 185 % of presentations that have a pie graph % of presentations that need a pie graph Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 72% http://www.computerworld.com/article/2486278/it-management/how-to-balance-maintenance-and-it-innovation.html 185 186
  • 94. 1/29/2019 94 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | think back to automatic undo ... 187 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | ... did you lose your job ? 188 or just get more databases :-) 187 188
  • 95. 1/29/2019 95 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | it is about business success 189 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 190 Data Modeling Architecture, Design 189 190
  • 96. 1/29/2019 96 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 191 End-to-End Service Level Management Full stack availability Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 192 Data Security Data classification, Data life-cycle management 191 192
  • 97. 1/29/2019 97 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 193 Application Tuning SQL tuning, Connection management Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 194 stop focussing on the negatives 193 194
  • 98. 1/29/2019 98 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 196 •Will my job go away? •Will my job change? •What is in it for me? 195 196
  • 99. 1/29/2019 99 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 197 security patching after the CVE was published - DB Maestro Breaches 85% Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 198 zugzwang for DBAs 197 198
  • 100. 1/29/2019 100 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 199 "A player who has no move that does not worsen his position is said to be in 'zugzwang'" Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 200 2) problem detection 199 200
  • 101. 1/29/2019 101 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 201 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 202 ORAchk Cluster Verification Utility Cluster Health Monitor Cluster Trace File Analyzer etc Autonomous Health Framework 201 202
  • 102. 1/29/2019 102 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 203 3) control ... Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 204 ... is a terrible thing :-) 203 204
  • 103. 1/29/2019 103 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 205 206
  • 104. 1/29/2019 104 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 207 wrap up Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | the appeal of "set and forget" 208 207 208
  • 105. 1/29/2019 105 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | the appeal of bypassing this! 209 Request for Provisioning of Resources Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 2TB for 3500 compute hours 210 https://cloud.oracle.com/try-autonomous-database 209 210
  • 106. 1/29/2019 106 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Enjoy the day! youtube bit.ly/youtube-connor blog bit.ly/blog-connor twitter bit.ly/twitter-connor 211