Tag: SQL Server database log shrinks free space.How SQL Server database shrinks log spaceDescription: SQL Server database log will become larger, especially when the space is tight, you have to shrink the log to release some of the space, the following means.Version: SQL
Recently found when comparing strings in SQL Server if the end of the string is a space then SQL Server ignores those spaces and compares them directly to the usual string judgment logic in the program.Declare @a nvarchar( -);Set @a=N'happycat1988' Declare @b nvarchar( -);Set @b=N'happycat1988' if(@a= @b) Select 'True' asDirect equals comparisonElse
CauseToday, the point code is submitted locally, but to the server git pull when prompted No spaceleft on the device, the first reaction is the suspect may be full (probably log caused), but think it is not likely to think, Only one application is deployed on this server, and it is not a small amount of space to see the project footprint.Resolution process1, as a
To view disk space usage:Df-hView the space occupied by the first level directory under the root directory:Du-h--max-depth=1/Find files larger than 2000M in the root directory:Find/-size +2000mFind files that have been deleted, but are still occupied by the process:Lsof |grep deletedReview the process information based on the process ID found in the previous step:Ps-ef | grep pidServices to restart the proc
Kangle Web services running on the win host PHP personal feeling is very good, and then with Easypanel Host Control Panel open website and database is very convenient and practical, and space management function can meet the needs of individual webmaster. We help many customers here to install such a platform, but many children's shoes do not know how to use, here on the detailed introduction down to help the rookie.
Install the Kangle Web and Easypa
files with a larger footprint in the/var/lib directory and sort in descending order650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/86/60/wKioL1e9VDzTDw1IAAAywgTebP4284.png-wh_500x0-wm_3 -wmp_4-s_3024368163.png "title=" qq picture 20160824160039.png "alt=" Wkiol1e9vdztdw1iaaaywgtebp4284.png-wh_50 "/>5 found the system disk occupies a file, find a strange directory file, you can search the Web for the file is useful, whether it can be deleted. However, usually non-/boot/bin/etc/lib/lib
Java HotSpot (TM) 64-bit Server VM warning:insufficient space for shared memory file:/tmp/hsperfdata_work/23408Try using the-djava.io.tmpdir= option to select a alternate temp location.An error indicates that a zone is full of memory!Df-h View memory usage.Solve:Enter command Find/-size +200m-exec du-h {} \; View files larger than 200M (the preferred delete log file).Error: Java HotSpot (TM) 64-bit
Web site security, the implementation of the directory is very sensitive to the permissions, in general, can be written to the directory is not able to have the execution permissions of the script, like the DEDECMS system, can be written to two directory data, Uploads,data directory is mainly basic configuration files and cached data, Uploads is the attachment upload saved directory, this article will be for different server environment to explain how
1 UseMaster2 Go3 Select * fromsys.dm_os_buffer_descriptors4 Go5 6 --View the amount of space the database occupies in the data cache7 --128 Bytes, 1/8 kilobytes (KB) because each data page corresponds to a row in dynamic management view (management VIEW,DMV)8 --1 byte (byte) = 8 bit (bit)9 --1000 kilobytes (KB) = 1024 bytes (byte)Ten --1 megabytes (MB) = 1.024 million kilobytes (KB) One Select Count(*)*8/1024x768 as 'Cached Size (MB)', A Ca
then replace the data file of the new library with the attached failed data file, and then set the database as the Emergency Recovery mode, so that the data can be read in generalALTER DATABASE db_name SET EMERGENCYAfter the database can be read, you can try to set it to ONLINE mode, if successful, then DBCC CHECKDB once, confirm no problemIf you can't online, you probably have to create a new library and then take the data from the contingency mode library to the new library.Special Note: The
Tags: har status next declare sed for DEA etc beginCREATE TABLE #Data(Name VARCHAR (100),Row VARCHAR (100),Reserved VARCHAR (100),Data VARCHAR (100),Index_size VARCHAR (100),Unused VARCHAR (100));DECLARE @name VARCHAR (100);DECLARE cur CURSOR forSELECT NameFrom sysobjectsWHERE xtype = ' u 'ORDER by name;OPEN cur;FETCH NEXT from curinto @name;While @ @fetch_status = 0BEGININSERT into #DataEXEC sp_spaceused @name;PRINT @name;FETCH NEXT from curinto @name;END;CLOSE cur;DEALLOCATE cur;CREATE TABLE #
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.