The Data Warrior

Changing the world, one data model at a time. How can I help you?

Archive for the tag “Oracle”

Countdown to KScope: Oracle Education, Fitness and More

It’s almost here: the best education event for Oracle developers – the Oracle Development Tools User Group KScope12 conference.

It starts Saturday June 23rd with the annual community service day helping out the Boy’s and Girl’s Club of San Antonio.

Then things really get rolling on Sunday June 24th with the famed all-day, in-depth symposiums.

One Monday, the main sessions kick things into high gear.

This year I am lucky enough to give two presentations on my favorite topics.

On Monday June 25 from 10:00 am – 11:00 am, I will present Introduction to Data Vault Modeling for an Oracle BI Environment. 

Then on Thursday June 28, from 10:30 am – 11:30 am, you can close out the conference by attending my presentation on SQL Developer Data Modeler: Reverse Engineering (and Re-engineer) an Existing Database Using Oracle SQL Developer Data Modeler.

If you are using the KScope app, don’t forget to add these sessions to your schedule and then check in during the sessions to be eligible for  some special ODTUG prizes.

Of course there will be networking events, a vendor hall, food and fun.

With all the good food and sitting in intense sessions all day, it is important that we all do our best to stay fit. To help with that, I will again be leading a 30 minute Chi Gung session every morning at 7 AM on the main lawn.

Really – anyone can do it. Read my article here for details.

Come out and join me to get your day off to a calming start so you can focus on getting the most out of your day at Kscope12.

And don’t forget to follow me on twitter @KentGraziano. I will be tweeting live and posting pictures all week from the conference.

See you in San Antonio. Giddy Up!

-Kent

Quick Tip: Adding a Custom Design Rule to Oracle Data Modeler

As most of my readers know, I use Oracle’s SQL Developer Data Modeler to do all my data modeling.

It has a lot of great features that are documented online in various places. One of those is Design Rules.

Design Rules (Tools -> Design Rules -> Design Rules) include a host of predefined quality checks on many of the objects created in a data model. This includes entities, attributes, relationships, tables, columns, constraints, indexes, etc.

You select the rules, or group of rules, and hit “apply”. The rules then check your model and tell you, object by object, if there are any issues.

Some issues are warnings. Others show up as errors. A error generally means that if you try to create DDL, that DDL will fail when you try to execute it an Oracle database.

One nice feature is that you can double click on a highlighted issue and go directly to the object with the issue so you can fix it.

An example of a design rule check is the length of the table name. Oracle still has a limit of 30 characters (Why????)  on object names, so there are design rules to check for that.

Pretty useful really.

For the Data Vault model I am currently building, we are trying to generate lots of stuff based on the table name (i.e., surrogate key sequence and some PL/SQL load procedures, but that is a much longer story). As a result we discovered we need to limit the table names to 26 characters because we need to use the table name as a root that has prefixes and suffixes added in certain cases.

Too bad the built in design rule is set to 30.

And there is no way to modify that built in rule (verified on the OTN Forum).

So the solution is to create a Custom Rule (Tools -> Design Rules -> Design Rules). The intrepid Philip from the Oracle development team kindly provided me with the base code to create the rule I needed. I was able to take his code, and use the one custom rule that comes delivered as a template, to make a new rule that did the check I wanted.

Here is the code:

var ruleMessage;
var errType;
var table;
//define
function checkName(table){
result = true;
ruleMessage=””;
if(table.getName().length()>26){
ruleMessage=”Table name over 26 characters”;
errType=”Error”;
return false;
}else{
return true;
}
}
//invoke it
checkName(table);

I won’t explain the code (you can figure that out if you like), but it does work as I wanted, so I am a happy camper. 🙂

Now after I add new objects to the model (e.g., hubs, links, satellites), I just run this rule to find any that are too long. Then I fix the table name and reapply my constraint naming standards (another very useful and simple utility in the tool). After that I can generate the DDL and build the objects in the db, then re-run our code generator.

If you have not looked at the features of SDDM, time to look.

Happy Modeling!

– Kent

P.S. To see more article about SDDM, check out Jeff Smith’s blog (in my blog roll).

P.P.S. Don’t forget to follow me on twitter @KentGraziano. I retweet a lot of Jeff’s article there. 😉

Alert would-be Oracle Warriors: Chi Gung in San Antonio

As many of you now by now I will be presenting several sessions at the ODTUG annual conference, KScope, this coming June in San Antonio, Texas.

What you may not know is that I will also be conducting 30-minute Chi Gung sessions in the morning before the events of the day start as part of the KScope12 Fun Factor activities.

Why you may ask?

In short, because even geeks need to exercise to live long (and prosper).

Plus this type of moving meditation is just what the doctor ordered to help you de-stress and (mentally) get away from your daily IT routine. (I have written a bit more on this here and here)

So as some motivation for you to join me doing Chi Gung (in the cool part of the day!) check out this video of a guy Exercising Around the World.

If you like that video and a really motivated, check out his web site at NerdFitness.

At KScope11 in Long Beach, we did it everyday and had at least 20 people each morning. It was a lot of fun.

Here are a few of the comments I received about the sessions:

“Kent organized the Chi Gung class at this years ODTUG KScope 2011 event, which was very enjoyable. A very relaxing way to start the day. Kent explained the exercises very clear, which made it easier to follow for first time practitioners.” 

“Kent proivided Chi Gung sessions to supplement an IT conference. It was a great way to set us up for the day and it was great fun. Ken was patient and yet educational, repeating the main concepts each day for new people. I attended for 5 consecutive days and would have loved to have done more” 

No previous martial arts or meditation experience required!

Let’s join the revolution and become fit and healthy Oracle Nerds and Geeks!

Tell me in the comments how you are becoming a fitter, healthier Oracle geek.

Then meet me in San Antonio for some moving meditation, relaxation, and fun.

Kent

Oracle User Groups: Are you a member?

I love user groups.

Getting introduced and involved in them has made a huge difference in my career. If it was not for all the people I have met in the last 22+ years, my career, and life, would have been very different.

I have met hundreds (maybe thousands) of amazing people both from within Oracle Corp and outside. Many of them became, and remain, my friends. Which is why we all love to get together several times a year at various user group and industry events to catch up, exchange wars stories, and learn new things.

Right now, I am starting to prepare for one of my favorites – ODTUG KScope. I will be there presenting in June and  running my popular Morning Chi Gung class for the 2nd year in a row.

If you have not registered, get to it! Rooms are going fast and you want to be sure to stay at the conference resort (yes – resort, not hotel!).

And on the ODTUG front, they have just announced you can now join for just $99 a year. That is the best value you can find for the world’s best Oracle user group for Developers.

So are you in? Are you at member of at least one user group?

What? You don’t know which one to join?

Then check out this new cool site Oracle just put up with videos from some of the user group leaders. After that, check out their new User Group Central with information about Oracle user groups around the globe.

So get out there and meet some new people and learn some new things.

Come to KScope12.

Join a user group.

See you in San Antonio.

Kent

P.S. Don’t forget to submit an abstract for Oracle OpenWorld before the deadline passes. It will get you a free pass to the show (worth over $2000). Tell’em ODTUG and the Oracle Data Warrior sent you.

Ready or Not – It’s Time to Submit an Abstract for Oracle Open World 2012

Yup, it sneaks up on you pretty fast.

Seems like only a few weeks ago I was in San Francisco at OOW 2011, and now it is already time to think about what to present in September.

This year, Oracle OpenWorld will take place September 30-October 5 at the Moscone Center, San Francisco.

If you are ready to go, the call for papers is here.

Important Date:

The Call for Papers will close at 11:59 p.m. PDT on Monday, April 9.

Not a lot of time to submit.

Again this year I am the OOW Content Coordinator for the Oracle Development Tools User Group (ODTUG), so I will be one of the people reviewing your submission.

If you are an ODTUG member and want to represent ODTUG at OOW 2012, this is your chance! On the abstract submission form, there are two user group related questions you need to answer.

First, be sure to indicate that you are a member of a user group.

Second indicate that you belong to or are submitting on behalf of Oracle Development Tools User Group. 

If you do not indicate ODTUG, we (well, me and a few others) will not be able to see your abstract or review it.

I hope you will take advantage of this opportunity to share your knowledge, experiences, and solutions with other developers. I look forward to reviewing the abstracts submitted by the ODTUG experts.

Key Point: If your abstract is accepted, you will receive a complimentary registration to Oracle OpenWorld (worth over $2,000 ).

Even if you do not want to present, you can learn more about OpenWorld here.

So start writing that abstract and submit before April 9th.

See you in San Francisco!

Kent

Post Navigation