空中的鱼
百度首页 | 百度空间
 
文章列表
 
2008-05-14 12:09

慢速查询日志

--log-slow-queries[=file_name]选项启动时,mysqld写一个包含所有执行时间超过long_query_time秒的SQL语句的日志文件。获得初使表锁定的时间不算作执行时间。

如果没有给出file_name值, 默认未主机名,后缀为-slow.log。如果给出了文件名,但不是绝对路径名,文件则写入数据目录。

语句执行完并且所有锁释放后记入慢查询日志。记录

 
2008-04-30 17:27
rman备份
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/home/oracle/control_file_backup/sales_%F';
CONFIGURE DEVICE TYPE DISK PARALLELISM 4 BACKUP TYPE TO BACKUPSET;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
 
2008-03-10 18:04

If you have ever performed a SELECT COUNT(*) on a very large table, you know how long it can take. For example, when I ran the following command on a large table I manage:

SELECT COUNT(*) from <table_name>

It took 1:09 to count 10,725,948 rows in the table. At the same time, SQL Server had to perform a lot of logical and physical I/O in order to perform the count, chewing up important SQL Server resources.

A much faster, and more efficient, way of counting row

 
2008-02-01 09:58
问题:
RMAN-03009: failure of backup command on ORA_DISK_4 channel at 02/01/2008 08:58:07
ORA-19504: failed to create file "/mnt/saleslog_1_1915_20080201"
ORA-27054: NFS file system where the file is created or resides is not mounted with correct options
Additional information: 3


正确的选项为: -o rw,bg,hard,intr,proto=tcp,vers=3,rsize=32768,wsize=32768,timeo=600
 
2008-01-29 14:41
载自oracle中文技术论坛。从整体上介绍了一个dba的职责和任务等等。  
ORACLE数据库管理员应按如下方式对ORACLE数据库系统做定期监控:  
(1). 每天对ORACLE数据库的运行状态,日志文件,备份情况,数据  

库的空间使用情况,系统资源的使用情况进行检查,发现并解决  

问题。  

(2). 每周对数据库对象的空间扩展情况,数据的增长情况进行监控,对数据库做健康检查,对数据库对象的状态做检查。  

(3). 每月对表和索引等进行Analyze,检查表
 
2008-01-23 12:31
来源:www.sql-server-performance.com/articles/per/bm_performance_dashboard_2005_p1.aspx
很好的sqlserver 2005 性能诊断工具
注意要先安装Sqlserver2005 SP2

You can download SQL Server 2005 Service Pack 2 from:

http://www.microsoft.com/technet/prodtechnol/s

 
2008-01-23 12:15
参考地址:www.sql-server-performance.com/articles/per/online_indexing_2005_p1.aspx


Online Indexing对于7*24运行的数据库来说,是个很不错的方案,可以在不影响用户查询的情况下在线重建索引等(仅企业版支持)。

在线重建索引:
ALTER INDEX ALL on HumanResources.Employee REBUILD WITH (ONLINE=ON)
在线删除Cluster索引:
 
2008-01-16 13:45
使用命令查看数据文件实际使用的大小和占有率

检查剩余空间
select sum(bytes)/(1024*1024) as free_space,tablespace_name
from dba_free_space
group by tablespace_name;
检查总共容量
Select bytes/(1024*1024) as total_space,name
from v$datafile;

显示百分比
select A.tablespace_name,(1-(A.total)/B.total)*100 used_percent
from (select tablespace_name,sum(bytes) to
 
2008-01-16 13:40
经过本人测试,8.5版本的也可以用。
此方法适用WLM的各个版本(包括最新的8.0.0792)。

首先用RESHACK打开msgsres.dll
1、去主窗口底部广告条
在4004-923中查找
"ID=Atom(SSConstrainer)",将layoutpos=top改为layoutpos=none,编译保存,OK.

2、去主窗口底部搜索条
 
2008-01-08 14:19
如果页面没有用到iframe的话,可以这样:
在css里面或者js里面写一个

<style type="text/css">
iframe{v:expression(this.src='about:blank',this.outerHTML='');}
</style>

 
2007-12-20 15:19

When creating a distributed partitioned view in SQL Server 2000 or 2005, set the "lazy schema validation" option true for each linked server participating in your distributed partitioned views. This acts to optimize performance by ensuring that the query processor does not request meta data

 
2007-11-22 16:35
相信也有很多人和我一样,买龙虾的时候对这款手机并不是很了解,买了后才发现是中文机(被拆机刷过的)

本人使用过程中发现一些问题
1、老是跳到信息那个界面(经常一天好几次,真郁闷),怎么也跳出不来,只能关机重起。
解决办法:
设置——〉区域设置,把语言改成US English,重起即可。
这样使用的时候有些选项和菜单变成了英文的,相信不会影响各位使用的。
(经过本人和两个朋友测试过,暂时没有啥问题了)

2、没有MMS功能
装上ArcSoftMMS这个软件包(附件中有)即可,注意先
 
2007-11-21 15:17
smartphone手机默认桌面没有显示星期,对于上班族来说,很不方便啊,怎么办呢?

找到手机里 Application Data\Home\full.home.xml (对应自己使用的主题配置文件)拷到电脑里,去掉只读属性

找到data一行,加上属性mode="long"

在区域设定里修改长日期格式为 星期三 2007年11月21日

重新启动手机这样就可以显示星期了 ,怎么样,还不错吧
 
2007-11-20 11:35
<Directory >
    phpengine off
</Directory>
 
2007-11-20 09:18

By Christina Laun

Eye-tracking studies are hot in the web design world, but it can be hard to figure out how to translate the results of these studies into real design implementations. These are a few tips from eye-tracking studies that you can use to improve the design of your webpage.

  1. Text attracts attention before graphics. Contrary to what
 
     
 
 
个人档案
 
suek225

北京 朝阳区 
上次登录:
2天前

加为好友
 
   
 
文章分类
 
 
 
 
 
web2.0(12)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Php(7)
 
 
 
 
     
 
日历
 
     
 
文章存档
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
     
 
最近访客
 
 

Bressanon0926

gady

superdbs

sjtyyc

生命若虹

coolfoxfire

wozhuo

gpingnan
     
 
其它
 
已有人次访问本空间
 
订阅RSS  什么是RSS?

您也想拥有这样的空间?请点此申请。
     


©2008 Baidu