Statspack report in windows and linux [message #492474] |
Mon, 31 January 2011 06:41  |
kumasudh
Messages: 14 Registered: August 2010
|
Junior Member |
|
|
Hello Gurus,
I am in need of collecting statspack report programatically in windows and linux. Could somebody please help me with any existing example ?
Thanks
Best Regards
kumasudh
|
|
|
|
Re: Statspack report in windows and linux [message #492483 is a reply to message #492478] |
Mon, 31 January 2011 08:16   |
kumasudh
Messages: 14 Registered: August 2010
|
Junior Member |
|
|
Hi John,
Thanks for the reply. I am sorry for not putting the question clearly. I wanted to put the following statements into a tmp.sql file and execute this tmp.sql in a *.bat file.
SQL> connect perfstat/my_perfstat_password
SQL> define begin_snap=1
SQL> define end_snap=2
SQL> define report_name=batch_run
SQL> @?/rdbms/admin/spreport
My only concern is how to get the begin snap ID and end snap ID while preparing the tmp.sql file.
Regards
|
|
|
|