Oracle SQL Developer for the DBA

Post on 15-Jul-2015

5,749 views 1 download

Tags:

transcript

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Oracle SQL DeveloperFor the DBA

Jeff SmithJeff.d.smith@oracle.com || @thatjeffsmithSenior Principal Product ManagerDatabase Development Tools Group

Oracle Confidential – Internal/Restricted/Highly Restricted

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Oracle SQL Developer Overview

Database IDE

4 Million+ Users Worldwide

Windows, OS X, *NIX

Third Party Database Migrations

Data Modeling, Design

Oracle REST Data Services (ORDS) Interface

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Version 1.1 – 2006

Version 1.2 - 2007

Version 1.5 - 2008

Version 2.1 - 2009

Version 3.0 - 2011

Version 3.1/3.2 - 2012

Version 4.0 - 2013

Version 4.0.3 – 2014

Version 4.1 - Production

History of Database Administration Features

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

1. Manage DatabaseWhere We Started

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Where We Started2. Reports

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

• Accessed from the View menu

• Add Existing Connections

• Intended for HIGHLY privileged users

Where We Are NowThe DBA Panel, debuted in v3.1

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Database ConfigurationSee AND Change Stuff

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Database StatusJust the basics

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Database StatusRefreshing reports is boring, can’t you do something better?

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

No:

agents

DB objects

alerts

history

$$$

Database StatusDB Instance

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

• No SYS

• Will show currently executing jobs

Data PumpWizards for Export & Import

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Data PumpCurrent Job Running

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Data Pump – Scheduled JobsIn the Connections Tree

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

PerformanceAdded in version 4.0

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

The Blog Post

PerformanceLet’s Do Some Demo

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

“This will create the database jobs and server directory and scripts required to kick off RMAN backup and recovery operations initiated from SQL Developer.”

• Requires a SchedulerCredential

RMAN – Kick off Backup & Recovery Actions from the ClientConfiguring RMAN Actions

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

When I hit ‘Apply’ a new ‘SQLDEV_JOB_XXXXXX.sh’ script is written to the server and EXECUTED.

The work will get logged to a file of the same name (with a .LOG suffix), and you’ll see a ‘BUSY’ throbber widget in SQL Developer telling you the job is running.

When it’s finished you can check the log directly in SQL Developer.

RMAN ActionsWhat we put on the server

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Resource ManagersPrevent users from hogging all the resources

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

SchedulerAdmin stuff, like defining Windows

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

• Auditing!

• Configure Settings

• View Audit Trails

1. Logins

2. Privs

3. Objects

4. Statements

SecurityUsers, roles, passwords – all that stuff, but ALSO:

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

StorageTablespaces, temp, archive logs…

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

• Oracle Multitenant Support

– Manage Pluggable Databases

• Data Redaction

– Manage Redaction Policy

• SQL Translation Framework

– Translating non-Oracle SQL to SQL

Database 12c Feature Support

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

• Container Databasemanagement

• Accessed via theDBA panel

• Available in version3.2.20.09 and higher

Multitenant

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

ALTER PLUGGABLE DATABASE PDB2_CLONE UNPLUG INTO ‘PDB2_CLONE.XML’;DROP PLUGGABLE DATABASE PDB2_CLONE KEEP DATAFILES;

Plugging stuff…

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Copy/Move up to Oracle Cloud Service

• Packs up PDB

• Chunks it up to our Database Public Cloud Service

• View Progress as it goes up

• Automatically Plugged in & Started Up

• Connect immediately (setup SSH Tunnel)

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

RedactionOne policy per table

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

SQL Translation FrameworkInstall translator from SQL Developer

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

SQL Translation FrameworkManage Translations via the Profile

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

• Tune your application SQL w/o changing the source code?

What else could this be used for?Substitute SQL when it comes in from the application

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

• Real Time SQL Monitoring

• Monitor Sessions

• Database Diff– Side by side comparison

between source and target

• Reports

–Data Dictionary Views

–Quality Assurance, Grants/Privileges, Sessions

–User Defined – Customize and Share Reports

Database AdministrationOther stuff not in the DBA Panel

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Wait! One more thing…Something that’s not GUI?

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

• SQL Developer on OTN– www.oracle.com/sqldeveloper

• Feature Exchange– sqldeveloper.oracle.com

• Forums– https://forums.oracle.com/forums/forum.jspa?forumID=260

• Oracle Learning Library– www.oracle.com/oll

SQL Developer Resources

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |