English 中文(简体)
How recover sybase database (unknown db version)
原标题:

I have a database file (*.db) that need to be recovered.

The bad is, the end-user have null idea of the version of the database. Not know the password. The original developer is lost. The computer where was installed was formatted. We have not experience in this database software. Yeah, nightmare.

My guess is a old database. I m trying to open it in Sybase 11, dev edition.

I follow this steps: http://dcx.sybase.com/1101en/sachanges_en11/unloading-reloading-upgrading-newjasper.html

I try to use the UNLOAD utility from command line & from the Sybase central utility. From command line I do:

./dbinfo -c "DBF=/Users/mamcx/Downloads/CEMDE_ENDOCRINO_S.A.DB;UID=DBA;PWD=sql" 
SQL Anywhere Information Utility Version 11.0.1.2045
Unable to start specified database:  /Users/mamcx/Downloads/CEMDE_ENDOCRINO_S.A.DB  was created by a different version of the software

Ok, I try to unload:

./dbunload -c "DBF=/Users/mamcx/Downloads/CEMDE_ENDOCRINO_S.A.DB;UID=DBA;PWD=sql" -n /Users/mamcx/Desktop/
SQL Anywhere Unload Utility Version 11.0.1.2045
Connecting and initializing
***** SQL error: Unable to start database server

Ok, from the server admin tool:

dbunload -v -c "UID=dba;PWD=***;DBF=/Users/mamcx/Downloads/CEMDE_ENDOCRINO_S.A.DB" -an "/Users/mamcx/Desktop/baba.db" -ap 4096 -ea None -ii -sa -so _sc866192545
Connecting and initializing
***** SQL error: Unable to start database server
An error occurred while attempting to unload the database  /Users/mamcx/Downloads/CEMDE_ENDOCRINO_S.A.DB .

Exist a way to know the version of the database server used to create this? Is possible to recover this file?

问题回答

I don t know how to get the version out of the Database File if you are not able to start it.

You could get a hint from the hopefully existing Client PC s. Check the ODBC Driver Version they have installed.

I had good success with the support of Sybase. If you or your client has a support contract you can get them involved.

HTH

Try to simply start a server with that database and capture the output with -z -o server.out. The server.out file should contain a more specific error telling you why it can t start the database. This error can occur if you are trying to start something that is not a SQL Anywhere database.

You may also want to post this question over at http://sqlanywhere-forum.sap.com/.





相关问题
Session Isolation Issue with local SQL Anywhere Database

I am migrating an existing set of applications from Win XP to Win 7. We have a 3rd party application which is launched by and runs in the user’s session which accesses a local SQL Anywhere 9 database ...

database encryption questions

We are using Sybase SQL Anywhere 11. We need to encrypt some of our tables in our database. I followed the instruction and did it. We selected the "strong" option with encryptionKey and AES256_FIPS ...

Sybase SQLAnywhere jConnect routines?

I have a database which is part of a closed system and the end-user of the system would like me to write some reports using the data contains in a Sybase SQL Anywhere Database. The system doesn t ...

SQL Anywhere 11, JZ0C0: Connection is already closed

I develop am webservice based on apache tomcat 6.0.26, apache cxf 2.2.7, spring 3.0, hibernate 3.3 and sybase sqlanywhere 11. im using the latest JDBC Driver from SYBASE jconn.jar Version 6. The ...

How recover sybase database (unknown db version)

I have a database file (*.db) that need to be recovered. The bad is, the end-user have null idea of the version of the database. Not know the password. The original developer is lost. The computer ...

Change SQL decimal delimiter

I am trying to import data into my table using INPUT INTO The problem is my decimals is using , as a delimiter, and it expects .. So it won t work! How can i change this? Search and replace in the ...

SyBase SQL anywhere check if Synchronization is needed?

I have a Sybase SQL Anywhere 11.0.1 database that I am using to sync with an Oracle Consolidated Database. I know that the SQL Anywhere database keeps track of all of the changes that are made to it ...

SQL Anywhere table length

how can I see the length of a table (in bytes) on SQL Anywhere? It s possible? Thank you

热门标签