Re: Getting data via ODBC gets truncated when exceeding the TextSize length
Hi Dror,Are you be chance using Cursor type (from ODBC API level, not driver) of Static? This is set with the SQLSetStmtAttr(SQL_CURSOR_TYPE) command. If this is so, try setting to FORWARD_ONLY...
View ArticleRe: NullPointerException thrown by Charset.availableCharsets (with jconn4.jar...
Hi Julien, What is the exact version of jConnect and the JDK used? For jConnect you can run java -jar jconn4.jar from its location.Also, please post the CLASSPATH I used: java version...
View ArticleHow to calculate the ratio insert/select against a table?
To create/manage indexes of a table, it is important to know the ratio INSERT/SELECT aka MODIFICATION/REPORT. For instance, if there are more INSERT than SELECT queries against a table, we should try...
View ArticleRe: rollback question
There is a discussion on moderation delays happening at http://scn.sap.com/thread/3357394, I recommend bringing any concerns there. -bret
View ArticleRe: Use MDA to list unused indexes
The mysterious part here seems to be that both OptSelectCount=0 and UsedCount=0 for index ID 11, yet you are seeing query plans featuring this index which means that at least one of these counters...
View ArticleRe: Use MDA to list unused indexes
A very minor technical addition: If for some reason you did wish to exclude DOL clustered indexes from the result, you can do so by adding the following to the WHERE clause: AND si.status2 & 512 = 0
View ArticleRe: Use MDA to list unused indexes
I forgot to answer your earlier question if there is a maximum number of indexes that MDA can monitor. Answer: no such limit for MDA per se. In practice the limit boils down to the number of open...
View ArticleSCC - Accessing SAP database
Hi All, Recently in our landscape, we installed ECC/ EHP6 with sybase (15.7.0.42). However in the lower version (21) I have accessed the database using sybase central and it was pretty easier, even...
View ArticleRe: SCC - Accessing SAP database
The best place to post Business Suite-related questions is at the SAP-on-ASE community at http://scn.sap.com/community/sybase-ase. This community is primarily focused on custom (i.e. non-SAP)...
View ArticleRe: update statistics questions
First of all, I'm being HEAVILY moderated in this forum. This reply is written on 6/18/2013 and not likely to hit the boards until 5 or 6 days later. I'd love to be proven wrong. You've asked several...
View ArticleRe: Use MDA to list unused indexes
Thanks Rob and Bret for your time! 1- Do you know if the CR #619575 has been fixed? It mentions that compatibility mode does not update monOpenObjectActivity UsedCount, LastUsedDate....
View ArticleRe: Use MDA to list unused indexes
Hmm... good catch. It start to become clear now... CR 619575 is not fixed and it looks like it may not be fixed soon.The rationale is that compatibility mode aims to have the same behaviour as ASE...
View ArticleASE 12.5: First retrieve slow
Hi, We're currently on Sybase ASE 12.5. When running reports to retrieve data based on customer account id, we find that the first retrieve is slow. Any subsequent retrieves of the same report, for...
View ArticleRe: ASE 12.5: First retrieve slow
Hi, It sounds like it is simply reading the data into cache. The physical i/o component of any query execution is always considerably more expensive. Can you include an output of:- set showplan onset...
View ArticleRe: ASE 12.5: First retrieve slow
I agree with Simon that the most likely cause is data not being in cache.If the statistics io output for the first execution shows considerably more physical iothan in subsequent executions, I don't...
View ArticleRe: ASE 12.5: First retrieve slow
Hi Bret and Simon, >>It sounds like it is simply reading the data into cache. >>I agree with Simon that the most likely cause is data not being in cache.I agree as well, but we can't...
View ArticleRe: ASE 12.5: First retrieve slow
Hi, Is this query plan the good or bad query plan or does the query plan always remain the same?You need to include the outpout of set statistics time,io on for fast and quick (with showplan) to make...
View ArticleRe: ASE 12.5: First retrieve slow
If I understand correctly, you have one index on (acct_id) and one index on (order_date)?Having an index on (acct_id, order_date) could help some by reducing the number of pages that had to be read...
View ArticleRe: update statistics questions
i was just doing some reading and come upon this in the manuals : "Updating statistics for leading columns in indexes requires only a leaf-level scan of the index, and does not require a sort, so...
View ArticleRe: update statistics questions
i was actually NOT referring to the consumers option which i know is meant for raid devices. but rather a plain old update stats with parallelism enabled on the dataserver - will that process be split...
View Article