系统支持的shell
cat /etc/shells
查看当前登录的用户及其IP地址
who -T
sar
sar的用法主要有两种:取样时刻的统计数据,取样时刻与上次取样时刻之间的统计数据的平均值。
vmstat
vmstat [-s] [delay [count]]-s:显示自系统启动以来,各项数据的总和。delay:取样的时间间隔。vmstat可以在两种模式下运行:sample模式与average模式。如果运行时未提供参数,则vmstat运行在average模式,显示从系...
内存中,cache与buffer的含义
cache:用于缓存从硬盘上读出的数据。buffer:用于缓存将要写到硬盘的数据。
测试当前Linux 内存页大小 的一个C程序
linux版本:[oracle@redhat ~]$ cat /etc/redhat-releaseRed Hat Enterprise Linux AS release 4 (Nahant Update 3)[oracle@redhat ~]$ uname -aLinux redhat 2.6.9-34.EL [oracle@redhat ~]$ lsb_release -aLSB Ver...
查看空间使用情况:df与du
df -h:查看挂载的所有分区的空间使用情况,以人性化的方式显示结果。df -i:显示所有分区的inode个数信息。df /oracle:显示目录所在分区的空间使用情况。du /oracle:显示/oracle目录及其所有子目录的大小信息。df...
PuTTY快捷键
Ctrl+s:锁住PuTTY,Ctrl+q:解锁 另外,Alt+Enter全屏切换,Alt键显示系统菜单这两个最常用的功能需要单独设置。
文件属主改变的情况
创建一个新文件时,属主是文件的创建者。使用>>file在文件末尾添加内容时,属主不发生改变,因为这时不需要创建新文件。使用mv命令重命名文件时,属主不发生改变,因为这时不需要创建新文件。但是如果mv命令使得文件...
关于目录权限的含义
write:目录的write权限允许你改变目录中的内容,即可以在目录中创建、删除、重命名文件,即使你不是相应文件的属主,甚至不能读取其内容。可以设置目录的sticky number来改变这种情况,使得能够执行文件删除和文件...
查看文件内容时,附加行号
cat -n filenameless -N filenamegrep -n 'ORA-' filenamenl -ba filenamepr -t -n filenamevi中附加行号::set number
xargs的用法示例
[oracle@redhat bdump]$ ls *3115*law_dbw0_3115.trc[oracle@redhat bdump]$ ls *3115* | grep 3115law_dbw0_3115.trc不加xargs,ls的结果作为grep要过滤的文本对象。[oracle@redhat bdump]$ ls *3115* | xargs grep...
Bourne shell script中的quoting
都是使得shell script中的特殊字符失效。double quotes ("):关闭除了$、`(backquote)、 之外的特殊字符。single quote ('):关闭所有的特殊字符。backslash ():关闭紧邻的下一个特殊字符。单引号内不能再使用单引...
The Three Unix File Time :atime, mtime, ctime (转自:Unix Power Tools 3rd ed.)
The difference between a change and a modification is the difference between altering the label on a package and altering its contents.If someon says chmod a-w myfile, that is a change; if someone say...
SQL Server 2005:模拟Oracle的desc命令编写的describe,查询表的结构
create proc [dbo].[describe]@table_name Nvarchar(100)asselect c.name as column_name,case t.namewhen 'numeric' then t.name+'('+cast(c.precision as varchar(5))+','+cast(c.scale as varchar(5))+')'when 'char' then t.name+'('+cast(c.max_length as varchar(5))+')'when 'varchar' then t.name+'('+cast(c.max_length as varchar(5))+')'when 'nvarchar' then t.name+'('+cast(c.max_length as varchar(5))+')'else t.nameend as type,case c.is_nullable when 1 then ' ' else 'NOT NULL' end as nul
模拟Oracle的desc命令编写的describe,查询表的结构
CREATE proc describe@table_name Nvarchar(100)asselect c.name as column_name, case t.namewhen 'numeric' then t.name+'('+cast(c.precision as varchar(5))+','+cast(c.scale as varchar(5))...
Gartener发布的2006年全球数据库市场份额
Worldwide Vendor Revenue Estimates from RDBMS Software, Based on Total Software Revenue, 2006 (Millions of Dollars)Company20062006 Market Share (%)20052005 Market Share (%)2005-2006 Growth (%)Oracle7,...
Oracle Database 11g在7月11日发布
不是我不明白,这世界变化快http://www.oracle.com/corporate/press/2007_jul/database-11g.html
SQL Server中创建存储过程时,with recompoile的作用
每次执行存储过程时,对于其中的查询,SQL Server默认会使用原来的执行计划,附加with recompile之后,每次执行这个存储过程时都重新编译,即重新生成执行计划。同时注意,存储过程的编译结果就是生成执行计划,而不...
Objectives of the Relational Model
To provide a high degree of data independence.To provide a community view of the data of spartan(严格的) simplicity, so that a wide variety of users in an enterrprise, ranging from the most computer-...