<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlserver.ro/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Intrebari generale</title><link>http://sqlserver.ro/forums/16/ShowForum.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Re: pot limita minim fisierul de Log (.ldf-ul) ?</title><link>http://sqlserver.ro/forums/thread/2441.aspx</link><pubDate>Fri, 10 Aug 2007 09:59:24 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2441</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2441.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=2441</wfw:commentRss><description>&lt;P&gt;am un maintenace plan care face shirnk....are bifa de la tabul Optimization &amp;gt;&amp;gt; remove unused space...&amp;gt;&amp;gt;shrink database when it grows beyond....dar se execuat doar Sunday la 10.30....deci nu zilnic....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;ieri am facut un alter database si i-am dat size la ldf de 1400 MB si pt ca se executa acel transaction log backup la interval de 3 ore azi l-am gasit la ~ 50 MB iar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;alex.&lt;/P&gt;</description></item><item><title>Re: pot limita minim fisierul de Log (.ldf-ul) ?</title><link>http://sqlserver.ro/forums/thread/2440.aspx</link><pubDate>Fri, 10 Aug 2007 09:28:32 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2440</guid><dc:creator>rsocol</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2440.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=2440</wfw:commentRss><description>&lt;p&gt;Backup-ul de transaction log nu face automat shrink. Vezi dacă ai vreun maintenance plan care îţi face shrink.&lt;/p&gt;&lt;p&gt;Răzvan&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: pot limita minim fisierul de Log (.ldf-ul) ?</title><link>http://sqlserver.ro/forums/thread/2436.aspx</link><pubDate>Fri, 10 Aug 2007 07:07:09 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2436</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2436.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=2436</wfw:commentRss><description>&lt;P&gt;se pare ca m-am inselat :(&lt;/P&gt;
&lt;P&gt;scade sub dimensiunea X...deci backupul de transaction log goleste dar face si shrink &lt;/P&gt;
&lt;P&gt;alex.&lt;/P&gt;</description></item><item><title>Re: pot limita minim fisierul de Log (.ldf-ul) ?</title><link>http://sqlserver.ro/forums/thread/2431.aspx</link><pubDate>Thu, 09 Aug 2007 10:50:57 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2431</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2431.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=2431</wfw:commentRss><description>&lt;P&gt;eu am facut asa:&lt;/P&gt;
&lt;P&gt;USE master&lt;BR&gt;GO&lt;BR&gt;ALTER DATABASE DBName&lt;BR&gt;MODIFY FILE&lt;BR&gt;&amp;nbsp;&amp;nbsp; (NAME = DBName_Log,&lt;BR&gt;&amp;nbsp;&amp;nbsp; SIZE = X MB) -- unde x este 25% din Data File (.mdf)&lt;BR&gt;GO&lt;/P&gt;
&lt;P&gt;&amp;nbsp;dupa care am observat ca oricate backupuri de transaction Log as face ....fisierul de Log se va goli dar nu va scadea ca dimensiune sub X&lt;/P&gt;
&lt;P&gt;multumesc mult&lt;/P&gt;
&lt;P&gt;alex.&lt;/P&gt;</description></item><item><title>Re: pot limita minim fisierul de Log (.ldf-ul) ?</title><link>http://sqlserver.ro/forums/thread/2429.aspx</link><pubDate>Thu, 09 Aug 2007 09:56:09 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2429</guid><dc:creator>rsocol</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2429.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=2429</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://sqlserver.ro/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Diana:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;De asemenea am inteles ca "shrink" - ul nu poate reduce dimensiunea
fisierului "mai jos" decat dimensiunea cu care a fost creat (sau
modificat prin ALTER DATABASE...). De exemplu poti incerca sa creezi
baza cu logul avand size = 1GB&lt;br&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;Diana, nu e chiar aşa. Încearcă, de exemplu, următorul script:&lt;/p&gt;&lt;p&gt;CREATE DATABASE ShrinkTest &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ON (NAME='DataFile', FILENAME='C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\DataFile.mdf', SIZE=100 MB)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG ON (NAME='LogFile', FILENAME='C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\LogFile.ldf', SIZE=100 MB)&lt;br&gt;GO&lt;br&gt;ALTER DATABASE ShrinkTest SET RECOVERY FULL&lt;br&gt;GO&lt;br&gt;EXEC sp_helpdb 'ShrinkTest'&lt;br&gt;GO&lt;br&gt;USE ShrinkTest&lt;br&gt;DBCC SHRINKFILE('LogFile',5)&lt;br&gt;GO&lt;br&gt;EXEC sp_helpdb 'ShrinkTest'&lt;br&gt;GO&lt;br&gt;USE master&lt;br&gt;DROP DATABASE ShrinkTest&lt;/p&gt;&lt;p&gt;După cum se observă, fişierul de log a putut fi micşorat la 25 MB (faţă de 100 MB, cât avea iniţial). Totuşi, noi am specificat că am dori să-l micşorăm la 5 MB şi nu a putut fi micşorat aşa de mult, dar asta e din alte cauze, legate de numărul de "logical log files" (acestea pot fi afişate cu DBCC LOGINFO). Dacă se întâmplă ceva activitate în baza de date, iar apoi se fac backup-uri la log, probabil ar putea fi micşorat şi mai mult (cu DBCC SHRINKFILE), chiar până la 1MB (dar după cum spuneam, nu e bine să facem asta în mod regulat).&lt;/p&gt;&lt;p&gt;Răzvan&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: pot limita minim fisierul de Log (.ldf-ul) ?</title><link>http://sqlserver.ro/forums/thread/2426.aspx</link><pubDate>Thu, 09 Aug 2007 08:49:20 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2426</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2426.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=2426</wfw:commentRss><description>De asemenea am inteles ca "shrink" - ul nu poate reduce dimensiunea
fisierului "mai jos" decat dimensiunea cu care a fost creat (sau
modificat prin ALTER DATABASE...). De exemplu poti incerca sa creezi
baza cu logul avand size = 1GB - sperand ca am inteles ce vrei...&lt;img src="http://sqlserver.ro/emoticons/emotion-1.gif" alt="Smile" /&gt; &lt;br&gt;</description></item><item><title>Re: pot limita minim fisierul de Log (.ldf-ul) ?</title><link>http://sqlserver.ro/forums/thread/2425.aspx</link><pubDate>Thu, 09 Aug 2007 08:42:33 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2425</guid><dc:creator>rsocol</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2425.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=2425</wfw:commentRss><description>&lt;p&gt;În momentul în care se face backup la transaction log, acesta se goleşte, dar nu se micşorează. El se micşorează doar dacă faci shrink, dar NU e recomandabil să faci acest lucru periodic (vezi &lt;a href="http://www.karaszi.com/SQLServer/info_dont_shrink.asp" target="_blank"&gt;http://www.karaszi.com/SQLServer/info_dont_shrink.asp&lt;/a&gt;). &lt;/p&gt;&lt;p&gt;Răzvan&amp;nbsp;&lt;/p&gt;</description></item><item><title>pot limita minim fisierul de Log (.ldf-ul) ?</title><link>http://sqlserver.ro/forums/thread/2424.aspx</link><pubDate>Thu, 09 Aug 2007 05:55:02 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:2424</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/2424.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=2424</wfw:commentRss><description>&lt;P&gt;Salut,&lt;/P&gt;
&lt;P&gt;exista posibilitatea ca in sql server 2000 sa definesc pentru o baza de date o dimensiune MINIMA a fisierului de Transaction Log&lt;/P&gt;
&lt;P&gt;de exemplu am o baza de date de ~ 5 GB (Data Files&amp;nbsp;.... mdf-ul) pe care execut la un anumit interval de timp Transaction Log Backup care imi tine oarecum sub control dimensiunea fisierului de Log (ldf - ul)......sa zicem ca in timpul unei zile log-ul creste la 2GB dupa care&amp;nbsp;se realizeaza&amp;nbsp;acest backup de Log si il face la ~10MB (care mi se pare f mic pt. o baza de date de 5 GB)....pe urma daca el se mareste cu 15-20 %(depinde cum e definit sa creasca) tot creste cu f putin spatiu si in urma unei trazactii efectuate pe baza de date el este obligat sa creasca de mai multe ori incetinind aceea tranzactie.....bine pot sa-l definesc si sa creasca cu un anumit numar de MB dar nu asta vreau&lt;/P&gt;
&lt;P&gt;ce mi-as dori eu este ca atunci cand se face transaction log backup chiar fisierul de Log sa fie golit act trebuie dar dimensiunea lui sa ramana la ~ 1GB....deci sa nu scada sub valoarea asta&lt;/P&gt;
&lt;P&gt;multumesc.&lt;/P&gt;
&lt;P&gt;alex.&lt;/P&gt;</description></item></channel></rss>