oracle 监控执行的sql语句 select * from v$sqlarea a where module='PL/SQL Developer' order by a.FIRST_LOAD_TIME desc select * from v$sqlarea a where module='PL/SQL Developer' order by a.FIRST_LOAD_TIME desc 监视oracle的执行sql情况: select q.sql_text from v$session s…
http://qq85609655.iteye.com/blog/2113960 1)我们先通过status命令查看Mysql运行状态 mysql> status; -------------- mysql Ver 14.14 Distrib 5.1.73, for redhat-linux-gnu (x86_64) using readline 5.1 Connection id: 113752 Current database: information_schema Current user…
show variables like "general_log%"; SET GLOBAL general_log = 'ON';SET GLOBAL general_log = 'OFF'; tail -f /var/lib/mysql/changchun.log | grep t_base_app echo '' > /var/lib/mysql/changchun.log…
修改my.cnf配置文件 /usr/local/mysql/bin/mysql --verbose --help | grep -A 1 'Default options' Default options are read from the following files in the given order: /etc/my.cnf /etc/mysql/my.cnf /usr/local/mysql/etc/my.cnf ~/.my.cnf 修改/etc/my.cnf,找到[mysqld],…