dbTalk Databases Forums  

Truncate Log

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss Truncate Log in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Herman
 
Posts: n/a

Default Truncate Log - 09-18-2009 , 04:09 AM






Sybase 9.0.2.3534

How do I truncate a transaction log for a database involved
in Mobilink Replication? I need to know this for the
consolidated database and the publishing database.

Thanks

Reply With Quote
  #2  
Old   
Josh Savill [Sybase]
 
Posts: n/a

Default Re: Truncate Log - 09-18-2009 , 10:29 AM






Herman,

There are two considerations here. For the consolidated database, there is no dependency on the
transaction log for MobiLink synchronization. Maintaining the transaction log size can be done using
an appropriate backup and recovery method. If you're going to truncate the consolidated database
transaction log, then you should make a backup of the transaction log for recovery purposes.

For the remote database, NEVER EVER truncate a transaction log. Truncating the transaction log will
break MobiLink synchronization. The transaction log is used to scan and generate the uploads. For
transaction log management you should rename and restart the transaction log. However, you may still
require the old transaction log as there may be operations that have yet to be synchronized. This
may require you to specify the location of old transaction log on the dbmlsync command line.

One option for managing the transaction log size for the remote database is by using dbmlsync -x
[size [K|M|G]] and then setting DELETE_OLD_LOGS option to ON. Each time dbmlsync runs, provided the
size of the transaction log meets the criteria, the transaction log will be renamed and restarted.
With the DELETE_OLD_LOGS option set to ON, when the transaction log is no longer required for
MobiLink synchronization, the log is removed automatically.

http://www.ianywhere.com/developer/p...9/00000169.htm

--
Joshua Savill
Sybase Inc. - Product Manager


Herman wrote:
Quote:
Sybase 9.0.2.3534

How do I truncate a transaction log for a database involved
in Mobilink Replication? I need to know this for the
consolidated database and the publishing database.

Thanks

Reply With Quote
  #3  
Old   
Herman Miller
 
Posts: n/a

Default Re: Truncate Log - 09-20-2009 , 05:37 AM



We use Mobilink to send certain transaction down from the
consolidated database to the clients. Can we still truncate
the transaction log with no effect on Mobilink?

Thanks

Quote:
Herman,

There are two considerations here. For the consolidated
database, there is no dependency on the transaction log
for MobiLink synchronization. Maintaining the transaction
log size can be done using an appropriate backup and
recovery method. If you're going to truncate the
consolidated database transaction log, then you should
make a backup of the transaction log for recovery
purposes.

For the remote database, NEVER EVER truncate a transaction
log. Truncating the transaction log will break MobiLink
synchronization. The transaction log is used to scan and
generate the uploads. For transaction log management you
should rename and restart the transaction log. However,
you may still require the old transaction log as there
may be operations that have yet to be synchronized. This
may require you to specify the location of old transaction
log on the dbmlsync command line.

One option for managing the transaction log size for the
remote database is by using dbmlsync -x [size [K|M|G]]
and then setting DELETE_OLD_LOGS option to ON. Each time
dbmlsync runs, provided the size of the transaction log
meets the criteria, the transaction log will be renamed
and restarted. With the DELETE_OLD_LOGS option set to ON,
when the transaction log is no longer required for
MobiLink synchronization, the log is removed
automatically.


http://www.ianywhere.com/developer/p...9/00000169.htm

--
Joshua Savill
Sybase Inc. - Product Manager


Herman wrote:
Sybase 9.0.2.3534

How do I truncate a transaction log for a database
involved in Mobilink Replication? I need to know this
for the consolidated database and the publishing
database.
Thanks

Reply With Quote
  #4  
Old   
Josh Savill [Sybase]
 
Posts: n/a

Default Re: Truncate Log - 09-21-2009 , 09:39 AM



MobiLink has no dependency on the transaction log with the consolidated database. So, you can
truncate the transaction log on the consolidated database. However, you should be truncating the
transaction log as part of your Backup and Recovery strategy because the transaction log is still
require for recovery.

--
Joshua Savill
Sybase Inc. - Product Manager


Herman Miller wrote:
Quote:
We use Mobilink to send certain transaction down from the
consolidated database to the clients. Can we still truncate
the transaction log with no effect on Mobilink?

Thanks

Herman,

There are two considerations here. For the consolidated
database, there is no dependency on the transaction log
for MobiLink synchronization. Maintaining the transaction
log size can be done using an appropriate backup and
recovery method. If you're going to truncate the
consolidated database transaction log, then you should
make a backup of the transaction log for recovery
purposes.

For the remote database, NEVER EVER truncate a transaction
log. Truncating the transaction log will break MobiLink
synchronization. The transaction log is used to scan and
generate the uploads. For transaction log management you
should rename and restart the transaction log. However,
you may still require the old transaction log as there
may be operations that have yet to be synchronized. This
may require you to specify the location of old transaction
log on the dbmlsync command line.

One option for managing the transaction log size for the
remote database is by using dbmlsync -x [size [K|M|G]]
and then setting DELETE_OLD_LOGS option to ON. Each time
dbmlsync runs, provided the size of the transaction log
meets the criteria, the transaction log will be renamed
and restarted. With the DELETE_OLD_LOGS option set to ON,
when the transaction log is no longer required for
MobiLink synchronization, the log is removed
automatically.


http://www.ianywhere.com/developer/p...9/00000169.htm
--
Joshua Savill
Sybase Inc. - Product Manager


Herman wrote:
Sybase 9.0.2.3534

How do I truncate a transaction log for a database
involved in Mobilink Replication? I need to know this
for the consolidated database and the publishing
database.
Thanks

Reply With Quote
  #5  
Old   
Herman Miller
 
Posts: n/a

Default Re: Truncate Log - 09-22-2009 , 12:28 PM



If I understand your point regarding the consolidated db not
using the transaction log then the following statement will
send all rows from the consolidated db down to the remote db
regardless when the transaction occurred:

select * from table where ? IS NOT NULL And user_id= ?

is this correct?

Thanks


Quote:
MobiLink has no dependency on the transaction log with the
consolidated database. So, you can truncate the
transaction log on the consolidated database. However, you
should be truncating the transaction log as part of your
Backup and Recovery strategy because the transaction log
is still require for recovery.

--
Joshua Savill
Sybase Inc. - Product Manager


Herman Miller wrote:
We use Mobilink to send certain transaction down from
the consolidated database to the clients. Can we still
truncate the transaction log with no effect on Mobilink?

Thanks

Herman,

There are two considerations here. For the consolidated
database, there is no dependency on the transaction
log >> for MobiLink synchronization. Maintaining the
transaction >> log size can be done using an appropriate
backup and >> recovery method. If you're going to truncate
the >> consolidated database transaction log, then you
should >> make a backup of the transaction log for
recovery >> purposes.

For the remote database, NEVER EVER truncate a
transaction >> log. Truncating the transaction log will
break MobiLink >> synchronization. The transaction log is
used to scan and >> generate the uploads. For transaction
log management you >> should rename and restart the
transaction log. However, >> you may still require the
old transaction log as there >> may be operations that
have yet to be synchronized. This >> may require you to
specify the location of old transaction >> log on the
dbmlsync command line.
One option for managing the transaction log size for
the >> remote database is by using dbmlsync -x [size
[K|M|G]] >> and then setting DELETE_OLD_LOGS option to ON.
Each time >> dbmlsync runs, provided the size of the
transaction log >> meets the criteria, the transaction log
will be renamed >> and restarted. With the
DELETE_OLD_LOGS option set to ON, >> when the transaction
log is no longer required for >> MobiLink synchronization,
the log is removed >> automatically.




http://www.ianywhere.com/developer/p...9/00000169.htm
--
Joshua Savill
Sybase Inc. - Product Manager


Herman wrote:
Sybase 9.0.2.3534

How do I truncate a transaction log for a database
involved in Mobilink Replication? I need to know this
for the consolidated database and the publishing
database.
Thanks

Reply With Quote
  #6  
Old   
Josh Savill [Sybase]
 
Posts: n/a

Default Re: Truncate Log - 09-22-2009 , 01:22 PM



Correct.

--
Joshua Savill
Sybase Inc. - Product Manager


Herman Miller wrote:
Quote:
If I understand your point regarding the consolidated db not
using the transaction log then the following statement will
send all rows from the consolidated db down to the remote db
regardless when the transaction occurred:

select * from table where ? IS NOT NULL And user_id= ?

is this correct?

Thanks


MobiLink has no dependency on the transaction log with the
consolidated database. So, you can truncate the
transaction log on the consolidated database. However, you
should be truncating the transaction log as part of your
Backup and Recovery strategy because the transaction log
is still require for recovery.

--
Joshua Savill
Sybase Inc. - Product Manager


Herman Miller wrote:
We use Mobilink to send certain transaction down from
the consolidated database to the clients. Can we still
truncate the transaction log with no effect on Mobilink?

Thanks

Herman,

There are two considerations here. For the consolidated
database, there is no dependency on the transaction
log >> for MobiLink synchronization. Maintaining the
transaction >> log size can be done using an appropriate
backup and >> recovery method. If you're going to truncate
the >> consolidated database transaction log, then you
should >> make a backup of the transaction log for
recovery >> purposes.
For the remote database, NEVER EVER truncate a
transaction >> log. Truncating the transaction log will
break MobiLink >> synchronization. The transaction log is
used to scan and >> generate the uploads. For transaction
log management you >> should rename and restart the
transaction log. However, >> you may still require the
old transaction log as there >> may be operations that
have yet to be synchronized. This >> may require you to
specify the location of old transaction >> log on the
dbmlsync command line.
One option for managing the transaction log size for
the >> remote database is by using dbmlsync -x [size
[K|M|G]] >> and then setting DELETE_OLD_LOGS option to ON.
Each time >> dbmlsync runs, provided the size of the
transaction log >> meets the criteria, the transaction log
will be renamed >> and restarted. With the
DELETE_OLD_LOGS option set to ON, >> when the transaction
log is no longer required for >> MobiLink synchronization,
the log is removed >> automatically.

http://www.ianywhere.com/developer/p...9/00000169.htm
--
Joshua Savill
Sybase Inc. - Product Manager


Herman wrote:
Sybase 9.0.2.3534

How do I truncate a transaction log for a database
involved in Mobilink Replication? I need to know this
for the consolidated database and the publishing
database.
Thanks

Reply With Quote
  #7  
Old   
Josh Savill [Sybase]
 
Posts: n/a

Default Re: Truncate Log - 09-22-2009 , 01:23 PM



Well correct in the sense that any row meeting the criteria of the SELECT statement will be sent to
the remote database.

--
Joshua Savill
Sybase Inc. - Product Manager


Josh Savill [Sybase] wrote:
Quote:
Correct.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.