Resisting the creation of new log files when SQL SERVER is restarted
Hi,
I know that when SQL server is restarted new log files are created. But is it possible to resist creating new log fils and insert log data in the existing log files that are used before restarting the sql server
Hello,
I guess Raghvendra answered your question. And as per your previous post its not clear what you want to ask an you did not revert. Again if your issue is solved appreciate if you can please mark the answer and vote the posts helpful.
Can I continue to log in the same file.?
What does this line mean exactly ? Yes SQL Server will continue to use same transaction log file(LDF file) for writing information as it was using before shutdown. If you are talking about errorlog file a new errorlog file would be created which you can
read using
sp_readerrorlog
Even if you stopped SQL Server service mistakenly its not that server is gone. Yes when you stopped the server all inflight transactions are rolled back. And when SQL Server would come online it would undergo crash recovery and would bring all the databases
online by reading transaction log file and performing redo and undo of information. All committed transaction would be rolled forward and uncommitted would be rolled back.
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
My Technet Wiki Article
MVP
Similar Messages
-
I was running SQL Server 2012 in Win 7 64 bit OS. Some how I found SQLSERVER server is not running and I was not able to run the service. Then I tried to unisntall and install again. And I found that some of the SQL Server
features got failed, like: Reporting Services - Native, Database Engine Services, Data Quality Services, Full-Text and Semantic Extractions for Search and SQL Server Replication. I checked the Summary.txt
file from location C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log. It thsi logs referes to another log file location like:
Feature: Database Engine Services
Status: Failed: see logs for details
Reason for failure: An error occurred during the setup process of the feature.
Next Step: Use the following information to resolve the error, and then try the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 1639
Component log file: C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20140127_151409\sql_engine_core_inst_Cpu64_1.log
Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=sql_engine_core_inst.msi%400x162A16FE%400x1639
I did unisntall/install multipel times. But fhw to fix the issue that saying in sql_engine_core_inst_Cpu64_1.log file.:
=== Verbose logging started: 1/27/2014 15:45:04 Build type: SHIP UNICODE 5.00.7601.00 Calling process: C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\SQLServer2012\x64\ScenarioEngine.exe ===
MSI (c) (C4:BC) [15:45:04:321]: Resetting cached policy values
MSI (c) (C4:BC) [15:45:04:321]: Machine policy value 'Debug' is 0
MSI (c) (C4:BC) [15:45:04:321]: ******* RunEngine:
******* Product: E:\Software\SQL Full Installation\x64\setup\sql_engine_core_inst_msi\sql_engine_core_inst.msi
******* Action:
******* CommandLine: **********
MSI (c) (C4:BC) [15:45:04:322]: Client-side and UI is none or basic: Running entire install on the server.
MSI (c) (C4:BC) [15:45:04:322]: Grabbed execution mutex.
MSI (c) (C4:BC) [15:45:04:323]: Cloaking enabled.
MSI (c) (C4:BC) [15:45:04:323]: Attempting to enable all disabled privileges before calling Install on Server
MSI (c) (C4:BC) [15:45:04:323]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (38:8C) [15:45:04:327]: Running installation inside multi-package transaction E:\Software\SQL Full Installation\x64\setup\sql_engine_core_inst_msi\sql_engine_core_inst.msi
MSI (s) (38:8C) [15:45:04:327]: Grabbed execution mutex.
MSI (s) (38:A0) [15:45:04:327]: Resetting cached policy values
MSI (s) (38:A0) [15:45:04:327]: Machine policy value 'Debug' is 0
MSI (s) (38:A0) [15:45:04:327]: ******* RunEngine:
******* Product: E:\Software\SQL Full Installation\x64\setup\sql_engine_core_inst_msi\sql_engine_core_inst.msi
******* Action:
******* CommandLine: **********
MSI (s) (38:A0) [15:45:04:452]: Machine policy value 'TransformsSecure' is 0
MSI (s) (38:A0) [15:45:04:452]: User policy value 'TransformsAtSource' is 0
MSI (s) (38:A0) [15:45:04:475]: Machine policy value 'DisableUserInstalls' is 0
MSI (s) (38:A0) [15:45:04:475]: Specified instance {18B2A97C-92C3-4AC7-BE72-F823E0BC895B} via transform :InstID01.mst;:InstName02.mst is already installed. MSINEWINSTANCE requires a new instance that is not installed.
MSI (s) (38:A0) [15:45:04:475]: MainEngineThread is returning 1639
MSI (s) (38:8C) [15:45:04:477]: User policy value 'DisableRollback' is 0
MSI (s) (38:8C) [15:45:04:477]: Machine policy value 'DisableRollback' is 0
MSI (s) (38:8C) [15:45:04:477]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (38:8C) [15:45:04:478]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\InProgress 3: 2
MSI (s) (38:8C) [15:45:04:478]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\InProgress 3: 2
MSI (s) (38:8C) [15:45:04:478]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (s) (38:8C) [15:45:04:478]: Restoring environment variables
MSI (c) (C4:BC) [15:45:04:481]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (C4:BC) [15:45:04:481]: MainEngineThread is returning 1639
=== Verbose logging stopped: 1/27/2014 15:45:04 ===
Please advice. I searched many places and did not get actual solution that will resolve my case.
Nusrat AkhterHi Nusrat Akhter,
According to your description, when installing the first install failed, and it looks like the instance did not uninstall completely. To solve the issue I recommend you changed the instance name in re-installing SQL Server, and check if it can work fine.
There is a similar issue that the SQL engine will not start, and there is no method of uninstalling either it, or any of the components etc. You can review the following post.
https://connect.microsoft.com/SQLServer/feedback/details/710892/sql-server-2012-rc0-install-fails-citing-invalid-drivers
Thanks,
Sofiya Li
Sofiya Li
TechNet Community Support -
Tansaction Log File of SQL Server
Dear Guys,
We have implemented ECC 6.0 on Windows 2003 Server / MS SQL 2005 platform. For backup purpose we have bought Tivoli. Some reason we cant backup of Database from DB13. Our Transaction log file is goin to increase, when after taking the backup of Transaction log, I shrink the log file but size of log file never decrease. So size of log file increase and free size on disk decrease. Second issue is, Can I shirnk the log file when SAP instance run ...??
So help me out in this 2 issues.
Thanks & Regards,
Charanjit Singh.Hi,
The log space is usually huge after a fresh install. You can use the following script to shrink the log file. Make sure you take a full backup of the database before you run. If you running in production system make sure you run during the scheduled downtime after a full backup.
1) BACKUP LOG <DB_NAME> TO [<DEVICE_NAME>] WITH NOFORMAT, NOINIT,
NAME = N'<DESCRIPTION>', SKIP, NOREWIND, NOUNLOAD, STATS = 10 --backup transaction log to a backup device
GO
2) USE <DB_NAME> --switch to the database
GO
3) DBCC SHRINKFILE (N'<LOGICAL_LOG_FILE_NAME>' , 2024) --shrink the file to 2gb (2024). use sp_helpdb to find out the logical file name
GO
4) sp_helpdb <SID> --view the new size
go
5) dbcc loginfo (<SID>) -- a status of 2 means transaction is dirty.
Repeat steps 1 thru 5 until log size shrinks to your desired size.
The step 3 value of "2024" is 2gb which tries to shrink the log file to 2MB. But it is not guaranteed. That is why you have to run it multiple times.
The step 5 displays output of the transactions in the log file. The status of "2" means it is dirty. If you see this value at the end of result set then there is less chance of shrinking the log file. if you see the value of "2" in the middle of the result set then there is likely chance of shrinking the file. "DBCC LOGINFO" is an undocumented command in SQL Server. But it is a favourite command of all DBAs'.
I hope this helps.
RT
Message was edited by:
R.T.
Message was edited by:
R.Th. -
Drop Transation Log Files in SQL server
Hi friends,
I am useing sql server 2005 , in my databse transation log file is increased up to 20 GB ,so i am adding one more transation file , so i want delete pervious unused transation log file,so what is the procedure for drop the transation log file from my databse any one can help me....
Thanks,
NageswarHi,
Check SAP Note 363018
also check MSSQL Transaction Log full
Re: space problem
regards,
kaushal -
SSIS 2008 Logging - SSIS Log Provider for SQL Server
Simple SSIS package - copies a table from Server A to Server B.
Everything works except logging using SSIS Log Provider for SQL Server. Selecting the similar events to using
SSIS Log Provider for Text Files does generates a file on the server.
I specified server B on the configuration for SSIS Log Provider for SQL Server.
Logged on with a username with sysadmin rights on Server B. Executed the package using that login and nothing is written to msdb..sysssislog
any ideas what's going on or what am I doing wrong?Just to be sure that the basics are right :
You sure that you configured the log provider correctly?
Selected the required 'components' on the left bar?
Selected events on the Details Tab?
selected the right table? I mean it should be --> select * from msdb..sysssislog
The default schema in your DB setup is dbo right? Coz, if not the logging will be a real problem. You might wanna recreate the table then ..
Btw, if you still experience issues, I'd advise you to enable all events and check for logging just to make sure that there isnt any prob with the DB setup ..
Do try and let us know :)
Edited:
Also a few more:
Check what database you chose in the connection setting page of the logging configuration wizard and check for entries in sysssislog of tht DB as, the sysssislog will be created only in that db.
Ensure that you have execute permission on sp_ssis_addlogentry in that particular db (mostly msdb). Can be checked via:
select name,
has_perms_by_name(name, 'OBJECT', 'EXECUTE') as has_execute
from msdb.sys.procedures
where name like 'sp_ssis_addlogentry' --for 2008 edition and up
or name like 'sp_dts_addlogentry' --for 2005 edition
Thanks to @Sathyanarrayanans for pointing this out :)
Hope this should help ..
Thanks, Jay <If the post was helpful mark as 'Helpful and if the post answered your query, mark as 'Answered'> -
Importing Data From XLS File to SQL Server
Dear All,
I want to import the data from Excel(.xls) file to SQL Server (2008 R2). But due to some problem (may be data), an error is occurring when I am going to import using Import Data Wizard. I want the rows to ignore those are creating issues and to keep track
of those records. That's why I need to process rows one by one. How can I do it? Any idea?
Thanks & Regards,
Anujit Karmakar
Anujit Karmakar Sr. Software EngineerWhats the error? Have you mapped the source-destination data types in column mappings?
Below is a link to video to guide you through the Steps of Import/Export Wizard
SSIS Wizard Video: http://www.youtube.com/watch?v=9Wmdhnx1niU
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other
forum members can benefit from it -
Any ways to roll over to a different log file when the current log file big
How to roll over a log file when it reaches maximum to a different log file?
any ways of doing this??????More info in the new owners....
http://www.oracle.com/technology/pub/articles/hunter_logging.html
And more!!!!! here to build a configuration file with filehandler properly setted to an specified size
http://www.linuxtopia.org/online_books/programming_books/thinking_in_java/TIJ317_021.htm -
Not able to add new log file to the 11g database.
Hi DBA's
I am not able to add the log file i am getting error while adding the database.
SQL> alter database add logfile group 3 ('/oracle/DEV/db/apps_st/data/log03a.dbf','/oracle/DEV/db/apps_st/data/log03a.dbf') size 50m reuse;
alter database add logfile group 3 ('/oracle/DEV/db/apps_st/data/log03a.dbf','/oracle/DEV/db/apps_st/data/log03a.dbf') size 50m reuse
ERROR at line 1:
ORA-01505: error in adding log files
ORA-01577: cannot add log file '/oracle/DEV/db/apps_st/data/log03a.dbf' - file
already part of database
SQL> select a.group#, member, a.status from v$log a, v$logfile b where a.group# = b.group# order by 1;
GROUP# MEMBER STATUS
1 /oracle/DEV/db/apps_st/data/log01a.dbf ACTIVE
1 /oracle/DEV/db/apps_st/data/log01b.dbf ACTIVE
2 /oracle/DEV/db/apps_st/data/log02a.dbf CURRENT
2 /oracle/DEV/db/apps_st/data/log02b.dbf CURRENT
Kindly help me to add the new log file to my database.
Thanks,
SGHi Sawwan,
V$LOGMEMBER was written in the document,
I query the log members as bellow
1)select a.group#, member, a.status from v$log a, v$logfile b where a.group# = b.group# order by 1;
GROUP# MEMBER STATUS
1 /oracle/DEV/db/apps_st/data/log01a.dbf INACTIVE
1 /oracle/DEV/db/apps_st/data/log01b.dbf INACTIVE
2 /oracle/DEV/db/apps_st/data/log02a.dbf CURRENT
2 /oracle/DEV/db/apps_st/data/log02b.dbf CURRENT
2)SQL> select group#,member,status from v$logfile;
GROUP# MEMBER STATUS
2 /oracle/DEV/db/apps_st/data/log02a.dbf
2 /oracle/DEV/db/apps_st/data/log02b.dbf
1 /oracle/DEV/db/apps_st/data/log01a.dbf
1 /oracle/DEV/db/apps_st/data/log01b.dbf
But i am littile bit confused that there is no group or datafile called " Group 3 and log03a.dbf" as per the above query, how can i drop tease group and datafile.
and i crossverified in the data top the files are exist or not but those are not existing. but still i am getting the same error that i can't create that already exist.
can issue the bellow queris to drop those group which i dont think so it will exist?
SQL>alter database drop logfile group 3;
Thanks in advance.
Regards,
SG -
Getting log file when starting J2EE 1.4 Application Server
I get a log file when starting up the Application Server. I am just a beginner.
Is there anyone who could help me in setting up?
Thanks,
AboliRanadeWhat do you mean by you get a log file when starting up the AppServer? There is always a log file present. There should not be a new log file created every time you start the server. Look under <install directory>/domains/domain1/logs for the server log file.
-
I just noticed that there is a new log file in /var/log called secure.log. It is grayed out and when I click on it I get a "you don't have permission to see this file" message - and I am the administrator. I don't remember this file from a while ago and I have been running Tiger since it came out. Anyone know what this is about? Thanks, Bill
Owner: root. Group: admin. Rights -rw------- or -rw-r----- The former seems to be the rights you have on your computer. On mine I have the latter on secure.log and secure.log.2.gz, the others being only rw for the owner...
-
How to change the loacation of tenpdb, log files on server without reinstal
Hi
I completed the installation of EP, MS SQL and Web AS Java on Win 2003 Server.
Now I want to change the destination drive for the log file, ms sql data and the tempdb. files in the server. Can anyone guide me to accomplish this without reinstallation.
thanks in advance
Regards
MadhuHi
Thanks for the information.
I am unable to locate the Homogeneous guide. can you please send it to me (my email [email protected])
Also can you please explain how to dettach and attach the db from ms sql and also where would I have to indicate the new location for the Temp, & log files.
Thanks
Regards
Madhu -
Does creation of new xml file captures latest value?
HI All,
say for instance, if web port has been changed from 8000 to 80 and after this change xml file gets corrupted in apps tier...
Does creation of new xml file in apps tier captures latest value of web port 80 and all other latest changes made so far?
Thanks for your time...HI All,
say for instance, if web port has been changed from
8000 to 80 and after this change xml file gets
corrupted in apps tier...
Does creation of new xml file in apps tier captures
latest value of web port 80 and all other latest
changes made so far?
Thanks for your time...If autoconfig is not run after the changes are made to the context file, and the file is lost then the changes are lost. -
New Files in SQL Server Log Directory
Does anyone know which process generates files to C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Log.
I started seeing new files are added from yestoday. The file name pattern is like "ServerName_MSSQLSERVER_SQLDIAG_0_130632533281120000.xel".
Thanks,Can you right click and script the system_health session monitor? Check the corresponding path and name of the file.
Its enabled by default. The system_health session collects system data that can be used to help troubleshoot performance issues.
I think someone has created the file.
--Prashanth -
I can't get this script to produce output to the screen or a log file
I can't get this script to produce output to the screen or a log file of the select statement results as they are executed.
SET SERVEROUTPUT ON size 100000
DECLARE
v_schema Varchar2(50);
v_statement Varchar2(500);
v_name varchar2(30);
v_id varchar2(8);
v_pwd varchar2(16);
v_acct varchar2(16);
CURSOR get_schemas IS
SELECT DISTINCT owner
FROM all_tables
WHERE table_name = 'USERID'
ORDER BY owner;
BEGIN
OPEN get_schemas;
LOOP
FETCH get_schemas INTO v_schema;
EXIT WHEN get_schemas%NOTFOUND;
v_statement := 'SELECT name,usid,passwd,acctnum INTO v_name,v_id,v_pwd,v_acct FROM '||v_schema||'.userid';
execute immediate v_statement;
DBMS_OUTPUT.PUT_LINE('Name='||v_name||' ID='||v_id||' PW='||v_pwd||' AC='||v_acct);
END LOOP;
CLOSE get_schemas;
END;
/Duplicate post.
When I run this script nothing is output to the screen or spooled to a file -
I get the error U44M1P7 Error log file location: /Library/Logs/Adobe/Installers
Does anyone have an idea what I need to do? ThanksDid you ever find a solution? I am in sort of the same boat. I even had an Adobe rep try to help me. For some reason my Adobe App Manager does not work on my Macbook. It orginally did but one day it just would not launch. After numerous attempts of uninstalling and re-installing without success, the only workaround solution was to create another user on my Macbook and install the Application Manager on that user's account. I can then download the apps / programs and updates from there. When I log out of that user and back into my main account the Adobe programs work....well most of them. I have noticed that certain programs, like Muse will launch and work correctly under my second user account but it will not luanch without error on the main account.
The fact that no one at Adobe seems to be able to provide a solution is frustraing. Everything worked fine one day, then its all messed up. Switching users is not an ideal solution at all.
Maybe you are looking for
-
WM- Production order GRN issue
Hi WM Gurus i done goods isuue (261 movement type) TR, TO .After production completed i want to GRN.. i want to move the goods from storage type from 100 storage type to 916 storage type. process is GRN f
-
Hello. I am a relati'vely Spanish new user of Creative. But I fall in love the quality-price that I obtained with the audio one of my PC with SBS 580. Now I buy a Creative ZEN 4GB. Despite I want to open this post, stops of some form, between all to
-
Can't start cluster, 2 node 3.3 cluster lost 2 quorum disks
Hi, I have a 2 node cluster 1 one iscsi quorum disk, I was in the middle of migrating the quorum device to another iscsu disk, when the servers lost contact with the disks(iscsi targe problem), so the 2 cluster nodes where left with no quorum, becaus
-
Hi there, My friend is creating a playlist for an event that she will be playing off her iPod. We would like to use my iPod as a backup, by copying only that particular playlist onto my iPod, rather then her entire library, or replacing mine. Is this
-
Hi all, I've just installed Inconsolata-g, but I can't get Emacs to recognize it. The relevant part of my .emacs is: (setq default-frame-alist '((font-backend . "xft") (font . "Inconsolata\-g-9") (cursor-color . "white") (tool-bar-lines . 0) (vertica