dbTalk Databases Forums  

global synchronization point

comp.databases.sybase comp.databases.sybase


Discuss global synchronization point in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
horos11@gmail.com
 
Posts: n/a

Default global synchronization point - 09-17-2008 , 07:17 PM






hey all,

I was wondering if it was possible to do the following -

I would like to set a 'sync point' where

1) transactions could occur on a given database or databases after the
sync point was created in multiple sessions.
2) I could globally 'roll back' the database to the sync point.

I'm not thinking of the transaction begin/commit/rollback cycle, I'm
thinking of it truly globally - where users could do multiple commits
and rollbacks, and then do a global rollback to a given point of time.

In oracle, I believe this is done through transaction logs; how do you
set up this in sybase?

Ed

(ps - how do you get the version of sybase that you are running
against via isql? I see in my case the binary is old (1999) but I'm
assuming that the database itself is a lot newer..)

Reply With Quote
  #2  
Old   
mnajs
 
Posts: n/a

Default Re: global synchronization point - 09-18-2008 , 06:29 AM






horos11 (AT) gmail (DOT) com pisze:
Quote:
[...]
I'm not thinking of the transaction begin/commit/rollback cycle, I'm
thinking of it truly globally - where users could do multiple commits
and rollbacks, and then do a global rollback to a given point of time.

In oracle, I believe this is done through transaction logs; how do you
set up this in sybase?
Hi,
If you perform database+transaction log dumps for your database
you can 'rollback' the state of database loading database from
the last db dump and loading transactions up to a specified time
(i.e. using 'until_time' option). I'm not an expert but I think
it would work.


Quote:
(ps - how do you get the version of sybase that you are running
against via isql? I see in my case the binary is old (1999) but I'm
assuming that the database itself is a lot newer..)

For ASE servers, @@verion is a server-wide, global variable that
contains version information.
Quote:
select @@version
go
Regards,

--
Marcin Najs


Reply With Quote
  #3  
Old   
mnajs
 
Posts: n/a

Default Re: global synchronization point - 09-18-2008 , 06:29 AM



horos11 (AT) gmail (DOT) com pisze:
Quote:
[...]
I'm not thinking of the transaction begin/commit/rollback cycle, I'm
thinking of it truly globally - where users could do multiple commits
and rollbacks, and then do a global rollback to a given point of time.

In oracle, I believe this is done through transaction logs; how do you
set up this in sybase?
Hi,
If you perform database+transaction log dumps for your database
you can 'rollback' the state of database loading database from
the last db dump and loading transactions up to a specified time
(i.e. using 'until_time' option). I'm not an expert but I think
it would work.


Quote:
(ps - how do you get the version of sybase that you are running
against via isql? I see in my case the binary is old (1999) but I'm
assuming that the database itself is a lot newer..)

For ASE servers, @@verion is a server-wide, global variable that
contains version information.
Quote:
select @@version
go
Regards,

--
Marcin Najs


Reply With Quote
  #4  
Old   
mnajs
 
Posts: n/a

Default Re: global synchronization point - 09-18-2008 , 06:29 AM



horos11 (AT) gmail (DOT) com pisze:
Quote:
[...]
I'm not thinking of the transaction begin/commit/rollback cycle, I'm
thinking of it truly globally - where users could do multiple commits
and rollbacks, and then do a global rollback to a given point of time.

In oracle, I believe this is done through transaction logs; how do you
set up this in sybase?
Hi,
If you perform database+transaction log dumps for your database
you can 'rollback' the state of database loading database from
the last db dump and loading transactions up to a specified time
(i.e. using 'until_time' option). I'm not an expert but I think
it would work.


Quote:
(ps - how do you get the version of sybase that you are running
against via isql? I see in my case the binary is old (1999) but I'm
assuming that the database itself is a lot newer..)

For ASE servers, @@verion is a server-wide, global variable that
contains version information.
Quote:
select @@version
go
Regards,

--
Marcin Najs


Reply With Quote
  #5  
Old   
mnajs
 
Posts: n/a

Default Re: global synchronization point - 09-18-2008 , 06:29 AM



horos11 (AT) gmail (DOT) com pisze:
Quote:
[...]
I'm not thinking of the transaction begin/commit/rollback cycle, I'm
thinking of it truly globally - where users could do multiple commits
and rollbacks, and then do a global rollback to a given point of time.

In oracle, I believe this is done through transaction logs; how do you
set up this in sybase?
Hi,
If you perform database+transaction log dumps for your database
you can 'rollback' the state of database loading database from
the last db dump and loading transactions up to a specified time
(i.e. using 'until_time' option). I'm not an expert but I think
it would work.


Quote:
(ps - how do you get the version of sybase that you are running
against via isql? I see in my case the binary is old (1999) but I'm
assuming that the database itself is a lot newer..)

For ASE servers, @@verion is a server-wide, global variable that
contains version information.
Quote:
select @@version
go
Regards,

--
Marcin Najs


Reply With Quote
  #6  
Old   
mnajs
 
Posts: n/a

Default Re: global synchronization point - 09-18-2008 , 06:29 AM



horos11 (AT) gmail (DOT) com pisze:
Quote:
[...]
I'm not thinking of the transaction begin/commit/rollback cycle, I'm
thinking of it truly globally - where users could do multiple commits
and rollbacks, and then do a global rollback to a given point of time.

In oracle, I believe this is done through transaction logs; how do you
set up this in sybase?
Hi,
If you perform database+transaction log dumps for your database
you can 'rollback' the state of database loading database from
the last db dump and loading transactions up to a specified time
(i.e. using 'until_time' option). I'm not an expert but I think
it would work.


Quote:
(ps - how do you get the version of sybase that you are running
against via isql? I see in my case the binary is old (1999) but I'm
assuming that the database itself is a lot newer..)

For ASE servers, @@verion is a server-wide, global variable that
contains version information.
Quote:
select @@version
go
Regards,

--
Marcin Najs


Reply With Quote
  #7  
Old   
mnajs
 
Posts: n/a

Default Re: global synchronization point - 09-18-2008 , 06:29 AM



horos11 (AT) gmail (DOT) com pisze:
Quote:
[...]
I'm not thinking of the transaction begin/commit/rollback cycle, I'm
thinking of it truly globally - where users could do multiple commits
and rollbacks, and then do a global rollback to a given point of time.

In oracle, I believe this is done through transaction logs; how do you
set up this in sybase?
Hi,
If you perform database+transaction log dumps for your database
you can 'rollback' the state of database loading database from
the last db dump and loading transactions up to a specified time
(i.e. using 'until_time' option). I'm not an expert but I think
it would work.


Quote:
(ps - how do you get the version of sybase that you are running
against via isql? I see in my case the binary is old (1999) but I'm
assuming that the database itself is a lot newer..)

For ASE servers, @@verion is a server-wide, global variable that
contains version information.
Quote:
select @@version
go
Regards,

--
Marcin Najs


Reply With Quote
  #8  
Old   
mnajs
 
Posts: n/a

Default Re: global synchronization point - 09-18-2008 , 06:29 AM



horos11 (AT) gmail (DOT) com pisze:
Quote:
[...]
I'm not thinking of the transaction begin/commit/rollback cycle, I'm
thinking of it truly globally - where users could do multiple commits
and rollbacks, and then do a global rollback to a given point of time.

In oracle, I believe this is done through transaction logs; how do you
set up this in sybase?
Hi,
If you perform database+transaction log dumps for your database
you can 'rollback' the state of database loading database from
the last db dump and loading transactions up to a specified time
(i.e. using 'until_time' option). I'm not an expert but I think
it would work.


Quote:
(ps - how do you get the version of sybase that you are running
against via isql? I see in my case the binary is old (1999) but I'm
assuming that the database itself is a lot newer..)

For ASE servers, @@verion is a server-wide, global variable that
contains version information.
Quote:
select @@version
go
Regards,

--
Marcin Najs


Reply With Quote
  #9  
Old   
mnajs
 
Posts: n/a

Default Re: global synchronization point - 09-18-2008 , 06:29 AM



horos11 (AT) gmail (DOT) com pisze:
Quote:
[...]
I'm not thinking of the transaction begin/commit/rollback cycle, I'm
thinking of it truly globally - where users could do multiple commits
and rollbacks, and then do a global rollback to a given point of time.

In oracle, I believe this is done through transaction logs; how do you
set up this in sybase?
Hi,
If you perform database+transaction log dumps for your database
you can 'rollback' the state of database loading database from
the last db dump and loading transactions up to a specified time
(i.e. using 'until_time' option). I'm not an expert but I think
it would work.


Quote:
(ps - how do you get the version of sybase that you are running
against via isql? I see in my case the binary is old (1999) but I'm
assuming that the database itself is a lot newer..)

For ASE servers, @@verion is a server-wide, global variable that
contains version information.
Quote:
select @@version
go
Regards,

--
Marcin Najs


Reply With Quote
  #10  
Old   
Keith
 
Posts: n/a

Default Re: global synchronization point - 09-19-2008 , 11:47 AM



On Sep 17, 7:17*pm, horo... (AT) gmail (DOT) com wrote:
Quote:
hey all,

I was wondering if it was possible to do the following -

I would like to set a 'sync point' where

1) transactions could occur on a given database or databases after the
sync point was created in multiple sessions.
2) I could globally 'roll back' the database to the sync point.

The "es" after database is the sticky point here. If you mean "within
the same database server" you're OK. If you mean across database
servers I think what you are after is known as an "XA" architecture
and requires additional product for the database vendor [be it Oracle
or Sybase] as well a "transaction monitor" or equivalent (J2EE
Application Server, e.g.) and application support to do it right.
What if your application creates
flat files, for example, or sends pub / sub messages; are actions
required there (external to your database(s)) when you rollback?

Your problem statement is very general and (potentially) very
ambitious at the same time.

Keith


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.