Blogs

Solaris Zones & finding machine name

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:

HOSTNAME=`hostname`
/u01/app/oracle >arp -a | grep $HOSTNAME

Copying Oracle JVM Permissions

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:

SQL Developer Custom Report Example - Long Operations Graph

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.

--Dave

oracle.sysman.emSDK.emd.comm.OperationException: could not write to targets.xml.bak file

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.

For Developers: Making Friends with the Oracle Database - presentation by Cary Millsap

Here is a link to a Cary Millsap presentation -- a must read for developers who interact with Oracle Databases. This article can save you some time and heartache!

http://method-r.com/papers/file/10-for-developers-making-friends-with-th...

From the Abstract:

PuTTY Helper

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/

Is Intermedia in use?

When copying or moving databases it is nice to know if features are used or not. Sure you can always query DBA_REGISTRY to see what has been set up on the source databases, but is it always necessary to install everything that shows up in DBA_REGISTRY on your target systems?

Intermedia is a feature that can be a particular pain to install and configure.

Left WordPress in the dust...

You may notice a new look. I left WordPress in the dust and have adopted Drupal Content Management software.

For 2 years I had problems trying to get Perl, shell scripts, and PL/SQL code to show up correctly in WordPress. Once I had a problem licked another one would show up.

The new software is and is light on blogging features but overall is much better software for organizing the type of data that I present.

All blog posts from the old blog have been migrated to the new site.

Tags: 

Generating lots of DDL with DBMS_METADATA...

After using many different tools to generate DDL I usually end up back at DBMS_METADATA. DBMS_METADATA is an Oracle supplied package that became available with Oracle 9.

DBMS_METADATA is an API that can be used to generate the DDL of most any object in an Oracle database.

It is most handy for getting Table or Index DDL but there is a complete list of objects that DBMS_METADATA handles here.

Table Example

Make your queries Self Aware...

In past Oracle versions you may have used USERENV() to access some of this information. The information is now available in the 'USERENV' namespace of the sys_context function.

http://www.techonthenet.com/oracle/functions/sys_context.php

Here is a useful example. When monitoring the current in-flight SQL it is nice to exclude the current query from the results:

Tags: 

Pages

Subscribe to RSS - blogs