Can I Get That as a PDF or Excel File Can I Get That as a PDF or Excel File? How SQL Developer’s Reports Can Help Susan Schaefer, Data Warehouse Analyst sqschaefer@gmail.com UTOUG Training Days 2018
Department’s Technology Who is this Person Graduated Idaho State University (2013) Data Warehouse Analyst Trial and Error Professional BI SIG Co-Chair Older Twin Department’s Technology Oracle 12c SQL Developer 17.4 Tableau 10.5 UTOUG Training Days 2018
SQL Developer Reports: Pre-Defined Reports Data Dictionary Data Modeler OLAP TimesTen User Defined Reports https://docs.oracle.com/database/sql-developer-17.4/RPTUG/RPTUG.pdf UTOUG Training Days 2018
Data Dictionary Reports: About Your Database All Objects PLSQL Application Express Scheduler ASH and AWR Security Database Administration Streams Data Dictionary Table Oracle REST Data Services XML https://docs.oracle.com/database/sql-developer-17.4/RPTUG/RPTUG.pdf UTOUG Training Days 2018
All Objects: Invalid Objects UTOUG Training Days 2018 Data Dictionary All Objects – All Objects: 1) Use’s sys.all_objects table 2) Formats it to a more readable view 3) Can customize report with bind variables to make it more useful. 4) Bind report to look at specific ‘Owners’ or Object_Types UTOUG Training Days 2018
Database Administration>All Tables: All Tables > Comments All Tables > Tables with Comments Data Dictionary Database Administration – All Tables - Comments: 1) Use’s sys.dba_tab_comments table 2) Tables with Comments (Double check reports so that you don’t do the work that is already done.) UTOUG Training Days 2018
PLSQL Program Unit Arguments Search Source Code Unit Line Counts Data Dictionary – PLSQL sys.all_source Uses: Finding procedures others have written but not documented When major changes are made to the database –fieldname updated or data values change - can check to see if this change will impact procedures Note: Similar report could be made for views and other objects to check how changes will affect things UTOUG Training Days 2018
Security Auditing Encryption Grants and Privileges Policies Public Grants Redaction Data Dictionary – Security sys.all_tab_privs Database cleanup or audits UTOUG Training Days 2018
User Defined Reports: UTOUG Training Days 2018 Table Chart – Aren’t pretty but can get the job done for internal use Gauge – Low High or Min Max graphs for each row Code – Script – PL/SQL DBMS Output - UTOUG Training Days 2018
Different Chart Options: Bar Pie Stock Line Polar Area Radar Combination Pareto Scatter Funnel Bubble 3D UTOUG Training Days 2018
Editing/Updating Reports: SQL Query SQL Query – Import SQL or Write SQL Bind variables needs to be written in the SQL Query section Binds sections shows what fields are currently being used Binds UTOUG Training Days 2018
Data Dictionary, Okay. Anything Else? Incentive Model Example: College receive a portion of their funding based of certain criteria. Tableau shows the aggregated results but to get to the underlying is difficult. Reports allows for you to go from an aggregate view to a more granular view. UTOUG Training Days 2018
Adding Child Reports: Child Reports Relates to parent report Where clause – Bind Variable WHERE college = :COLLEGE Child Reports: Remember bind variables are case sensitive so you need to have the parent reports field capitalized Child Reports – Can create multi-generational reports by editing the XML. More information on this subject can be found on thatjeffsmith’s blog https://www.thatjeffsmith.com/archive/2012/09/grandparent-parent-child-reports-in-sql-developer/ UTOUG Training Days 2018
Child Reports Cont.: What about charts ? UTOUG Training Days 2018 Child Reports: Remember bind variables are case sensitive so you need to have the parent reports field capitalized. For charts Bind variable needs to be in on of the charts fields. For example when using the bar chart I need to use EMPLID in either the group, series or value fields. UTOUG Training Days 2018
Child Reports Cont.: UTOUG Training Days 2018 Child Reports: Remember bind variables are case sensitive so you need to have the parent reports field capitalized Need to make sure to have the bind variable as one of the chart options. So for a line or bar chart it should be a Group or Series. UTOUG Training Days 2018
Child Reports Cont.: UTOUG Training Days 2018
Drill Downs: Being able to bring up database objects Limited to the navigator node http://www.oracle.com/technetwork/articles/cunningham-sqldev-092226.html UTOUG Training Days 2018
Drill Downs Continued: Code in the drill down logic Use the editor options UTOUG Training Days 2018
Drill Downs Continued: UTOUG Training Days 2018
XML Option: XML file UTOUG Training Days 2018
XML Option cont. - Sharing: Sharing Reports - Helping with Version Control Tools > Preferences > Database > User Defined Extensions UTOUG Training Days 2018
PDFs: Not Pretty UTOUG Training Days 2018 Basic Modifications to PDFs: Cell Layout – Cells larger or orientation of the values in the cell (text wrap) Column Layout – Headers, Font, Sizing, Color Table Layout – Shading and Bordering, Coloring Rows, Spacing Before and After Tables Adding a Header and Footer Page Layout – Margins and orientation UTOUG Training Days 2018
Ready for the Web - HTML: UTOUG Training Days 2018
HTML Cont.: UTOUG Training Days 2018
HTML Cont.: UTOUG Training Days 2018
Is there more? PL/SQL DBMS Output UTOUG Training Days 2018
Questions??? UTOUG Training Days 2018