Hello, all
Is there a way to make the mobilink client service not to stop, but to retry DB connection indefinitely, until the service is started (or network connection is restored) ?
We are working with version 16
Thank you
Arcady
Hello, all
Is there a way to make the mobilink client service not to stop, but to retry DB connection indefinitely, until the service is started (or network connection is restored) ?
We are working with version 16
Thank you
Arcady
Hello, all
I have the following question:
Does KEY JOIN perform better then a regular JOIN on 2 tables with ON clause?
And also, will existence of foreign key between the 2 tables provide a performance boost on a regular JOIN ... ON ?
I am currently working on version 16 and I am considering adding foreign keys to some of the tables to improve performance (not needing them for anything else).
My current customer has migrated from MS SQLServer to SQLAnywhere16.
In a legacy query they've used a relational operator against a VARCHAR20 column in the WHERE.
orders.order_status < 'N'
What was acceptable performance with MSSQLServer now has an undesirable delay in returning the rs under SQLAny16.
The SELECT has a 5-table join, but the performance is fine using the same query but with the one difference in using equality rather than the relational operator.
The scope of the distinct values within the column are all uppercase, no mixed sequences.
There is already a non-unique index for the column.
Any advice for tuning the performance, especially under-the-SQLAny-hood configuration is certainly welcome.
Thank you.
We are trying to upgrade MobiLink from v11 to v16.0.0.1324.
We have a configuration that will take time to explain. So I want to make sure I am in the correct forum before doing so.
We are running 4 zone configuration:
1) end user (internet)
2) ServerA (DMZ) running IIS website, MobiLInk Relay Server
3) ServerB running OutboundEnabler, BackendServer, ODBC
4) Oracle database
We are receiving the HTTP 400 indicated in the subject line when connecting ServerA and ServerB by starting the RSOE on ServerB.
Appreciate your reply, as indicated, I am just starting this query (before going into detail) to ensure I am in the correct forum.
Thanks
Hi,
We have .db files in sybase 9 and 11 versions. We are using these databases configured manually by using config files and running them.
Now my task is to migrate those 500+ .db files into SQL server.
What could be the easy way of doing this?
We have one customer with a database (around 1GB, we've had much bigger!) and it's just a bunch of tables (about 130 tables).
They are getting an assertion error (latest version of Sybase SQL Anywhere 12.01)
Some data structure within the server is normally allocated within a single memory page and it is exceeding the page size
It is a production issue - and makes no sense. Where would I even begin looking / why is it GPFing?
We have a database, the size is only 32MB. It's running on Microsoft Azure Server,
We have a call opened with Microsoft, and it's been going on for three weeks now. We are at our wits end with these people.
The bottom line is - when the system needs to go into a CheckPoint, it seems to freeze the entire system. And in one case, the CHECKOUT took more than 7 minutes. CheckPoints are supposed to take seconds/milliseconds....and why would this CHECKPOINT take 7 minutes.
We know it took 7 minutes because we simply got the Transaction Log File. It shows Started CheckPoint, Ended CheckPoint - and the time lapse was more than 7 minutes at 4:37AM (in the morning) when nothing else was going on.
Also, to backup this database (BACKUP DATABASE .... TRUNCATE TRANSACTION LOG) --- and it's only 32MB, it is taking close to 2 minutes on an Azure Server!
Microsoft is just giving us a lot of smoke and mirrors and we are thinking our entire issue is using Microsoft - and thinking our best bet is to move to Amazon (AWS) instead of using Microsoft Azure. But, the application is written using a lot of VSO/MSNET and not sure if we can even do this.
1. Why would a checkpoint take 7 minutes, is this normal?
2. Does anyone using Sybase SQL Anywhere 12 in an MS Azure Environment?
3. What should I be looking at to find the issue?
Hi all,
I am new to SQL Anywhere and I have been asked to upgrade the existing SQL anywhere DB v12 to v16 which is installed as part of BODS.
Please let me know how it can be done and what are the major steps involved.
Regards,
Sandy Sam.
We just had an incident at a customer's site Monday evening where a SQL Anywhere 12.0.1 database that had been running since February 15, 2015 suddenly started having performance issues. The entire system was not impacted but one critical area that sends data from our system to another system started to fall behind. This customer runs a 24x7 distribution center and I did not want to bring them down so we kept trying to figure out what was going on. Part of that was stopping and restarting the application that sends the data. That would help for a few minutes but messages would begin to back up again.
One thing we noticed is the database engine was consuming 80 to 90 percent of the CPU consistently which is not the behavior we normally see. The database engine runs on a VM computer by itself. No other applications are on this computer.
After a few hours of this, I decided to punt and asked them to allow us to stop our application and also the database engine.
After we restarted the database engine and our application, everything has been fine since.
The CPU usage of the database is now around 50 percent with spikes to 80 but then back down and sometimes even into the 20 percent range. This behavior is more what we are accustomed to seeing.
Anyway, my question is what kind of monitoring and troubleshooting tools are available (I'm aware of the monitor program that can be licensed) and what would be recommended?
Thank you
I cannot establish a connection from VS 2015 express for Web to SQL Anywhere 16. I can get to SA16 from PowerBuilder and from isql. I have connected by following this article that connects and allows you to run a select statement and it works.
Hodentek: Connecting to SQL Anywhere 16 using Visual Studio 2013 RC for Web.
I cannot get Visual Studio to see Sybase as a provider to connect to. All I see is SQL Server. I have followed the wiki: Using SQL Anywere and the ADO.NET Entity Framework, got no errors running the SetupVSPackage.exe command but I do not see the SQL Anywere as a database connection.
I've been searching and have not found a solution. My customer has been on Sybase for years so I cannot switch to SQL Server. But I need to be able to create some new application(s) with Visual Studio so I need this to work.
Thanks for any suggestions.
Larry Cermak
Hello,
Sometimes, when multiple clients are trying to insert records into the same table simultaneosly, some clients get error (SQLCODE=-193)
Primary key for table 'TableX' is not unique: Primary key value ('28')
Clients are executing many statements like:
INSERT INTO TableX ([PrimaryKeyColumn_Integer], [OtherColumn1], [OtherColumn2]) ON EXISTING UPDATE VALUES (28, 'Y', 'N');
Error happens on SQL Anywhere 16 EBF 2207 Windows 64bit. Error never happened on EBF 2127 and some older EBFs, but it might be just lucky case.
My question: why does INSERT with "ON EXISTING UPDATE" not detect that record already exists? Does it depend on isolatation level or something else?
Using the --{ml ignore} option always seems to provoke an ODBC error - [10002] Consolidated database server or ODBC error: ODBC: [Microsoft] [ODBC Driver Manager] Invalid string or buffer length ) ODBC State = HY090, Native error code = 0).
SQL Anywhere 16 remote DB, ASE 15.7 Consolidated, Mobilink running on a Windows 7 box. Mobilink upload_insert script "--{ml ignore}" ODBC connection build using the SQL Anywhere 16 64 bit drivers (Bin64\dbodbc16.dll)
The (development) ODBC connector looks like this:
[HKEY_CURRENT_USER\Software\ODBC\ODBC.INI\access_remote16]
"AutoStop"="YES"
"DatabaseFile"="c:\\******\\access_remote.db"
"DatabaseName"="access_remote"
"Integrated"="NO"
"PWD"="**********"
"ServerName"="access_remote"
"UID"="********"
"Driver"="C:\\PROGRA~1\\SQLANY~2\\Bin64\\dbodbc16.dll"
The documentation doesn't suggest any problems of this sort, so I'm guessing that the problem comes from the ODBC connector not knowing how to handle a return that has nothing in it, but I'm not sure how to configure the connector to handle it.
Can anyone help?
Hi all,
I have this error since the upgrade of our server.
Run time SQL error -- *** ERROR *** Assertion failed: 106901
(16.0.0.2213)[SPW1ASA16]
Expression value unexpectedly NULL in write
SQLCODE=-300, Etat ODBC 3="HY000"
Ligne 6, colonne 1
UPDATE "ULIS"."U2WRK"
SET "ULIS"."U2WRK"."WRKVC1" = (
SELECT (IF LIST(SUBSTRING("CADNUM"."LIDVAC",4)) = '' THEN NULL ELSE LIST(SUBSTRING("CADNUM"."LIDVAC",4)) ENDIF FROM
"ULIS"."CADAFF" "CADAFF"
JOIN "ULIS"."CADEMP" "CADEMP"
ON "CADEMP"."LIDNAT" = 'CADEMP'
AND "CADEMP"."LIDEXN" = 'CA'
AND "CADEMP"."LIDNUM" = "CADAFF"."LIDEXT"
JOIN "ULIS"."CADNUM" "CADNUM"
ON "CADNUM"."LIDNAT" = 'CADNUM'
AND "CADNUM"."LIDEXN" = 'CA'
AND "CADNUM"."LIDNUM" = "CADEMP"."LIDEXT"
JOIN "ULIS"."U2LIF" "CANATU"
ON "CANATU"."LIDNAT" = 'CANATU'
AND "CANATU"."LIDEXN" = 'CA'
AND "CANATU"."LIDEXT" = "CADNUM"."LIDNUM"
AND today() BETWEEN "CANATU"."LIDDEB" AND "CANATU"."LIDFIN"
AND "CANATU"."LIDVAC" = 'T'
JOIN "ULIS"."U2LIF" "CAAETP"
ON "CAAETP"."LIDNAT" = 'CAAETP'
AND "CAAETP"."LIDEXN" = 'CA'
AND "CAAETP"."LIDEXT" = "CADAFF"."LIDNUM"
AND "CAAETP"."LIDVAN" > 0
AND today() BETWEEN "CAAETP"."LIDDEB" AND "CAAETP"."LIDFIN"
WHERE 1=1
AND "CADAFF"."LIDNAT" = 'CADAFF'
AND "CADAFF"."LIDEXN" = 'CA'
AND today() BETWEEN "CADAFF"."LIDDEB" AND "CADAFF"."LIDFIN"
AND "CADAFF"."PERMAT" = 1356
)
WHERE WRKKYC = '$WRK$151223010453475' AND WRKKYN = 1356
If I execute the select alone, it returns NULL. (it's normal behaviour)
I test also with SELECT nullif(LIST(SUBSTRING("CADNUM"."LIDVAC",4)), '')
If I execute this:
UPDATE "ULIS"."U2WRK"
SET "ULIS"."U2WRK"."WRKVC1" = NULL;
It works.
On the version 16.0.0.2076, this query works fine.
Do you have any idea ?
Laurent.
I am seeking information on where I can find a database driver for SQL Anywhere 5.0. I have a legacy system that I need access to. If anyone could 1) offer the information on the driver or 2) point me in the right direction, I would be incredibly grateful as I have spent a lot of time on this situation.
Please advise,
Chris
I'm working on some clustering automatization creation of Hadoop, and at some point of view SQL Anywhere is a option to be the background of the Hive/Ambari/Ranger databases since on new implementation is compatible and supported.
I'm looking for any scripting internal or externar that made simple the install and manage of Sybase ASA, any chef/ruby/similar implementation that save me time to deploy a single db for my proposes.
Regards,
Fabian R. (c5205561)
I'm not sure if this issue is related to PB12.6, ASA/Mobilink 16, or just a Win7 64 bit issue, but wondered if any of you have seen it. I recently took over for a guy that retired who created our app and just learned (a bit) about Mobilink and syncing in the last year or so from him. I have a good bit of experience, but this if my first foray into the mobile platform.
We have an app which syncs our workers tablets in the field to our consolidated DB on a SqlServer 2008 server.
It works fine on my XP machine and the Win 7 32 bit machines in the field, but I am trying to move the code and setup to my new Win 7 64-bit developer machine. I have a clean install of PB12.6, ASA16 (I uninstalled PB11.2 temprorarily to exclude it from the issue as there was a conflict previously when starting with PB12.6).
The problem occurs whey I try to sync from the code - it apparently cannot establish a connection to my local development server because I get an error stating 'unable to establish bidirection connection for dbmlsrv' at the point where the code calls the sync. If I run the build/sync files locally they work fine.
I have admin rights on the computer, I have tried running as administrator.
Any help/ideas is appreciated.
Thanks,
jeff
Hi, I am trying to determine if there are any SQL Anywhere 16 configurations/tools/etc. that would provide the following:
1.) A true "monitoring" process that is intended to be ran constantly in the background and not noticeably degrade the performance of the machine much (I realize that any new process running on a computer will require some level of resources).
2.) Can be configured to monitor whenever specific SqlErrorCodes occur (i.e. regardless of if the error happened when someone was manually running SQL commands via dbiSql or another application that interacts with the DB invoked the faulty SQL statement/action, etc.).
3.) Can be configured to perform some kind of action such as:
a.) Run a DB Stored Proc.
b.) Write to the Windows Event Log.
c.) Some other custom action...
Does anyone know of such a configuration/tool within the SQL Anywhere 16 product base (or other tools, etc.)?
Specifically, I would like to monitor my DB/Server and be alerted when any of the following SQLERRORCODE values occur:
1.) 149 Automatic database upgrade applied
2.) 140 Encryption has not been enabled
3.) 100 Row not found
4.) -76 Request denied -- no active databases
5.) -75 Request to start/stop database denied
6.) -83 Specified database not found
7.) -86 Not enough memory to start
8.) -99 Connections to database have been disabled
9.) -107 Error writing to transaction log file
10.) -607 Cannot stop the database server
11.) -673 Database upgrade not possible
12.) 672 Database upgrade failed
13.) -697 Error during backup/restore: %1
14.) -764 Server not found and unable to automatically start
15.) -876 Client out of memory
16.) -895 Encryption error: %1
17.) -913 A transaction log file is required for auditing
18.) -1021 Invalid backup operation
19.) -107 The %1 algorithm is not available in FIPS mode
20.) -1104 Too many users in database
21.) -1143 Encryption has not been enabled
22.) -1152 Password has expired
23.) -1372 The server is not able to establish TCP/IP connections
I am hoping there is some existing monitoring and alerting service that can do this. Otherwise, the only thing I can think of is to force DBTran to run (to translate the DB's log file into a SQL script file), kickoff dbeng16/dbsrv16 with the "-zr", "-zo", and "-oe" parameter options (or maybe other options like "-uf", "-ufd", "-oef", "-o", etc), and then write my own "monitoring" program/WinService that every 5min or so parses the .SQL file that the DBTran creates and looks for those specific error codes. Even then, I do not know that the resulting .SQL file from DBTran would contain all those error codes if/when the happen.
Hi, does anyone know if SQL Anywhere 16 (or higher) provides the idea of "Multifactor Authentication"?
For example, instead of just requiring a UserName + PW to log into the DB, can SQL Anywhere be configured to force the login/authentication process to require one of the following (or more) combinations:
1.) UserName/PW and a fingerprint scan?
2.) UserName/PW and an eye scan?
3.) UserName/PW and physical location verification (i.e. user is in U.S. or India, etc.).
4.) UserName/PW and an issued user Certificate (from a Certificate Authority).
5.) UserName/PW and an issued smart card (like a CAC card).
We just had an incident at a customer's site Monday evening where a SQL Anywhere 12.0.1 database that had been running since February 15, 2015 suddenly started having performance issues. The entire system was not impacted but one critical area that sends data from our system to another system started to fall behind. This customer runs a 24x7 distribution center and I did not want to bring them down so we kept trying to figure out what was going on. Part of that was stopping and restarting the application that sends the data. That would help for a few minutes but messages would begin to back up again.
One thing we noticed is the database engine was consuming 80 to 90 percent of the CPU consistently which is not the behavior we normally see. The database engine runs on a VM computer by itself. No other applications are on this computer.
After a few hours of this, I decided to punt and asked them to allow us to stop our application and also the database engine.
After we restarted the database engine and our application, everything has been fine since.
The CPU usage of the database is now around 50 percent with spikes to 80 but then back down and sometimes even into the 20 percent range. This behavior is more what we are accustomed to seeing.
Anyway, my question is what kind of monitoring and troubleshooting tools are available (I'm aware of the monitor program that can be licensed) and what would be recommended?
Thank you