.com Solutions Inc. - logo  
Products - Header Buttons
.
Repgen bullet item 7b Installgen bullet item 7b FmPro Migratorbullet item 7b CGIScripter
.
.
.

.
.

Installgen - sol901 - Title Graphic

Installgen Features and Benefits

Installgen Demo Available for download...

.

#!/bin/sh
# script: prod1_gather_stats_day_job_1.sh (renamed from 59_sol_901_prod1_gather_stats_day_job_1.sh)
# Features: This shell script gathers Oracle CBO statistics
# for 2 hours during daytime processing.
# Notes: alter system set job_queue_processes = 1 scope=both may need to be done
# prior to running this script if job_queue_processes = 0.
# DBMS_STATS.CREATE_STAT_TABLE(OWNNAME=>'SYS',STATTAB=>'SYSSTATS')
# needs run once before using this script.
#
# Script Sequence#: 59
# Used By: CRON job via oracle UNIX account
# Usage:
# ******** Gather daytime Oracle CBO stats Mondays at 9:00AM ********
# 00 09 * * 1 /opt/server_scripts/prod1_gather_stats_day_job_1.sh
# Copyright 2002 by .com Solutions Inc.
#
# ---------------------- Revision History ---------------
# Date By Changes
# 10-08-2001 dsimpson Initial Release
# 05-10-2002 dsimpson Updated to use oracle UNIX account.

# This output file was created by Installgen version 1.38 on Sun Nov 10 14:51:56 2002. By .com Solutions Inc. www.dotcomsolutionsinc.net

# define globally used paths/variables
ORACLE_BASE=/u01/v901
ORACLE_HOME=/u01/v901
ORACLE_OWNER=oracle
ORACLE_OWNER_PATH=/export/oracle
ORACLE_GROUP=dba
ORACLE_HOME=/u01/v901
ORACLE_SID=prod1
LD_LIBRARY_PATH=/u01/v901/lib:/u01/v901/lib64:/usr/dt/lib
CLASSPATH=$ORACLE_HOME/jdbc/lib/classes111.zip
ORAENV_ASK=NO
TNS_ADMIN=$ORACLE_HOME/network/admin
PATH=/usr/sbin/:/bin:/usr/bin:/usr/ccs/bin:/usr/ucb/bin:/usr/ucb:/usr/openwin/bin:/usr/dt/bin:/usr/local/bin:/opt/bin:/usr/opt/SUNWmd/sbin:/usr/platform/sun4u/sbin:/opt/sfw/bin:.:/usr/local/sbin:/u01/v901/bin
TERM=vt100
NLS_LANG=AMERICAN_AMERICA.US7ASCII

export ORACLE_OWNER ORACLE_OWNER_PATH ORACLE_GROUP ORACLE_HOME ORACLE_SID ORA_BDUMP_DIR LD_LIBRARY_PATH PATH ORAENV_ASK TNS_ADMIN TERM NLS_LANG

#su - oracle -c "$ORACLE_HOME/bin/sqlplus /nolog"<< EOF
$ORACLE_HOME/bin/sqlplus /nolog<< EOF
connect / as SYSDBA
set echo on
set feedback on
set verify on
set pagesize 24

-- gather stats for 2 hours, store results in Oracle data dictionary
exec dbms_stats.gather_system_stats(stattab =>'sysstats', statown => 'SYS', interval=> 120,statid => 'day');
exit;
EOF



.

hline

. .

.

. .
 

Home | Products | Services | Downloads | Order | Support | Contact

Legal Notices

.
.   .
.
Home Products Services Downloads Order Support Contact