hWe run full backup on our SQL2K databases everynight. After the backup, the
databases should truncate all committed transaction logs but trans logs are
not being truncating and it just grows and grows. I heard that poorly
written applications sometimes don't commited SQL trans logs propely after
the full backup thus creating a huge trans log files. Is there a way to
check whether trans logs are committed or not?
Thanks in advance.Daniel wrote:
> hWe run full backup on our SQL2K databases everynight. After the backup, the
> databases should truncate all committed transaction logs but trans logs are
> not being truncating and it just grows and grows. I heard that poorly
> written applications sometimes don't commited SQL trans logs propely after
> the full backup thus creating a huge trans log files. Is there a way to
> check whether trans logs are committed or not?
> Thanks in advance.
You're doing full backups, but you're not doing transaction log backups,
thus the committed transactions never get flushed from the log. Either
put the database into Simple recovery mode, or schedule transaction log
backups throughout the day. I have a script that you can use to
automate this:
http://realsqlguy.com/twiki/bin/view/RealSQLGuy/AutomaticBackupOfAllDatabases
Tracy McKibben
MCDBA
http://www.realsqlguy.com
Showing posts with label committed. Show all posts
Showing posts with label committed. Show all posts
Sunday, February 19, 2012
Committed Trans Logs
hWe run full backup on our SQL2K databases everynight. After the backup, th
e
databases should truncate all committed transaction logs but trans logs are
not being truncating and it just grows and grows. I heard that poorly
written applications sometimes don't commited SQL trans logs propely after
the full backup thus creating a huge trans log files. Is there a way to
check whether trans logs are committed or not?
Thanks in advance.Daniel wrote:
> hWe run full backup on our SQL2K databases everynight. After the backup,
the
> databases should truncate all committed transaction logs but trans logs ar
e
> not being truncating and it just grows and grows. I heard that poorly
> written applications sometimes don't commited SQL trans logs propely after
> the full backup thus creating a huge trans log files. Is there a way to
> check whether trans logs are committed or not?
> Thanks in advance.
You're doing full backups, but you're not doing transaction log backups,
thus the committed transactions never get flushed from the log. Either
put the database into Simple recovery mode, or schedule transaction log
backups throughout the day. I have a script that you can use to
automate this:
http://realsqlguy.com/twiki/bin/vie...realsqlguy.com
e
databases should truncate all committed transaction logs but trans logs are
not being truncating and it just grows and grows. I heard that poorly
written applications sometimes don't commited SQL trans logs propely after
the full backup thus creating a huge trans log files. Is there a way to
check whether trans logs are committed or not?
Thanks in advance.Daniel wrote:
> hWe run full backup on our SQL2K databases everynight. After the backup,
the
> databases should truncate all committed transaction logs but trans logs ar
e
> not being truncating and it just grows and grows. I heard that poorly
> written applications sometimes don't commited SQL trans logs propely after
> the full backup thus creating a huge trans log files. Is there a way to
> check whether trans logs are committed or not?
> Thanks in advance.
You're doing full backups, but you're not doing transaction log backups,
thus the committed transactions never get flushed from the log. Either
put the database into Simple recovery mode, or schedule transaction log
backups throughout the day. I have a script that you can use to
automate this:
http://realsqlguy.com/twiki/bin/vie...realsqlguy.com
Committed Memory
I recently did some performance testing and one of the
counters I monitored was Committed memory. Can someone
explain what this means. Is it the amount SQL Server can
access?
Also when AWE is enabled the memory used in Task manager
goes to whatever the limit is for SQL Server. Is that
because it is reserved for SQL Server processes.
Thanks for any advice.
JamieWhen you use AWE memory with SQL Server, SQL statically maps all of the
memory at startup (unlike nonAWE memory which is dynamic). If you want to
reserve less memory for SQL and leave more memory for other apps, use the
"sp_configure max server memory" option. Books on Line has a good
description under "Managing AWE Memory".
Brian Goldstein
SQL Server Product Group
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
"Jamie Downs" <jamie@.and.co.uk> wrote in message
news:09b801c33fb5$93e73720$a101280a@.phx.gbl...
> I recently did some performance testing and one of the
> counters I monitored was Committed memory. Can someone
> explain what this means. Is it the amount SQL Server can
> access?
> Also when AWE is enabled the memory used in Task manager
> goes to whatever the limit is for SQL Server. Is that
> because it is reserved for SQL Server processes.
> Thanks for any advice.
> Jamie
counters I monitored was Committed memory. Can someone
explain what this means. Is it the amount SQL Server can
access?
Also when AWE is enabled the memory used in Task manager
goes to whatever the limit is for SQL Server. Is that
because it is reserved for SQL Server processes.
Thanks for any advice.
JamieWhen you use AWE memory with SQL Server, SQL statically maps all of the
memory at startup (unlike nonAWE memory which is dynamic). If you want to
reserve less memory for SQL and leave more memory for other apps, use the
"sp_configure max server memory" option. Books on Line has a good
description under "Managing AWE Memory".
Brian Goldstein
SQL Server Product Group
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
"Jamie Downs" <jamie@.and.co.uk> wrote in message
news:09b801c33fb5$93e73720$a101280a@.phx.gbl...
> I recently did some performance testing and one of the
> counters I monitored was Committed memory. Can someone
> explain what this means. Is it the amount SQL Server can
> access?
> Also when AWE is enabled the memory used in Task manager
> goes to whatever the limit is for SQL Server. Is that
> because it is reserved for SQL Server processes.
> Thanks for any advice.
> Jamie
Commit timestamp on publisher
Hi,
I'm using SQL2000 transaction replication. I'd like to find out
exactly when individual transactions are committed on the publisher
side, before they are actually replicated. Is there a system table
that holds this info? I've looked at MSDistribution_History and
MSqreader_History but they don't have what I'm looking for. Is there a
system variable that I can tap into that may have this (like DB2
has)?
Any thoughts?
Thanks,
Glenn
Glenn,
you can use sp_browsereplcmds which queries the MSrepl_commands table.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
I'm using SQL2000 transaction replication. I'd like to find out
exactly when individual transactions are committed on the publisher
side, before they are actually replicated. Is there a system table
that holds this info? I've looked at MSDistribution_History and
MSqreader_History but they don't have what I'm looking for. Is there a
system variable that I can tap into that may have this (like DB2
has)?
Any thoughts?
Thanks,
Glenn
Glenn,
you can use sp_browsereplcmds which queries the MSrepl_commands table.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
Labels:
commit,
committed,
database,
individual,
microsoft,
mysql,
oracle,
outexactly,
publisher,
publisherside,
replication,
server,
sql,
sql2000,
timestamp,
transaction,
transactions
Subscribe to:
Posts (Atom)