When the Oracle archive log is full, you will not be able to log in to Oracle properly, and you need to delete a subset of the archived logs to log in to Oracle properly.First, delete the archive log physical files, archive logs are generally located in the archive directory, AIX system file format is "1_17884_667758186.DBF", it is recommended to backup the database before operation, delete at least the las
ASP. NET error logs and asp.net error logs
In this article, we will record errors and exceptions on our website through a simple process. In this way, when a program error occurs, the user is redirected to a separate page, and the error is recorded in a text file on the server. When an error occurs, we will record the log every day.
First, I will write a static method to record the Error information to a te
Asp.net Method for logging error logs, asp.net error logs
1. Description
Unexpected errors may occur in the asp.net project after debugging and release, but they cannot be displayed in a timely manner. This requires logging to track error information. Therefore, we have written a simple method to record information, which can also be used to record simple text information. This method is recorded by generat
configured. When the cycle log takes effect, the transaction data is written to the main Log File cyclically. When all records stored in a log file no longer need to be used for restoration, the log file will be reused and can become an active log file again later. This means that in the loop log mode, the log file content will eventually be overwritten by new log entries. Because the log file content is overwritten, we can only restore the database to the last complete database backup. You can
The usage of hook in svn has been seldom noticed. Today I have seen this article on the Internet and it is very useful for sharing.
In fact, it can be better explained that the powerful batch processing address: http://blog.csdn.net/qiutaox/archive/2008/11/22/3349899.aspx
The original article is as follows:
The following is an absolutely available script I tested under svn1.5. I want to share the correct script with you, some of my friends who are too big by incorrect scripts are helpful.
1. Mo
DM8168 automatically logs on to the root user, and dm8168 automatically logs on to the root user
① Specify the connection:
② Modify the/etc/inittab file:
S: 2345: respawn:/sbin/getty 115200 ttyO2-n-l/bin/autologin
③ Create an automatic logon shell:
#! /Bin/shExec/bin/login-f root
④ Modify the autologin script permission:
⑤ Restart:
The principle of debugging on Device and Desktop is the same, but the configuration file is different, the first time to read this article of friends, please refer to [Desktop]: http://www.cnblogs.com/liangyiming/archive/2009/04/01/1427388.html
Tracing works the same as Desktop on Device, but the configuration method is slightly different.
Because the Sync Service for ADO. NET Based on WinCE does not publicly declare that it supports Tracing production logs
PHP configuration sends error logs by email (Windows System) and php logs
When a serious problem occurs in the system, it must be immediately sent to the Administrator. You can use error_log () to send errors to your mailbox by email.
Set in php. ini:Copy codeThe Code is as follows:Sendmail_from = 472323087@qq.comThen set:Copy codeThe Code is as follows:Sendmail_path = "G: \ sendmail \ sendmail.exe-t"Wher
Detailed Introduction http://blog.csdn.net/hepeng597/article/details/7768615Reference http://www.linuxidc.com/Linux/2011-04/34116.htm1 For example we want to cut Nginx log, first we enter/etc/logrotate.d/this directory, and then build nginx this fileVI Nginx/data/wwwlogs/*nginx.log {# #日志所在的目录dailyrotate 5missingokdateextcompressnotifemptysharedscriptspostrotate [-E/ Var/run/nginx.pid] kill-usr1 ' cat/var/run/nginx.pid ' Endscript}Parameter description:Monthly specify a dump cycle of monthlyDai
. Net Pet Shop 4.0 I believe that readers who have been in touch with. Net For A While have read or heard of it?It is an e-commerce business point launched by Microsoft. NETAn excellent example of enterprise development!I used Windows 7 and encountered an error!The source is not found, but some or all Event Logs cannot be searched. Inaccessible logs: Security2869InstallProgramProperties → compatibility → ch
Logging file logs and logging logs1. Example
Import logginglogging.basicConfig(filename='log.txt ', # file name level = logging. DEBUG, # level format = U' time: % (asctime) s \ n Level: % (levelname) s \ n message: % (message) s \ n ', # log format datefmt = '% Y-% m-% d % H: % M: % s') # Time Format logging. debug (u'first record ') logging.info (u'second record ')
2. Level
Messages recorded in logs can
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 DATABASE MEDIA SET RECOVERY full with NO_WAIT
alter DATABASE MEDIA SET RECOVERY Full--Revert to complete mode
Ext.: http://blog.csdn.net/hehe520347/article/details/48497229How to truncate
Php custom error logs and php custom logs
If the project needs to promptly process the defined error log, you need to modify the output mode of the custom error log (writing logs, sending emails, and sending text messages)
1. register_shutdown_function (array ('phperror ', 'shutdown _ function'); // defines the function to be executed after the PHP program is exe
Manage Nginx logs and use scheduled tasks to cut logs
Ngnix log management and log cutting with scheduled tasks
I. Log Management
Let's take a look at the server segment of the Ngnix configuration file.
Next, let's explain the meaning of the default format.
# Log_format main '$ remote_addr (remote IP)-$ remote_user (remote user) [$ time_local] (access time) "$ request" (request Method )'
# '$ Status (statu
Python Regular Expression Analysis nginx access logs and pythonnginx logs
Preface
The script in this article analyzes nginx access logs, mainly to check the number of visits to the site uri, the check results will be provided to the R D personnel for reference, because when talking about the analysis, the regular expression must be used. Therefore, if you have n
Use the queue to record error logs and queue error logs
Logs are for programmers.
Procedure:
1. Create a WebApplication
2. [Create a class MyExceptionAttribute. cs in the Model folder]
1 using System; 2 using System. collections. generic; 3 using System. linq; 4 using System. web; 5 using System. web. mvc; 6 7 namespace WebApp. models 8 {9 // inherit HandleErrorA
I read SQL server logs and Agent logs, but I am idle recently. In order to improve the efficiency of my work in the future, I don't want to put my eyes and hands too tired. So I wrote the following script to solve the problem:
Reading SQL Server logs and Agent logs is idle recently. To improve efficiency in future work
How to disable MySQL logs, delete mysql logs, and disable mysql Log DeletionBy default, log files are enabled for MySQL installed in the one-click LNMP installation package,If data operations are frequent, a large number of logs are generated,Generate a mysql-bin.0000 * similar file under/usr/local/mysql/var,In addition, the disk space is usually from dozens of M
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.