on 2013 Nov 28 2:02 AM
Hello,
My configuration: Sybase Adaptive Server Anywhere 7, version 7.0.4.3472 Windows Server 2008 R2 Standard Edition 64 bit Physical memory : 2GB
My working directory has the following 4 files: dbtl50t.dll isql.exe asa_bkup.bat asa_bkup.sql
asa_bkup.bat
set CONN="eng=eng03;dbn=db03;uid=user03;pwd=xyzabc"
isql.exe -c %CONN% -d asa_bkup.sql
asa_bkup.sql
BACKUP DATABASE DIRECTORY 'D:\\bkup_data\\001'
I double-clicked asa_bkup.bat but it said : "unable to start database engine." I clicked OK and it displayed another windows to me:
Interactive SQL Login
User ID: user03
Password: **
Connection Name: (blank, waiting for my entry but I don't know what should I enter)
Database Name: db03
Database File: db03.db
Server: eng03
Startline: (blank, waiting for my entry but I don't know what should I enter)
I enteried arbitrary values to Connection Name and Startline but it still didn't work.
Could you tell are there any wrong in the asa_bkup.bat file?
How to use isql to backup a Sybase Anywhere database?
Do you run this batch on the W2K8 Server or on a different box? - In the latter case, you may need to add a further connection parameter to enable network connections, namely "LINKS=TCPIP" or "CommLinks=TCPIP", such as the modified line from you batch
set CONN="eng=eng03;dbn=db03;uid=user03;pwd=xyzabc;LINKS=TCPIP"
From the v8 docs:
If you do not specify a CommLinks (LINKS) connection parameter, the client searches for a server on the current machine only, and only using a shared memory connection. This is the default behavior, and is equivalent to CommLinks=ShMem. The shared memory protocol is the fastest communication link between a client and server running on the same machine, as is typical for applications connecting to a personal database server.
So without that parameter, ISQL can only connect to a local database engine on the same box.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If the database is not running, just do a file copy of the *.db and *.log file.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To add: The fact that you get the message "unable to start database engine" is a clue that the database you are attempting to connect to (named "db03") may not be currently running. And for non-running databases, just copying the files is the easiest method to do a backup - no need to mess around with DBBACKUP or BACKUP statements:)
User | Count |
---|---|
71 | |
11 | |
10 | |
10 | |
10 | |
8 | |
7 | |
7 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.