cancel
Showing results for 
Search instead for 
Did you mean: 

Error occurred during the sharedmemory connection attempt

Former Member
7,958

I am currently attempting to query an SQL Anywhere 12 database. I was able to gain access and write queries using the software aqua data studio. Unfortunately, my Aqua Data Studio trial has run out. Any other software that I use (Sybase Central, ODBC, Altova DatabaseSpy, SQL anywhere Client) all give me the same error: an error occured during the sharedmemory connection attempt. I have no idea why this is happening, and I have even tried turning off the "use shared memory connection" on my DB but to no avail.

I checked my log files and this is what was returned:

09:15:14 Attempting to connect using: UID=DBA;PWD=;DBN=;DBF=;ServerName=;CON='*';ASTOP=YES;INT=NO;ENC=NONE;LOG=cli‌​ent.txt

09:15:14 Attempting to connect to a running server...

09:15:14 Attempting SharedMemory connection (no sasrv.ini cached address)

09:15:14 Failed to connect over SharedMemory

09:15:14 Cannot connect to server

Which sounds like an issue with the sasrv.ini being absent. Does anyone know why? Why was aquadata studio able to connect but these others were not? (I had tried other software before aquadata and got the same error)

How can I fix this issue?

Accepted Solutions (0)

Answers (2)

Answers (2)

t1950
Participant

If you're using a Window OS, try this from a command line prompt

dbeng12.exe -x TCPIP -n LOCAL c:\\database\\dbName.db

where c:\\database\\dbName.db is the location and name of your db file, LOCAL will be the instance name of the engine (i.e. server name used in ODBC connection)

if the engine starts, you'll see the lightning bolt.

if your OS is 64 bit

from the Windows Run prompt enter, c:\\Windows\\SysWow64\\odbcad32.exe

if your OS is 32 bit, use the ODBC shortcut

ODBC tab, Data source name, enter LOCAL

login tab, enter the UID and PWD

Database tab, Server name enter LOCAL

Network tab, check TCP/IP, unchedk Shared memory

back to ODBC tab, test connection

if your connection is successful, you should be able to connect in iSQL or Sybase Central using the ODBC datasource option

Former Member
0 Kudos

If I put the servername as "LOCAL" all I get is an error that says "the server could not be found"

VolkerBarth
Contributor
0 Kudos

What does DBLOCATE reveal? (Just let it run in a command line)

Note: It does not list database engines that do not listen on TCP/IP ports?

t1950
Participant
0 Kudos

did you start the db with this line? dbeng12.exe -x TCPIP -n LOCAL c:databasedbName.db if you did, you should see the lightning bolt. hover over the lightning bolt, and you should see LOCAL if you don't see LOCAL, you're engine didn't start

reimer_pods
Participant
0 Kudos

The file sasrv.ini will only cache information to accelerate server lookup, but connections should be possible independent of it's existence.
You might want to try adding LINKS=TCPIP to your connection string.

Former Member
0 Kudos

When I add that to my connection string, Sybase Central gives "internal error: Sybase Central has encountered a problem and may need to close" and then the application closes