Submitted by dave on Tue, 08/11/2009 - 12:46
On Oracle-L there was a recent discussion about detecting block corruption.
One suggestion was to do an Export to /dev/null. While this may get you 95% of the way there it is mainly relying on side effects of data access to detect any issues. If blocks are cached then it might not root out physical corruption.
Submitted by dave on Mon, 07/20/2009 - 12:35
Submitted by dave on Tue, 05/26/2009 - 13:55
Here is some code to update the previous widget to show data in a green/yellow/red bar graph like an audio meter:
The code is here:
CREATE OR REPLACE FUNCTION GetGraph (p_value IN NUMBER, p_total IN NUMBER DEFAULT 100)
-- David Mann
-- Create HTML bar graph widget for use in Application Express reports.
-- Has thresholds for yellow and red.
-- Parameters: p_value - Top of ratio fraction or percentage as whole number (0-100)
Submitted by dave on Fri, 05/22/2009 - 14:34
I'm trying not to scare my users off with endless rows and columns of numbers. I have an app that analyzes memory usage and swap space usage of some of our servers. Instead of throwing all kinds of computer sciency '65535' and '32767' numbers at my user I decided to create a small function to return a bar graph widget.
Here is an example of the graph in use:
Here is a function that will return the HTML for the widget:
CREATE OR REPLACE FUNCTION GetGraph (p_value IN NUMBER, p_total IN NUMBER)
Submitted by dave on Fri, 05/15/2009 - 00:34
If you use Solaris Zones sometimes it is nice to be able to know the name of the global/parent machine the zone is running on.
Using 'arp -a' you can get information about network interfaces shared by the hosts on 1 machine.
I'm not going to give a whole full blown script to do this as our naming standards are probably different than yours but you can see the steps you may need to follow below to get the info:
Here is how to see all the network interfaces for you current host:
/u01/app/oracle >arp -a | grep $HOSTNAME
Submitted by dave on Tue, 03/31/2009 - 11:49
Now that I am working in an environment where I am responsible for more database instances it seems like data is always moving around. Machines are being retired, platforms are changing, all kinds of fun stuff.
I often have to move using regular old Oracle import/export utilities. These utilities aren't the best at some of the more esoteric Oracle features so some 'backfilling' of objects or permissions may be required.
Here are some queries that are helpful when moving a schema that has Oracle Java Virtual Machine (JVM) Dependencies:
Submitted by dave on Thu, 01/29/2009 - 12:10
I added a new tutorial to my collection of SQL Developer information. The tutorial covers creation of a HTML Custom Report for SQL Developer.
Here is an example of the report running and showing 1 long operation (click to enlarge):
If you would like to see how this is done the tutorial is available here.
Submitted by dave on Mon, 01/26/2009 - 15:19
I had some trouble adding a new database to an OEM Grid installation this weekend.
I didn't find too many references to the above error so I wanted to post about it here. Of course Metalink was all doom and gloom. Note 745795.1 says to stop the agent, run fsck on the AGENT_HOME filesystem, then start the agent. After that you should be able to add new targets.
targets.xml lives in AGENT_HOME/sysman/emd. At the OS prompt I changed to that directory I was able to create new files there but for some reason the above error kept popping up when Grid tried to save a new target.
Submitted by dave on Tue, 01/13/2009 - 14:47
Submitted by dave on Wed, 12/10/2008 - 15:44
PuTTY is a free implementation of Telnet and SSH for Win32 and Unix platforms along with an xterm terminal emulator. It is one of my must-have utilities that I use when administrating Unix boxes.
If you are using PuTTY on Windows you should check out PuTTY Session Manager. It is a utility that acts as a 'Launcher' for PuTTY sessions. It reads your configured saved sessions and allows you to organize them into folders and launch multiple PuTTY sessions at once.
You can download the latest version of PuTTY Session Manager here: http://puttysm.sourceforge.net/