dbTalk Databases Forums  

Turning the transaction log on and off

comp.databases.sybase comp.databases.sybase


Discuss Turning the transaction log on and off in the comp.databases.sybase forum.



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

Default Turning the transaction log on and off - 07-07-2004 , 11:59 AM






Hi

I have a sybase database (Adaptive Server Enterprise/12.0.0.3/P/SWR)
which has the transaction log enabled - and thus bcp disabled.

I would like to reverse this to allow bcping.

Is it possible to do this intra-day (i.e. whilst users are actively in
the system) or does it require a server restart / single user ?

Similarly what are the constraints for turning the transaction log
back on again ?

Thanks
Chris

Reply With Quote
  #2  
Old   
Rob Verschoor
 
Posts: n/a

Default Re: Turning the transaction log on and off - 07-07-2004 , 12:44 PM






"Chris Marshall" <c_j_marshall (AT) hotmail (DOT) com> wrote

Quote:
Hi

I have a sybase database (Adaptive Server Enterprise/12.0.0.3/P/SWR)
which has the transaction log enabled - and thus bcp disabled.

I would like to reverse this to allow bcping.

Is it possible to do this intra-day (i.e. whilst users are actively in
the system) or does it require a server restart / single user ?

Similarly what are the constraints for turning the transaction log
back on again ?

Thanks
Chris

I think there may be some misunderstandings here.
First, the transaction log cannot be turned off.
Second, bcp cannot really be disabled.

Could you perhaps post more details as to what you're trying to do and what
goes wrong (preferably with the original error messages) ?

HTH,

Rob
-------------------------------------------------------------
Rob Verschoor

Certified Sybase Professional DBA for ASE 12.5/12.0/11.5/11.0
and Replication Server 12.5

Author of various Sybase books. New book (coming soon): "The
Complete Sybase Replication Server Quick Reference Guide"
Online orders accepted at http://www.sypron.nl/shop

mailto:rob (AT) YOUR (DOT) SPAM.sypron.nl.NOT.FOR.ME
http://www.sypron.nl
Sypron B.V., P.O.Box 10695, 2501HR Den Haag, The Netherlands
-------------------------------------------------------------




Reply With Quote
  #3  
Old   
Chris Marshall
 
Posts: n/a

Default Re: Turning the transaction log on and off - 07-08-2004 , 03:03 AM



"Rob Verschoor" <rob (AT) DO (DOT) NOT.SPAM.sypron.nl.REMOVE.THIS.DECOY> wrote

Quote:
"Chris Marshall" <c_j_marshall (AT) hotmail (DOT) com> wrote in message
news:cb9c7b76.0407070859.3a962b66 (AT) posting (DOT) google.com...
Hi

I have a sybase database (Adaptive Server Enterprise/12.0.0.3/P/SWR)
which has the transaction log enabled - and thus bcp disabled.

I would like to reverse this to allow bcping.

Is it possible to do this intra-day (i.e. whilst users are actively in
the system) or does it require a server restart / single user ?

Similarly what are the constraints for turning the transaction log
back on again ?

Thanks
Chris


I think there may be some misunderstandings here.
First, the transaction log cannot be turned off.
Second, bcp cannot really be disabled.

Could you perhaps post more details as to what you're trying to do and what
goes wrong (preferably with the original error messages) ?

HTH,

Rob

Sorry - I guess I could have worded it better.
Is it safe to turn "select into/bulkcopy/pllsort" to true (and back to
false) whenever you wish ?


Reply With Quote
  #4  
Old   
Michael Peppler
 
Posts: n/a

Default Re: Turning the transaction log on and off - 07-08-2004 , 04:20 AM



On Thu, 08 Jul 2004 01:03:36 -0700, Chris Marshall wrote:

Quote:
"Rob Verschoor" <rob (AT) DO (DOT) NOT.SPAM.sypron.nl.REMOVE.THIS.DECOY> wrote in
message news:<RDWGc.63574$3N6.40217 (AT) amsnews05 (DOT) chello.com>...
"Chris Marshall" <c_j_marshall (AT) hotmail (DOT) com> wrote in message
news:cb9c7b76.0407070859.3a962b66 (AT) posting (DOT) google.com...
Hi

I have a sybase database (Adaptive Server Enterprise/12.0.0.3/P/SWR)
which has the transaction log enabled - and thus bcp disabled.

I would like to reverse this to allow bcping.

Is it possible to do this intra-day (i.e. whilst users are actively in
the system) or does it require a server restart / single user ?

Similarly what are the constraints for turning the transaction log
back on again ?

Thanks
Chris


I think there may be some misunderstandings here. First, the transaction
log cannot be turned off. Second, bcp cannot really be disabled.

Could you perhaps post more details as to what you're trying to do and
what goes wrong (preferably with the original error messages) ?

HTH,

Rob


Sorry - I guess I could have worded it better. Is it safe to turn "select
into/bulkcopy/pllsort" to true (and back to false) whenever you wish ?
Changing the setting of this option won't affect recoverability in any way.
It's only if you run a minimally logged operation (such as certain "alter
table" commands, or fast bcp in, for example) that the transaction dumps
will stop working and you'll have to do a full database dump.
The transaction dump command will tell you this, BTW.

Michael
--
Michael Peppler Data Migrations, Inc.
mpeppler (AT) peppler (DOT) org http://www.peppler.org/
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or
long term contract positions - http://www.peppler.org/resume.html



Reply With Quote
  #5  
Old   
Chris Marshall
 
Posts: n/a

Default Re: Turning the transaction log on and off - 07-08-2004 , 09:05 AM



Michael Peppler <mpeppler (AT) peppler (DOT) org> wrote

Quote:
On Thu, 08 Jul 2004 01:03:36 -0700, Chris Marshall wrote:
Sorry - I guess I could have worded it better. Is it safe to turn "select
into/bulkcopy/pllsort" to true (and back to false) whenever you wish ?

Changing the setting of this option won't affect recoverability in any way.
It's only if you run a minimally logged operation (such as certain "alter
table" commands, or fast bcp in, for example) that the transaction dumps
will stop working and you'll have to do a full database dump.
The transaction dump command will tell you this, BTW.

Michael

Ah I get it now - thanks both of you for your help.

Cheers,
Chris


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.