If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > Schema Statistics

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-22-03, 10:18
mohan mohan is offline
Registered User
 
Join Date: Oct 2002
Posts: 78
Schema Statistics

Hai

My database running cbo mode ,but i want schedule to collect statistics automatically at every 4pm ,i successfully submit the job using dbms_job.How to see the "SCH
Reply With Quote
  #2 (permalink)  
Old 03-27-03, 06:24
thebap thebap is offline
Registered User
 
Join Date: Feb 2003
Posts: 45
My Octopus is pregnant too !

The ducks fly backwards over my house ....

What ?
Reply With Quote
  #3 (permalink)  
Old 03-27-03, 06:40
remivisser remivisser is offline
Registered User
 
Join Date: Dec 2002
Location: Netherlands
Posts: 118
URGENT!!

Quote:
Originally posted by thebap
My Octopus is pregnant too !

The ducks fly backwards over my house ....

What ?
URGENT!!

my car broken, fix please

remi@
__________________
Remi Visser

Oracle Database Administrator
(OCP certified 8i)

Homepage: http://home.remidian.com/
Reply With Quote
  #4 (permalink)  
Old 03-27-03, 19:31
clio_usa clio_usa is offline
Registered User
 
Join Date: Apr 2002
Location: California, USA
Posts: 482
Thumbs up

If you are on Windows, create a batch file which will run the SQL script to analyze the schema. The batch and SQL files are below:

-------------------------------------------------
set oracle_sid=db02
sqlplus internal @d:\oracle\scripts\analyze_schema
-------------------------------------------------


-------------------------------------------------
spool d:\oracle\scripts\analyze_schema.log
exec dbms_stats.gather_schema_stats('SCHEMA_USER', 35, FALSE, 'FOR ALL COLUMNS SIZE 1', 2, 'DEFAULT', FALSE);
spool off

exit
--------------------------------------------------

Then simpel schedule the batch file with "at" . For UNIX - small changes and cron will do the same for you.


Hope that helps,

clio_usa - OCP - DBA

Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On