ba6.us - Dave's Database Related Stuff

  • home
  • blog
  • notebooks
  • projects
  • recent
  • about
  • manifesto
  • !

Tag Cloud

apex Application Express Auditing data development funnies HTML Java linux monitoring oem oracle performance perl pl/sql rman scripting sql SQL Developer sqlplus tuning unix utilities windows
more tags

Search

RSS Feed

Blog Posts :

Navigation

  • Feed aggregator

User login

  • Request new password

Pointing a private database link at another database without knowing the password...sorta...

dmann — Tue, 03/27/2012 - 22:48

Pointing a private database link at another database without knowing the password...

Prerequisites:

  • SOURCEDBA source database which has a schema that owns a private database link
  • TARGETDB1, the original target database for the link
  • TARGETDB2, a clone of TARGET1 that was renamed to "TARGETDB2"

Why?

I have an application that I support that uses a pair of databases, one holds detail info and one holds summary info. Read more »

  • db links
  • proxy user
  • dmann's blog
  • Add new comment

Freely Available Perl Resource - Modern Perl by Chromatic

dmann — Tue, 03/27/2012 - 10:36

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 cover this territory but have replaced with 1 copy of Modern Perl (well with the exception of the Cookbooks, you will pry them out of my cold dead hands).

The PDF eBook is freely available via the website above, the hardcopy version is about $35 from major book retailers.

-Dave

  • ebook
  • free
  • perl
  • dmann's blog
  • Add new comment

Fixed Object Statistics

dmann — Tue, 03/06/2012 - 00:51

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 gathering procedures. They are not gathered at all unless you run the proc to gather them. In this case Oracle relies heavily on Dynamic Sampling… but that isn’t really a substitute for really gathering stats.
Read more »
  • performance
  • statistics
  • dmann's blog
  • Add new comment

Join them all...

dmann — Tue, 02/28/2012 - 00:06

  • fun stuff
  • join
  • dmann's blog
  • Add new comment

Why does my query have a MERGE JOIN CARTESIAN?

dmann — Thu, 02/16/2012 - 23:57

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 types of alarms to go off.

I didn't find anything in Oracle's official 11g documentation on this particular join method but I did find plenty of articles about issues with it in their support DB. I have chased down a few of these in the past couple of weeks and here is what I found. Read more »

  • optimization
  • performance
  • tuning
  • dmann's blog
  • Add new comment

Alexandria PL/SQL Library

dmann — Tue, 02/14/2012 - 12:05

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: "This library is a collection of various utility packages for PL/SQL, as well as links to useful libraries hosted and maintained elsewhere."

http://code.google.com/p/plsql-utils/

It includes a lot of things I never really figured I would need to do in PL/SQL, but it is nice to see someone is thinking of it.
Read more »
  • library
  • open source
  • pl/sql
  • dmann's blog
  • Add new comment

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

dmann — Tue, 01/17/2012 - 15:43

...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 Database] covers a technical description for what SCNs are used for.

You can use this query to find out how close you are to the SCN limit. Read more »

  • bug
  • oracle
  • scn
  • dmann's blog
  • Add new comment

Diagnosing slow client processing of result sets...

dmann — Tue, 01/10/2012 - 13:48

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 at 4.7 hours and still counting up?
Read more »
  • performance
  • sql monitoring
  • dmann's blog
  • Add new comment

Quick filter for Application Express Reports

dmann — Mon, 12/05/2011 - 12:44

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 a plain old Apex report. I will create a Select List dropdown that submits and refreshes the report data automagically. The value in the select list will be applied as a filter to the report when it refreshes.

1) Create the Select List

• Items -> New Item -> Select List • Choose "Select List with Submit" • Next
Read more »
  • Application Express
  • sql
  • dmann's blog
  • Add new comment

Updated Developer Days Virtual Machine available...

dmann — Wed, 11/30/2011 - 17:33

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 (accessed via the Toolbar Menu in Firefox) on a copy of Oracle Enterprise Linux 5.

This is great as a sandbox for development or an easy way to stand up a DB for messing around with. The image supplied by Oracle runs inside Oracle VirtualBox VM engine which is also free. Read more »

  • virtualbox
  • vm
  • dmann's blog
  • Add new comment
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • …
  • next ›
  • last »
Syndicate content


Cornify
  • home
  • blog
  • notebooks
  • projects
  • recent
  • about
  • manifesto
  • !

Content Copyright 2006-2010. Links are copyright of respective owners.