dbTalk Databases Forums  

Automatically rebuild indexes

comp.databases.pick comp.databases.pick


Discuss Automatically rebuild indexes in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jjamison@pressofohio.com
 
Posts: n/a

Default Automatically rebuild indexes - 01-24-2006 , 12:35 PM






I am running version 5.2 of UniData. I have an ERP package that
operates on a dozen core tables with indexes. These indexes sometimes
go bad and cause reporting issues. Is there a way to automatically
rebuild indexes on a schedule, so I can once a week rebuild all the
indexes on my system?


Reply With Quote
  #2  
Old   
Colin Alfke
 
Posts: n/a

Default Re: Automatically rebuild indexes - 01-24-2006 , 06:38 PM






There was a problem with udtsort.exe. I thought it was a little bit earlier
than this though. We haven't had a problem with indexes in 5.2.

I would suggest making sure you completely delete the indexes and re-create
them rather than just rebuild. That normally solves any problem with them.

You're not doing anything silly like indexing a 'translate' are you?

To run this (or anything else) on a schedule the easiest thing is to use the
OS scheduler (cron, at) to setup a job that will login to UniData and do
whatever you want. Just remember that the process will go through the LOGIN
VOC item so you may need to update it to make sure it doesn't take you
straight into your application.

With more specifics on the OS someone can likely give you a better idea on
exactly what you need to do.

There is also more help available at www.u2ug.org. There are both forums
(not used as much) and a mailing list (quite heavily used).

hth
Colin

Quote:
I am running version 5.2 of UniData. I have an ERP package that
operates on a dozen core tables with indexes. These indexes sometimes
go bad and cause reporting issues. Is there a way to automatically
rebuild indexes on a schedule, so I can once a week rebuild all the
indexes on my system?




Reply With Quote
  #3  
Old   
jj10174
 
Posts: n/a

Default Re: Automatically rebuild indexes - 02-01-2006 , 11:38 AM



I have also posted this question on u2ug.org and have received help. I
have created a script to rebuild the indexes, but I am having issues
with users being in the files when the script runs. I have been told I
need to use fuser to verify that no one in the the file, but fuser
tells me that users are in files that LRA does not show them in. Is
that another way I can check to see if a user is in a file from a
script?


Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.