on 2015 Jun 23 8:17 PM
So I have another odd question for the group.
We have been running file based replication for a solid 10 years within this one database I'm maintaining. Every time a user replicates from off-site, the last thing we do is copy their individual replication log that we generate each time using the -o and -v switches. We replace it each time on the users machine and copy it to our consolidated log directory. So they only have a copy of their latest log file and it gets replaced each time they run replication.
Now, on the server side, we keep a consolidated log of EVERYTHING that gets replicated up to the consolidated database. It's allowed us to chase down errors that we could then fix via our resolve update triggers. Life was wonderful!!
Uhhh.... That was until our consolidated log file reached the size of 2,051,388KB.
Now I have the wonderful issue that I don't have an editor that will open the log file. So yes, I'm guessing I need to find something that can split this file in half, or shave a chunk off of it, and then save half of it. Save the other half, etc. You get the picture.
So I've tried notepad and notepad++ to open the log file. I'm on a 64bit machine with 8 gig of RAM. No luck.
Anybody aware of any editors that would open a file this big? The replication engine obviously has no problem continuing to append the current content onto the end of the file.
Anywho... Just curious if anybody is aware of an editor that could open up file this large.
Thanks everyone! 🙂
Jeff Gibson
Intercept Solutions - SAP/Sybase SQL Anywhere Application Development Partner
Nashville, TN
Steps to fix the transaction log
Stop the service from Sybase Central.
Move the existing log file that is tied to the database to a different location.
Launch a command prompt and navigate to where your SQL Anywhere databases are stored.
For example: F:\\Temp>
Type > dbeng50.exe software.db You may need to type in the full path to your dbeng50 executable if sqlany50 is not in your system path. For example: "C:\\Program Files\\sqlany50\\win32\\dbeng50.exe" dbfilename.db
Note: This step will start the database server without the transaction log for the first time.
Note: This step will fix the database server.
Note: This step will connect to the database and write a new transaction log.
Click the Shutdown button to stop the server.
Launch Sybase Central and restart the service.
Note: You can adjust the file so that it no longer uses a transaction log.
GOOD LUCK...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
[NO-MOCKERY-ALLOWED] Jeff doesn't say what version he's using but I seriously doubt it's 5. [/NO-MOCKERY-ALLOWED]
All: Feel free to accuse me of being passive-aggressive with my < strike > jokes, it's my Inner Dexter :)
Years ago, a friend said "I could never understand why anyone would buy a TV show on DVD. Movies, sure, but a TV show? Then I got one and ended up in front of the TV for the entire weekend!"
Fast forward twenty years and we have Netflix.
And we also have ( or DO we? 🙂 the National Centre for Netflix Addiction.
This:
http://sourceforge.net/projects/largetextfile/
Opens the file a bit at a time and should be good for up to 10GB logs. We have used a similar one for large translated transaction logs, (I know you are talking about replication logs but the principal applies) 😉
EDIT: That one is not as good as I thought.
The one mentioned here: http://www.rizalalmashoor.com/blog/large-text-file-viewer/ (which is the one we used before) does the job beautifully. Unfortunately the website links is no longer operational. I have it though and can put it on a ftp for you if you want it - it's freeware?!?!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jeff - have mailed you as well but the file is just on our website. Seemed little point securing it as it is freeware;
www.radicalsys.com/LTF Viewer.zip
Just extract the files to a folder and run the LTFViewr5u.exe. All pretty self explanatory i.e. open the file and you'll be amazed how quickly it opens stupidly large text files!
User | Count |
---|---|
67 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.