Cuando se ejecuta el spreport.sql aparece el siguiente error:
25 SQL> @spreport.sql Current Instance ~~~~~~~~~~~~~~~~ DB Id DB Name Inst Num Instance ----------- ------------ -------- ------------ 1253224498 ORCL 1 orcl Instances in this Statspack schema ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Using 1253224498 for database Id Using 1 for instance number declare * ERROR at line 1: <SPAN id=high_1>ORA-20200</SPAN>: Database/Instance 1253224498/1 does not exist in STATS$DATABASE_INSTANCE ORA-06512: at line 23 Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options C:\app\oracle\product\11.2.0\dbhome_1\RDBMS\ADMIN>
Este error se produce si se ejecuta el spreport.sql antes de crear cualquier snapshots. Antes de ejecuta el spreport.sql se debe ejecuta statpack.snap.
Para comprobar si se ha ejecutado algún snapshots.
SQL> select * from stats$database_instance; no rows selected