view counter

PL/SQL Feed

Oracle PL/SQL (Procedural Language/Structured Query Language) resources, news, and support articles.

Pricing Efficiency

select *
from
cost_based_optimization;

DESCRIPTION
--------------------------------------------
The best way to generate SQL execution plans
Double-speak for "you're fired"

select posts from sqlfail

About unnecessary work with predicate “field=:bind_variable” where bind_variable is null

Although we know that in the case when we do select from a table and one of the predicates is “field=:bind_variable” and :bind_variable is null, we should not get the rows, oracle not always “think” the same and don’t add upper filter predicate “:bind_variable is not null”, so it can do unnecessary work. It is completely depends from a plan, which will be chosen. Of course this applies to other predicates like >, < or != too.

How to SFTP & FTP with Ant Tasks

I will explain, how you can send files using ANT scipt over SFTP protocol.

Until i find how to use sftp protocol, I googled also ftp protocol. I will explaint it firstly,

If you want to use FTP protocol, you may use tag of commons-net-1.4.1.jar. To do this :

Index Mangling Queries

select how_to_write_this_properly
from index_breaking_predictates
where trunc(i_want_all_the_times) =
to_date (:on_this_date, 'dd/mm/yyyy')
and the_numbers + 1 = :one_less_than_this
and instr(text, :starting_with_this) = 1;

HOW_TO_WRITE_THIS_PROPERLY
---------------------------------------------
where i_want_all_the_times >=
to_date (:on_this_date, 'dd/mm/yyy

Oracle – Emerging Technology trends and Innovation

Disclaimer – The views, thoughts and opinions expressed in the paper are my own and does not reflect of my current or last employers. Introduction Innovation is the need of the hour. Innovation walks through the storm of thoughts and lays down the platform for fresh efforts, stability and business.

A T-SQL Table Function

I had an interesting conversation about table functions in Oracle’s PL/SQL; and the fact that they’re not available in MySQL. When I explained they’re available in Microsoft T-SQL User-Defined Functions (UDFs), my students wanted a small example. One of them said they’d tried to do it but couldn’t get it to work because they found the Microsoft web pages difficult to read and use. Specifically, they didn’t like the sparseness of this one on how to create a function.

Get Your Data in Order

create table physically_ordered_data (
can_vastly_reduce_your_io integer,
and_reduce_buffer_cache_use integer,
when_querying varchar2(1)
default 'Y',
constraint on_the_leading_columns_of_the
primary key (
can_vastly_reduce_your_io,
and_reduce_buffer_cache_use
),
just_define_your_table_as integer
)

Deterministic function vs scalar subquery caching. Part 1

I recently did a comparison caching mechanisms of scalar subquery caching(SSC) and deterministic functions in 11.2. Unfortunately, I do not have enough time to do a full analysis, so I will post it in parts.

Results for Q4 2012 Championship

Thirty-two players competed in the Q4 2012 championship. This was our smoothest competition to date; only player experienced a minor problem and our reviewers did such a great job that no errors were found in our quizzes - a significant accomplishment given the complexity of the quizxes.

You will find below the rankings for the championship; the number next to the player's name is the number of times that player has participated in a championship.

Congratulations first and foremost to our top-ranked players:

view counter