More Fun with Data Modeler Diagrams

thatjeffsmith SQL Developer 6 Comments

Everyone likes pictures. Generate a report without any pictures, graphs, or charts and see how many ‘likes’ you get at work. Everyone gets excited about data modeling, and in some circles, folks think that data models are synonymous with diagrams. But really, the diagram is just the ‘pretty picture’ you add to your office report. Don’t get me wrong, these …

Adding Common Columns to Tables via Templates and Transformation Scripts

thatjeffsmith SQL Developer 10 Comments

In Oracle SQL Developer Data Modeler, you can create a table in your relational design that stores columns that you want to be added to all of your other tables. Call it, ‘table_template.’ Now call the transformation script. Tools > Design Rules & Transformations > Transformations. Before After These are cool, but they don’t belong in my Logical model! So …

Are Invisible Columns Really Invisible?

thatjeffsmith SQL Developer 2 Comments

Today’s question: How are invisible columns treated with DESC, INFO and the GUI equivalent? Super quick, an INVISIBLE column is one that the user doesn’t see. They won’t be able to access it unless they know about it. Security by obscurity? No. Tom Kyte shows a few examples of the features usefulness, especially when adding columns to a table and …

‘Modeling’ View Dependencies in SQL Developer Data Modeler

thatjeffsmith SQL Developer 8 Comments

Today’s question: Please let me know how can I represent relation between view and base table in ER diagram created using sql datamodeler version4. So I know what the person is getting at here. They want to see the dependencies. Generally speaking, there are no actual relations between views and tables. Exception: you CAN define foreign key constraints on VIEWS, …

Adding Columns to a Table in SQL Developer Data Modeler: Honor Column Order?

thatjeffsmith SQL Developer 0 Comments

I have an employees table. Because it’s 1984, HR has decided we need to know Twitter handles, Facebook pages, and who knows what else. So let’s add it to our table. The dialog by default puts new columns at the bottom of the table. We’ll see why in just a moment. On a side note, we’re not super fond of …

Modeling Function Based Indexes in Oracle

thatjeffsmith SQL Developer 1 Comment

@thatjeffsmith Is there a way to define a function-based index in #SQLDevModeler? — Kent Graziano (@KentGraziano) October 29, 2014 Function based indexes [DOCS] have been part of Oracle Database since at least version 8. Instead of just indexing someone’s name, you could also index the values returned by a function call over that name. Example I just made up, and …

Importing Your Data Dictionary to a new Oracle SQL Developer Data Modeler Design

thatjeffsmith SQL Developer 6 Comments

I’ve shown how to drag and drop database tables from Oracle SQL Developer into a design. But I’ve never done a start-to-finish, blow-by-blow post on how to import your existing database objects into a data model with SQL Developer. So let’s do that now. Warning: Lots of pictures coming up. Want to import from SQL Server (or DB2) instead? Check …