On Running Oracle Scripts with Relative Paths

thatjeffsmith SQL Developer 2 Comments

A customer ‘ambushed me’ – how dare they!?! – at the conference today, needing help getting their scripts to work. So something like this: And the way the customer wants to run scripta.sql (which calls scriptb.sql) So, where is SQL Developer going to look for scriptA? And when it gets to the @child\scriptb.sql? We can call scripts.sql using @c:\users\jdsmith\desktop\parent\scriptA.sql But, …

Scripts – on Spooling and Output to Screen in Oracle SQL Developer

thatjeffsmith SQL Developer 4 Comments

When executing scripts in SQL Developer, the amount of output we display on the screen is LIMITED. By design, we only show you 5,000 records from any query, and we limit the amount of output in total for a single script execution to 10,010 rows. This is controlled here: I know what you’re thinking… Why? A few reasons, but practicality …

Custom SQLFORMATs with SQLcl

thatjeffsmith SQL Developer 8 Comments

When I make jokes about copying and pasting code from StackOverflow or Github, I’m not really joking. But in this case, it’s OK. Because, I’m copying and pasting code from OUR GitHub project, AND my boss wrote the code. A question came in, and it’s come in a few times, but here’s the most recent variant: @Rumtis no way – …

Extending Oracle SQL Developer Command Line (SQLcl) with JavaScript: Single Record Viewer

thatjeffsmith SQL Developer 5 Comments

Oracle SQL Developer Command Line (SQLcl) is the full name for what we’ve been calling, SQLcl. Have you seen the video? It’s only 8 minutes and will catch you up on just what SQLcl is. Anyways, there’s a ‘new’ command called SCRIPT that I want to show you today. I say ‘new’ because we added this in October of 2015. …

Having Fun With Prompts – and Saving Yourself from Mistakes

thatjeffsmith SQL Developer 2 Comments

In SQL Developer we have color coded connections. This was added, not because we like Christmas trees and all the pretty lights, but because sometimes you need a reminder of what database you’re on. So you don’t TRUNCATE stuff, accidentally. Visual cues won’t prevent all mistakes, but they sure help. With SQLcl, you have the abilty to setup your SQL …

SET PAUSE ON

thatjeffsmith SQL Developer 3 Comments

This has been around for a loooooong time. But after a short chat with @oraclebase AKA Tim Hall yesterday, I thought I’d make sure we’re doing things right in the SQLDev tooling. Tim uses it to make very nice, short, and sweet video demonstrations on his YouTube Channel. I highly recommend it. Anyways, back to PAUSE. SET PAUSE ON [DOCS] …