Here's a great way to put an infinite loop into your code.
Isn't that something you always wanted to do?:-)No, it's not. And I did that yesterday in my dev environment (well, of course, such a thing could never make it to production!). It is an enormous pain....
View ArticleA Roundup of New PL/SQL Features in Oracle Database 12c Release 2
I've been publishing Oracle Magazine articles, blog posts and LiveSQL scripts on new PL/SQL features in Oracle Database 12c Release 2Ā (there, are those enough hyperlinks?). As have others.I thought it...
View ArticleLatest UI for Oracle Dev Gym
As some of you may know, we've been working on a new "skin" for plsqlchallenge.oracle.com, one that is more modern and responsive, and that makes it easier to quickly take a quiz.The Oracle Dev Gym is...
View ArticlePlaying Championships on the Oracle Dev Gym
We've been designing a new, modern, responsive UI for the taking quizzes on Oracle Database. The "old" site is the PL/SQL Challenge. The new site is the Oracle Dev Gym.At the beginning of each year, we...
View ArticleTightening security in your PL/SQL code with 12c new features, part 1
Oracle Database 12c offers several enhancements to improve security in your PL/SQL program units. Ā These features include:Code-based access control: fine-tune access to database objects inside program...
View ArticleSpeed up execution of your functions inside SQL statements with UDF pragma
Oracle Database makes it easy to not only write and execute SQL from within PL/SQL, but also to execute your own user-defined functions inside SQL. Suppose, for example, I have built the following...
View ArticleWikileaks bombshell: PL/SQL source of all other modern programming languages!
CopyrightĀ @2017 CodeNewsWire "News coders can use", dateline 1 April 2017Wikileaks dumped its latest batch of revelations on the world on April 1, 2017, this time focusing on the world of software...
View ArticleDoes level 3 optimization change PL/Scope data? No!
I gave a webinar on April 6, 2017 for the Taste of Kscope17 series for ODTUG (odtug.com) on Change Impact Analysis with PL/Scope. Here are the slides from SlideShare. I will add a link to the video...
View ArticleDatabases for Developers class on Oracle Dev Gym: take it any time!
Chris Saxon, a Developer Advocate at Oracle,Ā has put together a 12 week "bootcamp" introduction to SQL. Each week consists of a short video, plus 3 quizzes. You probably won't need more than 30 minutes...
View ArticleTips for getting along with your DBA
Developers and DBAs: can't we all just get along?Sure we can!We just have to break out of the old routine ofDeveloper: Hey, DBA, add twelve indexes to make my code run faster!DBA: Hey, Developer, tune...
View ArticleDeterministic functions, caching, and worries about consistent data
A developer contacted me with the following questions last week:We have created a function that returns a single row column value form a query. When we call this function with the same input values it...
View ArticleGetting my Oracle Database 12c Release 2 up and running on Mac via Docker
I love to follow in the footsteps of people who are braver, smarter and more knowledgeable than me.So I was happy to wait till SQL Maria (Maria Colgan) published her blog post onĀ Oracle Database 12c...
View ArticleUse records to improve readability and flexibility of your code
Suppose I've created a table to keep track of hominids:CREATE TABLE hominids( hominid_name VARCHAR2 (100), home_territory VARCHAR2 (100), brain_size_cm INTEGER)/I might then write code like this:...
View ArticleMore 12.2 PL/Scope Magic: Find SQL statements that call user-defined functions
When a SQL statement executes a user-defined function, your users pay the price of a context switch, which can be expensive, especially if the function is called in the WHERE clause. Even worse, if...
View ArticlePL/Scope 12.2: Find all commits and rollbacks in your code
Yes, another post on PL/Scope, that awesome code analysis feature of PL/SQL (first added in 11., and then given a majorĀ upgrade in 12.2 with the analysis of SQL statements in PL/SQL code)!A question on...
View ArticleSo you want to write a technical book?
I received this question today:If I wanted to write a tech book, where/how would I start?Rather than provide an individual answer, I thought I'd answer on my blog. Here goes.First, how I answer this...
View ArticleWhat happens when a package fails to initialize? New behavior as of 12.1!
The best way to build applications on top of Oracle Database is to build lots of APIs (application programmatic interfaces) to your data with PL/SQL packages.And that means you end up with lots of...
View ArticleThree tips for getting started right with Oracle Database development
By "Oracle Database development", I mean, more or less, writing SQL and PL/SQL. I assume in this post that you have access to Oracle Database (which you can get via Cloud services, Docker, GitHub and...
View ArticleCOUNT Method Works Like COUNT in SQL
You are writing PL/SQL code to provide secure, high performance access to your data and implement business rules. [reference: Why Use PL/SQL?]Right? Good.And you use collections (associative arrays,...
View ArticleDocument deprecated program units with new pragma (12.2)
Software is constantly evolving: bugs fixed, new features added, and better ways to do things discovered and implemented. A great example of this dynamic from PL/SQL itself is the UTL_CALL_STACK...
View Article