SlideShare a Scribd company logo
1 of 190
Download to read offline
VP AIOps for the Autonomous Database
Sandesh Rao
LAOUC - Aug 2020
Top 20 FAQs on the Autonomous Database
@sandeshr
https://www.linkedin.com/in/raosandesh/
https://www.slideshare.net/SandeshRao4
1. Get started with Free Tier
2. Get started with OML
3. Using OCI Resource Mgr
4. Modify endpoints for ADB
5. Wallet rotation
6. Partitions with external tables
7. Track instance creation -
workflow
8. Performance monitoring
9. Alarms on resource metrics
10. Upgrade to 19c
11. Performance hub
12. SQL monitor report
13. ASH analytics in Performance
hub
14. APEX in Autonomous Database
15. OML Notebooks
16. Auto scaling
17. Download AWR reports
18. Load data using DBMS_CLOUD
19. Access Tenancy Information
20. Autonomous Dataguard
Agenda
1: How to get started with the
Autonomous Database Free Tier
Always Free services enable developers and students to learn, build and get
hands-on experience with Oracle Cloud for unlimited time
Anyone can try for an unlimited time the full functionality of:
• Oracle Autonomous Database
• Oracle Cloud Infrastructure including:
- Compute VMs
- Block and Object Storage
- Load Balancer
Free tier
Free tier – Tech spec
2 Autonomous Databases (Autonomous Data Warehouse or Autonomous
Transaction Processing), each with 1 OCPU and 20 GB storage
2 Compute VMs, each with 1/8 OCPU and 1 GB memory
2 Block Volumes, 100 GB total, with up to 5 free backups
10 GB Object Storage, 10 GB Archive Storage, and 50,000/month API requests
1 Load Balancer, 10 Mbps bandwidth
10 TB/month Outbound Data Transfer
500 million ingestion Datapoints and 1 billion Datapoints for Monitoring
Service
1 million Notification delivery options per month and 1000 emails per month
Creating a new Always Free ADB
Creating a new Always Free ADB
Simple toggle to
enable “Always
Free”
• As of December 5, 2019, the Machine Learning (formerly known as Advanced Analytics), Spatial and
Graph features of Oracle Database may be used for development and deployment purposes with all
on-prem editions and Oracle Cloud Database Services.
• See the Oracle Database Licensing Information Manual (pdf) for more details.
• Oracle’s multi-model converged architecture by supporting multiple data types, data models (e.g.
spatial, graph, JSON, XML) and algorithms (e.g. machine learning, graph and statistical functions)
and workload types (e.g. operational and analytical) within a single database.
• Processing and analyzing all types of spatial data in business applications, GIS and operational
systems
• Using graph analysis to discover relationships in social networks, detect fraud, and make
informed recommendations
• Building and deploying machine learning models for predictive analytics
OML , Spatial and Graph is free with the Oracle Database
How to get started with
Oracle Machine Learning
Algorithms automatically sift through large amounts of data to discover
hidden patterns, new insights and make predictions
Categories in Machine Learning
Identify most important factor (Attribute Importance)
Predict customer behavior (Classification)
Find profiles of targeted people or items (Classification
Predict or estimate a value (Regression)
Segment a population (Clustering)
Find fraudulent or “rare events” (Anomaly Detection)
Determine co-occurring items in a “basket” (Associations)X1
X2
A1A2A3A4 A5A6 A7
SupervisedLearningUnsupervisedLearning
Copyright © 2020 Oracle and/or its affiliates.
Database Developer to Data Scientist Journey
STEP 1: Creating OML Users
•Go back to the Cloud Console
and open the Instances
screen. Find your database,
click the action menu and
select Service Console.
Creating OML Users
Log in to the service with your admin password.
Creating OML Users
Go to the Administration tab and click Manage Oracle ML Users to go to the OML user management page - this
page will allow you to manage OML users.
Creating OML Users
Click Create button to create a new OML user. Note that this will also create a new database user with
the same name.
This newly created user will be able to use the OML notebook application.
Note that you can also enter an email address to send an email confirmation to your user (for this lab
you can use your own personal email address) when creating the user.
Creating OML Users
Enter the required information for this user, name the user as omluser1. If you supplied a
valid email address, a welcome email should arrive within a few minutes to your Inbox.
Click the Create button, in the top-right corner of the page, to create the user.
Creating OML Users
Here is the email which each user receives
welcoming them to the OML application.
It includes a direct link to the OML application
for that user which they can bookmark.
Creating OML Users
After you click Create you will see that user listed in the Users section.
Creating OML Users
Use your new user account omluser1:
Exploring the OML Home Page
Once you have successfully signed in to OML the application home page will be displayed.
Overview of OML Home Page
The grey menu bar at the top of the screen provides links to the main OML menus for the application (left corner)
and the workspace/project and user maintenance on the right-hand side.
Exploring the OML Home Page
Simple SQL Syntax—Statistical Comparisons (t-tests)
Compare AVE Purchase Amounts Men vs. Women Grouped_By INCOME_LEVEL
Statistical Functions
SELECT SUBSTR(cust_income_level, 1, 22) income_level,
AVG(DECODE(cust_gender, 'M', amount_sold, null)) sold_to_men,
AVG(DECODE(cust_gender, 'F', amount_sold, null)) sold_to_women,
STATS_T_TEST_INDEPU(cust_gender, amount_sold, 'STATISTIC', 'F') t_observed,
STATS_T_TEST_INDEPU(cust_gender, amount_sold) two_sided_p_value
FROM customers c, sales s
WHERE c.cust_id = s.cust_id
GROUP BY ROLLUP(cust_income_level)
ORDER BY income_level, sold_to_men, sold_to_women, t_observed;
STATS_T_TEST_INDEPU (SQL) Example;
P_Values < 05 show statistically
significantly differences in the amounts
purchased by men vs. women
Simple SQL Syntax—Attribute Importance - ML Model Build (PL/SQL)
OAA Model Build and Real-time SQL Apply Prediction
BEGIN
DBMS_DATA_MINING.CREATE_MODEL(
model_name => 'BUY_INSURANCE_AI',
mining_function => DBMS_DATA_MINING.ATTRIBUTE_IMPORTANCE,
data_table_name => 'CUST_INSUR_LTV',
case_id_column_name => 'cust_id',
target_column_name => 'BUY_INSURANCE',
settings_table_name => 'Att_Import_Mode_Settings');
END;
/
SELECT attribute_name, rank , attribute_value
FROM BUY_INSURANCE_AI
ORDER BY rank, attribute_name;
Model Results (SQL query)
ATTRIBUTE_NAME RANK ATTRIBUTE_VALUE
BANK_FUNDS 1 0.2161
MONEY_MONTLY_OVERDRAWN 2 0.1489
N_TRANS_ATM 3 0.1463
N_TRANS_TELLER 4 0.1156
T_AMOUNT_AUTOM_PAYMENTS 5 0.1095
A1A2A3A4 A5A6 A7
Coming Soon! | AutoML – new with OML4Py
Auto Feature Selection
– Reduce # of features by
identifying most
predictive
– Improve performance
and accuracy
Increase data scientist productivity – reduce overall compute time
Auto Algorithm
Selection
Much faster than
exhaustive search
Auto Feature
Selection
De-noise data and
reduce # of features
AutoTune
Significant accuracy
improvement
Auto Algorithm Selection
– Identify in-database
algorithm that achieves
highest model quality
– Find best algorithm faster
than with exhaustive search
Auto Tune Hyperparameters
– Significantly improve
model accuracy
– Avoid manual or exhaustive
search techniques
Copyright © 2020 Oracle and/or its affiliates.
Enables non-expert users to leverage Machine Learning
Data
Table ML Model
Coming Soon! | OML AutoML User Interface
Automate production and deployment of ML models
• Enhance Data Scientist productivity
and user-experience
• Enable non-expert users to leverage ML
• Unify model deployment and monitoring
• Support model management
Features
• Minimal user input: data, target
• Model leaderboard
• Model deployment via REST
• Model monitoring
• Cognitive features for image and text
“Code-free” user interface supporting automated end-to-end machine
learning
Copyright © 2020 Oracle and/or its affiliates.
Oracle Machine Learning
Key Features:
• Collaborative UI for data
scientist and analysts
• Packaged with Autonomous Databases
• Quick start Example notebooks
• Easy access to shared notebooks,
templates, permissions, scheduler, etc.
• OML4SQL
• OML4Py coming soon
• Supports deployment of OML models
Machine Learning Notebooks included in Autonomous Databases
Copyright © 2020 Oracle and/or its affiliates.
3 - Using OCI Resource Manager
to Deploy Data Warehouse
Reference Architecture Patterns
29
30
31
32
33
34
4 - Modify Network
Settings for ADB Instances
36
37
38
39
40
5: Wallet rotation for
ADW or ATP
Per-database with Instance Wallet selected:
• All existing database specific instance wallets will be void.
• Post rotation need to download new wallet to connect to database.
• NOTE - Regional wallets with all database certification keys continue to work
Regional level with Regional Wallet selected:
• Both regional and database specific instance wallets are voided.
• Post rotation need to download new regional or instance wallets to connect to
any database in region
• All user sessions are terminated for databases whose wallet is rotated.
• User session termination begins after wallet rotation completes, however this
process does not happen immediately.
New Option To Rotate Wallets For ADB
1
2
6: Partitions with
external tables in Cloud
All data outside the database
• Files in Object Store buckets
Exposes the power of Oracle partitioning to
external data
• Partition pruning
• Partition maintenance
Enables order-of-magnitudes faster query
performance and enhanced data maintenance
Partitioned External Tables
…2016,04,01 2016,04,02
2016,04,0
3
File-02 in
Object Store
Bucket
File-03 in
Object Store
Bucket
File-01 in
Object Store
Bucket
Note only use of DBMS_CLOUD syntax is supported
Partitioned External Tables
BEGIN DBMS_CLOUD.CREATE_EXTERNAL_PART_TABLE(
table_name =>'PET1’,
credential_name =>'DEF_CRED_NAME’,
format => json_object('delimiter' value ‘,’,
'recorddelimiter' value 'newline’,
'characterset' value 'us7ascii’),
column_list => 'col1 number, col2 number, col3 number’
partitioning_clause => 'partition by range (col1) (
partition p1 values less than (1000) location (
‘https://swiftobjectstorage.us-ashburn-1 ... /file_01.txt') ,
partition p2 values less than (2000) location (
'https://swiftobjectstorage.us-ashburn-1 ... /file_02.txt'') ,
partition p3 values less than (3000) location (
'https://swiftobjectstorage.us-ashburn-1 ... /file_03.txt'') )
)
END;
/
Single table contains both internal (RDBMS) and
external partitions
• Full functional support, such as partial indexing,
partial read only, constraints, etc.
Partition maintenance for information lifecycle
management
• Currently limited support
• Enhancements in progress
Hybrid Partitioned Tables
…2016,04,01 2016,04,02
2016,04,
03
File-02 in
Object Store
Bucket
File-01 in
Object Store
Bucket
DB Partition
Data in any object store can be accessed
• Oracle Object Store, AWS S3 or Azure
Explicit authentication or pre-authenticated URIs
(Admittedly not a specific Partitioning feature,
but cool nevertheless)
Access data in Object Stores
Any Object
Storage
Note only use of DBMS_CLOUD syntax is supported
Hybrid Partitioned Tables
BEGIN DBMS_CLOUD.CREATE_HYBRID_PART_TABLE(
table_name =>'HPT1’,
credential_name =>'OBJ_STORE_CRED’,
format => json_object('delimiter' value ',', ‘
recorddelimiter' value 'newline', ‘
characterset' value 'us7ascii’),
column_list => 'col1 number, col2 number, col3 number’
partitioning_clause => 'partition by range (col1)
(partition p1 values less than (1000) external location (
'https://swiftobjectstorage.us-ashburn-1 .../file_01.txt') ,
partition p2 values less than (2000) external location (
‘https://swiftobjectstorage.us-ashburn-1 .../file_02.txt') ,
partition p3 values less than (3000) ) )
END;
7: How to track activity
with work requests
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
8: Performance monitoring
with Autonomous Database
• Monitor health, capacity, performance of ADB instances
• Uses metrics, alarms, and notifications
• Metrics accessible via OCI console or using APIs
Monitor Performance with ADB Metrics
1. CPU Utilization
2. Memory Utilization
3. Sessions
4. Failed Connections
5. Execute Count
6. Queued Statements
7. Running Statements
8. Failed Logons
9. Current Logons
10. Transaction Count
11. User Calls
12. Parse Count (Total)
Available Service Metrics
Autonomous Database Details page
provides top 6 view of library of
service metrics.
Viewing Top 6 Metrics on
ADB Console
Complete library of
only metrics
available via
the OCI Console
Service Metrics
page or by using
the Monitoring API
Viewing Full Library Database Metrics
Step 1 – Select the required compartment
Setting Up Monitoring Page
Step 2 – Select the metric namespace for autonomous database
Setting Up Monitoring Page
How To Create A New Alarm
9: Setting alarms on
metrics like CPU Utilization
Step 1 – Select the required compartment
Setting Up Monitoring Page
Step 2 – Select the metric namespace for autonomous database
Setting Up Monitoring Page
How To Create A New Alarm
92 Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted
Monitoring Query Language (MQL)
• Components in an MQL Expression
• An MQL expression includes the following components:
• metric , interval , dimensions as one or more name-value pairs (optional)
• grouping function (optional)
• statistic
• comparison operation (optional). Useful for defining alarms.
Examples
The number of hosts with CPU utilization greater than 80 percent:
(CpuUtilization[1m].max() > 80).grouping().sum()
The number of availability domains with a success rate lower than 0.99 :
(SuccessRate[1m].groupBy(availabilityDomain).mean() < 0.99).grouping().sum()
10: Upgrading to 19c
94 Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted
• Oracle Database 19c is now available on Autonomous Database for all regions.
• In select regions, customers can choose between Oracle Database 18c and Oracle Database
19c for new databases
• The default version for all new databases is 19c and most new Autonomous Database
features will only be available for Oracle Database 19c
• For most applications, there should not be any changes required
• However, it is recommended you should test your applications with Database 19c
• You can create a clone of your current database to Oracle Database 19c
• Test your application using this clone.
Upgrade an Autonomous Database Instance to Oracle Database 19c
95 Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted
• Oracle Database 18c is scheduled to be available in Autonomous Database until September,
2020
• You can choose to upgrade your database at any time during this period.
• After that time, all existing databases will be automatically upgraded to Oracle Database
19c.
• Autonomous Database offers a single button that provides a one-way, in-place upgrade
Upgrade an Autonomous Database Instance to Oracle Database 19c
11: Performance Hub
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
101 Confidential – Oracle Internal
Time Range selector is displayed on the top of the Performance Hub page
Use the Select Duration field to set the time duration
Default, Last 60 mins is selected
• Specify to view Last 8 hours, Last 24 hours, Last week
• Specify a custom time range
Time Range field shows active sessions in chart form.
• Active sessions chart displays avg number of active sessions broken down by CPU, User
I/O, and Wait.
Time Range field and time slider
102 Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted
A time zone control has been added
to Performance Hub.
This will allow users to view data
using an alternate time zone to UTC.
They will have the choice of viewing
data using either UTC (default), the
time zone of their browser client, or
the time zone of the database.
Timezone Selector
12: SQL Monitor
Report
105 Confidential – Oracle Internal
SQL only monitored if running for at least five seconds or run in parallel
Displays monitored SQL statement executions by dimensions including Last Active Time, CPU Time,
and Database Time
Displays currently running SQL statements and SQL statements that completed, failed, or were
terminated.
Information includes Status, Duration, and SQL ID
• Status column has the following icons:
- A spinning icon indicates that the SQL statement is executing.
- A green check indicates SQL statement completed
- A red cross icon indicates that the SQL statement did not complete
- A clock icon indicates that the SQL statement is queued
SQL Monitoring
13: ASH Analytics in
Performance Hub
125 Confidential – Oracle Internal
Shows Active Session History (ASH) analytics charts to explore ASH data
Drill down into database performance across multiple dimensions such as Consumer
Group, Wait Class, SQL ID, and User Name
Select an Average Active Sessions dimension and view the top activity for that dimension for
the selected time period.
For information on ASH, see Active Session History (ASH) in Oracle Database Concepts.
Active Session History (ASH) Analytics
141 Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted
Performance Hub has been expanded to include a new tab, "Workload". This can be used to monitor the
workload in the database and helps the user identify performance spikes and bottlenecks.
Workload Metrics on Performance Hub
There are 4 regions:
Each region contains
a group of charts that
indicate the
characteristics of the
workload and the
distribution of the
resources, as shown
14: Oracle APEX in
Autonomous Database
Free tier – Includes free developer tools
APEX SQL Developer
Web
ML Notebooks REST Interfaces
Cloud Developer Images
Including OCI Software
Development Kits (SDKs),
and database connectors
Terraform
for automation
144
Database-centric web application development framework
Oracle APEX
Develop desktop and
mobile web apps
Visualize and
maintain
database data
Leverage SQL Skills
and database
capabilities
Oracle
APEX
Oracle
Autonomous
Database
145 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Included with New Always Free Service
Oracle Autonomous Database
Analytics = Autonomous Data Warehouse (ADW)
Fully Managed
Includes Oracle APEX at no additional cost
Autonomous
Transaction
Processing
Autonomous
Data Warehouse
OLTP = Autonomous Transaction Processing (ATP)
147
Home Page
Comprehensive Development IDE, Web Application Development, and SQL Database Development
148
SQL Workshop
Browser based maintenance of database objects and data
Designed to meet application developers’ needs, especially in hosted environments
149
SQL Workshop – Quick SQL
Rapidly design and prototype data models using a markdown-like shorthand syntax
that expands to standards-based Oracle SQL.
15: Oracle Machine
Learning Notebooks
The following
screen should
appear:
Running an SQL Statement
The white panel below the main title (SQL Query Scratchpad – this name is automatically generated) is an area
known as “paragraph”. Within a scratchpad you can have multiple paragraphs.
Each paragraph can contain one SQL statement or a SQL script.
Running an SQL Statement
In the SQL paragraph area copy and paste this code snippet. Your screen should now look like this:
Running an SQL Statement
Press the icon shown in the red box to execute the SQL statement….
Running an SQL Statement
…and display the
results in a
tabular format:
Running an SQL Statement
Using the report menu bar you can change the table to a graph and/or export the result set to a CSV or TSV file.
When you change the report type to one of the graphs, then a Settings link will appear to the right of
the menu which allows you to control the layout of columns within the graph.
Click on the bar graph icon to change the output to a bar graph (see below)
Running an SQL Statement
Running an SQL Statement
Running an SQL Statement
Click on the Settings link to unfold the
settings panel for the graph.
To add a column to one of
the Keys, Groups of Values panel
s just drag and drop the column
name into the required panel.
To remove a column from the
Keys, Groups of Values panel just
click on the x next to the column
name displayed in the relevant
panel.
Running an SQL Statement
Changing the layout of the graph
With the graph settings panel
visible:
• Remove all columns from the
both
the Keys and Values panels.
• Drag and drop MONTH into
the Keys panel
• Drag and drop REVENUE into
the Values panel
• Drag and
drop AVG_12M_REVENUE int
o the Values panel
Tidying up the report
•Click on the Settings link to hide the layout controls.
•Click on the Hide editor button which is to the right of the "Run this
paragraph" button.
Running an SQL Statement
Now only the output is visible.
Running an SQL Statement
Saving the Scratchpad as a New Notebook
The SQL Scratchpad in the previous section is simply a default type notebook with a system
generated name. But we can change the name of the scratchpad we have just created SQL
Query Scratchpad.
•Click on the Back link in the top left corner of the Scratchpad window to return to the OML
home page.
Saving the Scratchpad as a New Notebook
Notice that in the Recent Activities panel there is a potted history of what has happened to
your SQL scratchpad “notebook”.
Saving the Scratchpad as a New Notebook
Click on Go to Notebooks in the Quick Actions panel
Saving the Scratchpad as a New Notebook
16: Auto scaling
Confidential
ADB autonomously and continuously monitors overall system performance
ADB scales CPU-IO resources based on overall workload requirements
• Scaling up autonomously expands CPU-IO resources by up to 3x
Enabled when provisioning new ADB instance or using Scale Up/Down on the Oracle Cloud
Infrastructure Console.
What is “Auto Scaling”
Confidential
ADB is completely responsive to actual usage patterns
Reduces cost of having too many OCPUs just to manage peak traffic load
Auto scaling manages unexpected spikes in workload and ensures consistent performance
BUT…Enabling auto scaling does not change the concurrency and parallelism settings for the
predefined services
Key Benefits of Auto Scaling
1 2 3 4 5 6 7
Auto scaling up as workload increases – ETL, adhoc analytics, data mining
As Workload Increases More OCPUs Automatically Added…
1 2 3 4 5 6 7
Auto scaling downwards as workload decreases
As Workload Decreases Number of OCPUs Reduces ...
Confidential
Ensure sufficient resources for query
workloads
• Month-end reporting can leverage
additional resources
• Run more sophisticated processing
(machine learning models) without
impacting other users
• Support increase in concurrent usage:
Monday morning sales reports for
weekend trading
• Support more dynamic range of users
(more adhoc queries, more machine
learning models, more data discovery…)
Ensure sufficient resources for ETL
workloads
• Time-dependent data loads can
automatically get access to more
resources
• Unexpected data load operations can
run without impacting other users
• Integrates nicely with CPU-I/O Shares
feature
Uses Cases for Data Warehousing
Confidential
Ensure sufficient resources for mixed
workloads
• Month-end transaction reporting can
leverage additional resources as required
• Run more sophisticated app processing
(using machine learning models) without
impacting application users
Better manage peak application workloads
• Time-dependent application loads can
automatically get access to more
resources
• Unexpected peak in operations can run
without impacting users
Integrates nicely with CPU-I/O Shares
feature
Uses Cases for Transaction Processing
Creating a new Autonomous Instance
Enabling Auto Scaling – One-Click!
17 - Download AWR Reports
From Performance Hub
Copyright © 2019 Oracle and/or its affiliates.
1. Open the navigation menu. Under Database, click Autonomous
Transaction Processing or Autonomous Data Warehouse.
2. Choose your Compartment.
3. In the list of Autonomous Databases, click the display name of
the database you want to analyze using Performance Hub
reports.
4. Click Performance Hub.
1) Navigate to Performance Hub in Oracle Cloud Infrastructure Console
175 Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted
2) Adjust the Time Range selector
176 Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted
2. Click the Reports drop-down to display a list of available reports.
2. Click AWR to display the Generate AWR Report dialog.
3. You can choose to generate a report either from two
snapshots closest to the current time and date or from a
custom time range of your choice.
- If you choose the default time range, then select
Use the two snapshots closest to date and click Download.
- If you choose to generate a report from a custom time range,
then select Custom and select start and end times for your
range. Click Download.
2. Oracle Database generates a report named AWRReport_date_range.html that downloads to
the default download folder for your browser. View the report after the download completes.
3) Download the AWR Report
18 - Load data using
DBMS_CLOUD
• For data loading from files in the Cloud
• Store your object storage credentials
• Use the procedure DBMS_CLOUD.COPY_DATA to
load data
• The source file in this example is channels.txt
Load data using DBMS_CLOUD
File-02 in
Object Store
Bucket
File-03 in
Object Store
Bucket
File-01 in
Object Store
Bucket
SET DEFINE OFF BEGIN
DBMS_CLOUD.CREATE_CREDENTIAL(
credential_name => 'DEF_CRED_NAME',
username => 'adwc_user@example.com',
password => 'password' ); END; /
Load data using DBMS_CLOUD
CREATE TABLE CHANNELS (channel_id CHAR(1), channel_desc VARCHAR2(20),
channel_class VARCHAR2(20) );
BEGIN DBMS_CLOUD.COPY_DATA( table_name =>'CHANNELS', credential_name =>'DEF_CRED_NAME’,
file_uri_list =>
'https://objectstorage.us-phoenix-1.oraclecloud.com/n/namespace-string/b/
bucketname/o/channels.txt', format => json_object('delimiter' value ',') );
END;
BEGIN DBMS_CLOUD.COPY_DATA( table_name =>'CHANNELS', credential_name =>'DEF_CRED_NAME’,
file_uri_list =>'https://objectstorage.us-phoenix-1.oraclecloud.com/n/namespace-string/b/
bucketname/o/exp01.dmp,
https://objectstorage.us-phoenix-1.oraclecloud.com/n/namespace-string/b/
bucketname/o/exp02.dmp', format => json_object('type' value 'datapump') );
END;
Load data using DBMS_CLOUD
BEGIN DBMS_CLOUD.COPY_COLLECTION( collection_name => 'fruit', credential_name =>
'DEF_CRED_NAME', file_uri_list => 'https://objectstorage.us-ashburn-1.oraclecloud.com/n/
namespace-string/b/fruit_bucket/o/myCollection.json’,
format => JSON_OBJECT('recorddelimiter' value '''n''') );
END;
BEGIN DBMS_CLOUD.COPY_COLLECTION( collection_name => 'fruit2', credential_name =>
'DEF_CRED_NAME', file_uri_list => 'https://objectstorage.us-ashburn-1.oraclecloud.com/n/
namespace-string/b/json/o/fruit_array.json’,
format => '{"recorddelimiter" : "0x''01''", "unpackarrays" : TRUE}' );
END;
Load data using DBMS_CLOUD
SELECT table_name, owner_name, type, status, start_time, update_time,
logfile_table, badfile_table FROM user_load_operations WHERE
type = 'COPY’;
TABLE_NAME OWNER_NAME TYPE STATUS START_TIME UPDATE_TIME LOGFILE_TABLE BADFILE_TABLE
------------------------------------------------------------------------------------
FRUIT ADMIN COPY COMPLETED 2020-04-23 22:27:37 2020-04-23 22:27:38 "" ""
FRUIT ADMIN COPY FAILED 2020-04-23 22:28:36 2020-04-23 22:28:37 COPY$2_LOG COPY$2_BAD
SELECT credential_name, username, comments FROM all_credentials;
CREDENTIAL_NAME USERNAME COMMENTS
---------------------------–----------------------------- --------------------
ADB_TOKEN user_name@example.com {"comments":"Created via
DBMS_CLOUD.create_credential"}
DEF_CRED_NAME user_name@example.com {"comments":"Created via
DBMS_CLOUD.create_credential"}
19 - ADB now supports SQL
access to tenancy details
183
When you file a service request for Autonomous Database, you need to provide the tenancy details for
your instance. Tenancy details for the instance are available on the Oracle Cloud Infrastructure console.
However, if you are connected to the database, you can now obtain these details by querying
the CLOUD_IDENTITY column of the V$PDBS view. For example:
...will generate something similar to the following:
How to get the tenancy details for your instance
SELECT cloud_identity FROM v$pdbs;
{"DATABASE_NAME" : "DBxxxxxxxxxxxx",
"REGION" : "us-phoenix-1",
"TENANT_OCID" :
"OCID1.TENANCY.REGION1..ID1",
"DATABASE_OCID" :
"OCID1.AUTONOMOUSDATABASE.OC1.SEA.ID2
",
"COMPARTMENT_OCID" :
"ocid1.tenancy.region1..ID3"}
20 - Autonomous
Dataguard for ADB
185 Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted
186 Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted
187 Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted
188 Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted
189 Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted
Thank You
Any Questions ?
Sandesh Rao
VP AIOps for the Autonomous Database
@sandeshr
https://www.linkedin.com/in/raosandesh/
https://www.slideshare.net/SandeshRao4
20 tips and tricks with the Autonomous Database

More Related Content

What's hot

What to Expect From Oracle database 19c
What to Expect From Oracle database 19cWhat to Expect From Oracle database 19c
What to Expect From Oracle database 19cMaria Colgan
 
DBA Tasks in Oracle Autonomous Database
DBA Tasks in Oracle Autonomous DatabaseDBA Tasks in Oracle Autonomous Database
DBA Tasks in Oracle Autonomous DatabaseSinanPetrusToma
 
The Top 5 Reasons to Deploy Your Applications on Oracle RAC
The Top 5 Reasons to Deploy Your Applications on Oracle RACThe Top 5 Reasons to Deploy Your Applications on Oracle RAC
The Top 5 Reasons to Deploy Your Applications on Oracle RACMarkus Michalewicz
 
What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1Satishbabu Gunukula
 
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the Cloud
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the CloudOracle RAC Virtualized - In VMs, in Containers, On-premises, and in the Cloud
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the CloudMarkus Michalewicz
 
Oracle ACFS High Availability NFS Services (HANFS)
Oracle ACFS High Availability NFS Services (HANFS)Oracle ACFS High Availability NFS Services (HANFS)
Oracle ACFS High Availability NFS Services (HANFS)Anju Garg
 
Understanding oracle rac internals part 1 - slides
Understanding oracle rac internals   part 1 - slidesUnderstanding oracle rac internals   part 1 - slides
Understanding oracle rac internals part 1 - slidesMohamed Farouk
 
Exadata SMART Monitoring - OEM 13c
Exadata SMART Monitoring - OEM 13cExadata SMART Monitoring - OEM 13c
Exadata SMART Monitoring - OEM 13cAlfredo Krieg
 
Oracle GoldenGate on Docker
Oracle GoldenGate on DockerOracle GoldenGate on Docker
Oracle GoldenGate on DockerBobby Curtis
 
Oracle RAC 19c - the Basis for the Autonomous Database
Oracle RAC 19c - the Basis for the Autonomous DatabaseOracle RAC 19c - the Basis for the Autonomous Database
Oracle RAC 19c - the Basis for the Autonomous DatabaseMarkus Michalewicz
 
Migrating Oracle database to Cassandra
Migrating Oracle database to CassandraMigrating Oracle database to Cassandra
Migrating Oracle database to CassandraUmair Mansoob
 
Oracle Database performance tuning using oratop
Oracle Database performance tuning using oratopOracle Database performance tuning using oratop
Oracle Database performance tuning using oratopSandesh Rao
 
Rman Presentation
Rman PresentationRman Presentation
Rman PresentationRick van Ek
 
Troubleshooting Tips and Tricks for Database 19c - Sangam 2019
Troubleshooting Tips and Tricks for Database 19c - Sangam 2019Troubleshooting Tips and Tricks for Database 19c - Sangam 2019
Troubleshooting Tips and Tricks for Database 19c - Sangam 2019Sandesh Rao
 
Presentation upgrade, migrate &amp; consolidate to oracle database 12c &amp...
Presentation   upgrade, migrate &amp; consolidate to oracle database 12c &amp...Presentation   upgrade, migrate &amp; consolidate to oracle database 12c &amp...
Presentation upgrade, migrate &amp; consolidate to oracle database 12c &amp...solarisyougood
 
Oracle GoldenGate Architecture Performance
Oracle GoldenGate Architecture PerformanceOracle GoldenGate Architecture Performance
Oracle GoldenGate Architecture PerformanceEnkitec
 
A Closer Look at Apache Kudu
A Closer Look at Apache KuduA Closer Look at Apache Kudu
A Closer Look at Apache KuduAndriy Zabavskyy
 
New availability features in oracle rac 12c release 2 anair ss
New availability features in oracle rac 12c release 2 anair   ssNew availability features in oracle rac 12c release 2 anair   ss
New availability features in oracle rac 12c release 2 anair ssAnil Nair
 

What's hot (20)

What to Expect From Oracle database 19c
What to Expect From Oracle database 19cWhat to Expect From Oracle database 19c
What to Expect From Oracle database 19c
 
DBA Tasks in Oracle Autonomous Database
DBA Tasks in Oracle Autonomous DatabaseDBA Tasks in Oracle Autonomous Database
DBA Tasks in Oracle Autonomous Database
 
The Top 5 Reasons to Deploy Your Applications on Oracle RAC
The Top 5 Reasons to Deploy Your Applications on Oracle RACThe Top 5 Reasons to Deploy Your Applications on Oracle RAC
The Top 5 Reasons to Deploy Your Applications on Oracle RAC
 
Oracle GoldenGate
Oracle GoldenGate Oracle GoldenGate
Oracle GoldenGate
 
What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1
 
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the Cloud
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the CloudOracle RAC Virtualized - In VMs, in Containers, On-premises, and in the Cloud
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the Cloud
 
Oracle ACFS High Availability NFS Services (HANFS)
Oracle ACFS High Availability NFS Services (HANFS)Oracle ACFS High Availability NFS Services (HANFS)
Oracle ACFS High Availability NFS Services (HANFS)
 
Understanding oracle rac internals part 1 - slides
Understanding oracle rac internals   part 1 - slidesUnderstanding oracle rac internals   part 1 - slides
Understanding oracle rac internals part 1 - slides
 
Exadata SMART Monitoring - OEM 13c
Exadata SMART Monitoring - OEM 13cExadata SMART Monitoring - OEM 13c
Exadata SMART Monitoring - OEM 13c
 
Oracle GoldenGate on Docker
Oracle GoldenGate on DockerOracle GoldenGate on Docker
Oracle GoldenGate on Docker
 
Oracle RAC 19c - the Basis for the Autonomous Database
Oracle RAC 19c - the Basis for the Autonomous DatabaseOracle RAC 19c - the Basis for the Autonomous Database
Oracle RAC 19c - the Basis for the Autonomous Database
 
Migrating Oracle database to Cassandra
Migrating Oracle database to CassandraMigrating Oracle database to Cassandra
Migrating Oracle database to Cassandra
 
Oracle ASM Training
Oracle ASM TrainingOracle ASM Training
Oracle ASM Training
 
Oracle Database performance tuning using oratop
Oracle Database performance tuning using oratopOracle Database performance tuning using oratop
Oracle Database performance tuning using oratop
 
Rman Presentation
Rman PresentationRman Presentation
Rman Presentation
 
Troubleshooting Tips and Tricks for Database 19c - Sangam 2019
Troubleshooting Tips and Tricks for Database 19c - Sangam 2019Troubleshooting Tips and Tricks for Database 19c - Sangam 2019
Troubleshooting Tips and Tricks for Database 19c - Sangam 2019
 
Presentation upgrade, migrate &amp; consolidate to oracle database 12c &amp...
Presentation   upgrade, migrate &amp; consolidate to oracle database 12c &amp...Presentation   upgrade, migrate &amp; consolidate to oracle database 12c &amp...
Presentation upgrade, migrate &amp; consolidate to oracle database 12c &amp...
 
Oracle GoldenGate Architecture Performance
Oracle GoldenGate Architecture PerformanceOracle GoldenGate Architecture Performance
Oracle GoldenGate Architecture Performance
 
A Closer Look at Apache Kudu
A Closer Look at Apache KuduA Closer Look at Apache Kudu
A Closer Look at Apache Kudu
 
New availability features in oracle rac 12c release 2 anair ss
New availability features in oracle rac 12c release 2 anair   ssNew availability features in oracle rac 12c release 2 anair   ss
New availability features in oracle rac 12c release 2 anair ss
 

Similar to 20 tips and tricks with the Autonomous Database

20 Tips and Tricks with the Autonomous Database
20 Tips and Tricks with the Autonomous Database 20 Tips and Tricks with the Autonomous Database
20 Tips and Tricks with the Autonomous Database Sandesh Rao
 
AutoML - Heralding a New Era of Machine Learning - CASOUG Oct 2021
AutoML - Heralding a New Era of Machine Learning - CASOUG Oct 2021AutoML - Heralding a New Era of Machine Learning - CASOUG Oct 2021
AutoML - Heralding a New Era of Machine Learning - CASOUG Oct 2021Sandesh Rao
 
Library management system project
Library management system projectLibrary management system project
Library management system projectAJAY KUMAR
 
Managing Large Flask Applications On Google App Engine (GAE)
Managing Large Flask Applications On Google App Engine (GAE)Managing Large Flask Applications On Google App Engine (GAE)
Managing Large Flask Applications On Google App Engine (GAE)Emmanuel Olowosulu
 
Create a sql script containing your data definition language (ddl)
Create a sql script containing your data definition language (ddl)Create a sql script containing your data definition language (ddl)
Create a sql script containing your data definition language (ddl)RAJU852744
 
Prabhu-Software-Engineer-3+-Year-Exp
Prabhu-Software-Engineer-3+-Year-ExpPrabhu-Software-Engineer-3+-Year-Exp
Prabhu-Software-Engineer-3+-Year-ExpPrabhu S
 
Oracle Discoverer Reports via BSS
Oracle Discoverer Reports via BSSOracle Discoverer Reports via BSS
Oracle Discoverer Reports via BSSKhalid Tariq
 
[db tech showcase Tokyo 2018] #dbts2018 #B27 『Discover Machine Learning and A...
[db tech showcase Tokyo 2018] #dbts2018 #B27 『Discover Machine Learning and A...[db tech showcase Tokyo 2018] #dbts2018 #B27 『Discover Machine Learning and A...
[db tech showcase Tokyo 2018] #dbts2018 #B27 『Discover Machine Learning and A...Insight Technology, Inc.
 
Machine Learning and AI at Oracle
Machine Learning and AI at OracleMachine Learning and AI at Oracle
Machine Learning and AI at OracleSandesh Rao
 
A case study of encouraging compliance with Spectrum data standards and proce...
A case study of encouraging compliance with Spectrum data standards and proce...A case study of encouraging compliance with Spectrum data standards and proce...
A case study of encouraging compliance with Spectrum data standards and proce...Axiell ALM
 
Mamdouh Sami - Resume
Mamdouh Sami - ResumeMamdouh Sami - Resume
Mamdouh Sami - ResumeMamdouh Samy
 
Enabling Self Service Business Intelligence using Excel
Enabling Self Service Business Intelligenceusing ExcelEnabling Self Service Business Intelligenceusing Excel
Enabling Self Service Business Intelligence using ExcelAlan Koo
 
Dataware case study
Dataware case study Dataware case study
Dataware case study Zeeshan Ahmed
 
business analysis-Data warehousing
business analysis-Data warehousingbusiness analysis-Data warehousing
business analysis-Data warehousingDhilsath Fathima
 
Oracle application express ppt
Oracle application express pptOracle application express ppt
Oracle application express pptAbhinaw Kumar
 

Similar to 20 tips and tricks with the Autonomous Database (20)

20 Tips and Tricks with the Autonomous Database
20 Tips and Tricks with the Autonomous Database 20 Tips and Tricks with the Autonomous Database
20 Tips and Tricks with the Autonomous Database
 
AutoML - Heralding a New Era of Machine Learning - CASOUG Oct 2021
AutoML - Heralding a New Era of Machine Learning - CASOUG Oct 2021AutoML - Heralding a New Era of Machine Learning - CASOUG Oct 2021
AutoML - Heralding a New Era of Machine Learning - CASOUG Oct 2021
 
Library management system project
Library management system projectLibrary management system project
Library management system project
 
Library management project
Library management projectLibrary management project
Library management project
 
Managing Large Flask Applications On Google App Engine (GAE)
Managing Large Flask Applications On Google App Engine (GAE)Managing Large Flask Applications On Google App Engine (GAE)
Managing Large Flask Applications On Google App Engine (GAE)
 
Create a sql script containing your data definition language (ddl)
Create a sql script containing your data definition language (ddl)Create a sql script containing your data definition language (ddl)
Create a sql script containing your data definition language (ddl)
 
Prabhu-Software-Engineer-3+-Year-Exp
Prabhu-Software-Engineer-3+-Year-ExpPrabhu-Software-Engineer-3+-Year-Exp
Prabhu-Software-Engineer-3+-Year-Exp
 
Oracle Discoverer Reports via BSS
Oracle Discoverer Reports via BSSOracle Discoverer Reports via BSS
Oracle Discoverer Reports via BSS
 
[db tech showcase Tokyo 2018] #dbts2018 #B27 『Discover Machine Learning and A...
[db tech showcase Tokyo 2018] #dbts2018 #B27 『Discover Machine Learning and A...[db tech showcase Tokyo 2018] #dbts2018 #B27 『Discover Machine Learning and A...
[db tech showcase Tokyo 2018] #dbts2018 #B27 『Discover Machine Learning and A...
 
Machine Learning and AI at Oracle
Machine Learning and AI at OracleMachine Learning and AI at Oracle
Machine Learning and AI at Oracle
 
A case study of encouraging compliance with Spectrum data standards and proce...
A case study of encouraging compliance with Spectrum data standards and proce...A case study of encouraging compliance with Spectrum data standards and proce...
A case study of encouraging compliance with Spectrum data standards and proce...
 
Mamdouh Sami - Resume
Mamdouh Sami - ResumeMamdouh Sami - Resume
Mamdouh Sami - Resume
 
Enabling Self Service Business Intelligence using Excel
Enabling Self Service Business Intelligenceusing ExcelEnabling Self Service Business Intelligenceusing Excel
Enabling Self Service Business Intelligence using Excel
 
Project report
Project report Project report
Project report
 
Rohit Resume
Rohit ResumeRohit Resume
Rohit Resume
 
Dataware case study
Dataware case study Dataware case study
Dataware case study
 
HR management system
HR management systemHR management system
HR management system
 
business analysis-Data warehousing
business analysis-Data warehousingbusiness analysis-Data warehousing
business analysis-Data warehousing
 
mod 2.pdf
mod 2.pdfmod 2.pdf
mod 2.pdf
 
Oracle application express ppt
Oracle application express pptOracle application express ppt
Oracle application express ppt
 

More from Sandesh Rao

Whats new in Autonomous Database in 2022
Whats new in Autonomous Database in 2022Whats new in Autonomous Database in 2022
Whats new in Autonomous Database in 2022Sandesh Rao
 
Analysis of Database Issues using AHF and Machine Learning v2 - AOUG2022
Analysis of Database Issues using AHF and Machine Learning v2 -  AOUG2022Analysis of Database Issues using AHF and Machine Learning v2 -  AOUG2022
Analysis of Database Issues using AHF and Machine Learning v2 - AOUG2022Sandesh Rao
 
Analysis of Database Issues using AHF and Machine Learning v2 - SOUG
Analysis of Database Issues using AHF and Machine Learning v2 -  SOUGAnalysis of Database Issues using AHF and Machine Learning v2 -  SOUG
Analysis of Database Issues using AHF and Machine Learning v2 - SOUGSandesh Rao
 
15 Troubleshooting tips and Tricks for Database 21c - KSAOUG
15 Troubleshooting tips and Tricks for Database 21c - KSAOUG15 Troubleshooting tips and Tricks for Database 21c - KSAOUG
15 Troubleshooting tips and Tricks for Database 21c - KSAOUGSandesh Rao
 
Top 20 FAQs on the Autonomous Database
Top 20 FAQs on the Autonomous DatabaseTop 20 FAQs on the Autonomous Database
Top 20 FAQs on the Autonomous DatabaseSandesh Rao
 
15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG
15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG
15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUGSandesh Rao
 
TFA Collector - what can one do with it
TFA Collector - what can one do with it TFA Collector - what can one do with it
TFA Collector - what can one do with it Sandesh Rao
 
Introduction to Machine learning - DBA's to data scientists - Oct 2020 - OGBEmea
Introduction to Machine learning - DBA's to data scientists - Oct 2020 - OGBEmeaIntroduction to Machine learning - DBA's to data scientists - Oct 2020 - OGBEmea
Introduction to Machine learning - DBA's to data scientists - Oct 2020 - OGBEmeaSandesh Rao
 
How to use Exachk effectively to manage Exadata environments OGBEmea
How to use Exachk effectively to manage Exadata environments OGBEmeaHow to use Exachk effectively to manage Exadata environments OGBEmea
How to use Exachk effectively to manage Exadata environments OGBEmeaSandesh Rao
 
Troubleshooting tips and tricks for Oracle Database Oct 2020
Troubleshooting tips and tricks for Oracle Database Oct 2020Troubleshooting tips and tricks for Oracle Database Oct 2020
Troubleshooting tips and tricks for Oracle Database Oct 2020Sandesh Rao
 
Introduction to Machine Learning - From DBA's to Data Scientists - OGBEMEA
Introduction to Machine Learning - From DBA's to Data Scientists - OGBEMEAIntroduction to Machine Learning - From DBA's to Data Scientists - OGBEMEA
Introduction to Machine Learning - From DBA's to Data Scientists - OGBEMEASandesh Rao
 
TFA, ORAchk and EXAchk 20.2 - What's new
TFA, ORAchk and EXAchk 20.2 - What's new TFA, ORAchk and EXAchk 20.2 - What's new
TFA, ORAchk and EXAchk 20.2 - What's new Sandesh Rao
 
Machine Learning in Autonomous Data Warehouse
 Machine Learning in Autonomous Data Warehouse Machine Learning in Autonomous Data Warehouse
Machine Learning in Autonomous Data WarehouseSandesh Rao
 
Introduction to AutoML and Data Science using the Oracle Autonomous Database ...
Introduction to AutoML and Data Science using the Oracle Autonomous Database ...Introduction to AutoML and Data Science using the Oracle Autonomous Database ...
Introduction to AutoML and Data Science using the Oracle Autonomous Database ...Sandesh Rao
 
Oracle Autonomous Health Service- For Protecting Your On-Premise Databases- F...
Oracle Autonomous Health Service- For Protecting Your On-Premise Databases- F...Oracle Autonomous Health Service- For Protecting Your On-Premise Databases- F...
Oracle Autonomous Health Service- For Protecting Your On-Premise Databases- F...Sandesh Rao
 
Introduction to Machine Learning and Data Science using Autonomous Database ...
Introduction to Machine Learning and Data Science using Autonomous Database  ...Introduction to Machine Learning and Data Science using Autonomous Database  ...
Introduction to Machine Learning and Data Science using Autonomous Database ...Sandesh Rao
 
The Machine Learning behind the Autonomous Database ILOUG Feb 2020
The Machine Learning behind the Autonomous Database   ILOUG Feb 2020 The Machine Learning behind the Autonomous Database   ILOUG Feb 2020
The Machine Learning behind the Autonomous Database ILOUG Feb 2020 Sandesh Rao
 
Troubleshooting Tips and Tricks for Database 19c ILOUG Feb 2020
Troubleshooting Tips and Tricks for Database 19c   ILOUG Feb 2020Troubleshooting Tips and Tricks for Database 19c   ILOUG Feb 2020
Troubleshooting Tips and Tricks for Database 19c ILOUG Feb 2020Sandesh Rao
 
Introduction to Machine Learning and Data Science using the Autonomous databa...
Introduction to Machine Learning and Data Science using the Autonomous databa...Introduction to Machine Learning and Data Science using the Autonomous databa...
Introduction to Machine Learning and Data Science using the Autonomous databa...Sandesh Rao
 
The Machine Learning behind the Autonomous Database- EMEA Tour Oct 2019
The Machine Learning behind the Autonomous Database- EMEA Tour Oct 2019 The Machine Learning behind the Autonomous Database- EMEA Tour Oct 2019
The Machine Learning behind the Autonomous Database- EMEA Tour Oct 2019 Sandesh Rao
 

More from Sandesh Rao (20)

Whats new in Autonomous Database in 2022
Whats new in Autonomous Database in 2022Whats new in Autonomous Database in 2022
Whats new in Autonomous Database in 2022
 
Analysis of Database Issues using AHF and Machine Learning v2 - AOUG2022
Analysis of Database Issues using AHF and Machine Learning v2 -  AOUG2022Analysis of Database Issues using AHF and Machine Learning v2 -  AOUG2022
Analysis of Database Issues using AHF and Machine Learning v2 - AOUG2022
 
Analysis of Database Issues using AHF and Machine Learning v2 - SOUG
Analysis of Database Issues using AHF and Machine Learning v2 -  SOUGAnalysis of Database Issues using AHF and Machine Learning v2 -  SOUG
Analysis of Database Issues using AHF and Machine Learning v2 - SOUG
 
15 Troubleshooting tips and Tricks for Database 21c - KSAOUG
15 Troubleshooting tips and Tricks for Database 21c - KSAOUG15 Troubleshooting tips and Tricks for Database 21c - KSAOUG
15 Troubleshooting tips and Tricks for Database 21c - KSAOUG
 
Top 20 FAQs on the Autonomous Database
Top 20 FAQs on the Autonomous DatabaseTop 20 FAQs on the Autonomous Database
Top 20 FAQs on the Autonomous Database
 
15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG
15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG
15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG
 
TFA Collector - what can one do with it
TFA Collector - what can one do with it TFA Collector - what can one do with it
TFA Collector - what can one do with it
 
Introduction to Machine learning - DBA's to data scientists - Oct 2020 - OGBEmea
Introduction to Machine learning - DBA's to data scientists - Oct 2020 - OGBEmeaIntroduction to Machine learning - DBA's to data scientists - Oct 2020 - OGBEmea
Introduction to Machine learning - DBA's to data scientists - Oct 2020 - OGBEmea
 
How to use Exachk effectively to manage Exadata environments OGBEmea
How to use Exachk effectively to manage Exadata environments OGBEmeaHow to use Exachk effectively to manage Exadata environments OGBEmea
How to use Exachk effectively to manage Exadata environments OGBEmea
 
Troubleshooting tips and tricks for Oracle Database Oct 2020
Troubleshooting tips and tricks for Oracle Database Oct 2020Troubleshooting tips and tricks for Oracle Database Oct 2020
Troubleshooting tips and tricks for Oracle Database Oct 2020
 
Introduction to Machine Learning - From DBA's to Data Scientists - OGBEMEA
Introduction to Machine Learning - From DBA's to Data Scientists - OGBEMEAIntroduction to Machine Learning - From DBA's to Data Scientists - OGBEMEA
Introduction to Machine Learning - From DBA's to Data Scientists - OGBEMEA
 
TFA, ORAchk and EXAchk 20.2 - What's new
TFA, ORAchk and EXAchk 20.2 - What's new TFA, ORAchk and EXAchk 20.2 - What's new
TFA, ORAchk and EXAchk 20.2 - What's new
 
Machine Learning in Autonomous Data Warehouse
 Machine Learning in Autonomous Data Warehouse Machine Learning in Autonomous Data Warehouse
Machine Learning in Autonomous Data Warehouse
 
Introduction to AutoML and Data Science using the Oracle Autonomous Database ...
Introduction to AutoML and Data Science using the Oracle Autonomous Database ...Introduction to AutoML and Data Science using the Oracle Autonomous Database ...
Introduction to AutoML and Data Science using the Oracle Autonomous Database ...
 
Oracle Autonomous Health Service- For Protecting Your On-Premise Databases- F...
Oracle Autonomous Health Service- For Protecting Your On-Premise Databases- F...Oracle Autonomous Health Service- For Protecting Your On-Premise Databases- F...
Oracle Autonomous Health Service- For Protecting Your On-Premise Databases- F...
 
Introduction to Machine Learning and Data Science using Autonomous Database ...
Introduction to Machine Learning and Data Science using Autonomous Database  ...Introduction to Machine Learning and Data Science using Autonomous Database  ...
Introduction to Machine Learning and Data Science using Autonomous Database ...
 
The Machine Learning behind the Autonomous Database ILOUG Feb 2020
The Machine Learning behind the Autonomous Database   ILOUG Feb 2020 The Machine Learning behind the Autonomous Database   ILOUG Feb 2020
The Machine Learning behind the Autonomous Database ILOUG Feb 2020
 
Troubleshooting Tips and Tricks for Database 19c ILOUG Feb 2020
Troubleshooting Tips and Tricks for Database 19c   ILOUG Feb 2020Troubleshooting Tips and Tricks for Database 19c   ILOUG Feb 2020
Troubleshooting Tips and Tricks for Database 19c ILOUG Feb 2020
 
Introduction to Machine Learning and Data Science using the Autonomous databa...
Introduction to Machine Learning and Data Science using the Autonomous databa...Introduction to Machine Learning and Data Science using the Autonomous databa...
Introduction to Machine Learning and Data Science using the Autonomous databa...
 
The Machine Learning behind the Autonomous Database- EMEA Tour Oct 2019
The Machine Learning behind the Autonomous Database- EMEA Tour Oct 2019 The Machine Learning behind the Autonomous Database- EMEA Tour Oct 2019
The Machine Learning behind the Autonomous Database- EMEA Tour Oct 2019
 

Recently uploaded

My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 

Recently uploaded (20)

My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 

20 tips and tricks with the Autonomous Database

  • 1. VP AIOps for the Autonomous Database Sandesh Rao LAOUC - Aug 2020 Top 20 FAQs on the Autonomous Database @sandeshr https://www.linkedin.com/in/raosandesh/ https://www.slideshare.net/SandeshRao4
  • 2. 1. Get started with Free Tier 2. Get started with OML 3. Using OCI Resource Mgr 4. Modify endpoints for ADB 5. Wallet rotation 6. Partitions with external tables 7. Track instance creation - workflow 8. Performance monitoring 9. Alarms on resource metrics 10. Upgrade to 19c 11. Performance hub 12. SQL monitor report 13. ASH analytics in Performance hub 14. APEX in Autonomous Database 15. OML Notebooks 16. Auto scaling 17. Download AWR reports 18. Load data using DBMS_CLOUD 19. Access Tenancy Information 20. Autonomous Dataguard Agenda
  • 3. 1: How to get started with the Autonomous Database Free Tier
  • 4. Always Free services enable developers and students to learn, build and get hands-on experience with Oracle Cloud for unlimited time Anyone can try for an unlimited time the full functionality of: • Oracle Autonomous Database • Oracle Cloud Infrastructure including: - Compute VMs - Block and Object Storage - Load Balancer Free tier
  • 5. Free tier – Tech spec 2 Autonomous Databases (Autonomous Data Warehouse or Autonomous Transaction Processing), each with 1 OCPU and 20 GB storage 2 Compute VMs, each with 1/8 OCPU and 1 GB memory 2 Block Volumes, 100 GB total, with up to 5 free backups 10 GB Object Storage, 10 GB Archive Storage, and 50,000/month API requests 1 Load Balancer, 10 Mbps bandwidth 10 TB/month Outbound Data Transfer 500 million ingestion Datapoints and 1 billion Datapoints for Monitoring Service 1 million Notification delivery options per month and 1000 emails per month
  • 6. Creating a new Always Free ADB
  • 7. Creating a new Always Free ADB Simple toggle to enable “Always Free”
  • 8. • As of December 5, 2019, the Machine Learning (formerly known as Advanced Analytics), Spatial and Graph features of Oracle Database may be used for development and deployment purposes with all on-prem editions and Oracle Cloud Database Services. • See the Oracle Database Licensing Information Manual (pdf) for more details. • Oracle’s multi-model converged architecture by supporting multiple data types, data models (e.g. spatial, graph, JSON, XML) and algorithms (e.g. machine learning, graph and statistical functions) and workload types (e.g. operational and analytical) within a single database. • Processing and analyzing all types of spatial data in business applications, GIS and operational systems • Using graph analysis to discover relationships in social networks, detect fraud, and make informed recommendations • Building and deploying machine learning models for predictive analytics OML , Spatial and Graph is free with the Oracle Database
  • 9. How to get started with Oracle Machine Learning
  • 10. Algorithms automatically sift through large amounts of data to discover hidden patterns, new insights and make predictions Categories in Machine Learning Identify most important factor (Attribute Importance) Predict customer behavior (Classification) Find profiles of targeted people or items (Classification Predict or estimate a value (Regression) Segment a population (Clustering) Find fraudulent or “rare events” (Anomaly Detection) Determine co-occurring items in a “basket” (Associations)X1 X2 A1A2A3A4 A5A6 A7 SupervisedLearningUnsupervisedLearning Copyright © 2020 Oracle and/or its affiliates.
  • 11. Database Developer to Data Scientist Journey
  • 12. STEP 1: Creating OML Users •Go back to the Cloud Console and open the Instances screen. Find your database, click the action menu and select Service Console. Creating OML Users
  • 13. Log in to the service with your admin password. Creating OML Users
  • 14. Go to the Administration tab and click Manage Oracle ML Users to go to the OML user management page - this page will allow you to manage OML users. Creating OML Users
  • 15. Click Create button to create a new OML user. Note that this will also create a new database user with the same name. This newly created user will be able to use the OML notebook application. Note that you can also enter an email address to send an email confirmation to your user (for this lab you can use your own personal email address) when creating the user. Creating OML Users
  • 16. Enter the required information for this user, name the user as omluser1. If you supplied a valid email address, a welcome email should arrive within a few minutes to your Inbox. Click the Create button, in the top-right corner of the page, to create the user. Creating OML Users
  • 17. Here is the email which each user receives welcoming them to the OML application. It includes a direct link to the OML application for that user which they can bookmark. Creating OML Users
  • 18. After you click Create you will see that user listed in the Users section. Creating OML Users
  • 19. Use your new user account omluser1: Exploring the OML Home Page
  • 20. Once you have successfully signed in to OML the application home page will be displayed. Overview of OML Home Page The grey menu bar at the top of the screen provides links to the main OML menus for the application (left corner) and the workspace/project and user maintenance on the right-hand side. Exploring the OML Home Page
  • 21. Simple SQL Syntax—Statistical Comparisons (t-tests) Compare AVE Purchase Amounts Men vs. Women Grouped_By INCOME_LEVEL Statistical Functions SELECT SUBSTR(cust_income_level, 1, 22) income_level, AVG(DECODE(cust_gender, 'M', amount_sold, null)) sold_to_men, AVG(DECODE(cust_gender, 'F', amount_sold, null)) sold_to_women, STATS_T_TEST_INDEPU(cust_gender, amount_sold, 'STATISTIC', 'F') t_observed, STATS_T_TEST_INDEPU(cust_gender, amount_sold) two_sided_p_value FROM customers c, sales s WHERE c.cust_id = s.cust_id GROUP BY ROLLUP(cust_income_level) ORDER BY income_level, sold_to_men, sold_to_women, t_observed; STATS_T_TEST_INDEPU (SQL) Example; P_Values < 05 show statistically significantly differences in the amounts purchased by men vs. women
  • 22. Simple SQL Syntax—Attribute Importance - ML Model Build (PL/SQL) OAA Model Build and Real-time SQL Apply Prediction BEGIN DBMS_DATA_MINING.CREATE_MODEL( model_name => 'BUY_INSURANCE_AI', mining_function => DBMS_DATA_MINING.ATTRIBUTE_IMPORTANCE, data_table_name => 'CUST_INSUR_LTV', case_id_column_name => 'cust_id', target_column_name => 'BUY_INSURANCE', settings_table_name => 'Att_Import_Mode_Settings'); END; / SELECT attribute_name, rank , attribute_value FROM BUY_INSURANCE_AI ORDER BY rank, attribute_name; Model Results (SQL query) ATTRIBUTE_NAME RANK ATTRIBUTE_VALUE BANK_FUNDS 1 0.2161 MONEY_MONTLY_OVERDRAWN 2 0.1489 N_TRANS_ATM 3 0.1463 N_TRANS_TELLER 4 0.1156 T_AMOUNT_AUTOM_PAYMENTS 5 0.1095 A1A2A3A4 A5A6 A7
  • 23.
  • 24. Coming Soon! | AutoML – new with OML4Py Auto Feature Selection – Reduce # of features by identifying most predictive – Improve performance and accuracy Increase data scientist productivity – reduce overall compute time Auto Algorithm Selection Much faster than exhaustive search Auto Feature Selection De-noise data and reduce # of features AutoTune Significant accuracy improvement Auto Algorithm Selection – Identify in-database algorithm that achieves highest model quality – Find best algorithm faster than with exhaustive search Auto Tune Hyperparameters – Significantly improve model accuracy – Avoid manual or exhaustive search techniques Copyright © 2020 Oracle and/or its affiliates. Enables non-expert users to leverage Machine Learning Data Table ML Model
  • 25. Coming Soon! | OML AutoML User Interface Automate production and deployment of ML models • Enhance Data Scientist productivity and user-experience • Enable non-expert users to leverage ML • Unify model deployment and monitoring • Support model management Features • Minimal user input: data, target • Model leaderboard • Model deployment via REST • Model monitoring • Cognitive features for image and text “Code-free” user interface supporting automated end-to-end machine learning Copyright © 2020 Oracle and/or its affiliates.
  • 26. Oracle Machine Learning Key Features: • Collaborative UI for data scientist and analysts • Packaged with Autonomous Databases • Quick start Example notebooks • Easy access to shared notebooks, templates, permissions, scheduler, etc. • OML4SQL • OML4Py coming soon • Supports deployment of OML models Machine Learning Notebooks included in Autonomous Databases Copyright © 2020 Oracle and/or its affiliates.
  • 27. 3 - Using OCI Resource Manager to Deploy Data Warehouse Reference Architecture Patterns
  • 28. 29
  • 29. 30
  • 30. 31
  • 31. 32
  • 32. 33
  • 33. 34
  • 34. 4 - Modify Network Settings for ADB Instances
  • 35. 36
  • 36. 37
  • 37. 38
  • 38. 39
  • 39. 40
  • 40. 5: Wallet rotation for ADW or ATP
  • 41. Per-database with Instance Wallet selected: • All existing database specific instance wallets will be void. • Post rotation need to download new wallet to connect to database. • NOTE - Regional wallets with all database certification keys continue to work Regional level with Regional Wallet selected: • Both regional and database specific instance wallets are voided. • Post rotation need to download new regional or instance wallets to connect to any database in region • All user sessions are terminated for databases whose wallet is rotated. • User session termination begins after wallet rotation completes, however this process does not happen immediately. New Option To Rotate Wallets For ADB 1 2
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47. 6: Partitions with external tables in Cloud
  • 48. All data outside the database • Files in Object Store buckets Exposes the power of Oracle partitioning to external data • Partition pruning • Partition maintenance Enables order-of-magnitudes faster query performance and enhanced data maintenance Partitioned External Tables …2016,04,01 2016,04,02 2016,04,0 3 File-02 in Object Store Bucket File-03 in Object Store Bucket File-01 in Object Store Bucket
  • 49. Note only use of DBMS_CLOUD syntax is supported Partitioned External Tables BEGIN DBMS_CLOUD.CREATE_EXTERNAL_PART_TABLE( table_name =>'PET1’, credential_name =>'DEF_CRED_NAME’, format => json_object('delimiter' value ‘,’, 'recorddelimiter' value 'newline’, 'characterset' value 'us7ascii’), column_list => 'col1 number, col2 number, col3 number’ partitioning_clause => 'partition by range (col1) ( partition p1 values less than (1000) location ( ‘https://swiftobjectstorage.us-ashburn-1 ... /file_01.txt') , partition p2 values less than (2000) location ( 'https://swiftobjectstorage.us-ashburn-1 ... /file_02.txt'') , partition p3 values less than (3000) location ( 'https://swiftobjectstorage.us-ashburn-1 ... /file_03.txt'') ) ) END; /
  • 50. Single table contains both internal (RDBMS) and external partitions • Full functional support, such as partial indexing, partial read only, constraints, etc. Partition maintenance for information lifecycle management • Currently limited support • Enhancements in progress Hybrid Partitioned Tables …2016,04,01 2016,04,02 2016,04, 03 File-02 in Object Store Bucket File-01 in Object Store Bucket DB Partition
  • 51. Data in any object store can be accessed • Oracle Object Store, AWS S3 or Azure Explicit authentication or pre-authenticated URIs (Admittedly not a specific Partitioning feature, but cool nevertheless) Access data in Object Stores Any Object Storage
  • 52. Note only use of DBMS_CLOUD syntax is supported Hybrid Partitioned Tables BEGIN DBMS_CLOUD.CREATE_HYBRID_PART_TABLE( table_name =>'HPT1’, credential_name =>'OBJ_STORE_CRED’, format => json_object('delimiter' value ',', ‘ recorddelimiter' value 'newline', ‘ characterset' value 'us7ascii’), column_list => 'col1 number, col2 number, col3 number’ partitioning_clause => 'partition by range (col1) (partition p1 values less than (1000) external location ( 'https://swiftobjectstorage.us-ashburn-1 .../file_01.txt') , partition p2 values less than (2000) external location ( ‘https://swiftobjectstorage.us-ashburn-1 .../file_02.txt') , partition p3 values less than (3000) ) ) END;
  • 53. 7: How to track activity with work requests
  • 54.
  • 55.
  • 56.
  • 57. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
  • 58.
  • 59.
  • 60. 8: Performance monitoring with Autonomous Database
  • 61. • Monitor health, capacity, performance of ADB instances • Uses metrics, alarms, and notifications • Metrics accessible via OCI console or using APIs Monitor Performance with ADB Metrics
  • 62. 1. CPU Utilization 2. Memory Utilization 3. Sessions 4. Failed Connections 5. Execute Count 6. Queued Statements 7. Running Statements 8. Failed Logons 9. Current Logons 10. Transaction Count 11. User Calls 12. Parse Count (Total) Available Service Metrics
  • 63. Autonomous Database Details page provides top 6 view of library of service metrics. Viewing Top 6 Metrics on ADB Console
  • 64. Complete library of only metrics available via the OCI Console Service Metrics page or by using the Monitoring API Viewing Full Library Database Metrics
  • 65. Step 1 – Select the required compartment Setting Up Monitoring Page
  • 66. Step 2 – Select the metric namespace for autonomous database Setting Up Monitoring Page
  • 67. How To Create A New Alarm
  • 68. 9: Setting alarms on metrics like CPU Utilization
  • 69. Step 1 – Select the required compartment Setting Up Monitoring Page
  • 70. Step 2 – Select the metric namespace for autonomous database Setting Up Monitoring Page
  • 71. How To Create A New Alarm
  • 72.
  • 73.
  • 74.
  • 75.
  • 76.
  • 77.
  • 78.
  • 79.
  • 80.
  • 81.
  • 82.
  • 83.
  • 84.
  • 85.
  • 86.
  • 87.
  • 88.
  • 89.
  • 90.
  • 91. 92 Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted Monitoring Query Language (MQL) • Components in an MQL Expression • An MQL expression includes the following components: • metric , interval , dimensions as one or more name-value pairs (optional) • grouping function (optional) • statistic • comparison operation (optional). Useful for defining alarms. Examples The number of hosts with CPU utilization greater than 80 percent: (CpuUtilization[1m].max() > 80).grouping().sum() The number of availability domains with a success rate lower than 0.99 : (SuccessRate[1m].groupBy(availabilityDomain).mean() < 0.99).grouping().sum()
  • 93. 94 Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted • Oracle Database 19c is now available on Autonomous Database for all regions. • In select regions, customers can choose between Oracle Database 18c and Oracle Database 19c for new databases • The default version for all new databases is 19c and most new Autonomous Database features will only be available for Oracle Database 19c • For most applications, there should not be any changes required • However, it is recommended you should test your applications with Database 19c • You can create a clone of your current database to Oracle Database 19c • Test your application using this clone. Upgrade an Autonomous Database Instance to Oracle Database 19c
  • 94. 95 Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted • Oracle Database 18c is scheduled to be available in Autonomous Database until September, 2020 • You can choose to upgrade your database at any time during this period. • After that time, all existing databases will be automatically upgraded to Oracle Database 19c. • Autonomous Database offers a single button that provides a one-way, in-place upgrade Upgrade an Autonomous Database Instance to Oracle Database 19c
  • 96.
  • 97.
  • 98. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
  • 99. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
  • 100. 101 Confidential – Oracle Internal Time Range selector is displayed on the top of the Performance Hub page Use the Select Duration field to set the time duration Default, Last 60 mins is selected • Specify to view Last 8 hours, Last 24 hours, Last week • Specify a custom time range Time Range field shows active sessions in chart form. • Active sessions chart displays avg number of active sessions broken down by CPU, User I/O, and Wait. Time Range field and time slider
  • 101. 102 Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted A time zone control has been added to Performance Hub. This will allow users to view data using an alternate time zone to UTC. They will have the choice of viewing data using either UTC (default), the time zone of their browser client, or the time zone of the database. Timezone Selector
  • 102.
  • 104. 105 Confidential – Oracle Internal SQL only monitored if running for at least five seconds or run in parallel Displays monitored SQL statement executions by dimensions including Last Active Time, CPU Time, and Database Time Displays currently running SQL statements and SQL statements that completed, failed, or were terminated. Information includes Status, Duration, and SQL ID • Status column has the following icons: - A spinning icon indicates that the SQL statement is executing. - A green check indicates SQL statement completed - A red cross icon indicates that the SQL statement did not complete - A clock icon indicates that the SQL statement is queued SQL Monitoring
  • 105.
  • 106.
  • 107.
  • 108.
  • 109.
  • 110.
  • 111.
  • 112.
  • 113.
  • 114.
  • 115.
  • 116.
  • 117.
  • 118.
  • 119.
  • 120.
  • 121.
  • 122.
  • 123. 13: ASH Analytics in Performance Hub
  • 124. 125 Confidential – Oracle Internal Shows Active Session History (ASH) analytics charts to explore ASH data Drill down into database performance across multiple dimensions such as Consumer Group, Wait Class, SQL ID, and User Name Select an Average Active Sessions dimension and view the top activity for that dimension for the selected time period. For information on ASH, see Active Session History (ASH) in Oracle Database Concepts. Active Session History (ASH) Analytics
  • 125.
  • 126.
  • 127.
  • 128.
  • 129.
  • 130.
  • 131.
  • 132.
  • 133.
  • 134.
  • 135.
  • 136.
  • 137.
  • 138.
  • 139.
  • 140. 141 Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted Performance Hub has been expanded to include a new tab, "Workload". This can be used to monitor the workload in the database and helps the user identify performance spikes and bottlenecks. Workload Metrics on Performance Hub There are 4 regions: Each region contains a group of charts that indicate the characteristics of the workload and the distribution of the resources, as shown
  • 141. 14: Oracle APEX in Autonomous Database
  • 142. Free tier – Includes free developer tools APEX SQL Developer Web ML Notebooks REST Interfaces Cloud Developer Images Including OCI Software Development Kits (SDKs), and database connectors Terraform for automation
  • 143. 144 Database-centric web application development framework Oracle APEX Develop desktop and mobile web apps Visualize and maintain database data Leverage SQL Skills and database capabilities
  • 144. Oracle APEX Oracle Autonomous Database 145 Copyright © 2019, Oracle and/or its affiliates. All rights reserved. Included with New Always Free Service
  • 145. Oracle Autonomous Database Analytics = Autonomous Data Warehouse (ADW) Fully Managed Includes Oracle APEX at no additional cost Autonomous Transaction Processing Autonomous Data Warehouse OLTP = Autonomous Transaction Processing (ATP)
  • 146. 147 Home Page Comprehensive Development IDE, Web Application Development, and SQL Database Development
  • 147. 148 SQL Workshop Browser based maintenance of database objects and data Designed to meet application developers’ needs, especially in hosted environments
  • 148. 149 SQL Workshop – Quick SQL Rapidly design and prototype data models using a markdown-like shorthand syntax that expands to standards-based Oracle SQL.
  • 151. The white panel below the main title (SQL Query Scratchpad – this name is automatically generated) is an area known as “paragraph”. Within a scratchpad you can have multiple paragraphs. Each paragraph can contain one SQL statement or a SQL script. Running an SQL Statement
  • 152. In the SQL paragraph area copy and paste this code snippet. Your screen should now look like this: Running an SQL Statement
  • 153. Press the icon shown in the red box to execute the SQL statement…. Running an SQL Statement
  • 154. …and display the results in a tabular format: Running an SQL Statement
  • 155. Using the report menu bar you can change the table to a graph and/or export the result set to a CSV or TSV file. When you change the report type to one of the graphs, then a Settings link will appear to the right of the menu which allows you to control the layout of columns within the graph. Click on the bar graph icon to change the output to a bar graph (see below) Running an SQL Statement
  • 156. Running an SQL Statement
  • 157. Running an SQL Statement Click on the Settings link to unfold the settings panel for the graph. To add a column to one of the Keys, Groups of Values panel s just drag and drop the column name into the required panel. To remove a column from the Keys, Groups of Values panel just click on the x next to the column name displayed in the relevant panel.
  • 158. Running an SQL Statement Changing the layout of the graph With the graph settings panel visible: • Remove all columns from the both the Keys and Values panels. • Drag and drop MONTH into the Keys panel • Drag and drop REVENUE into the Values panel • Drag and drop AVG_12M_REVENUE int o the Values panel
  • 159. Tidying up the report •Click on the Settings link to hide the layout controls. •Click on the Hide editor button which is to the right of the "Run this paragraph" button. Running an SQL Statement
  • 160. Now only the output is visible. Running an SQL Statement
  • 161. Saving the Scratchpad as a New Notebook The SQL Scratchpad in the previous section is simply a default type notebook with a system generated name. But we can change the name of the scratchpad we have just created SQL Query Scratchpad. •Click on the Back link in the top left corner of the Scratchpad window to return to the OML home page. Saving the Scratchpad as a New Notebook
  • 162. Notice that in the Recent Activities panel there is a potted history of what has happened to your SQL scratchpad “notebook”. Saving the Scratchpad as a New Notebook
  • 163. Click on Go to Notebooks in the Quick Actions panel Saving the Scratchpad as a New Notebook
  • 165. Confidential ADB autonomously and continuously monitors overall system performance ADB scales CPU-IO resources based on overall workload requirements • Scaling up autonomously expands CPU-IO resources by up to 3x Enabled when provisioning new ADB instance or using Scale Up/Down on the Oracle Cloud Infrastructure Console. What is “Auto Scaling”
  • 166. Confidential ADB is completely responsive to actual usage patterns Reduces cost of having too many OCPUs just to manage peak traffic load Auto scaling manages unexpected spikes in workload and ensures consistent performance BUT…Enabling auto scaling does not change the concurrency and parallelism settings for the predefined services Key Benefits of Auto Scaling
  • 167. 1 2 3 4 5 6 7 Auto scaling up as workload increases – ETL, adhoc analytics, data mining As Workload Increases More OCPUs Automatically Added…
  • 168. 1 2 3 4 5 6 7 Auto scaling downwards as workload decreases As Workload Decreases Number of OCPUs Reduces ...
  • 169. Confidential Ensure sufficient resources for query workloads • Month-end reporting can leverage additional resources • Run more sophisticated processing (machine learning models) without impacting other users • Support increase in concurrent usage: Monday morning sales reports for weekend trading • Support more dynamic range of users (more adhoc queries, more machine learning models, more data discovery…) Ensure sufficient resources for ETL workloads • Time-dependent data loads can automatically get access to more resources • Unexpected data load operations can run without impacting other users • Integrates nicely with CPU-I/O Shares feature Uses Cases for Data Warehousing
  • 170. Confidential Ensure sufficient resources for mixed workloads • Month-end transaction reporting can leverage additional resources as required • Run more sophisticated app processing (using machine learning models) without impacting application users Better manage peak application workloads • Time-dependent application loads can automatically get access to more resources • Unexpected peak in operations can run without impacting users Integrates nicely with CPU-I/O Shares feature Uses Cases for Transaction Processing
  • 171. Creating a new Autonomous Instance Enabling Auto Scaling – One-Click!
  • 172. 17 - Download AWR Reports From Performance Hub
  • 173. Copyright © 2019 Oracle and/or its affiliates. 1. Open the navigation menu. Under Database, click Autonomous Transaction Processing or Autonomous Data Warehouse. 2. Choose your Compartment. 3. In the list of Autonomous Databases, click the display name of the database you want to analyze using Performance Hub reports. 4. Click Performance Hub. 1) Navigate to Performance Hub in Oracle Cloud Infrastructure Console
  • 174. 175 Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted 2) Adjust the Time Range selector
  • 175. 176 Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted 2. Click the Reports drop-down to display a list of available reports. 2. Click AWR to display the Generate AWR Report dialog. 3. You can choose to generate a report either from two snapshots closest to the current time and date or from a custom time range of your choice. - If you choose the default time range, then select Use the two snapshots closest to date and click Download. - If you choose to generate a report from a custom time range, then select Custom and select start and end times for your range. Click Download. 2. Oracle Database generates a report named AWRReport_date_range.html that downloads to the default download folder for your browser. View the report after the download completes. 3) Download the AWR Report
  • 176. 18 - Load data using DBMS_CLOUD
  • 177. • For data loading from files in the Cloud • Store your object storage credentials • Use the procedure DBMS_CLOUD.COPY_DATA to load data • The source file in this example is channels.txt Load data using DBMS_CLOUD File-02 in Object Store Bucket File-03 in Object Store Bucket File-01 in Object Store Bucket SET DEFINE OFF BEGIN DBMS_CLOUD.CREATE_CREDENTIAL( credential_name => 'DEF_CRED_NAME', username => 'adwc_user@example.com', password => 'password' ); END; /
  • 178. Load data using DBMS_CLOUD CREATE TABLE CHANNELS (channel_id CHAR(1), channel_desc VARCHAR2(20), channel_class VARCHAR2(20) ); BEGIN DBMS_CLOUD.COPY_DATA( table_name =>'CHANNELS', credential_name =>'DEF_CRED_NAME’, file_uri_list => 'https://objectstorage.us-phoenix-1.oraclecloud.com/n/namespace-string/b/ bucketname/o/channels.txt', format => json_object('delimiter' value ',') ); END; BEGIN DBMS_CLOUD.COPY_DATA( table_name =>'CHANNELS', credential_name =>'DEF_CRED_NAME’, file_uri_list =>'https://objectstorage.us-phoenix-1.oraclecloud.com/n/namespace-string/b/ bucketname/o/exp01.dmp, https://objectstorage.us-phoenix-1.oraclecloud.com/n/namespace-string/b/ bucketname/o/exp02.dmp', format => json_object('type' value 'datapump') ); END;
  • 179. Load data using DBMS_CLOUD BEGIN DBMS_CLOUD.COPY_COLLECTION( collection_name => 'fruit', credential_name => 'DEF_CRED_NAME', file_uri_list => 'https://objectstorage.us-ashburn-1.oraclecloud.com/n/ namespace-string/b/fruit_bucket/o/myCollection.json’, format => JSON_OBJECT('recorddelimiter' value '''n''') ); END; BEGIN DBMS_CLOUD.COPY_COLLECTION( collection_name => 'fruit2', credential_name => 'DEF_CRED_NAME', file_uri_list => 'https://objectstorage.us-ashburn-1.oraclecloud.com/n/ namespace-string/b/json/o/fruit_array.json’, format => '{"recorddelimiter" : "0x''01''", "unpackarrays" : TRUE}' ); END;
  • 180. Load data using DBMS_CLOUD SELECT table_name, owner_name, type, status, start_time, update_time, logfile_table, badfile_table FROM user_load_operations WHERE type = 'COPY’; TABLE_NAME OWNER_NAME TYPE STATUS START_TIME UPDATE_TIME LOGFILE_TABLE BADFILE_TABLE ------------------------------------------------------------------------------------ FRUIT ADMIN COPY COMPLETED 2020-04-23 22:27:37 2020-04-23 22:27:38 "" "" FRUIT ADMIN COPY FAILED 2020-04-23 22:28:36 2020-04-23 22:28:37 COPY$2_LOG COPY$2_BAD SELECT credential_name, username, comments FROM all_credentials; CREDENTIAL_NAME USERNAME COMMENTS ---------------------------–----------------------------- -------------------- ADB_TOKEN user_name@example.com {"comments":"Created via DBMS_CLOUD.create_credential"} DEF_CRED_NAME user_name@example.com {"comments":"Created via DBMS_CLOUD.create_credential"}
  • 181. 19 - ADB now supports SQL access to tenancy details
  • 182. 183 When you file a service request for Autonomous Database, you need to provide the tenancy details for your instance. Tenancy details for the instance are available on the Oracle Cloud Infrastructure console. However, if you are connected to the database, you can now obtain these details by querying the CLOUD_IDENTITY column of the V$PDBS view. For example: ...will generate something similar to the following: How to get the tenancy details for your instance SELECT cloud_identity FROM v$pdbs; {"DATABASE_NAME" : "DBxxxxxxxxxxxx", "REGION" : "us-phoenix-1", "TENANT_OCID" : "OCID1.TENANCY.REGION1..ID1", "DATABASE_OCID" : "OCID1.AUTONOMOUSDATABASE.OC1.SEA.ID2 ", "COMPARTMENT_OCID" : "ocid1.tenancy.region1..ID3"}
  • 184. 185 Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted
  • 185. 186 Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted
  • 186. 187 Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted
  • 187. 188 Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted
  • 188. 189 Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted
  • 189. Thank You Any Questions ? Sandesh Rao VP AIOps for the Autonomous Database @sandeshr https://www.linkedin.com/in/raosandesh/ https://www.slideshare.net/SandeshRao4