SlideShare a Scribd company logo
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
Oracle Database
Management REST API
Jeff Smith
Senior Principal Product Manager
Jeff.d.smith@oracle.com || @thatjeffsmith
Database Tools, Oracle Corp
1
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
At a Glance
• Manage & Monitor your Oracle Database
• Supports 11gR2, 12, 18, & 19c
• REST Endpoints backed by ORDS
• General, Data Dictionary, Monitoring,
Performance, & PDB Lifecycle Management
• Database User Authentication via REST Enabled Schemas
2
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Getting Started
• Install ORDS 19.1 or higher and configure your database
• Enable the DB API
• REST Enable an ADMIN Schema w/DBA (11g) or PDB_DBA (12c+) role
• OpenAPI {Swagger/JSON} doc available at
/ords/hr/_/db-api/latest/metadata-catalog/openapi.json
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Configuring User for DB API
Option #1, Mid Tier User:
Option #2, DB User:
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
API Docs
Oracle Docs Swagger.JSON Mounted to API
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Example: All Invalid Objects - Docs
• Find the right end point
• Try it out
6
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Example: All Invalid Objects – Method + URL
GET http://localhost:8080/ords/hr/_/db-api/latest/database/objects/
• ORDS is running Standalone localhost:8080/ords
• HR is the REST Enable Schema with DBA /hr
• DB API mounted to _/db-api
• Version of API /latest
– /latest or /stable => current version
– /19.1.0 => specific version
• Objects URI /database/objects/
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Example: All Invalid Objects - Response
{
"items": [
{
"owner": "SYS",
"object_name": "I_FILE#_BLOCK#",
"subobject_name": null,
"object_id": 9,
"data_object_id": 9,
"object_type": "INDEX",
"created": "2017-01-26T18:52:53Z",
"last_ddl_time": "2017-01-26T18:52:53Z",
"timestamp": "2017-01-26:13:52:53",
"status": "VALID",
"temporary": "N",
"generated": "N",
"secondary": "N",
"namespace": 4,
"edition_name": null,
"sharing": "NONE",
"editionable": null,
"oracle_maintained": "Y",
"application": "N",
"default_collation": null,
"duplicated": "N",
"sharded": "N",
"created_appid": null,
"created_vsnid": null,
"modified_appid": null,
"modified_vsnid": null,
"links": [
{
"rel": "self",
"href": "http://localhost:8080/ords/hr/_/db-api/19.1.0/database/objects/SYS,I_FILE%23_BLOCK%23"
}
]
},
DBA_OBJECTS in {JSON} with links to individual objects
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Example: All Invalid Objects - Paging
"hasMore": true,
"limit": 25,
"offset": 0,
"count": 25,
"links": [
{
"rel": "self",
"href": "http://localhost:8080/ords/hr/_/db-api/19.1.0/database/objects/"
},
{
"rel": "describedby",
"href": "http://localhost:8080/ords/hr/_/db-api/19.1.0/metadata-catalog/"
},
{
"rel": "first",
"href": "http://localhost:8080/ords/hr/_/db-api/19.1.0/database/objects/"
},
{
"rel": "next",
"href": "http://localhost:8080/ords/hr/_/db-api/19.1.0/database/objects/?offset=25"
}
]
}
Paged Results (default pagesize 25)
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Example: All Invalid Objects - Filtering
Getting ONLY Invalid Objects
Query Parameters on the URI
/ords/hr/_/db-api/19.1.0/database/objects/?q={"$eq":{"status":"INVALID"}}
New query is now
SELECT *
FROM DBA_OBJECTS
WHERE STATUS = ‘INVALID’;
Query Filtering Docs
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Example: Data Pump
• Inputs
– What directory?
– What type of export?
– How many threads?
– What are we exporting?
• Response
– Links to get status/log
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Example: Data Pump – Export 2 Tables in Local Schema (HR)
{
"datapump_dir": "DATA_PUMP_DIR",
"filter": "HOCKEY_STATS, UNTAPPD",
"job_mode": "TABLE",
"threads": 2
}
POST BODY Response
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Example: Data Pump – Resources Created
"links": [
…,
{
"rel": "related",
"href": "http://localhost:8080/ords/hr/_/db-api/19.1.0/database/datapump/jobs/HR,DATAPUMP_REST_EXPORT_20190105140710/EXPDAT-2019-05-01-14_07_11.LOG"
},
{
"rel": "self",
"href": "http://localhost:8080/ords/hr/_/db-api/19.1.0/database/datapump/jobs/HR,DATAPUMP_REST_EXPORT_20190105140710/"
}
]
Job Log File
The Job and its metadata
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Example: Data Pump – Log File
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Example: Data Pump – Job Details
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Example: Data Pump – Download the DMP!
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
Example: Data Pump – What it looks like in the database
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. |
What’s Next?
• OS Monitoring Endpoints (CPU, DISK, MEMORY, PROCESSES)
• DBCA
• Data Pump (complete)
Features Planned for CY2019
18

More Related Content

PPTX
REST Enabling your Oracle Database (2018 Update)
PDF
RPA Architecture
PPTX
Oracle Cloud Infrastructure Overview Deck.pptx
PDF
FIWARE Wednesday Webinars - NGSI-LD and Smart Data Models: Standard Access to...
PPTX
Microservices + Oracle: A Bright Future
PPTX
Reduce Amazon RDS Costs up to 50% with Proxies
PPTX
Oracle常駐接続プーリング(DRCP)を導入した話
PPTX
Oracle Cloud Infrastructure.pptx
REST Enabling your Oracle Database (2018 Update)
RPA Architecture
Oracle Cloud Infrastructure Overview Deck.pptx
FIWARE Wednesday Webinars - NGSI-LD and Smart Data Models: Standard Access to...
Microservices + Oracle: A Bright Future
Reduce Amazon RDS Costs up to 50% with Proxies
Oracle常駐接続プーリング(DRCP)を導入した話
Oracle Cloud Infrastructure.pptx

What's hot (20)

PPTX
Servicenow connector
PDF
Oracle Cloud Infrastructure
PDF
Standard Edition High Availability (SEHA) - The Why, What & How
PDF
NOsql Presentation.pdf
PDF
Ash architecture and advanced usage rmoug2014
PDF
Oracle db performance tuning
PDF
Stl meetup cloudera platform - january 2020
PDF
One PDB to go, please!
PPTX
Vanrish Mulesoft Integration architect ppt
PDF
DevSecOps : de la théorie à la pratique
PDF
Oracle on Azure IaaS 2023 Update
ODP
Introduction to OData
PDF
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
PDF
The Architecture of an API Platform
PDF
intro to DevOps
PPT
Adop and maintenance task presentation 151015
PPTX
API Integration: Red Hat integration perspective
PPTX
How to Handle DEV&TEST&PROD for Oracle Data Integrator
PDF
DBA Tasks in Oracle Autonomous Database
PPTX
Microsoft azure
Servicenow connector
Oracle Cloud Infrastructure
Standard Edition High Availability (SEHA) - The Why, What & How
NOsql Presentation.pdf
Ash architecture and advanced usage rmoug2014
Oracle db performance tuning
Stl meetup cloudera platform - january 2020
One PDB to go, please!
Vanrish Mulesoft Integration architect ppt
DevSecOps : de la théorie à la pratique
Oracle on Azure IaaS 2023 Update
Introduction to OData
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
The Architecture of an API Platform
intro to DevOps
Adop and maintenance task presentation 151015
API Integration: Red Hat integration perspective
How to Handle DEV&TEST&PROD for Oracle Data Integrator
DBA Tasks in Oracle Autonomous Database
Microsoft azure
Ad

Similar to Oracle Database Management REST API (20)

PPTX
RESTful Services for your Oracle Autonomous Database
PPTX
Oracle GoldenGate 18c - REST API Examples
PDF
Leveraging Open Source for Database Development: Database Version Control wit...
PPTX
Nonblocking Database Access in Helidon SE
PDF
MySQL Day Paris 2018 - MySQL JSON Document Store
PDF
MySQL 8.0 Introduction to NoSQL + SQL
PDF
Node.js and Oracle Database: New Development Techniques
PDF
Connector/J Beyond JDBC: the X DevAPI for Java and MySQL as a Document Store
PDF
MySQL Day Paris 2018 - What’s New in MySQL 8.0 ?
PDF
MySQL 8.0 - What's New ?
PDF
MySQL Connector/J in the Making of Modern Applications
PDF
A Practical Guide to Hypermedia APIs
PDF
Cdm mil-18 - hypermedia ap is for headless platforms and data integration
PDF
David Gómez G. - Hypermedia APIs for headless platforms and Data Integration ...
PDF
Oracle ADF Architecture TV - Design - ADF Service Architectures
PDF
Ams adapters
PPTX
Apache Ambari BOF - APIs - Hadoop Summit 2013
PDF
Oracle ADF Architecture TV - Design - Task Flow Overview
PPTX
Introduction to Hydra
PDF
JAX-RS 2.0: RESTful Web Services
RESTful Services for your Oracle Autonomous Database
Oracle GoldenGate 18c - REST API Examples
Leveraging Open Source for Database Development: Database Version Control wit...
Nonblocking Database Access in Helidon SE
MySQL Day Paris 2018 - MySQL JSON Document Store
MySQL 8.0 Introduction to NoSQL + SQL
Node.js and Oracle Database: New Development Techniques
Connector/J Beyond JDBC: the X DevAPI for Java and MySQL as a Document Store
MySQL Day Paris 2018 - What’s New in MySQL 8.0 ?
MySQL 8.0 - What's New ?
MySQL Connector/J in the Making of Modern Applications
A Practical Guide to Hypermedia APIs
Cdm mil-18 - hypermedia ap is for headless platforms and data integration
David Gómez G. - Hypermedia APIs for headless platforms and Data Integration ...
Oracle ADF Architecture TV - Design - ADF Service Architectures
Ams adapters
Apache Ambari BOF - APIs - Hadoop Summit 2013
Oracle ADF Architecture TV - Design - Task Flow Overview
Introduction to Hydra
JAX-RS 2.0: RESTful Web Services
Ad

More from Jeff Smith (20)

PPTX
Oracle REST Data Services: POUG Edition
PPTX
Oracle SQL Developer Tips and Tricks: Data Edition
PPTX
Change Management for Oracle Database with SQLcl
PPTX
Oracle SQLcl: Formatting your Query Results
PPTX
Debugging PL/SQL from your APEX Applications with Oracle SQL Developer
PPTX
Oracle REST Data Services: Options for your Web Services
PPTX
Oracle SQL Developer Data Modeler - for SQL Server
PPTX
What's New in Oracle SQL Developer for 2018
PPTX
Oracle SQL Developer: You're Doing it Wrong!
PPTX
Social Media - Why a Database Person Should Care
PPTX
Oracle SQL Developer Reports
PPTX
Oracle SQL Developer: 3 Features You're Not Using But Should Be
PPTX
Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks
PPTX
PL/SQL All the Things in Oracle SQL Developer
PPTX
Debugging PL/SQL with Oracle SQL Developer
PPTX
REST Enabling Your Oracle Database
PPTX
All of the Performance Tuning Features in Oracle SQL Developer
PPT
If You Oracle Then You Should Twitter Too
PPTX
SQLcl overview - A new Command Line Interface for Oracle Database
PPTX
Oracle SQL Developer for SQL Server?
Oracle REST Data Services: POUG Edition
Oracle SQL Developer Tips and Tricks: Data Edition
Change Management for Oracle Database with SQLcl
Oracle SQLcl: Formatting your Query Results
Debugging PL/SQL from your APEX Applications with Oracle SQL Developer
Oracle REST Data Services: Options for your Web Services
Oracle SQL Developer Data Modeler - for SQL Server
What's New in Oracle SQL Developer for 2018
Oracle SQL Developer: You're Doing it Wrong!
Social Media - Why a Database Person Should Care
Oracle SQL Developer Reports
Oracle SQL Developer: 3 Features You're Not Using But Should Be
Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks
PL/SQL All the Things in Oracle SQL Developer
Debugging PL/SQL with Oracle SQL Developer
REST Enabling Your Oracle Database
All of the Performance Tuning Features in Oracle SQL Developer
If You Oracle Then You Should Twitter Too
SQLcl overview - A new Command Line Interface for Oracle Database
Oracle SQL Developer for SQL Server?

Recently uploaded (20)

PDF
Transforming Manufacturing operations through Intelligent Integrations
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPT
Teaching material agriculture food technology
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PDF
Electronic commerce courselecture one. Pdf
PPTX
Cloud computing and distributed systems.
PDF
Advanced Soft Computing BINUS July 2025.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Advanced IT Governance
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
madgavkar20181017ppt McKinsey Presentation.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Transforming Manufacturing operations through Intelligent Integrations
NewMind AI Weekly Chronicles - August'25 Week I
20250228 LYD VKU AI Blended-Learning.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
Chapter 3 Spatial Domain Image Processing.pdf
Teaching material agriculture food technology
GamePlan Trading System Review: Professional Trader's Honest Take
Electronic commerce courselecture one. Pdf
Cloud computing and distributed systems.
Advanced Soft Computing BINUS July 2025.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Per capita expenditure prediction using model stacking based on satellite ima...
Advanced IT Governance
Spectral efficient network and resource selection model in 5G networks
madgavkar20181017ppt McKinsey Presentation.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf

Oracle Database Management REST API

  • 1. Copyright © 2019 Oracle and/or its affiliates. All rights reserved. | Oracle Database Management REST API Jeff Smith Senior Principal Product Manager [email protected] || @thatjeffsmith Database Tools, Oracle Corp 1
  • 2. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | At a Glance • Manage & Monitor your Oracle Database • Supports 11gR2, 12, 18, & 19c • REST Endpoints backed by ORDS • General, Data Dictionary, Monitoring, Performance, & PDB Lifecycle Management • Database User Authentication via REST Enabled Schemas 2
  • 3. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Getting Started • Install ORDS 19.1 or higher and configure your database • Enable the DB API • REST Enable an ADMIN Schema w/DBA (11g) or PDB_DBA (12c+) role • OpenAPI {Swagger/JSON} doc available at /ords/hr/_/db-api/latest/metadata-catalog/openapi.json
  • 4. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Configuring User for DB API Option #1, Mid Tier User: Option #2, DB User:
  • 5. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | API Docs Oracle Docs Swagger.JSON Mounted to API
  • 6. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Example: All Invalid Objects - Docs • Find the right end point • Try it out 6
  • 7. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Example: All Invalid Objects – Method + URL GET http://localhost:8080/ords/hr/_/db-api/latest/database/objects/ • ORDS is running Standalone localhost:8080/ords • HR is the REST Enable Schema with DBA /hr • DB API mounted to _/db-api • Version of API /latest – /latest or /stable => current version – /19.1.0 => specific version • Objects URI /database/objects/
  • 8. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Example: All Invalid Objects - Response { "items": [ { "owner": "SYS", "object_name": "I_FILE#_BLOCK#", "subobject_name": null, "object_id": 9, "data_object_id": 9, "object_type": "INDEX", "created": "2017-01-26T18:52:53Z", "last_ddl_time": "2017-01-26T18:52:53Z", "timestamp": "2017-01-26:13:52:53", "status": "VALID", "temporary": "N", "generated": "N", "secondary": "N", "namespace": 4, "edition_name": null, "sharing": "NONE", "editionable": null, "oracle_maintained": "Y", "application": "N", "default_collation": null, "duplicated": "N", "sharded": "N", "created_appid": null, "created_vsnid": null, "modified_appid": null, "modified_vsnid": null, "links": [ { "rel": "self", "href": "http://localhost:8080/ords/hr/_/db-api/19.1.0/database/objects/SYS,I_FILE%23_BLOCK%23" } ] }, DBA_OBJECTS in {JSON} with links to individual objects
  • 9. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Example: All Invalid Objects - Paging "hasMore": true, "limit": 25, "offset": 0, "count": 25, "links": [ { "rel": "self", "href": "http://localhost:8080/ords/hr/_/db-api/19.1.0/database/objects/" }, { "rel": "describedby", "href": "http://localhost:8080/ords/hr/_/db-api/19.1.0/metadata-catalog/" }, { "rel": "first", "href": "http://localhost:8080/ords/hr/_/db-api/19.1.0/database/objects/" }, { "rel": "next", "href": "http://localhost:8080/ords/hr/_/db-api/19.1.0/database/objects/?offset=25" } ] } Paged Results (default pagesize 25)
  • 10. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Example: All Invalid Objects - Filtering Getting ONLY Invalid Objects Query Parameters on the URI /ords/hr/_/db-api/19.1.0/database/objects/?q={"$eq":{"status":"INVALID"}} New query is now SELECT * FROM DBA_OBJECTS WHERE STATUS = ‘INVALID’; Query Filtering Docs
  • 11. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Example: Data Pump • Inputs – What directory? – What type of export? – How many threads? – What are we exporting? • Response – Links to get status/log
  • 12. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Example: Data Pump – Export 2 Tables in Local Schema (HR) { "datapump_dir": "DATA_PUMP_DIR", "filter": "HOCKEY_STATS, UNTAPPD", "job_mode": "TABLE", "threads": 2 } POST BODY Response
  • 13. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Example: Data Pump – Resources Created "links": [ …, { "rel": "related", "href": "http://localhost:8080/ords/hr/_/db-api/19.1.0/database/datapump/jobs/HR,DATAPUMP_REST_EXPORT_20190105140710/EXPDAT-2019-05-01-14_07_11.LOG" }, { "rel": "self", "href": "http://localhost:8080/ords/hr/_/db-api/19.1.0/database/datapump/jobs/HR,DATAPUMP_REST_EXPORT_20190105140710/" } ] Job Log File The Job and its metadata
  • 14. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Example: Data Pump – Log File
  • 15. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Example: Data Pump – Job Details
  • 16. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Example: Data Pump – Download the DMP!
  • 17. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Example: Data Pump – What it looks like in the database
  • 18. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | What’s Next? • OS Monitoring Endpoints (CPU, DISK, MEMORY, PROCESSES) • DBCA • Data Pump (complete) Features Planned for CY2019 18