SlideShare una empresa de Scribd logo
1 de 89
DBA COMMANDS
AND CONCEPTS
THAT EVERY
DEVELOPER
SHOULD KNOW
Alex Zaballa
Copyright © 2016 Accenture All rights reserved. | 2
Alex Zaballa
http://alexzaballa.blogspot.com/
@alexzaballa
https://www.linkedin.com/in/alexzaballa
235 and counting…
Copyright © 2016 Accenture All rights reserved. | 3
Worked for 3 years in Brazil as a Clipper/Delphi Developer (15 years old)
1997-1999
Worked for 7 years in Brazil as an Oracle Developer
2000 - 2007
Worked for 8 years in Angola as an Oracle DBA
for the Ministry of Finance.
2007 - 2015
Copyright © 2016 Accenture All rights reserved. | 4
Copyright © 2016 Accenture All rights reserved. | 5
http://www.guobtechday2017.eventize.com.br/
Copyright © 2016 Accenture All rights reserved. | 6
Desenvolvedores
vs
DBAs
Copyright © 2016 Accenture All rights reserved. | 7
EXPLAIN PLAN
Copyright © 2016 Accenture All rights reserved. | 8
EXPLAIN PLAN
Are you using Explain Plan ?
Copyright © 2016 Accenture All rights reserved. | 9
EXPLAIN PLAN
Explain Plan Lies
Copyright © 2016 Accenture All rights reserved. | 10
EXPLAIN PLAN
Explain Plan just try to predict the Plan.
AUTOTRACE experiences a similar "problem”,
especially when the SQL statement uses bind
variables.
Copyright © 2016 Accenture All rights reserved. | 11
EXPLAIN PLAN
Explain plan is blind to:
• Bind Variable Peeking
• Adaptive Features
• Etc
Copyright © 2016 Accenture All rights reserved. | 12
EXPLAIN PLAN
Now what?
• DBMS_XPLAN.DISPLAY_CURSOR
• V$SQL_PLAN%
Copyright © 2016 Accenture All rights reserved. | 13
DBMS_XPLAN.DISPLAY_CURSOR
Copyright © 2016 Accenture All rights reserved. | 14
DBMS_XPLAN.DISPLAY_CURSOR
• SQL_ID
• CURSOR_CHILD_NO (default 0)
• FORMAT
 TYPICAL = DEFAULT
 ALL = TYPICAL + QB + PROJECTION + ALIAS +
REMOTE
 ADVANCED = ALL + OUTLINE + BINDS
 ALLSTATS = IOSTATS + MEMSTATS (all executions)
 ALLSTATS LAST (last execution)
 ADAPTIVE (12c)
Copyright © 2016 Accenture All rights reserved. | 15
DBMS_XPLAN
• DISPLAY (from PLAN_TABLE)
• DISPLAY_CURSOR
• DISPLAY_AWR
• DISPLAY_SQL_PLAN_BASELINE
• DISPLAY_SQL_SET
SELECT * FROM
TABLE(DBMS_XPLAN.DISPLAY_CURSOR('sql_id',child,'ADVANCED'));
Copyright © 2016 Accenture All rights reserved. | 16
DBMS_XPLAN.DISPLAY_CURSOR
By Carlos Sierra
Copyright © 2016 Accenture All rights reserved. | 17
DBMS_XPLAN.DISPLAY_CURSOR
https://blogs.oracle.com/optimizer/entry/how_do_i_know_if
/*+ gather_plan_statistics */
or
Alter session set statistics_level = ALL
Copyright © 2016 Accenture All rights reserved. | 18
SQL MONITOR
Copyright © 2016 Accenture All rights reserved. | 19
SQL MONITOR
Copyright © 2016 Accenture All rights reserved. | 20
SQL MONITOR
• Oracle Enterprise Manager
• EM Database Express (12c)
• SQL Developer
• Linha de Comando
Copyright © 2016 Accenture All rights reserved. | 21
SQL MONITOR
select dbms_sqltune.report_sql_monitor(
sql_id => 'gjabwvvr07w09',
report_level=>'ALL',
type => 'ACTIVE')
from dual;
Copyright © 2016 Accenture All rights reserved. | 22
SQLT / SQLTXPLAIN
Copyright © 2016 Accenture All rights reserved. | 23
SQLT / SQLTXPLAIN
SQLT Diagnostic Tool (Doc ID 215187.1)
Pros
• Oracle Support Standard
• Free (requires MOS account)
• Comprehensive and mature
Cons
• Requires installation
• HTML Tables (no charts)
Copyright © 2016 Accenture All rights reserved. | 24
SQLD360
Copyright © 2016 Accenture All rights reserved. | 25
SQLD360
Copyright © 2016 Accenture All rights reserved. | 26
SQLD360
Copyright © 2016 Accenture All rights reserved. | 27
SQLD360
Copyright © 2016 Accenture All rights reserved. | 28
COST OF AN INDEX
Copyright © 2016 Accenture All rights reserved. | 29
COST OF AN INDEX
Copyright © 2016 Accenture All rights reserved. | 30
FULL TABLE SCAN
Copyright © 2016 Accenture All rights reserved. | 31
FULL TABLE SCAN
https://www.slideshare.net/MauroPagano3/
full-table-scan-friend-or-foe
Copyright © 2016 Accenture All rights reserved. | 32
FULL TABLE SCAN
https://www.slideshare.net/MauroPagano3/
full-table-scan-friend-or-foe
Copyright © 2016 Accenture All rights reserved. | 33
FULL TABLE SCAN
https://richardfoote.wordpress.com/2008/05/12/index-scan-
or-full-table-scan-the-magic-number-magic-dance/
Copyright © 2016 Accenture All rights reserved. | 34
FULL TABLE SCAN
https://richardfoote.wordpress.com/2008/05/12/index-scan-
or-full-table-scan-the-magic-number-magic-dance/
• Clustering Factor  How well ordered the rows in the table are in
relation to the index.
• Selectivity of the query
• Number of table blocks
• Effective multiblock read count
• Relative cost of single vs. multiblock I/Os
• Parallelism
• Etc
Copyright © 2016 Accenture All rights reserved. | 35
FULL TABLE SCAN
https://www.slideshare.net/MauroPagano3/
full-table-scan-friend-or-foe
Copyright © 2016 Accenture All rights reserved. | 36
FULL TABLE SCAN
• Not always good
• Not always bad
Copyright © 2016 Accenture All rights reserved. | 37
ANALYZING TABLES
Copyright © 2016 Accenture All rights reserved. | 38
ANALYZING TABLES
https://docs.oracle.com/cd/B19306_01/server.102/b14200/
statements_4005.htm
Copyright © 2016 Accenture All rights reserved. | 39
PENDING STATISTICS
Copyright © 2016 Accenture All rights reserved. | 40
PENDING STATISTICS
We have the option of keeping the newly gathered statistics in a pending state for testing purposes,
until you choose to publish them.
Set table preferences:
begin
dbms_stats.set_table_prefs (
ownname => 'SCOTT',
tabname => 'EMP',
pname => 'PUBLISH',
pvalue => 'FALSE'
);
end;
Collect the statistics.
Copyright © 2016 Accenture All rights reserved. | 41
PENDING STATISTICS
Copyright © 2016 Accenture All rights reserved. | 42
PENDING STATISTICS
Copyright © 2016 Accenture All rights reserved. | 43
PENDING STATISTICS
If it’s ok:
Or:
Copyright © 2016 Accenture All rights reserved. | 44
RESTORE STATISTICS FROM HISTORY
Copyright © 2016 Accenture All rights reserved. | 45
RESTORE STATISTICS FROM HISTORY
Check the retention:
Default is 31 days.
Copyright © 2016 Accenture All rights reserved. | 46
RESTORE STATISTICS FROM HISTORY
Statistics available for the table:
Copyright © 2016 Accenture All rights reserved. | 47
RESTORE STATISTICS FROM HISTORY
Restore:
Copyright © 2016 Accenture All rights reserved. | 48
INVISIBLE INDEXES
Copyright © 2016 Accenture All rights reserved. | 49
INVISIBLE INDEXES
Copyright © 2016 Accenture All rights reserved. | 50
INVISIBLE INDEXES
OR
Copyright © 2016 Accenture All rights reserved. | 51
PARALLEL DML
Copyright © 2016 Accenture All rights reserved. | 52
PARALLEL DML
insert /*+ append parallel */ into tab1 select /*+ parallel */ *
from tab2 nologging;
15 minutes to complete.
create table tab1 as select /*+ parallel */ * from tab2
nologging;
2 minutes to complete.
Copyright © 2016 Accenture All rights reserved. | 53
PARALLEL DML
Copyright © 2016 Accenture All rights reserved. | 54
PARALLEL DML
Copyright © 2016 Accenture All rights reserved. | 55
ORACLE FLASHBACK QUERY
Copyright © 2016 Accenture All rights reserved. | 56
ORACLE FLASHBACK QUERY
Retrieve old versions of procedures:
Copyright © 2016 Accenture All rights reserved. | 57
DBMS_APPLICATION_INFO
Copyright © 2016 Accenture All rights reserved. | 58
DBMS_APPLICATION_INFO
Allows programs to add information to the
V$SESSION.
Use SET_MODULE to set the name for the program that the
user is currently executing. Optionally you can also set an
action name.
Use SET_ACTION for subsequent processing.
Use SET_CLIENT_INFO for any additional information.
Copyright © 2016 Accenture All rights reserved. | 59
SCHEMA MANAGEMENT
DDL WAIT OPTION
Copyright © 2016 Accenture All rights reserved. | 60
SCHEMA MANAGEMENT
DDL WAIT OPTION
SQL> alter table invoice add (code number);
alter table invoice add (code number)
*
ERROR at line 1:
ORA-00054: resource busy and acquire with NOWAIT
specified or timeout expired
Copyright © 2016 Accenture All rights reserved. | 61
SCHEMA MANAGEMENT
DDL WAIT OPTION
Parameter DDL_LOCK_TIMEOUT (default = 0)
It will wait for N seconds.
In that N seconds, it continually re-tries the DDL operation
until it's successful or this time expires.
Copyright © 2016 Accenture All rights reserved. | 62
ADDING COLUMNS WITH A DEFAULT VALUE
Copyright © 2016 Accenture All rights reserved. | 63
ADDING COLUMNS WITH A DEFAULT VALUE
The table SALES is about 400 million rows.
10.2.0.4.0  alter table sales add tax varchar2(2) default ‘XX’
not null;
Elapsed: 00:41:00.00
11.2.0.4.0  alter table sales add tax varchar2(2) default ‘XX’
not null;
Elapsed: 00:00:00.03
Copyright © 2016 Accenture All rights reserved. | 64
COUNT(1) VS COUNT(*)
Copyright © 2016 Accenture All rights reserved. | 65
COUNT(1) VS COUNT(*)
What is the difference between count(1) and count(*) ?
Nothing!
Copyright © 2016 Accenture All rights reserved. | 66
12.1 AND 12.2
Copyright © 2016 Accenture All rights reserved. | 67
READ OBJECT PRIVILEGE AND READ ANY TABLE
SYSTEM PRIVILEGE
Copyright © 2016 Accenture All rights reserved. | 68
READ OBJECT PRIVILEGE AND READ ANY TABLE
SYSTEM PRIVILEGE
What is the difference to SELECT and SELECT ANY
TABLE?
Copyright © 2016 Accenture All rights reserved. | 69
READ OBJECT PRIVILEGE AND READ ANY TABLE
SYSTEM PRIVILEGE
SELECT and SELECT ANY TABLE provides the ability to
lock rows:
LOCK TABLE table_name IN EXCLUSIVE MODE;
SELECT ... FROM table_name FOR UPDATE;
Copyright © 2016 Accenture All rights reserved. | 70
READ OBJECT PRIVILEGE AND READ ANY TABLE
SYSTEM PRIVILEGE
SQL> grant select on scott.emp to teste;
Grant succeeded.
SQL> lock table scott.emp in exclusive mode;
Table(s) Locked.
Copyright © 2016 Accenture All rights reserved. | 71
READ OBJECT PRIVILEGE AND READ ANY TABLE
SYSTEM PRIVILEGE
SQL> grant read on scott.emp to teste;
Grant succeeded.
SQL> lock table scott.emp in exclusive mode;
lock table scott.emp in exclusive mode
*
ERROR at line 1:
ORA-01031: insufficient privileges
Copyright © 2016 Accenture All rights reserved. | 72
EXTENDED DATA TYPES
Copyright © 2016 Accenture All rights reserved. | 73
EXTENDED DATA TYPES
SQL> create table tabela_teste(campo01 varchar2(4001));
*
ERROR at line 1:
ORA-00910: specified length too long for its datatype
Copyright © 2016 Accenture All rights reserved. | 74
EXTENDED DATA TYPES
• VARCHAR2 : 32767 bytes
• NVARCHAR2 : 32767 bytes
• RAW : 32767 bytes
Copyright © 2016 Accenture All rights reserved. | 75
EXTENDED DATA TYPES
SHUTDOWN IMMEDIATE;
STARTUP UPGRADE;
ALTER SYSTEM SET max_string_size=extended;
@?/rdbms/admin/utl32k.sql
SHUTDOWN IMMEDIATE;
STARTUP;
**Once you switch to extended data types you can't switch back
Copyright © 2016 Accenture All rights reserved. | 76
PL/SQL FROM SQL
Copyright © 2016 Accenture All rights reserved. | 77
PL/SQL FROM SQL
Copyright © 2016 Accenture All rights reserved. | 78
TEMPORARY UNDO
Copyright © 2016 Accenture All rights reserved. | 79
TEMPORARY UNDO
ALTER SESSION SET TEMP_UNDO_ENABLED = TRUE;
ALTER SYSTEM SET TEMP_UNDO_ENABLED = TRUE;
Copyright © 2016 Accenture All rights reserved. | 80
LONGER IDENTIFIER NAMES
Copyright © 2016 Accenture All rights reserved. | 81
LONGER IDENTIFIER NAMES
Starting with Oracle Database 12c Release 2 (12.2), the
maximum length of identifier names for most types of
database objects has been increased to 128 bytes.
Copyright © 2016 Accenture All rights reserved. | 82
LONGER IDENTIFIER NAMES
Copyright © 2016 Accenture All rights reserved. | 83
LONGER IDENTIFIER NAMES
Copyright © 2016 Accenture All rights reserved. | 84
LONGER IDENTIFIER NAMES
Copyright © 2016 Accenture All rights reserved. | 85
PDB LOCKDOWN PROFILES
Copyright © 2016 Accenture All rights reserved. | 86
PDB LOCKDOWN PROFILES
A security mechanism to restrict operations that are available
to local users connected to a specified PDB.
Copyright © 2016 Accenture All rights reserved. | 87
SQLCL
http://www.oracle.com/technetwork/developer-tools/sqlcl/downloads/index.html
Copyright © 2016 Accenture All rights reserved. | 88
QUESTIONS?
Copyright © 2016 Accenture All rights reserved. | 89
Thank You
Slides Available: http://www.slideshare.net/

Más contenido relacionado

La actualidad más candente

La actualidad más candente (19)

OTN TOUR 2016 - Oracle Database 12c - The Best Oracle Database 12c New Featur...
OTN TOUR 2016 - Oracle Database 12c - The Best Oracle Database 12c New Featur...OTN TOUR 2016 - Oracle Database 12c - The Best Oracle Database 12c New Featur...
OTN TOUR 2016 - Oracle Database 12c - The Best Oracle Database 12c New Featur...
 
Using AWR for SQL Analysis
Using AWR for SQL AnalysisUsing AWR for SQL Analysis
Using AWR for SQL Analysis
 
Oracle Database 12c - New Features for Developers and DBAs
Oracle Database 12c  - New Features for Developers and DBAsOracle Database 12c  - New Features for Developers and DBAs
Oracle Database 12c - New Features for Developers and DBAs
 
Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...
Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...
Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...
 
Top 10 Oracle SQL tuning tips
Top 10 Oracle SQL tuning tipsTop 10 Oracle SQL tuning tips
Top 10 Oracle SQL tuning tips
 
Oracle Performance Tools of the Trade
Oracle Performance Tools of the TradeOracle Performance Tools of the Trade
Oracle Performance Tools of the Trade
 
DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2
 
Oracle sql high performance tuning
Oracle sql high performance tuningOracle sql high performance tuning
Oracle sql high performance tuning
 
Oracle vs. SQL Server- War of the Indices
Oracle vs. SQL Server- War of the IndicesOracle vs. SQL Server- War of the Indices
Oracle vs. SQL Server- War of the Indices
 
Oracle Database 12c Release 2 - New Features On Oracle Database Exadata Expr...
Oracle Database 12c Release 2 - New Features On Oracle Database Exadata  Expr...Oracle Database 12c Release 2 - New Features On Oracle Database Exadata  Expr...
Oracle Database 12c Release 2 - New Features On Oracle Database Exadata Expr...
 
Think Exa!
Think Exa!Think Exa!
Think Exa!
 
Sangam 18 - The New Optimizer in Oracle 12c
Sangam 18 - The New Optimizer in Oracle 12cSangam 18 - The New Optimizer in Oracle 12c
Sangam 18 - The New Optimizer in Oracle 12c
 
In Memory Database In Action by Tanel Poder and Kerry Osborne
In Memory Database In Action by Tanel Poder and Kerry OsborneIn Memory Database In Action by Tanel Poder and Kerry Osborne
In Memory Database In Action by Tanel Poder and Kerry Osborne
 
MySQL partitioning
MySQL partitioning MySQL partitioning
MySQL partitioning
 
Crating a Robust Performance Strategy
Crating a Robust Performance StrategyCrating a Robust Performance Strategy
Crating a Robust Performance Strategy
 
Aioug vizag oracle12c_new_features
Aioug vizag oracle12c_new_featuresAioug vizag oracle12c_new_features
Aioug vizag oracle12c_new_features
 
In Search of Plan Stability - Part 1
In Search of Plan Stability - Part 1In Search of Plan Stability - Part 1
In Search of Plan Stability - Part 1
 
Oracle SQL tuning with SQL Plan Management
Oracle SQL tuning with SQL Plan ManagementOracle SQL tuning with SQL Plan Management
Oracle SQL tuning with SQL Plan Management
 
Performance Management in Oracle 12c
Performance Management in Oracle 12cPerformance Management in Oracle 12c
Performance Management in Oracle 12c
 

Similar a DBA Commands and Concepts That Every Developer Should Know

Con3187 Creating Industrial Middleware with Java ME and Single-Board Computers
Con3187 Creating Industrial Middleware with Java ME and Single-Board ComputersCon3187 Creating Industrial Middleware with Java ME and Single-Board Computers
Con3187 Creating Industrial Middleware with Java ME and Single-Board Computers
Julio Palma Vázquez
 
EXAchk for Exadata Presentation
EXAchk for Exadata PresentationEXAchk for Exadata Presentation
EXAchk for Exadata Presentation
Sandesh Rao
 

Similar a DBA Commands and Concepts That Every Developer Should Know (20)

DBA Commands and Concepts That Every Developer Should Know
DBA Commands and Concepts That Every Developer Should KnowDBA Commands and Concepts That Every Developer Should Know
DBA Commands and Concepts That Every Developer Should Know
 
SQL TUNING 101
SQL TUNING 101SQL TUNING 101
SQL TUNING 101
 
SQL TUNING 101
SQL TUNING 101SQL TUNING 101
SQL TUNING 101
 
Explain the explain_plan
Explain the explain_planExplain the explain_plan
Explain the explain_plan
 
The Oracle Autonomous Database
The Oracle Autonomous DatabaseThe Oracle Autonomous Database
The Oracle Autonomous Database
 
Enterprise manager 13c
Enterprise manager 13cEnterprise manager 13c
Enterprise manager 13c
 
Con3187 Creating Industrial Middleware with Java ME and Single-Board Computers
Con3187 Creating Industrial Middleware with Java ME and Single-Board ComputersCon3187 Creating Industrial Middleware with Java ME and Single-Board Computers
Con3187 Creating Industrial Middleware with Java ME and Single-Board Computers
 
Hands-on Lab: Building Advanced Dashboards with Xtraction for CA Service Mana...
Hands-on Lab: Building Advanced Dashboards with Xtraction for CA Service Mana...Hands-on Lab: Building Advanced Dashboards with Xtraction for CA Service Mana...
Hands-on Lab: Building Advanced Dashboards with Xtraction for CA Service Mana...
 
OEM13c_PPT.pptx
OEM13c_PPT.pptxOEM13c_PPT.pptx
OEM13c_PPT.pptx
 
EXAchk for Exadata Presentation
EXAchk for Exadata PresentationEXAchk for Exadata Presentation
EXAchk for Exadata Presentation
 
SkiPHP -- Database Basics for PHP
SkiPHP -- Database Basics for PHP SkiPHP -- Database Basics for PHP
SkiPHP -- Database Basics for PHP
 
How to analyze and tune sql queries for better performance vts2016
How to analyze and tune sql queries for better performance vts2016How to analyze and tune sql queries for better performance vts2016
How to analyze and tune sql queries for better performance vts2016
 
MySQL Optimizer: What's New in 8.0
MySQL Optimizer: What's New in 8.0MySQL Optimizer: What's New in 8.0
MySQL Optimizer: What's New in 8.0
 
Oracle Cloud Café hybrid Cloud 19 mai 2016
Oracle Cloud Café hybrid Cloud 19 mai 2016Oracle Cloud Café hybrid Cloud 19 mai 2016
Oracle Cloud Café hybrid Cloud 19 mai 2016
 
Oracle Management Cloud - HybridCloud Café - May 2016
Oracle Management Cloud - HybridCloud Café - May 2016Oracle Management Cloud - HybridCloud Café - May 2016
Oracle Management Cloud - HybridCloud Café - May 2016
 
Moving your Oracle Databases to the Oracle Cloud
Moving your Oracle Databases to the Oracle CloudMoving your Oracle Databases to the Oracle Cloud
Moving your Oracle Databases to the Oracle Cloud
 
Accenture at LiveWorx: Making Business Flow. Projects are the Anti-Patterns
Accenture at LiveWorx: Making Business Flow. Projects are the Anti-PatternsAccenture at LiveWorx: Making Business Flow. Projects are the Anti-Patterns
Accenture at LiveWorx: Making Business Flow. Projects are the Anti-Patterns
 
MySQL 8.0 Optimizer Guide
MySQL 8.0 Optimizer GuideMySQL 8.0 Optimizer Guide
MySQL 8.0 Optimizer Guide
 
Moving your Oracle Databases to the Oracle Cloud
Moving your Oracle Databases to the Oracle CloudMoving your Oracle Databases to the Oracle Cloud
Moving your Oracle Databases to the Oracle Cloud
 
Histogram Support in MySQL 8.0
Histogram Support in MySQL 8.0Histogram Support in MySQL 8.0
Histogram Support in MySQL 8.0
 

Más de Alex Zaballa

Más de Alex Zaballa (20)

Migrating Oracle Databases from AWS to OCI
Migrating Oracle Databases from AWS to OCIMigrating Oracle Databases from AWS to OCI
Migrating Oracle Databases from AWS to OCI
 
Exploring All options to move your Oracle Databases to the Oracle Cloud
Exploring All options to move your Oracle Databases to the Oracle CloudExploring All options to move your Oracle Databases to the Oracle Cloud
Exploring All options to move your Oracle Databases to the Oracle Cloud
 
Moving Your Oracle Databases To The Oracle Cloud
Moving Your Oracle Databases To The Oracle CloudMoving Your Oracle Databases To The Oracle Cloud
Moving Your Oracle Databases To The Oracle Cloud
 
DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2
 
Oracle Database 12c - New Features for Developers and DBAs
Oracle Database 12c - New Features for Developers and DBAsOracle Database 12c - New Features for Developers and DBAs
Oracle Database 12c - New Features for Developers and DBAs
 
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should Know
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should KnowDBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should Know
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should Know
 
Os melhores recursos novos do Oracle Database 12c para desenvolvedores e DBAs...
Os melhores recursos novos do Oracle Database 12c para desenvolvedores e DBAs...Os melhores recursos novos do Oracle Database 12c para desenvolvedores e DBAs...
Os melhores recursos novos do Oracle Database 12c para desenvolvedores e DBAs...
 
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should KnowOTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
 
OTN TOUR 2016 - Oracle Database 12c - The Best Oracle Database 12c Tuning Fea...
OTN TOUR 2016 - Oracle Database 12c - The Best Oracle Database 12c Tuning Fea...OTN TOUR 2016 - Oracle Database 12c - The Best Oracle Database 12c Tuning Fea...
OTN TOUR 2016 - Oracle Database 12c - The Best Oracle Database 12c Tuning Fea...
 
OTN TOUR 2016 - Oracle Database 12c - The Best Oracle Database 12c New Featur...
OTN TOUR 2016 - Oracle Database 12c - The Best Oracle Database 12c New Featur...OTN TOUR 2016 - Oracle Database 12c - The Best Oracle Database 12c New Featur...
OTN TOUR 2016 - Oracle Database 12c - The Best Oracle Database 12c New Featur...
 
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
 
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should Know
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should KnowDBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should Know
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should Know
 
DBA Commands and Concepts That Every Developer Should Know
DBA Commands and Concepts That Every Developer Should KnowDBA Commands and Concepts That Every Developer Should Know
DBA Commands and Concepts That Every Developer Should Know
 
Oracle Data Redaction
Oracle Data RedactionOracle Data Redaction
Oracle Data Redaction
 
Oracle Database 12c - Novas Características para DBAs e Desenvolvedores
Oracle Database 12c - Novas Características para DBAs e DesenvolvedoresOracle Database 12c - Novas Características para DBAs e Desenvolvedores
Oracle Database 12c - Novas Características para DBAs e Desenvolvedores
 
Oracle Database 12.1.0.2 New Features
Oracle Database 12.1.0.2 New FeaturesOracle Database 12.1.0.2 New Features
Oracle Database 12.1.0.2 New Features
 
Oracle Database 12c - Data Redaction
Oracle Database 12c - Data RedactionOracle Database 12c - Data Redaction
Oracle Database 12c - Data Redaction
 
Oracle Database 12c - Novas Características para DBAs e Desenvolvedores - GUO...
Oracle Database 12c - Novas Características para DBAs e Desenvolvedores - GUO...Oracle Database 12c - Novas Características para DBAs e Desenvolvedores - GUO...
Oracle Database 12c - Novas Características para DBAs e Desenvolvedores - GUO...
 
Oracle Data redaction - GUOB - OTN TOUR LA - 2015
Oracle Data redaction - GUOB - OTN TOUR LA - 2015Oracle Data redaction - GUOB - OTN TOUR LA - 2015
Oracle Data redaction - GUOB - OTN TOUR LA - 2015
 
Data Redaction - OTN TOUR LA 2015
Data Redaction - OTN TOUR LA 2015 Data Redaction - OTN TOUR LA 2015
Data Redaction - OTN TOUR LA 2015
 

Último

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Último (20)

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 

DBA Commands and Concepts That Every Developer Should Know

  • 1. DBA COMMANDS AND CONCEPTS THAT EVERY DEVELOPER SHOULD KNOW Alex Zaballa
  • 2. Copyright © 2016 Accenture All rights reserved. | 2 Alex Zaballa http://alexzaballa.blogspot.com/ @alexzaballa https://www.linkedin.com/in/alexzaballa 235 and counting…
  • 3. Copyright © 2016 Accenture All rights reserved. | 3 Worked for 3 years in Brazil as a Clipper/Delphi Developer (15 years old) 1997-1999 Worked for 7 years in Brazil as an Oracle Developer 2000 - 2007 Worked for 8 years in Angola as an Oracle DBA for the Ministry of Finance. 2007 - 2015
  • 4. Copyright © 2016 Accenture All rights reserved. | 4
  • 5. Copyright © 2016 Accenture All rights reserved. | 5 http://www.guobtechday2017.eventize.com.br/
  • 6. Copyright © 2016 Accenture All rights reserved. | 6 Desenvolvedores vs DBAs
  • 7. Copyright © 2016 Accenture All rights reserved. | 7 EXPLAIN PLAN
  • 8. Copyright © 2016 Accenture All rights reserved. | 8 EXPLAIN PLAN Are you using Explain Plan ?
  • 9. Copyright © 2016 Accenture All rights reserved. | 9 EXPLAIN PLAN Explain Plan Lies
  • 10. Copyright © 2016 Accenture All rights reserved. | 10 EXPLAIN PLAN Explain Plan just try to predict the Plan. AUTOTRACE experiences a similar "problem”, especially when the SQL statement uses bind variables.
  • 11. Copyright © 2016 Accenture All rights reserved. | 11 EXPLAIN PLAN Explain plan is blind to: • Bind Variable Peeking • Adaptive Features • Etc
  • 12. Copyright © 2016 Accenture All rights reserved. | 12 EXPLAIN PLAN Now what? • DBMS_XPLAN.DISPLAY_CURSOR • V$SQL_PLAN%
  • 13. Copyright © 2016 Accenture All rights reserved. | 13 DBMS_XPLAN.DISPLAY_CURSOR
  • 14. Copyright © 2016 Accenture All rights reserved. | 14 DBMS_XPLAN.DISPLAY_CURSOR • SQL_ID • CURSOR_CHILD_NO (default 0) • FORMAT  TYPICAL = DEFAULT  ALL = TYPICAL + QB + PROJECTION + ALIAS + REMOTE  ADVANCED = ALL + OUTLINE + BINDS  ALLSTATS = IOSTATS + MEMSTATS (all executions)  ALLSTATS LAST (last execution)  ADAPTIVE (12c)
  • 15. Copyright © 2016 Accenture All rights reserved. | 15 DBMS_XPLAN • DISPLAY (from PLAN_TABLE) • DISPLAY_CURSOR • DISPLAY_AWR • DISPLAY_SQL_PLAN_BASELINE • DISPLAY_SQL_SET SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY_CURSOR('sql_id',child,'ADVANCED'));
  • 16. Copyright © 2016 Accenture All rights reserved. | 16 DBMS_XPLAN.DISPLAY_CURSOR By Carlos Sierra
  • 17. Copyright © 2016 Accenture All rights reserved. | 17 DBMS_XPLAN.DISPLAY_CURSOR https://blogs.oracle.com/optimizer/entry/how_do_i_know_if /*+ gather_plan_statistics */ or Alter session set statistics_level = ALL
  • 18. Copyright © 2016 Accenture All rights reserved. | 18 SQL MONITOR
  • 19. Copyright © 2016 Accenture All rights reserved. | 19 SQL MONITOR
  • 20. Copyright © 2016 Accenture All rights reserved. | 20 SQL MONITOR • Oracle Enterprise Manager • EM Database Express (12c) • SQL Developer • Linha de Comando
  • 21. Copyright © 2016 Accenture All rights reserved. | 21 SQL MONITOR select dbms_sqltune.report_sql_monitor( sql_id => 'gjabwvvr07w09', report_level=>'ALL', type => 'ACTIVE') from dual;
  • 22. Copyright © 2016 Accenture All rights reserved. | 22 SQLT / SQLTXPLAIN
  • 23. Copyright © 2016 Accenture All rights reserved. | 23 SQLT / SQLTXPLAIN SQLT Diagnostic Tool (Doc ID 215187.1) Pros • Oracle Support Standard • Free (requires MOS account) • Comprehensive and mature Cons • Requires installation • HTML Tables (no charts)
  • 24. Copyright © 2016 Accenture All rights reserved. | 24 SQLD360
  • 25. Copyright © 2016 Accenture All rights reserved. | 25 SQLD360
  • 26. Copyright © 2016 Accenture All rights reserved. | 26 SQLD360
  • 27. Copyright © 2016 Accenture All rights reserved. | 27 SQLD360
  • 28. Copyright © 2016 Accenture All rights reserved. | 28 COST OF AN INDEX
  • 29. Copyright © 2016 Accenture All rights reserved. | 29 COST OF AN INDEX
  • 30. Copyright © 2016 Accenture All rights reserved. | 30 FULL TABLE SCAN
  • 31. Copyright © 2016 Accenture All rights reserved. | 31 FULL TABLE SCAN https://www.slideshare.net/MauroPagano3/ full-table-scan-friend-or-foe
  • 32. Copyright © 2016 Accenture All rights reserved. | 32 FULL TABLE SCAN https://www.slideshare.net/MauroPagano3/ full-table-scan-friend-or-foe
  • 33. Copyright © 2016 Accenture All rights reserved. | 33 FULL TABLE SCAN https://richardfoote.wordpress.com/2008/05/12/index-scan- or-full-table-scan-the-magic-number-magic-dance/
  • 34. Copyright © 2016 Accenture All rights reserved. | 34 FULL TABLE SCAN https://richardfoote.wordpress.com/2008/05/12/index-scan- or-full-table-scan-the-magic-number-magic-dance/ • Clustering Factor  How well ordered the rows in the table are in relation to the index. • Selectivity of the query • Number of table blocks • Effective multiblock read count • Relative cost of single vs. multiblock I/Os • Parallelism • Etc
  • 35. Copyright © 2016 Accenture All rights reserved. | 35 FULL TABLE SCAN https://www.slideshare.net/MauroPagano3/ full-table-scan-friend-or-foe
  • 36. Copyright © 2016 Accenture All rights reserved. | 36 FULL TABLE SCAN • Not always good • Not always bad
  • 37. Copyright © 2016 Accenture All rights reserved. | 37 ANALYZING TABLES
  • 38. Copyright © 2016 Accenture All rights reserved. | 38 ANALYZING TABLES https://docs.oracle.com/cd/B19306_01/server.102/b14200/ statements_4005.htm
  • 39. Copyright © 2016 Accenture All rights reserved. | 39 PENDING STATISTICS
  • 40. Copyright © 2016 Accenture All rights reserved. | 40 PENDING STATISTICS We have the option of keeping the newly gathered statistics in a pending state for testing purposes, until you choose to publish them. Set table preferences: begin dbms_stats.set_table_prefs ( ownname => 'SCOTT', tabname => 'EMP', pname => 'PUBLISH', pvalue => 'FALSE' ); end; Collect the statistics.
  • 41. Copyright © 2016 Accenture All rights reserved. | 41 PENDING STATISTICS
  • 42. Copyright © 2016 Accenture All rights reserved. | 42 PENDING STATISTICS
  • 43. Copyright © 2016 Accenture All rights reserved. | 43 PENDING STATISTICS If it’s ok: Or:
  • 44. Copyright © 2016 Accenture All rights reserved. | 44 RESTORE STATISTICS FROM HISTORY
  • 45. Copyright © 2016 Accenture All rights reserved. | 45 RESTORE STATISTICS FROM HISTORY Check the retention: Default is 31 days.
  • 46. Copyright © 2016 Accenture All rights reserved. | 46 RESTORE STATISTICS FROM HISTORY Statistics available for the table:
  • 47. Copyright © 2016 Accenture All rights reserved. | 47 RESTORE STATISTICS FROM HISTORY Restore:
  • 48. Copyright © 2016 Accenture All rights reserved. | 48 INVISIBLE INDEXES
  • 49. Copyright © 2016 Accenture All rights reserved. | 49 INVISIBLE INDEXES
  • 50. Copyright © 2016 Accenture All rights reserved. | 50 INVISIBLE INDEXES OR
  • 51. Copyright © 2016 Accenture All rights reserved. | 51 PARALLEL DML
  • 52. Copyright © 2016 Accenture All rights reserved. | 52 PARALLEL DML insert /*+ append parallel */ into tab1 select /*+ parallel */ * from tab2 nologging; 15 minutes to complete. create table tab1 as select /*+ parallel */ * from tab2 nologging; 2 minutes to complete.
  • 53. Copyright © 2016 Accenture All rights reserved. | 53 PARALLEL DML
  • 54. Copyright © 2016 Accenture All rights reserved. | 54 PARALLEL DML
  • 55. Copyright © 2016 Accenture All rights reserved. | 55 ORACLE FLASHBACK QUERY
  • 56. Copyright © 2016 Accenture All rights reserved. | 56 ORACLE FLASHBACK QUERY Retrieve old versions of procedures:
  • 57. Copyright © 2016 Accenture All rights reserved. | 57 DBMS_APPLICATION_INFO
  • 58. Copyright © 2016 Accenture All rights reserved. | 58 DBMS_APPLICATION_INFO Allows programs to add information to the V$SESSION. Use SET_MODULE to set the name for the program that the user is currently executing. Optionally you can also set an action name. Use SET_ACTION for subsequent processing. Use SET_CLIENT_INFO for any additional information.
  • 59. Copyright © 2016 Accenture All rights reserved. | 59 SCHEMA MANAGEMENT DDL WAIT OPTION
  • 60. Copyright © 2016 Accenture All rights reserved. | 60 SCHEMA MANAGEMENT DDL WAIT OPTION SQL> alter table invoice add (code number); alter table invoice add (code number) * ERROR at line 1: ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
  • 61. Copyright © 2016 Accenture All rights reserved. | 61 SCHEMA MANAGEMENT DDL WAIT OPTION Parameter DDL_LOCK_TIMEOUT (default = 0) It will wait for N seconds. In that N seconds, it continually re-tries the DDL operation until it's successful or this time expires.
  • 62. Copyright © 2016 Accenture All rights reserved. | 62 ADDING COLUMNS WITH A DEFAULT VALUE
  • 63. Copyright © 2016 Accenture All rights reserved. | 63 ADDING COLUMNS WITH A DEFAULT VALUE The table SALES is about 400 million rows. 10.2.0.4.0  alter table sales add tax varchar2(2) default ‘XX’ not null; Elapsed: 00:41:00.00 11.2.0.4.0  alter table sales add tax varchar2(2) default ‘XX’ not null; Elapsed: 00:00:00.03
  • 64. Copyright © 2016 Accenture All rights reserved. | 64 COUNT(1) VS COUNT(*)
  • 65. Copyright © 2016 Accenture All rights reserved. | 65 COUNT(1) VS COUNT(*) What is the difference between count(1) and count(*) ? Nothing!
  • 66. Copyright © 2016 Accenture All rights reserved. | 66 12.1 AND 12.2
  • 67. Copyright © 2016 Accenture All rights reserved. | 67 READ OBJECT PRIVILEGE AND READ ANY TABLE SYSTEM PRIVILEGE
  • 68. Copyright © 2016 Accenture All rights reserved. | 68 READ OBJECT PRIVILEGE AND READ ANY TABLE SYSTEM PRIVILEGE What is the difference to SELECT and SELECT ANY TABLE?
  • 69. Copyright © 2016 Accenture All rights reserved. | 69 READ OBJECT PRIVILEGE AND READ ANY TABLE SYSTEM PRIVILEGE SELECT and SELECT ANY TABLE provides the ability to lock rows: LOCK TABLE table_name IN EXCLUSIVE MODE; SELECT ... FROM table_name FOR UPDATE;
  • 70. Copyright © 2016 Accenture All rights reserved. | 70 READ OBJECT PRIVILEGE AND READ ANY TABLE SYSTEM PRIVILEGE SQL> grant select on scott.emp to teste; Grant succeeded. SQL> lock table scott.emp in exclusive mode; Table(s) Locked.
  • 71. Copyright © 2016 Accenture All rights reserved. | 71 READ OBJECT PRIVILEGE AND READ ANY TABLE SYSTEM PRIVILEGE SQL> grant read on scott.emp to teste; Grant succeeded. SQL> lock table scott.emp in exclusive mode; lock table scott.emp in exclusive mode * ERROR at line 1: ORA-01031: insufficient privileges
  • 72. Copyright © 2016 Accenture All rights reserved. | 72 EXTENDED DATA TYPES
  • 73. Copyright © 2016 Accenture All rights reserved. | 73 EXTENDED DATA TYPES SQL> create table tabela_teste(campo01 varchar2(4001)); * ERROR at line 1: ORA-00910: specified length too long for its datatype
  • 74. Copyright © 2016 Accenture All rights reserved. | 74 EXTENDED DATA TYPES • VARCHAR2 : 32767 bytes • NVARCHAR2 : 32767 bytes • RAW : 32767 bytes
  • 75. Copyright © 2016 Accenture All rights reserved. | 75 EXTENDED DATA TYPES SHUTDOWN IMMEDIATE; STARTUP UPGRADE; ALTER SYSTEM SET max_string_size=extended; @?/rdbms/admin/utl32k.sql SHUTDOWN IMMEDIATE; STARTUP; **Once you switch to extended data types you can't switch back
  • 76. Copyright © 2016 Accenture All rights reserved. | 76 PL/SQL FROM SQL
  • 77. Copyright © 2016 Accenture All rights reserved. | 77 PL/SQL FROM SQL
  • 78. Copyright © 2016 Accenture All rights reserved. | 78 TEMPORARY UNDO
  • 79. Copyright © 2016 Accenture All rights reserved. | 79 TEMPORARY UNDO ALTER SESSION SET TEMP_UNDO_ENABLED = TRUE; ALTER SYSTEM SET TEMP_UNDO_ENABLED = TRUE;
  • 80. Copyright © 2016 Accenture All rights reserved. | 80 LONGER IDENTIFIER NAMES
  • 81. Copyright © 2016 Accenture All rights reserved. | 81 LONGER IDENTIFIER NAMES Starting with Oracle Database 12c Release 2 (12.2), the maximum length of identifier names for most types of database objects has been increased to 128 bytes.
  • 82. Copyright © 2016 Accenture All rights reserved. | 82 LONGER IDENTIFIER NAMES
  • 83. Copyright © 2016 Accenture All rights reserved. | 83 LONGER IDENTIFIER NAMES
  • 84. Copyright © 2016 Accenture All rights reserved. | 84 LONGER IDENTIFIER NAMES
  • 85. Copyright © 2016 Accenture All rights reserved. | 85 PDB LOCKDOWN PROFILES
  • 86. Copyright © 2016 Accenture All rights reserved. | 86 PDB LOCKDOWN PROFILES A security mechanism to restrict operations that are available to local users connected to a specified PDB.
  • 87. Copyright © 2016 Accenture All rights reserved. | 87 SQLCL http://www.oracle.com/technetwork/developer-tools/sqlcl/downloads/index.html
  • 88. Copyright © 2016 Accenture All rights reserved. | 88 QUESTIONS?
  • 89. Copyright © 2016 Accenture All rights reserved. | 89 Thank You Slides Available: http://www.slideshare.net/

Notas del editor

  1. - Sem desenvolvedores não existiram dbas - Desenvolvedores em sua maioria são bem intencionados - Dba guardião dos dados da empresa - Dba bom é o organizado - Desenvolvedor bom é o bagunceiro, que não tem horário
  2. Qual ponto do plano está demorando mais?
  3. Não tenho acesso a produção Quero ver todas variáveis envolvidas, incluindo estatísticas
  4. Gráficos Não é necessária instalação
  5. Injustiça
  6. Especialmente para aplicações WEB
  7. Alguns desenvolvedores continuam adicionando como null, depois fazer update e depois colocam not null