Log shipping was discussed in this post from 2008 but I couldn't find
a reply link. Hmm. Maybe it's too old. No matter, my question is
specific to replicating database size increases.
http://groups.google.com/group/sybase.public.ase.administration/browse_thread/thread/0a5dd928f6744d28/4db23ea66134da7d?pli=1
I'm wondering what folks, with an existing log shipping solution, do
to replicate increases in a database size from the primary to
secondary. Commands like "alter database ABC on DEV4 = 10" aren't
captured in ABC's log (likely in master's log).
I had incorrectly assumed that I could continue to apply logs on the
secondary database (even after the primary database has been
expanded), as long as the secondary database has space for the data
changes. That doesn't appear to be the case.
Here are the steps I performed (ASE 15.0.2 on AIX),
1 - created a database with one table
- 50Mb data, 10 Mb log
- table with one 'int' column
2 - full backup
3 - inserted one row
4 - tran backup 1
5 - inserted another row
6 - tran backup 2
7 - extended database data segment by 10 Mb
8 - inserted another row
9 - tran backup 3
Did a restore and roll forward with these results:
1 - full restore
2 - tran 1 restore
- success
3 - tran 2 restore
- success
4 - tran 3 restore
- failed - "Data on dump will not fit into current
database. Need 70 Mbyte database."
5 - extended database by 10 Mb
6 - tran 3 restore
- success
7 - online database
We plan to have a process on the primary shipping the logs and a
process on the secondary loading them (one process per database on
each side).
How does your log shipping solution deal with this issue.
Thanks so much. :-)