MINI MINI MANI MO
Rem
Rem $Header: rdbms/admin/spreport.sql /main/14 2017/05/28 22:46:11 stanaya Exp $
Rem
Rem spreport.sql
Rem
Rem Copyright (c) 1999, 2017, Oracle and/or its affiliates.
Rem All rights reserved.
Rem
Rem NAME
Rem spreport.sql
Rem
Rem DESCRIPTION
Rem This script defaults the dbid and instance number to that of the
Rem current instance connected-to, then calls sprepins.sql to produce
Rem the standard Statspack report.
Rem
Rem NOTES
Rem Usually run as the STATSPACK owner, PERFSTAT
Rem
Rem BEGIN SQL_FILE_METADATA
Rem SQL_SOURCE_FILE: rdbms/admin/spreport.sql
Rem SQL_SHIPPED_FILE: rdbms/admin/spreport.sql
Rem SQL_PHASE: UTILITY
Rem SQL_STARTUP_MODE: NORMAL
Rem SQL_IGNORABLE_ERRORS: NONE
Rem END SQL_FILE_METADATA
Rem
Rem MODIFIED (MM/DD/YY)
Rem cdialeri 03/20/01 - 1747076
Rem cdialeri 03/12/01 - Created
--
-- Get the current database/instance information - this will be used
-- later in the report along with bid, eid to lookup snapshots
column inst_num heading "Inst Num" new_value inst_num format 99999;
column inst_name heading "Instance" new_value inst_name format a12;
column db_name heading "DB Name" new_value db_name format a12;
column dbid heading "DB Id" new_value dbid format 9999999999 just c;
prompt
prompt Current Instance
prompt ~~~~~~~~~~~~~~~~
select d.dbid dbid
, d.name db_name
, i.instance_number inst_num
, i.instance_name inst_name
from v$database d,
v$instance i;
@@sprepins
--
-- End of file
OHA YOOOO