Quantcast
Channel: SCN: Message List - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all articles
Browse latest Browse all 3587

Re: Archiving log in Sybase_ASE

$
0
0

Hi.

There is no global option/parameter that controls transaction log backups in ASE (like archive log mode in Oracle DBs).

 

There are several cases which prevent transaction log backups for ASE databases:

 

1. When "SELECT INTO/ BCP" option is set for specified database

2. When "TRUNC LOG ON CHKPT" option is set for specified database


You can check status bit from master..sysdatabases by this simple query:

select

name,

case when status&4=4 then "TRUE" else "FALSE" end as "Select Into/BCP",

case when status&8=8 then "TRUE" else "FALSE" end as "Trunc Log on Chkpt"

from sysdatabases;


Please verify table 1-5  from:

sysdatabases


To perform transaction log backups you have to turn off these options and make full database backup first.


3. When you perform log truncation for database (like: dump tran <dbname> with truncate_only, see Using the special dump transaction options)


Again, to return to transaction log backups (after truncating tran. log) you have to make full database backup first.

 

 

You can also verify LastTranLogDumpTime time from monitoring table monOpenDatabases:


select dbname, LastTranLogDumpTime from monOpenDatabases;


to check when last transaction log backup occured and go into the details if the time does not meet the schedule.


Regards.

 

--

Marcin

 




Viewing all articles
Browse latest Browse all 3587

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>