useful.
Method 2: Metalink provides a method
Modify the storage parameters of the TEMP tablespace so that the Smon process can view the temporary segments to clean up and TEMP tablespace.
SQL> alter tablespace temp increase 1;
SQL> alter tablespace temp increase 0;
Method 3: a common method is described as follows:
1. Run the following statement a to check who is using the temporary segment.
SELECT usernam
1, DBCC FREEPROCCACHE;2. DBCC FREESYSTEMCACHE (' All ') | DBCC FREESYSTEMCACHE (' pool_name ');3, declare @dbid as int = db_id (' Studio '); DBCC FLUSHPROCINDB (@dbid);4. Disconnecting the database5. Turn Auto_Close on or off6. Use the following commandAlter DATABASE .... collationALTER DATABASE .... Modify NameALTER DATABASE .... MODIFY FilegroupALTER
Tags: database log repository truncate recovery data alter DIV modeMEDIA Database nameALTER DATABASE media set RECOVERY easy with no_wait
ALTER DATABASE Media set RECOVERY simple--simplified mode
DBCC SHR Inkfile (N ' Media_log ', one, truncateonly) --11 is size 11M
ALTER DATA
Tags: style blog http using io strong file dataEvery time the database log to see the explosion of some big head, so random search a way to get rid of the log, the next big head, and search for half a day, so or write a blog, do not look for a mess.1. Set the database to Simple modeSelect the database you want to shrink, right-click Properties---options, select S
Tags: des blog http SP file Data 2014 issue log
Scene:
When we imported the Mr Data, we found that the disk space was not enough, the result is that our program is likely to throw an exception, we need to import data when the log to thin the body.Q 1: When importing data, does weight loss result in database exceptions?
The DBA provides a solution:
Answer question 1:No problem. Does not create a conflict. But make room for t
the system send broadcast, hard disk space is not enough, the system recycles the cache. Implementation method: Send a message to the operating system, I want to apply for a very large space. The cache is recycled.Implementation Step ①: Add a New button② find this control, click on the time to apply for a very large spacePackagemanager>>freestorageandnotify ( application space, observer interface );To request a free space, the observer returns the maximum amount of space to be requested (how mu
operation is to adjust the memory configuration size. Manual operation Method: 1. Open SQL Server Management (Enterprise Manager); 2. Open the Properties panel for the instance of SQL Server; 3. Locate the memory settings and change the maximum server memory usage. Use script action: [sql] --Force free memory create procedure [dbo]. Clearmemory as www.2cto.co
In the use of the process, we often encounter a very large database log, here are two ways to deal with ...
Method One
In general, the contraction of the SQL database does not greatly reduce the size of the database, its primary role is to shrink the log size, you should do this periodically to avoid the
When you restore a database from a database backup, you find that the log file actually has more than 120 g, not through the SQL management, resolute use DBCC statement cleanup success! Free space! and clear and speed!
First of all, it's important to look at the type of backup data, or not to clean up
Select Name, Re
MySQL database cleanup MyISAMInnodb tables (MySQL 5.1.6 or later versions are supported) a large number of MyISAMlog tables in the data center need to be cleaned regularly, which is set to every weekend, about 10 Gb, 5
MySQL database cleanup MyISAM Innodb tables (MySQL 5.1.6 or later versions are supported) a large nu
XXM, here will give a allow to shrink to the minimum m number, directly enter this number, you can determine
--Select the data file--in the contraction way to choose to shrink to XXM, here will give a allow to shrink to the minimum m number, directly enter this number, OK
You can also use SQL statements to complete
--Shrinking the database
DBCC shrinkdatabase (library name)
--Shrink the specified data
When I restored the database from the database backup, I found that there were more than 120 GB of log files, but I couldn't use SQL Management. I used the DBCC statement to clear it! Space released! And speed!
First of all, we need to check the type of the backup data. This is very important, but it cannot be cleared.
Select name, recovery_model_desc from sys.
[Recommended] (SqlServer) Batch cleanup all data in the specified database to establish a personal brand through knowledge sharing. In practical applications, when we want to hand over a project to the customer, we need to clear all the previous test data of all tables in the database to give the customer a clean database
Tags: Sele LTE data ROM class NTA log completeUse [master]GOALTER DATABASE Ucml_supplychaintar SET RECOVERY simple with no_waitGOALTER DATABASE Ucml_supplychaintar SET RECOVERY Simple--Easy modeGOUse Ucml_supplychaintarGODBCC shrinkfile (N ' Ucmlprojectstdtar_log ', one, truncateonly)GO--Here's dnname_log if you don't know what the name is in sys.database_files, you can query it with the following annotated
Tags: transaction log MSSQL 2000Key Note: Be sure to back up the database-full backup before you operate.Before you proceed, it is best to check the relevant articles, test them in a test environment, and make sure they are familiar.To operate the server online (there is a principle: some of the newly deployed applications, or some scripts, must be tested on the test environment before you can get a server application or action on the Wire).Open Query
in order to effectively clean up the log file. Finally click "Finish" configuration.650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M01/59/C2/wKiom1Tez2Wi2FvjAAFjWYR3DtU616.jpg "height=" 463 "/>This article is from the "June Ma Run Space" blog, be sure to keep this source http://horse87.blo
Label:DB2 log Processing: requires that you must use the DB2 command prune for cleanup, and the RM command is not recommended for deletion. View the current log file directory and the first activity log file , use the DB2 get DB CFG |grep log command to view the file directory parameters, determine the current log file directory used by the database, and view the first activity log file parameters. The log
records is small. But it's not acceptable to have the time spent on a table with a lot of records. Obviously, this approach is obviously undesirable when dealing with tables with large amounts of data.
The following is an example of clear row migration on a production database that has previously adjusted the table's Pctfree parameters to a suitable value:
sql>@ $ORACLE _home/rdbms/admin/utlchain.sql
Ta
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.