Oracle “sleep” procedure: DBMS_LOCK.SLEEP
There’s a nice little “sleep” procedure in Oracle: A procedure that stops the execution of the current thread for n seconds. Strangely, this method can be called in SQL*Plus like so: exec...
View ArticleOptimizing the Oracle Query Optimizer
The Oracle Query Optimizer does a great job in rewriting Queries. For example the nested subquery in SELECT C.cust_last_name, C.country_id FROM customers C WHERE EXISTS (SELECT 1 FROM sales S WHERE...
View ArticleOracle, JBDC, CallableStatements and named parameters
Update: Please take a note of comment #5 by DSurber. He works for Oracle and sheds some light on named parameters. In short: The names of the parameter do not refer to named placeholders in statement...
View ArticleHow to retrieve tables of custom object types with JDBC
The following is not only a personal reminder for me but also a first try to answer some questions on Stack Overflow… You can create custom object types in an Oracle database like so: CREATE TYPE...
View ArticleJava implementation of Excels statistical functions NORMINV
I was recently in need of a java implementation of the inverted normal distribution function, named “NORMINV” in Excel 2003 and later: NORMINV. I only found a JavaScript implementation in kmpm’s...
View ArticlePretty print XML data within Oracle Databases
Just a short post without further explanation. Pretty printing xml in Oracle 10g and 11g differences quite a bit: 10g: select XMLTYPE('Hallo, Welt.').extract('/') from dual; 11g: select...
View ArticleModify memory settings of the Oracle Aurora JVM
Use the following class to view and modify the settings of the embedded JVM inside an Oracle database. The class has been tested on 10g and 11g, memory settings and information are in Megabyte. SET...
View ArticleAn HTTP api for analytic queries
This post has been featured on This Week in Spring – November 8, 2016 and I’m so happy to be referred as “friend of the Spring community” So, you have read through the previous parts of this series (1,...
View ArticleOracle JET: JavaScript components for mere mortals?
The final post in this series is about adding a front end to the analytic queries created with jOOQ and published through Spring Boot / MVC throughout the previous posts: Database centric applications...
View ArticleAdd pluggable databases to Oracles Database Docker images
I recently needed a database including a huge schema for demo in a very short notice of time. I know know how to run expd/impd but that brings usually hassle regarding users, schemas and so on. As some...
View Article
More Pages to Explore .....