Re: question on dbcc message
Well, in the first table, there are 390 pages, 84% have data that can be cleaned up (think pointers to indexes and data). The second table only has about 7% with data to be cleaned up, which isn't low,...
View ArticleRe: question on dbcc message
From your post, did not see any error with dbcc checkdb. So you do not need to fix any dbcc error.For the fragmentation, you may run reorg rebuild to the 2 tables. -- step 1 reorg rebuild with proper...
View ArticleRe: how to re-enabled the threshold sp?
To change the procedure for the LCT try using sp_modifythreshold. While you cannot drop the LCT you can try to reset it (eg, in case it was corrupted/garbled at some point) via: select...
View ArticleRe: how move a table data out of data cache?
Just bind the table back to the default data cache. -bret
View ArticleRe: how to rebuild all indexes in on command?
One possible danger is that the script will not have finished running by the end of your maintenance window. REORG REBUILD will hold an exclusive table lock until it completes.
View ArticleRe: how to re-enabled the threshold sp?
just to supplement Mark's post:To get the LCT you can use as already mentioned lct_admin: select lct_admin('lastchance', db_id) The db_id you get for example from sp_helpdb.If lct_admin(“lastchance”,...
View ArticleRe: how to rebuild all indexes in on command?
Hello Jens, they are using ASE 12.5.x and don't have any SAP Application in use. With kind regardsStefan
View ArticleRe: how to rebuild all indexes in on command?
Hello, I'm still wondering why you want to rebuild all indexes. Why did you decide to do so ? Do you have frequently problems with the index access ? Did you changed something the sort order or similar...
View ArticleRe: how to rebuild all indexes in on command?
We reorg or rebuild our indexes ever weekend but not on all tables - just those which slow a bit of fragmentation. Reorging reduces the fragmentation of volatile tables, reduces space usage (which if...
View ArticleRe: how to rebuild all indexes in on command?
Hello Mike, yes in this case this makes sense, in this care reorg rebuild is the best approach to do so. Depends what version of ASE you use, you can adjust the reorg with different parameters. Also...
View ArticleRe: how to rebuild all indexes in on command?
datachange() is ok but not really good enough to rely on its own. I agree MDA tables help as well.But generally best to go for overkill and reorg/index rebuild as much as possible - if you've got a 24...
View ArticleFalse condition in WHERE clause
Hi Recently I have faced with a strange problem. Developers of one of my customers came with a query like this: SELECT *FROM packages WHERE packages.item_number = 427909 OR 427909 = 0go "packages" is a...
View ArticleRe: False condition in WHERE clause
Looks very odd... What's the index idx_packages_item ? It seems to think a scan of this index is expensive Data Page LIO for 'idx_packages_item' on table 'packages' = 41797Is item_number unique ?I've...
View ArticleRe: False condition in WHERE clause
Hi Mike I have just succeeded to reproduce the problem on another customer site on ASE 15.7 SP60. See the output of "sp_options show" attached. You mentioned that you receive different results in your...
View ArticleRe: False condition in WHERE clause
What's the definition of the table ? And the number of rows.Have you tried updating all the stats on the table (don't assume update statistics will work - I've had tables which required update all...
View ArticleRe: False condition in WHERE clause
See full reproduction of the problem attached, you can try the same on your environment. You can use a regular table instead the temporary one, the result will be the same. Statistics on the table are...
View ArticleRe: False condition in WHERE clause
Very interesting - I agree the optimiser is .... less than optimal. I haven't seen this but then those of us from the Sybase 10, 11 & 12 days generally avoid ORs ;-) Hopefully SAP/Sybase will pick...
View ArticleEvents Cluster Edition
Hi I have an ASE Cluster Edition 15.7 SP121 and in rare circumstances all the processes in the database been became in status sleeping. There is not errors in the Sybase ErrorLog. The Event ID for...
View ArticleRe: db error caused by dbcc memusage
dbcc memusage can cause problems on multi engine servers how many engines do you have configured?check: exec sp_configure "number of engines" and which ASE version are you running?
View Article