SQL Anywhere 12 (12.0.1.4155) using EF : Unable to enlist transaction; DTC may be down
What may be causing this error??
Sometimes the transactions runs fine, and other times I get this error message.
Database.SqlQuery<int>("select dba.getnextid()");
NativeError: -803
Message: Unable to enlist transaction; DTC may be down
Source: SQL Anywhere .NET Data Provider
StackTrace:
at iAnywhere.Data.SQLAnywhere.SAException.CheckException(Int32 idEx)
at iAnywhere.Data.SQLAnywhere.DurableResourceManager.Enlist(SAInternalConnection conn, Transaction tran)
at iAnywhere.Data.SQLAnywhere.SAInternalConnection.Enlist(Transaction tran)
at iAnywhere.Data.SQLAnywhere.SAConnection._EnlistTransaction(Transaction tran)
at iAnywhere.Data.SQLAnywhere.SAConnection.EnlistTransaction(Transaction transaction)
at System.Data.EntityClient.EntityConnection.EnlistTransaction(Transaction transaction)
Can't seem to figure out how to resolve this issue, nor what's causing it.
Enabling the MSDTC service solved it. (Distributed Transaction Coordinator)
Similar Messages
-
Support for Sybase SQL Anywhere databases
Is there support for Sybase SQL Anywhere databases available?
Specifically, using an ODBC connection.
Sybase, curiously enough, does not want to develop specific drivers for connection to its databases; instead, it relies on an outside source (ODBC) for its connection.
I am NOT in favour of using ODBC as an connection method; we have bench-marked SQL query performance using both native driver connection vs ODBC connection; you should be easily able to guess which approach won out!!
Hint: Oracle dramatically!!You can try using JTDS, it should work with Sysbase too and if you take a look at the SQL Developer certifications, you can see it's the certified way of speaking with Sysbase.
I've never used this myself and i'm not even sure if this works with SQL Anywhere but it's worth a try. -
PocketBuilder 2.5.2 and SQL Anywhere 12
Hi all,
I have a Windows Mobile device . It should run SQL Anywhere 12 with Pocket Builder 2.5.2. But at the start on the mobile device always get the message that the driver dbodbc10.dll missing . Where can I set that the driver of ASA 12 should be taken ? Or does this not work with ASA 12 .
Thanks for help.
André RustHello Andre,
PocketBuilder 2.5.x is not supported and no longer sold anymore. Moreover, it has not been tested against ASA 12:
Software used for database connection
You might try what is explained below from link SyBooks Online (Archive)
Connecting to a SQL Anywhere database
By default, PocketBuilder runtime applications on the Windows CE device use
the PKODB25.DLL dynamic link library to connect to SQL Anywhere data
sources through the SQL Anywhere version 10 ODBC driver (dbodbc10.dll).
You can specify a different ODBC driver by including the
driver=dbodbcX.dll parameter in your DBPARM
ConnectString assignment or in the file data source, where X is
the version number of the ODBC driver for Adaptive Server Anywhere or SQL
Anywhere.
For example, to use the Adaptive Server Anywhere 9 ODBC driver on the Windows
CE device, you can use the following DBPARM:
SQLCA.DBPARM="ConnectString='DSN=myDSN;driver=dbodbc9.dll;UID=dba;PWD=sql'"
CONNECT using SQLCA;
SQLCA is the default connection object in all PocketBuilder environments.
In all runtime environments, the connect string for the DBPARM parameter must
not include spaces other than those in the data source name (DSN). The DSN you
assign must exist in the root directory on the Windows CE device or emulator.
When you install the complete PocketBuilder runtime package to the device or
emulator (rather than just the runtime DLLs), the ASA 9.0 Sample.DSN file
is added to the root directory. Instead of using the ConnectString DBPARM to set
the driver name, you can modify ASA 9.0 Sample.DSN, or any other DSN file
that you use, so that it includes an assignment for the database driver:
[ODBC] enginename=asademo databasename=asademo databasefile=\Program Files\Sybase\ASA\asademo.db start=\Program Files\Sybase\ASA\dbsrv9.exe Driver=dbodbc9.dll
If you are using the ASA Sample database that is migrated to SQL Anywhere 10,
you can deploy the DemoDB_SA10.DSN file with your application. The
PocketBuilder setup program installs this DSN file in the PocketBuilder
Code Examples\SADemoData\SA10 directory. The DSN file sets the the
databse file to \Program Files\SQLAny10\ASADemo_10.db, and the driver
name to dbodbc.dll.
SQL Anywhere requires that DSN files be saved in ANSI format rather than
Unicode format.
If you are running your PocketBuilder applications from the desktop, it is
recommended that you use the actual name of the driver (for example, “Adaptive
Server Anywhere 9.0”) in a ConnectString DBPARM rather than the name of the DLL.
Otherwise, the driver you select in the connection string might be ignored.
HTH
Jacob -
Sybase with ase and sql anywhere 16 using ssma
ok this may sound like a very dumb question but how does one connect to sybase central (sql 16 anywhere) using ssma.
In my ase connections when i do test connection it returns successful however when i click on ssma > connect to sybase it returns
ERROR [08001] [SAP][ASE ODBC Driver]Client unable to establish a connection
i have my network server running on sybase using sql anywhere 16 network server.
I also had my firewalls off
any help would be appreciated.Hi Jeff ,
Thank you so much for the reply.
I have used 32 bit PHP.
But now we have resolved above mentioned issue. Now we can connect PHP with SQL Anywhere successfully.
Regards,
Vishal Chikhalikar
PHP Programmer -
Safe to use SQL-Anywhere Version 9?
I have inherited a server running SQL-Anywhere Version 9, I believe that version is end-of-life. I'm trying to come up with good arguments for replacing that version with a newer one, but the boss isn't interested in replacing it. Can anyone help me with arguments?
mobrien022 wrote:
Is it safe to use a different version of JAVA for compilation (javac.exe) vs runtime (java.exe)?
If so, is there a rule of thumb like:
"the javac.exe should be from a newer JDK than the JDK/JRE containing the java.exe" or
"the javac.exe should be from an older JDK than the JDK/JRE containing the java.exe"There's a twist: you can pass the compiler -source and -target options so that it is compiled for an older version. If you don't do that you'll see that an older java.exe kraps out immediately when given a newer version in class files. -
Issues connecting to a SQL Anywhere repo from the Designer
I have installed DS4.2 SP2 on a number of Suse 11.1 Linux VMs using all of the standard settings, and making use of the bundled SQL Anywhere database as my repo.
I am getting an error in the Designer when I try to connect to certain repositories in the Login screen, but the problem is not happening on all installations.
The error is an ODBC message:
ERROR: ODBC call <SQLDriverConnect> to connect database <DS_REPO> failed with error: <[Sybase][SQL Anywhere]Database server not found>. Use the ODBCDriverSelector (Windows) or DSConnectionManager,sh (UNIX) utility in LINK_DIR/bin to configure the correct version of the driver.....(BODI-1112172)
I have checked both the ODBCDriverSelector on the machine running the Designer and DSConnectionManager on the server, and the drivers are all correct for SQL Anywhere 12. I can also successfully connect to the database from the Windows Repository Manager - the only problem is with the Designer.
I have tried adding an ODBC entry in the System DSNs for the repo database, and again I can successfully test the connection - but this hasn't fixed my issue, and the Designer can connect (when it can connect) even if a DSN isn't defined.
I'd appreciate any thoughts or advice.I have a solution - in the CMC, set the repo to use DNS. You need to first create an appropriate entry in the <install dir>/sap_bobj/enterprise_xi40/odbc.ini and then create an equivalent entry on your client ODBC settings.
-
ODBC Gateway on Linux error - connects ok with Sybase SQL Anywhere
OS: CentOS 5.8 64-bit
DB: Oracle XE 11gR1 64-bit
Gateway: Oracle Gateway for ODBC 64-bit
Database and gateway reside on same Linux Server.
Connecting to remote Sybase SQL Anywhere 10 server on WindowsXP.
Using SQL Anywhere 11 odbc driver and unixODBC driver manager on Linux server.
isql tool connects without any problems.
One LISTENER, service for db and gateway on same port.
===================================
Via SQL*Plus, the following error occurs....
SQL> select * from dual@dblink;
select * from dual@dblink
ERROR at line 1:
ORA-28513: internal error in heterogeneous remote agent
ORA-02063: preceding line from dblink
===================================
sqlnet.ora
# sqlnet.ora Network Configuration File: /u01/app/oracle/product/11.2.0/xe/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.
NAMES.DIRECTORY_PATH=(TNSNAMES)
ADR_BASE = /u01/app/oracle/product/11.2.0/xe
==================================
tnsnames.ora
# tnsnames.ora Network Configuration File:
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = mysystem)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
dblink =
(DESCRIPTION =
(ADDRESS =
(PROTOCOL = TCP)(HOST = mysystem)(PORT = 1521)
(CONNECT_DATA =
(SID = dblink))
(HS=OK))
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
=======================
listener.ora
# listener.ora Network Configuration File:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/xe)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = dblink)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/gtw)
(PROGRAM = dg4odbc)
(ENVS=LD_LIBRARY_PATH=/opt/sqlanywhere11/lib64:/u01/app/oracle/product/11.2.0/gtw/lib)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = mysystem)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
========================
initdblink.ora
# This is a sample agent init file that contains the HS parameters that are
# needed for the Database Gateway for ODBC
# HS init parameters
HS_FDS_CONNECT_INFO=dblink
HS_FDS_SHAREABLE_NAME=/usr/lib64/libodbc.so
HS_FDS_TRACE_LEVEL=255
HS_LANGUAGE=american_america.we8iso8859p1
HS_NLS_NCHAR=UTF-8
# ODBC specific environment variables
set ODBCINI=/etc/odbc.ini
========================
Oracle Corporation --- MONDAY OCT 15 2012 17:23:39.915
Heterogeneous Agent Release
11.2.0.1.0
Oracle Corporation --- MONDAY OCT 15 2012 17:23:39.914
Version 11.2.0.1.0
Entered hgogprd
HOSGIP for "HS_FDS_TRACE_LEVEL" returned "255"
Entered hgosdip
setting HS_OPEN_CURSORS to default of 50
setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
setting HS_FDS_RECOVERY_PWD to default value
setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
setting HS_IDLE_TIMEOUT to default of 0
setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
HOSGIP returned value of "UTF-8" for HS_NLS_NCHAR
setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
setting HS_FDS_DATE_MAPPING to default of "DATE"
setting HS_RPC_FETCH_REBLOCKING to default of "ON"
setting HS_FDS_FETCH_ROWS to default of "100"
setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
setting HS_FDS_MAP_NCHAR to default of "TRUE"
setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
setting HS_FDS_QUERY_DRIVER to default of "TRUE"
setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
Parameter HS_FDS_QUOTE_IDENTIFIER is not set
setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
Default value of 64 assumed for HS_FDS_SQLLEN_INTERPRETATION
setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
setting HS_FDS_DELAYED_OPEN to default of "TRUE"
setting HS_FDS_WORKAROUNDS to default of "0"
Exiting hgosdip, rc=0
ORACLE_SID is "dblink"
Product-Info:
Port Rls/Upd:1/0 PrdStat:0
Agent:Oracle Database Gateway for ODBC
Facility:hsa
Class:ODBC, ClassVsn:11.2.0.1.0_0008, Instance:dblink
Exiting hgogprd, rc=0
hostmstr: 0: HOA After hoagprd
Invalid HS_NLS_NCHAR value UTF-8 specified
Setting HS_NLS_NCHAR to Server Default 2000
Invalid HS_NLS_NCHAR value UTF-8 specified
Setting HS_NLS_NCHAR to Server Default 2000
hostmstr: 0: HOA Before hoainit
Entered hgoinit
HOCXU_COMP_CSET=1
HOCXU_DRV_CSET=31
HOCXU_DRV_NCHAR=2000
HOCXU_DB_CSET=873
HOCXU_SEM_VER=112000
Exiting hgoinit, rc=28513
hostmstr: 0: HOA After hoainit
RPC Calling nscontrol(0), rc=0
hostmstr: 0: RPC Before Exit Agent
hostmstr: 0: HOA Before hoaexit
Entered hgoexit
HS Gateway: NULL connection context at exit
Exiting hgoexit, rc=0 with error ptr FILE:hgoexit.c LINE:108 FUNCTION:hgoexit() ID:Connection context
hostmstr: 0: HOA After hoaexit
hostmstr: 0: RPC After Exit Agent
=============================
Also, does anyone know how to determine the location (full path) of the unixODBC driver manager ?
Please assist if you can...thx.
Edited by: user601798 on Oct 15, 2012 3:37 PMLet me start with the unixODBC driver:
There's no generic location as it depends which package you've used to install the UnixODBC driver manager or how you compiled it from scratch. I commonly prefer to compile it from scratch as this offers me to install it to any location I like.
If you're not sure where it is located, you could perform a search on your machine looking for libodbc.so. Then cross check it with "file <location>/libodbc.so" to see the lib is a 64bit library.
So let's assume in the /usr/lib64 you found the libodbc.so library, then the setting
HS_FDS_SHAREABLE_NAME=/usr/lib64/libodbc.so
is correct. Else you need to adopt the parameter.
Next step is to check out which unixODBC version is installed. That's commonly done by calling "odbcinst -j".
Looking now ta the gateway init file there's a parameter HS_NLS_NCHAR set to UTF-8. UnixODBC is commonly compiled with UCS2 support, so please change it to HS_NLS_NCHAR=UCS2
Could you also please post the content of the odbc.ini file "more /etc/odbc.ini"?
Thanks,
Klaus -
How to connect to SQL Anywhere db dynamically - No ODBC -
Hello all -
We have an application (c++) with several reports (crystal 10) that are dynamically connected to several access databases depending on the users request. We are now moving that application to .net (c#) and SQL Anywhere 11. I am able to create an odbc connection and use that connection to develop reports against the new database, but am unable to locate any information on how a connection can be established on the fly to run the report against different database instances. Can this be done dynamically from the application preferably with ADO.net? How? Where Can I find documentation supporting this?
Thanks in advance for you assistance,
ShawnSee the [Crystal Reports Guide To ADO.NET|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/401c4455-a31d-2b10-ae96-fa57af5aec20]
and [Reporting Off ADO.NET Datasets|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2091d0c3-da1d-2b10-22be-a3426b183f75]
Other useful resources.
Troubleshooting Issues with VS .NET Datasets and Crystal Reports blog:
/people/ludek.uher/blog/2009/03/02/troubleshooting-issues-with-vs-net-datasets-and-crystal-reports
Samples:
https://smpdl.sap-ag.de/~sapidp/012002523100006252822008E/net_win_smpl.exe
https://smpdl.sap-ag.de/~sapidp/012002523100006252722008E/csharp_win_smpl.exe
https://smpdl.sap-ag.de/~sapidp/012002523100006252712008E/csharp_web_smpl.exe
https://smpdl.sap-ag.de/~sapidp/012002523100006252812008E/net_web_smpl.exe
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/208edbbf-671e-2b10-d7b5-9b57a832e427
VS2005 Walkthroughs:
http://www.businessobjects.com/global/pdf/dev_zone/VS2005_Walkthroughs.pdf
Also, search the forums. there is tons of info here.
Ludek -
PHP odbc_connect on a running SQL Anywhere 16 server
Hello,
please help with the following php odbc_connect problem:
On my local machine (win 7, 64 bits) is a running SQL Anywhere 16 database. Started with
dbeng16.exe -c 8m -n xx_test "G:\DEMOS\xx\DB16\test.db"
In the ODBC manager then created a ODBC connection (xxdsn).
But the connection from PHP 5.3.8 fails:
$verbindung = odbc_connect('xxdsn', 'dba', 'sql');
It shows
Warning: odbc_connect() [function.odbc-connect]: SQL error: [Sybase][ODBC Driver][SQL Anywhere]Datenbankserver nicht gefunden, SQL state 08001 in SQLConnect in verbindung.php on line 4
The database is definitively runnig. Tested by opening an odbc connection from isql.
When I create an odbc connection on a database file, I can make an php odbc_connect.
This problem is only on the Win 7 machine and also with SQL Anywhere 12.
When I try the same on a (32 bits) XP machine it runs fine.
Please help, to find my mistake.
Thanks in advance!
Best regards,
PeterHi Mirco,
thank you for your time. Here both log files.
From XP:
Donnerstag, 19. Februar 2015 15:03:4
15:03:42 Verbindungsversuch mit:
UID=dba;PWD=********;DBN=xxx_16;ServerName=xxx;CON=SQL_DBC_4224f48;LOG=C:\temp\sybase.log
15:03:42 Verbindungsversuch mit einem laufenden Server...
15:03:42 SharedMemory-Verbindung wird versucht (keine im Cache sasrv.ini gespeicherte Adresse)
15:03:42 Verbunden mit Server über SharedMemory
15:03:42 Verbunden mit SQL Anywhere Server Version 16.0.0.1324
15:03:42 Hinweise zur Anwendung:
15:03:42 IP=192.168.178.24;HOST=COMPAREX;OSUSER=SYSTEM;OS='Windows XP Build 2600 Service Pack 3';EXE=E:\apps\OSGeo\mgos251\Web\Apache2\bin\httpd.exe;PID=0x250;THREAD=0x2d4;VERSION=16.0.0.1324;API=ODBC;TIMEZONEADJUSTMENT=60
15:03:42 Verbunden mit dem Server, Verbindung mit einer laufenden Datenbank wird versucht...
15:03:42 [ 2] Verbindung mit der Datenbank erfolgreich eingerichtet
15:03:43 [ 2] Verbindung zum Server getrennt
From Win 7 (PHP connection):
Donnerstag, 19. Februar 2015 14:48:23
14:48:23 Verbindungsversuch mit:
UID=dba;PWD=********;DBN=xxx_16;ServerName=xxx;CON=SQL_DBC_293610;LOG=c:\temp\sybase.log
14:48:23 Verbindungsversuch mit einem laufenden Server...
14:48:23 SharedMemory-Verbindung wird versucht (keine im Cache sasrv.ini gespeicherte Adresse)
14:48:23 Kein benannter Puffer des gemeinsam genutzten Speichers gefunden
14:48:23 Es wird nicht versucht, einen Server automatisch zu starten
14:48:23 Verbindung mit dem Server nicht möglich
But trying to start ianywhere on Win 7 machine with
dbisql -c "DSN=xxxdsn;LOG=c:\logs\test.txt"
shows this log:
Donnerstag, 19. Februar 2015 15:49:27
15:49:27 Verbindungsversuch mit:
UID=dba;PWD=********;ServerName=xxx;CON=SQL_DBC_5d09b6f0;INT=NO;LOG=c:\temp\sybase.log
15:49:27 Verbindungsversuch mit einem laufenden Server...
15:49:27 Start der SharedMemory-Verbindung wird versucht ...
15:49:27 SharedMemory-Verbindung erfolgreich gestartet
15:49:27 SharedMemory-Verbindung wird versucht (keine im Cache sasrv.ini gespeicherte Adresse)
15:49:27 Verbunden mit Server über SharedMemory
15:49:27 Verbunden mit SQL Anywhere Server Version 16.0.0.1948
15:49:27 Hinweise zur Anwendung:
15:49:27 IP=192.168.178.37;HOST=peterhp;OSUSER=peter;OS='Windows 7 Build 7601 Service Pack 1';EXE=C:\apps\asa16_64bit\bin64\dbisql.exe;PID=0x2410;THREAD=0x24c4;VERSION=16.0.0.1948;API=iAnywhereJDBC;TIMEZONEADJUSTMENT=60
15:49:27 Verbunden mit dem Server, Verbindung mit einer laufenden Datenbank wird versucht...
15:49:27 [ 2] Verbindung mit der Datenbank erfolgreich eingerichtet
15:49:27 [ 2] Anzahl der abgerufenen Zeilen reduziert auf 16 entsprechend der
15:49:27 [ 2] Abrufpufferbegrenzung. Verbindungsparameter 'PrefetchBuffer' kann Performance verbessern.
When I try to use the HOST parameter, the connection fails. However both machines running local.
Thank you too,
Peter -
SQL Anywhere 11 databases are getting corrupt
Hi
We are having problems with databases that are getting corrupted.
We have a server that runs a SQL Anywhere 11 database. (the consolidated database)
Beside that, we have about 15 remote databases that run on the laptops of our mobile workforces.
To keep all databases in sync, we have setup a two-way server-to-laptop replication.
For the replication process we use “SQL Remote”.
Each laptop should replicate his data once in about 1 or 2 weeks.
For exchanging the messages we use the message type “file”.
This year we already experienced 6 times that a remote database got corrupt after replication. (after running dbremote.exe).
The log file of the dbremote utility does NOT show any errors, the replication seems to be finished without any problems.
But after this, it’s not possible anymore to connect to the database, because of the following assertion error:
[Sybase][ODBC Driver][SQL Anywhere]Internal database error *** ERROR *** Assertion failed: 201501 (11.0.1.2376)
Page 0x0:0x7182d1 for requested record not a table page -- transaction rolled back
Error code=-301
SQL state=HY000
Can someone tell me more about this error?
What goes wrong and why?
Or does someone has some tips on how to prevent this or tips on how I can do some analyzing myself to see what exactly got broken in the database?
Any help is appreciated.
Thanks.Hi Krenton,
Page 0x0:0x7182d1 for requested record not a table page -- transaction rolled back
Error code=-301
SQL state=HY000
Can someone tell me more about this error?
Specifically, the page at offset 0x7182d1 in database (So if you have a 4KB page size, this would be byte offset 7439057 x 4096 = 30470377472 into the database) in 0x0 (the main database running) has a page header that indicates that the data on the page is not table data. We don't know what it is, but the signature for table information connected to the table you're scanning is 'not as it should be'.
What goes wrong and why?
In the real world, lots of things can go wrong. I list some of the possible things on this question here on the SQL Anywhere forum. This list can include software bugs, but can also include instances where the media is not respecting write-through or write-ordering - see http://scn.sap.com/docs/DOC-34090 (SQL Anywhere I/O Requirements for Linux and Windows) for more details.
There are also known instances where Intel drivers are not set with the correct write-through settings. The details of this are in the documentation: DocCommentXchange (Improving Robustness on Intel storage drivers).
Technical Support should still provide assistance. If the problem is a newly-discovered bug in SQL Anywhere 11, their advice will be to apply a more recent EBF or upgrade to a new version. However, that is unlikely in this case.
Breck is correct - it would probably be best to take a look at the database file in technical support for more clues as to what's happening here. With the current information, it's hard to say more than "something was not correct at the time the page was looked at by the database server."
Regards,
Jeff Albion
SAP Active Global Support -
SQL Anywhere 11 on Ubuntu / PHP
Hi there,
I have been trying (with no success) to connnect our PHP app to Sybase database.
Our actual scenario is:
Windows2003/ ODBC {SQL Anywhere 11 Driver} / PHP ------> Windows2008 / Sybase
We are to migrate our PHP:
Linux Ubuntu Server / UnixOBC {SQL Anywhere 11 ODBC Driver} / PHP -------> Windows2008 / Sybase
In the migration process I configured FreeTDS trying somethink like:
/etc/fretds/freetds.conf
[global]
tds version = 4.2
dump file = /tmp/freetds.log
; debug flags = 0xffff
; timeout = 10
; connect timeout = 10
text size = 64512
[sybase]
host = 172.19.2.252
port = 2640
; instance = ek_cadu_0103040607
tds version = 5.0
ASA database = ek_adm01_11
php-script
<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
$cnn = sybase_connect('sybase', 'dba', '_._ENKONTROL_._');
?>
This script shows the following errors:
Warning: sybase_connect(): message: SQL Anywhere Error -83: Specified database not found (severity 16) in /var/www/testodbc.php on line 4
Warning: sybase_connect(): General SQL Server error: Check messages from the SQL Server (severity 16) in /var/www/testodbc.php on line 4 Warning: sybase_connect(): Unable to connect to server: sybase in /var/www/testodbc.php on line 4
Can anyone help?. Thank you in advance.
Marinho.Hi Marinho,
SQL Anywhere does not support FreeTDS. SQL Anywhere does support Open Client and jConnect connections over TDS.
The sybase_* functions pre-built with PHP are for (Sybase) Adaptive Server Enterprise (ASE), not SQL Anywhere - they are separate products.
Is there a particular reason you're not using the SQL Anywhere PHP module ( http://scn.sap.com/docs/DOC-40537 ), with the sasql_* functions that are intended for use with SQL Anywhere?
Regards,
Jeff Albion
SAP Active Global Support -
Problems with JConnect, Sybase SQL Anywhere 5.x
Hi
I use Sybase SQL Anywhere 5.x, Apache Server, Apache Jserver.(WINNT)
I must to write servlet, which connects to Sybase database using JConnect.
When database is on the same host as Apache server, and my servlet i run services:
Open Server Gateway (dbos50.exe <server_name>), where server_name in sql.ini is
"master=NLWNSCK,x.x.x.x,8001" (x.x.x.x is my IP)
Standalone Engine (dbeng50.exe <path to the database>)
And all is ok
But I don't known, what to do, when my database is on other host, neither my servlet(aplication and JConnect)
Which services I must run on Host, where database is?
Which services I must run on Host, where JConnect and servlet(aplication) are?
Must I use Cascade Gateway or TDS tunneling?
Can you help me?
Thanks.Hi,
I need to connect to Sybase SQL Anywhere version 5.5.05, too, but I can't find the driver to connect to the server, could u tell me about this? Please share it with if available.
thanks. -
Problem when changing connection to SQL Anywhere during runtime
I designed a report in the Crystal Reports 2008 designer using a JDBC connection
to a SQL Anywhere 11.0.1 database.
Everything works fine, I´m able to preview the report in the designer.
But when loading and running the same report in a Eclipse-based java-application I receive
an error.
When I set the db connection parameters I receive an "unexpected database-connector-error".
When starting the report without changing the connection parameters set in the CR2008-designer
the same error appears.
When using a report based on a MySQL-database everything works fine.
I´m able to preview the report in the designer and I´m able to load the report
and change the datasource to another MySQL-database at runtime.
What do I have to do to change a SQL Anywhere connection at runtime?Your workflow and the specific method being invoked where you're getting the exception is unclear.
Sincerely,
Ted Ueda -
How to db connect from SAP to SYBASE SQL anywhere 16 remotely
Hi All,
May i know can i connect to SYBASE SQL Anywhere16 from SAP running on kernel 7.42 via dbacockpit (dbco)?
I've followed note 1737415 - Sybase IQ: Enable remote/secondary connect to SAP Sybase IQ & 1532253 - SYB: Remote DB Monitoring for SAP Sybase ASE
but failed.
Where can i find the dbsl and its client for sybase sql anywhere? I only can find SAP ASE and SAP IQ on SMP. Is those compatible with SQL anywhere 16?
Thanks.
NicholasHi Jason,
the error message is it complains minimun version for SAP IQ is 15.6, however our SQL anywhere is on version 16, above the support version as per note1737415 - Sybase IQ: Enable remote/secondary connect to SAP Sybase IQ
fyi, i'm using the latest sybase dbsl and SAPIQ 16 client.
Any idea or will it works to remotely connect SQL anywhere via dbacockpit?
Thanks,
Nicholas. -
Reading data from Sybase SQL Anywhere 7 database to write into a SQL Server database
Hi,
I need to import data from a Sybase SQL Anywhere vers. 7 database. This RDBMS was used more 10-12 years ago. I want to write Sybase data into a SQL Server 2008 R2-2012 database. For testing purposes I'm using SQL Server 2005.
After that I've installed Sybase SQL Anywhere vers. 7 I can use the Adaptive Anywhere 7.0 ODBC. I'd like to use SSIS to import Sybase data, but I cannot create an OLE DB connection in a right manner while I can create and ODBC connection manager and so I
can use an Execute SQL task (and not a data flow task, unfortunately!).
Well, after using this Execute SQL task to read fe a table with thousands of data rows how can I write the entire data collection on a SQL Server table?
ThanksBelow link may be helpful,
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/184c937a-2b2c-4e59-b4d7-e8d3d1b476b3/net-provider-for-oledb-sybase-adaptive-server-anywhere-ole-db-provider-90-cant-be-located-when?forum=sqlintegrationservices
http://supun-biz.blogspot.in/2010/11/extracting-data-from-sybase-sql.html
Regards, RSingh
Maybe you are looking for
-
Using information from ItResource for executing custom sql in OIM 11g
I need executing a custom sql query using a connection of a ItResource. How can I get the instance of connection for to execute the sql query ? Someone have a idea of how i make this ? Help me ... Tks
-
HP Pavilion DV7 1030el overheating
Specs: Processor : Intel Core 2 P8400 @ 2.26 GHz RAM: 4GB GPU: nVidia 9650m GT HDD: 2x 250GB OS: Windows 7 Professional 64-bit I've been using this laptop for over 2 years now. First of all, installing all the bloatware hp provides with total care an
-
Can't drag windows around using the title bar-CS4
I just upgraded to CS4 at work last week and I'm already regretting it. Firstly, using two monitors, CS4 must like my graphics card becasue as soon as I open a document and it begins to render the window, the main monitor loses it's signal and cuts o
-
I can't get my iphone 3 to synch anymore
My iphone 3 worked fine for about a year, then I must have upgraded something. Now I get this error message: "The iPhone "xxxxx's iPhone" cannot be used because it requires iTunes version 10.6.3 or later. Go to www.itunes.com to download the latest
-
Hi Experts, I, Shri, would like to have some suggestion about sapbi7. let me explain what i am now. I have learnt sap bi7 by my own using some materials and internet access to sapbi7. I would like to go bit deeper in that subject ( not mean to do cer