Dave (130)

Dave

Freely Available Perl Resource - Modern Perl by Chromatic

Modern Perl by Chromatic is a freely available Perl eBook. It is a good resource for folks already familiar with programming that want to get up to speed quickly on Perl conventions and syntax. Previously I used to use a collection of OReilly books to…

Dave

Fixed Object Statistics

If you have a database where querying against v$ Performance views is painful, consider gathering Fixed Object Stats. Fixed objects are the 700+ X$ tables that feed a lot of these system and performance views. Fixed Object Stats are _not_ gathered by the default stats…

Dave

Why does my query have a MERGE JOIN CARTESIAN? 

Yes, the mention of Cartesian Joins usually makes a DBA's heart skip a beat. The cartesian joins caused by missing join conditions are definitely a pain to deal with - these are the types of joins that can "blow up" temp space and cause all…

Dave

Alexandria PL/SQL Library

I came across this PL/SQL page today which has pointers to a lot of interesting stuff you can do with PL/SQL. From the page: It includes a lot of things I never really figured I would need to do in PL/SQL, but it is nice…

Dave

Oracle bug announcement - the sky is not falling...

...well not yet... An Infoworld article was released today describing an Oracle vulnerability. The SCN space can be exhausted via bugs or attackers exploiting bugs. Metalink doc: 1376995.1 [Bulletin : Information on the System Change Number (SCN) and how it is used in the Oracle…

Dave

Diagnosing slow client processing of result sets...

Here are two runs of the same SQL from different programs. The top is an automated process, the bottom is Toad. (SQL is the same, but SQL_ID is different because of white space issues): So why is one finished in 7.2 minutes and one still…

Dave

Quick filter for Application Express Reports

I normally get a lot of mileage out of Application Express interactive reports. Unfortunately there are some restrictions on the SELECT statements that can be used with them. Here is a demonstration of a technique I use when I want to add some interactivity to…

Dave

Updated Developer Days Virtual Machine available...

I just noticed there is a 11gR2 version of the Developer Days VM available now. You can have a running copy of 11gR2, Oracle TimesTen In-Memory Database, Oracle XML DB, Oracle SQL Developer, Oracle SQL Developer Data Modeler, Oracle Application Express, Oracle JDeveloper, and Hands-On-Labs…

Dave

HAVING & Bind Variables

Had an odd one come across my desk today. I have seen Bind variables used in the WHERE clause thousands of times. I have seen Binds in the SELECT lists hundreds of times. I have seen it used in the HAVING clause zero times... until…

Dave

Speed up SQL Developer Startup

If you are using SQL Developer 2.x you can reduce your startup time by about 20% by disabling any unneeded extensions. I was able to reduce my startup time from 11 seconds to 8 seconds by turning off all extensions (none of which I really…

Dave

Golden Gate - OS User Permissions on *nix - DBA vs ETL Admin

Seems like Golden Gate is following me around. I used their tools in 2005 to replicate from OLTP databases to a central reporting database for my previous employer. Now that Oracle bought them the buzz in my current company is to leave Oracle's multiple and…

Dave

Test Driving the h2 Embedded Java Database

I'm starting work on some DB tuning utilities written in Java. I am running the utilities on my local machine against remote servers and I needed a way to hold some data locally. The volume of data I plan on storing is more than I…

Dave

SQL Tuning Advisor - what profile am I accepting?  

When working on a SQL Tuning issue I often kick off a SQL Tuning Advisor job on the SQL while I gather info about statistics and other things I like to check when tuning. After I get an idea of where performance might be suffering…

Dave

Q: How to find the last time a table is queried in Oracle

Question: I want to get the information about when a table is queried in oracle. Is there any log in oracle which shows the queries. I was looking around v$sqlarea and v$sqltext but, the system admin does not allow me to reach those tables. -…