Solved

Sybase DBBackup not supporting over 8 character dbnames

Posted on 2008-06-11
4
894 Views
Last Modified: 2012-05-05
I am trying to perform an online backup of a Sybase SQL Anywhere 5.0 database. I have about 20 databases to backup, however some of the databases are short names and some are long names.  The short named databases will backup fine with the dbbackup command, but the long named databases give an error saying the specified database not found.  renaming the databases would be something that i'd like to avoid if possible, firstly because the databases used are being replaced shortly and i dont want to spend excess time on them and secondly because the whole process of renaming the databases would require an outtage that is unacceptable.  Here is the command im using that isnt working.
dbbackup -y -c "eng=servername;dbn=company_payroll_new_test;uid=care;pwd=sql;dbf=d:\database\company_payroll_new\test\database.db;" d:\backup\database\company_payroll_new\test

is there anyway to get around the 8 character limit or is there an updated version?
0
Comment
Question by:LakesGrammar
4 Comments
 
LVL 24

Accepted Solution

by:
Joe Woodhouse earned 125 total points
ID: 21766800
I didn't think you needed to specify the database filename...

You should be able to get by just specifying the engine and database names, I'm pretty sure you don't need the DBF in the connection string:

dbbackup -y -c "eng=servername;dbn=company_payroll_new_test;uid=care;pwd=sql;" d:\backup\database\company_payroll_new\test
0
 
LVL 51

Assisted Solution

by:Mark Wills
Mark Wills earned 125 total points
ID: 21781876
There is always a newer version :)  goto Sybase and have a look for the latest versions...

Being lateral for a second, you could try to create a backup script in SQL and run that :

BACKUP DATABASE DIRECTORY backup-directory
  [ WAIT BEFORE START ]
  [ DBFILE ONLY ]
  [ TRANSACTION LOG ONLY ]
  [ TRANSACTION LOG RENAME [ MATCH ] ]
  [ TRANSACTION LOG TRUNCATE ]

Or,

Can you perform the back up (as a once off - just to confirm long names) using Sybase Central to manually / interactively create a database...
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Read about achieving the basic levels of HRIS security in the workplace.
Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now