Submitted by dave on Fri, 10/07/2011 - 11:45
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. - Dursan @ Stack Overflow
Submitted by dave on Mon, 10/03/2011 - 14:53
Ever had a customer asking about the growth of a table? Or suspect an execution plan change might be because of an influx of data into a table?
Well you are in luck (maybe!).
Oracle 10g and 11g have a months worth of historical statistics stored by default. Before stats are gathered for a table their current values are written off into SYS.WRI$OPTSTAT_TAB_HISTORY table.
Submitted by dave on Tue, 09/27/2011 - 12:54
"The TPC-DS benchmark models the decision support system of a retail product supplier, including queries and data maintenance. Although the underlying business model of TPC-DS is a retail product supplier, the database schema, data population, queries, data maintenance model and implementation rules have been designed to be broadly representative of modern decision support systems."
Submitted by dave on Wed, 09/14/2011 - 15:12
Was cruising StackOverflow today looking for interesting Oracle questions and noticed a DBA specific Stack has been started - it lives at http://dba.stackexchange.com/.
It is database agnostic but I love the Stack setup and the helpful people it attracts. You can filter by Oracle and create an RSS feed on that filter if you aren't interested in going back to the site periodically to find topics you might be interested in.
Submitted by dave on Tue, 09/13/2011 - 15:04
When trying to debug for another user sometimes it is helpful to be able to log in as that user. In the past magic was done by admins by storing the encrypted passwords, setting to a new temporary password, logging in, and then resetting the old encrypted password back.
Luckily modern Oracle versions we have the concept of a Proxy user. This allows connecting as one user but masquerading as another user (once proper permissions have been granted of course).
So far I have done this with SQL Developer and SQLPLUS, instructions are below for a test case.
Submitted by dave on Tue, 08/30/2011 - 10:57
Submitted by dave on Tue, 07/26/2011 - 14:30
I recently got this error while trying to run a SQL Tuning Task against a SQL statement that was available in AWR but not currently in the library cache.
I got around it by locating the SQL in OEM and using SQL Worksheet to execute it:
Submitted by dave on Wed, 06/08/2011 - 16:34
Business logic. Sometimes it lives in the application, sometimes it lives in the database. I'll save the application/db argument for each individual case that I encounter. But if you do have significant business logic in your database, there will probably come a time when someone wants to incorporate some of that logic into a query they are writing.
I am often asked to improve the speed of queries that have User Defined Functions (UDF) in the where clause. Sometimes I am successful at tuning them, sometimes a major structural or logic change is required to get good performance.
Submitted by dave on Thu, 01/27/2011 - 22:21
Oracle is supplying some ready-to-run downloadable VMs including Operating Systems, OSes with Oracle already installed and ready-to-run RAC systems. I was hoping to leverage these to save some time for sandbox environments but from what I have seen so far they are only for the enterprise level Oracle VM product. I only have the horsepower to run Oracle VirtualBox which is their workstation level product. It seems they use different formats for each product and while it may be possible to convert VMs backs and forth, I'm just not up for it right now.
Submitted by dave on Sat, 12/25/2010 - 22:48
If you have a need to diff tables in schemas and databases you might want to check out Diff Kit
It looks to be a little bit heavier duty than a standard MINUS/UNION query but it looks like it will talk to Oracle, MySQL, DB2 or any JDBC data source.
From the website: