Submitted by dave on Sun, 06/30/2013 - 10:56
Due to some unforeseen circumstances I was unable to spend as much time as I would have liked at KScope13 in New Orleans but boy did I pack a lot into the 24 hours that I was there.
Submitted by dave on Thu, 05/30/2013 - 17:59
I have a case where I need to enforce uniqueness on a combination of columns but only when a flag is set (ACTIVE_FLAG=1). The table also holds history and may have multiple inactive records mixed in but I don't want to keep those from being added to the table.
This can be done by exploiting the fact that null index expressions are not indexed. DECODE and function based index to the rescue! Here is a quick proof of concept with the relevant columns:
Submitted by dave on Wed, 03/13/2013 - 18:06
I am throwing together a quickie Play Framework application for a DB process dashboard. I love Play. Its quick, powerful, and does a pretty good job of getting out of your way when you need it to.
But as a cutting edge open source app framework the documentation is sometimes a little behind the curve... Or assumes you are always using h2 for dev and mySQL for production.
Here are some tips on getting your new Play app to play nicely with Oracle via JDBC.
Make the JAR Available to your App
Submitted by dave on Sat, 12/22/2012 - 09:16
Yes, I tagged it with a '1' because I already know there are more to come :)
I created a notebook on this site to collect information about PowerDesigner. My first entry deals with basic script generation options for Oracle and how to get better scripts that are more error-free when the are generated by PowerDesigner.
You can check it out here:
Submitted by dave on Wed, 10/24/2012 - 23:50
Submitted by dave on Tue, 10/02/2012 - 12:25
I am evaulating some schema migration tools for a project I am working on. I want some basic help organizing scads of changes that we will make during development. I also want the ability to produce generic SQL scripts as output to pass along for review / execution by folks that are not knee deep in our development environment.
The SQL Script output requirement cut out a lot of options. For a comprehensive list of options check out the feature matrix on the Flyway page which compares 9 popular schema migration tools.
Submitted by dave on Thu, 08/09/2012 - 14:44
I posted an example of how to create an Application Express bar graph with the d3.js visualization toolkit in the Notebooks section of the site.
If you want to see how this can be done in Application Express, check out the page here: http://ba6.us/d3js_application_express_basic_dynamic_action .
Submitted by dave on Mon, 07/30/2012 - 13:02
I added a page to my SQL Developer Tips and Tricks page about integrating the Google Graph API with SQL Developer HTML reports.
I sometimes run out of steam with the built in chart and gauge capabilities of SQL Developer. With a little work you can leverage the Google Graph API to create Line, Bar, Pie Charts, Map, Scatter, Venn Diagrams, Radar Charts, QR Codes and Meters.
Here is everything you need to know to get started: SQL Developer and Google Graph API Example
Submitted by dave on Wed, 07/25/2012 - 13:03
I have been checking out some usage patterns on a database I am migrating to Exadata. I won't go into the 'drop all of the indexes' herd mentality... but I would like to know what is really being used on this system so we can make some educated guesses about what is really needed. Luckily it is a DW / ETL type of application that has a comprehensive nightly refresh. Yes, a nice way of saying flush and fill. Well at least I know they touch _every_ important object _every_ night.
Submitted by dave on Tue, 07/24/2012 - 12:01
... or just use SQLPLUS to spool to HTML and open with a browser if you are old school :)
I am on week 4 of my newly reimaged work laptop sans Toad. I am trying to make a go of things with SQL Developer only. So far so good. I have a more comprehensive post on my transition in the works but in the meantime I have been filling in some gaps with User Defined Reports. I started collecting them here: https://github.com/dmann99/SQLDevUDRepPack