Ask the Expert

UTLBSTAT at startup, UTLESTAT at shutdown

How would I execute UTLBSTAT at instance startup? How would I execute UTLESTAT at instance shutdown? I am using the Oracle supplied dbstart and dbshut scripts provided on Compaq TRU64 Unix 4.0f with Oracle 8.1.7 to start/stop the instance.

    Requires Free Membership to View

Since you are using Oracle 8i, you can now use the AFTER STARTUP and BEFORE SHUTDOWN triggers. You can execute any code you wish in the PL/SQL blocks for those triggers.

Otherwise, you can just add a line in your dbstart or dbshut scripts which call a program to run UTLBSTAT or UTLESTAT. For instance, I have a script which can run UTLBSTAT as such:

# by Brian Peasland
# 18 April 2002
setenv PATH

source /usr/local/bin/coraenv
sqlplus system/manager @$ORACLE_HOME/utlbstat.sql 
You can make modifications for running UTLESTAT. Then just put one line in dbshut or dbstart to run this script for you!

One final note...UTLBSTAT/ESTAT are not nearly as good as 8i's new STATSPACK. STATSPACK gives you so much more information! You might want to look into using STATSPACK instead.

For More Information

This was first published in August 2002

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: