![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I am getting an error when trying to run dbbackup for a database that is in use. If I run the same dbbackup command when no one is accessing it, the backup works. The command that I am using and the error returned are as follows: C:\mydb\backup>dbbackup -y -c "uid=dba;pwd=sql;dsn=MYDB" backup Adaptive Server Anywhere Backup Utility Version 9.0.1.2085 Specified database file already in use This error is returned on several Windows 2003 servers. The database and sybase are running on the same server where I am executing the dbbackup. What do I need to change in order to backup a database while it is in use? Thanks, Dave |
#3
| |||
| |||
|
|
How is the DSN created? Does the DSN specify the database file name and attempt to autostart it? Try specifying the engine name so it can connect to an already running server if you are not already. If you still have problems, please post the contents of your DSN. Dave B wrote: Hello, I am getting an error when trying to run dbbackup for a database that is in use. If I run the same dbbackup command when no one is accessing it, the backup works. The command that I am using and the error returned are as follows: C:\mydb\backup>dbbackup -y -c "uid=dba;pwd=sql;dsn=MYDB" backup Adaptive Server Anywhere Backup Utility Version 9.0.1.2085 Specified database file already in use This error is returned on several Windows 2003 servers. The database and sybase are running on the same server where I am executing the dbbackup. What do I need to change in order to backup a database while it is in use? Thanks, Dave |
#4
| |||
| |||
|
|
Thank you for the quick response. The DSN was created as a system DSN using the ODBC GUI. I tried specifying the local server in the eng parameter and the result was the same. The DSN details are: C:\misdb\backup>dbdsn -gs MISDB Adaptive Server Anywhere Data Source Utility Version 9.0.1.2085 MISDB: UID=dba;PWD=sql;DBF=C:\misdb\MISDATA.db;ASTOP=Yes; INT=No Thanks, Dave How is the DSN created? Does the DSN specify the database file name and attempt to autostart it? Try specifying the engine name so it can connect to an already running server if you are not already. If you still have problems, please post the contents of your DSN. Dave B wrote: Hello, I am getting an error when trying to run dbbackup for a database that is in use. If I run the same dbbackup command when no one is accessing it, the backup works. The command that I am using and the error returned are as follows: C:\mydb\backup>dbbackup -y -c "uid=dba;pwd=sql;dsn=MYDB" backup Adaptive Server Anywhere Backup Utility Version 9.0.1.2085 Specified database file already in use This error is returned on several Windows 2003 servers. The database and sybase are running on the same server where I am executing the dbbackup. What do I need to change in order to backup a database while it is in use? Thanks, Dave |
#5
| |||
| |||
|
|
You first have to resolve what has the file in use. Do you have an engine already running on this machine? If so, what is its engine name and database name (the startline would help us if you are unsure). -chris Dave B wrote: Thank you for the quick response. The DSN was created as a system DSN using the ODBC GUI. I tried specifying the local server in the eng parameter and the result was the same. The DSN details are: C:\misdb\backup>dbdsn -gs MISDB Adaptive Server Anywhere Data Source Utility Version 9.0.1.2085 MISDB: UID=dba;PWD=sql;DBF=C:\misdb\MISDATA.db;ASTOP=Yes; INT=No Thanks, Dave How is the DSN created? Does the DSN specify the database >> file name and attempt to autostart it? Try specifying the engine name so it can connect to an already running server if you are not already. If you still have problems, please post the contents of your DSN. Dave B wrote: Hello, I am getting an error when trying to run dbbackup for a >>> database that is in use. If I run the same dbbackup command when no one is accessing it, the backup works. The command that I am using and the error returned are as follows: C:\mydb\backup>dbbackup -y -c "uid=dba;pwd=sql ;dsn=MYDB" >>> backup Adaptive Server Anywhere Backup Utility Version 9.0.1.2085 Specified database file already in use This error is returned on several Windows 2003 servers. >>> The database and sybase are running on the same server >>> where I am executing the dbbackup. What do I need to >>> change in order to backup a database while it is in use? Thanks, Dave |
#6
| |||
| |||
|
|
Thank you for the quick response. The DSN was created as a system DSN using the ODBC GUI. I tried specifying the local server in the eng parameter and the result was the same. The DSN details are: C:\misdb\backup>dbdsn -gs MISDB Adaptive Server Anywhere Data Source Utility Version 9.0.1.2085 MISDB: UID=dba;PWD=sql;DBF=C:\misdb\MISDATA.db;ASTOP=Yes; INT=No Thanks, Dave How is the DSN created? Does the DSN specify the database file name and attempt to autostart it? Try specifying the engine name so it can connect to an already running server if you are not already. If you still have problems, please post the contents of your DSN. Dave B wrote: Hello, I am getting an error when trying to run dbbackup for a database that is in use. If I run the same dbbackup command when no one is accessing it, the backup works. The command that I am using and the error returned are as follows: C:\mydb\backup>dbbackup -y -c "uid=dba;pwd=sql;dsn=MYDB" backup Adaptive Server Anywhere Backup Utility Version 9.0.1.2085 Specified database file already in use This error is returned on several Windows 2003 servers. The database and sybase are running on the same server where I am executing the dbbackup. What do I need to change in order to backup a database while it is in use? Thanks, Dave |
#7
| |||
| |||
|
|
The path to executable listed in the Windows service that starts the database is: C:\Program Files\Sybase\SQL Anywhere 9\win32\dbsrv9.exe -hvASANYs_MISDATA Is that what you need? The service is configured to run as the local system account and the option to allow it to interact with desktop is checked. Thanks, Dave You first have to resolve what has the file in use. Do you have an engine already running on this machine? If so, what is its engine name and database name (the startline would help us if you are unsure). -chris Dave B wrote: Thank you for the quick response. The DSN was created as a system DSN using the ODBC GUI. I tried specifying the local server in the eng parameter and the result was the same. The DSN details are: C:\misdb\backup>dbdsn -gs MISDB Adaptive Server Anywhere Data Source Utility Version 9.0.1.2085 MISDB: UID=dba;PWD=sql;DBF=C:\misdb\MISDATA.db;ASTOP=Yes; INT=No Thanks, Dave How is the DSN created? Does the DSN specify the database >> file name and attempt to autostart it? Try specifying the engine name so it can connect to an already running server if you are not already. If you still have problems, please post the contents of your DSN. Dave B wrote: Hello, I am getting an error when trying to run dbbackup for a >>> database that is in use. If I run the same dbbackup command when no one is accessing it, the backup works. The command that I am using and the error returned are as follows: C:\mydb\backup>dbbackup -y -c "uid=dba;pwd=sql ;dsn=MYDB" >>> backup Adaptive Server Anywhere Backup Utility Version 9.0.1.2085 Specified database file already in use This error is returned on several Windows 2003 servers. >>> The database and sybase are running on the same server >>> where I am executing the dbbackup. What do I need to >>> change in order to backup a database while it is in use? Thanks, Dave |
![]() |
| Thread Tools | |
| Display Modes | |
| |