cancel
Showing results for 
Search instead for 
Did you mean: 

Create new/reset transaction log sybase 11 (SQL Remote)

Former Member
0 Kudos
2,864

Hi,

I currently have a database of a completed application. This database has been made over a course of a year and now it's time to put this database in production. This database will be used as a consolidated database. The problem I have now is the fact that I don't want to use the transaction log that is made during development because a lot of insert and deletes of fake data happend during development. I want to start with a clean slate, I don't want all transactions that were made during development to be replicated to the remotes. I just want my consolidated database to start from zero, replicate the data that is present and only changes after this moment should be replicated.

I have searched the web, but I didn't find anything that could do that. I have used dblog -x 0 -z 0 <database> which gave the following output:

SQL Anywhere Transaction Log Utility Version 11.0.1.2960

"D:\\Databases\\Sybase\\Qure\\Dev1\\Qure.db" is using log file "Qure.log"
"D:\\Databases\\Sybase\\Qure\\Dev1\\Qure.db" is using no log mirror file
Transaction log starting offset is 0000000000
SQL Remote truncation offset is 02595825969
Transaction log current relative offset is 0000000000

but when I tried to start my database it gave the following error:

SQLANYs_QureDev1: Cannot open transaction log file -- Can't use log file "Qure.log" since it has been used more recently than the database file

I kinda underestimated this. I thought it would be simple to reset the transaction log to just say "replicate current data and from this point forward publish only the changes".

Is there someone that can help me with my problem

Accepted Solutions (0)

Answers (0)