Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: Database Administration >> statspack / AWR report

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: statspack / AWR report
 sri  Posted: Dec 27, 2007 06:13:17 AM

 Total Post: 13
 Joined: Sep, 2007






 Hi all
what is the difference between statspack and AWR report
can we have statspack report in oracle 10g?

 Babu
Posted: Dec 27, 2007 06:23:25 AM  

 Total Post: 92
 Joined: Oct, 2007






 
Yes you use statspack in 10g also.

AWR - It's new feature in oracle 10g.

Babu

 Mohammed Taj
Posted: Dec 27, 2007 11:16:46 AM  

 Total Post: 694
 Joined: Jul, 2007






 
As babu said,
AWR report is new option in 10g. and it is easy to read and look.
AWR report available in HTML or TEXT format.

http://dbataj.blogspot.com/2007/10/awr-reportsnapshot.html

 MOH_DBA
Posted: Dec 27, 2007 01:25:13 PM  

 Total Post: 124
 Joined: Nov, 2007






 
as mentioned above yes you can.
the difference between them is that the staspack calculate statistics for you between the snapshots you specify which make it easy to see and read and compare statistics results.
and if you want to make awr report you must execute the (awrrpt.sql) file in the rdbms in your oracle home.
to view statspack reports you must execute the (spreport.sql) file in the rdbms in your oracle home.

 sri
Posted: Dec 28, 2007 01:15:34 AM  

 Total Post: 13
 Joined: Sep, 2007






 
Hi MOH_DBA
thanks for your response
i am able to get the awr report in my 10g database
but i am unable to get the statspack report in the same
i am getting the following error

SQL> @$ORACLE_HOME/rdbms/admin/spreport.sql

Current Instance
~~~~~~~~~~~~~~~~

DB Id DB Name Inst Num Instance
----------- ------------ -------- ------------
310852860 ****** 1 *****



Instances in this Statspack schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
from stats$database_instance
*
ERROR at line 7:
ORA-00942: table or view does not exist



Using 310852860 for database Id
Using 1 for instance number
from stats$database_instance
*
ERROR at line 5:
ORA-06550: line 5, column 13:
PL/SQL: ORA-00942: table or view does not exist
ORA-06550: line 4, column 6:
PL/SQL: SQL Statement ignored
ORA-06550: line 11, column 13:
PL/SQL: ORA-00942: table or view does not exist
ORA-06550: line 10, column 6:
PL/SQL: SQL Statement ignored


Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options


 Murtuja
Posted: Dec 28, 2007 01:37:17 AM  

 Total Post: 814
 Joined: Jan, 2006






 
Sri,

You need to follow certain steps before generating statspack report.You will find steps from below link.

http://www.akadia.com/services/ora_statspack_survival_guide.html

But Statspack report is not required in Oracle 10g.AWR is the best in Oracle 10g.

 sri
Posted: Dec 28, 2007 01:59:03 AM  

 Total Post: 13
 Joined: Sep, 2007






 
Thanks a lot

 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar814
  Mohammed Taj694
  Jayanta Sur479
  Vigyan Kaushik386
  positive fanatic361
  Gitesh Trivedi322
  Gopu Gopi242
  neeraj sharma228
  Ramesh Jois226
  Bishal Khetan169






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software