Oracle VM Consulting
view counter

Feed items

DDL Triggers

A few weeks ago, there was a question about disabling TRUNCATEs. That can be easily done via a Trigger.

But you have to be careful about such triggers. Such a trigger can disable a TRUNCATE and raise an error. It will *not*, however, prevent a COMMIT.
Here's an example of such a trigger :

SQL> -- create a trigger that raises an error on truncates
SQL> create or replace trigger prevent_truncates
2 before truncate on schema
3 begin
4 raise_application_error(-20001,'TRUNCATE not permitted');
5 end;

How Are Students Learning Programming ?

A recent ComputerWorld article "How are students learning programming in a post-Basic world ?" (It should be BASIC, not Basic) reminds me of the time I first learnt programming.

Yes, with BASIC. When there were very few PCs in Ahmedabad.

Oracle APAC Developer Program

Oracle ACEs in this part of the world had a conference call with Oracle's Program Executive for the APAC Developer Program.

We were provided information about forthcoming DBA Round Table and Developer Day sessions. We were also given assurances that Oracle would continue supporting the ACE program and members.
Thank you, Shaheen.

OOW 2011 Content Catalog

The Oracle Open World 2011 Content Catalog is now available for viewing.


Inequality and NULL

A response recent forums question about handling an inequality condition also reminded me, once again, about NULL handling in Oracle.

You can have :

WHERE column = 100 

in a query.

In another query, you could have

WHERE column != 100 

However, if the column does contain a NULL in any one (or more rows), the union of the two queries is not the entire table. That is, rows with NULLs are excluded.
You have to specifically handle NULLs with either

SQL Injection

Here's a very simple example of SQL Injection by Mike Smithers.


New Presentation : On Nested Loop and Hash Join

I have uploaded a new presentation on Nested Loop and Hash Joins. This is based on the "Nested Loops and Consistent Gets" case study.


view counter