Datafile_names_step8.txtSet Lines 200Col name format A60Select file#, name from V$datafile order by file#;Spool off------on standby Db to restore new standby control filesRman> SHUTDOWN IMMEDIATE;Rman> STARTUP Nomount;Rman> RESTORE STANDBY controlfile from '/tmp/forstandbyctrl.bck ';-----Update the data file information in the control fileMake the new standby control file effectiveRman> SHUTDOWN;Rman> STARTUP MOUNT;CATALOG START with ' +data/zhglptdg/datafile/';------on Primary db. Make sure th
Apache server access log access. log Settings1. access log information
When the browser requests the server, if access logs are set on the server, the user's access records are recorded.
For example, a default log generated when I access local apache:
127.0.0.1--[03/Feb/2015: 23: 14: 24 + 0800] "GET/HTTP/1.1" 200 2
Div
1. Turn on Bin-log(1) Inside the My.con configuration file[Mysqld] #选项添加Log-bin=mysql-bin #日志文件名称, location not specified, default data file locationRestart MySQL ServiceLog_bin is the file name of the generated bin-log, the suffix is the 6-digit encoding, starting from 000001, according to the above configuration, the resulting file is:mysql_bin.000001mysql_bin.
MySQL replication (2): binary log, binary log structure and content, mysql binary
Generally, only statements that are about to be executed are written into binary logs. However, in some special cases, the additional information of the statement or the statement is written directly in place of the statement.
Binary Log Record Content
Role: record changes to tables
1. Apache Access LogEnter command cat/usr/local/apache2.4/conf/extra/httpd-vhosts.conf, enter, see,The access log for this virtual machine is inside the/logs/111.com-access_log, enter the command ls/usr/local/apache2.4/logs/, you can see the access log file, see,You can use the command Cat/usr/local/apache2.4/logs/111.com-access_log to view the contents, enter, see,The
Download |iis| Log Analysis
IIS Log Analysis tool
You can consider using open source Awstats to analyzeThe following is my installation notes, I hope you can have a referenceAwstats's installation notes under IIS6.0What is Awstats? Awstats is a Perl-based Web log analysis tool that develops quickly on the sourceforge. The
Only need to move the log files to the backup directory
Then package the journal compression and delete the log file
Last Rebuild log file
#!/bin/bash
#
Nginx_app=/usr/local/nginx/sbin/nginx
logs_dir=/usr/local/nginx/logs
bak_dir=/ tmp/logbak/
date= ' Date +%y%m%d '
#
#先将日志文件移动到备份目录
cd $logs _dir
echo "Moving logs"
MV *.l
Log4Net log classification and automatic maintenance, log4net log ClassificationBackground
In the program, Log4Net is a good solution for debugging runtime information. I don't know if I use it badly. Instead, I don't want to read the logs. The reason is that I use the default Logger of n functions to record logs. In this way, the information recorded by all functions is dependent on the same configuration,
Apache server access log access. log Settings
1. access log information
When the browser requests the server, if access logs are set on the server, the user's access records are recorded.
For example, a default log generated when I access local apache:
127.0.0.1--[03/Feb/2015: 23: 14: 24 + 0800] "GET/HTTP/1.1" 200 2
Di
Spring AOP log management and Spring AOP logIntroduction to AOP
AOP (Aspect-OrientedProgramming, Aspect-Oriented Programming)
Several Concepts of AOP
1. Aspect (Aspect): Aspect is a modular focus, such as transaction management, log management, and permission management;
2. Joinpoint: the execution of a method in Spring;
3. Advice: a notification is an operation performed on a connection point of a plane, t
Application System Log collection solution and log collection solutionOverview
Use Flume + MongoDB to collect logs from multiple existing application systems. Feature data flow diagram
Note: The first architecture is to directly write log data to Flume in the application system. However, existing application systems are non-Maven, you need to add more than 20 jar
Tags: SQL Server 2014 log shipping13.3 Monitoring Log shippingAfter you deploy log shipping, you need to monitor information about the status of the log shipping server. The history and status of log shipping operations are always saved locally by
Wal-Log IntroductionThe Wal full name is the write ahead log, which is the online redo log in PostgreSQL, to ensure data consistency and transactional integrity in the database. And the technology introduced in PostgreSQL 7. Its central idea is "write the log after writing data", that is, to ensure that the database fi
Log.cs usingSystem;usingSystem.Collections.Generic;usingsystem.web;usingSystem.IO;namespacepc.common{ Public classLog {//Create a log directory under the Web site root directory Public Static stringPath = HttpContext.Current.Request.PhysicalApplicationPath +"logs"; /** * Write debug information to log file * @param className class name * @param content Write contents*/ Public Static voidDebu
Save the error log in the system log in PHP
This article mainly introduces the error log in PHP stored in the System log (Windows system), this article explains the Setup method and view method, the need for friends can refer to the following
"Log errors to the system
SQL 2008 log Files account for 23G of hard disk space, and the transaction log has been truncated (Truncate), the actual log content is small, 1G is not, want to release the extra space occupied by the log files.
However, no matter how you shrink (Shrink) log files, space i
problem
Each time Tomcat starts, the following log files are automatically produced in the logs directory, and a file of the corresponding date is generated daily, resulting in numerous log files:
Localhost.2012-07-05.txt
Catalina.2012-07-05.txt
Manager.2012-07-05.txt
Host-manager.2012-07-05.txt
Purpose
Tomcat logs are exported to the same file.
Modify Steps
Open the Tomcat directory conf\logging.propertie
Reprint Address: http://blog.csdn.net/li_xiao_ming/article/details/21514637
problem
Each time Tomcat starts, the following log files are automatically produced in the logs directory, and a file of the corresponding date is generated daily, resulting in numerous log files:
Localhost.2012-07-05.txt
Catalina.2012-07-05.txt
Manager.2012-07-05.txt
Host-manager.2012-07-05.txt
Purpose
Tomcat logs are exported t
Log files are part of the operating system, so there must be an application programming interface (API) to support logging
Instance:
HANDLE h;if ((h = RegisterEventSource (Null,text ("metalive")) = = NULL){return FALSE;}Const char* PS = "PSZS1PSZS2PSZS3";WORD Wtype=eventlog_error_type;//eventlog_information_type;DWORD dwid=5001;int ISTR = 1;BOOL BRet;DWORD DWORD;if (h){Bret=::reportevent (H,Wtype,0,Dwid,NULL,//SIDISTR,0,ps,NULL);
Dword=::getlasterror
1. Description of the problemThe log file for the system needs to be viewed today, but the file is not found /var/log/messages . Online search for the material, said to be configured /etc/syslog.conf . Syslog uses a configurable, unified system registration program that accepts log requests from all parts of the system at any time, and then writes the
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.