
Linux
rgb_rgb
dba
展开
-
Linux fstab 参数详解
fs_spec fs_file fs_type fs_options fs_dump fs_pass /dev/hda1 / ext2 defaults 1 1 (1)fs_spec:该字段定义希望加载的文件系统所在的设备或远程文件系统,对于一般的本地块设备情况来说:IDE设备一般描述为 /dev/hdaXN,X是IDE 设备通道(a, b, or c),原创 2012-08-29 18:18:00 · 611 阅读 · 0 评论 -
Linux 删除和替换文件中某一行的方法
如果有一个abc.txt文件,内容是:aaabbbBATBUSINESSTYPE, INSIDEID--) ONLINE;INSIDEID--) ONLINEcccdddeeefff如果要删除ddd,那么脚本可以这样写:sed -i '/ddd/d' abc.txt如果删除的是一个变量的值,假如变量是var,应该写成:sed -i '/'"$原创 2013-11-22 17:10:04 · 34321 阅读 · 2 评论 -
系统HANG住分析工具及方法
如果系统HANG住了,这个时候做一个SYSTEM STATE DUMP,对于分析HANG的原因十分重要。但是很多情况下,系统HANG住了就无法登录,那么如何进行分析呢?METALINK DOC :359536.1提供了一些好的办法,在这里和大家共享:支持的数据库版本:9.2.0.1-10.2平台(部分是UNIX平台,部分适用于所有平台)1、10G以前,使用DBX,G原创 2014-04-18 14:52:31 · 4430 阅读 · 0 评论 -
/dev/shm问题处理
/dev/shm问题处理[root@oracle11g ~]# df -k /dev/shmFilesystem 1K-blocks Used Available Use% Mounted onnone 257220 157504 99716 62% /dev/shm[root@oracle11g原创 2013-11-21 18:57:29 · 11523 阅读 · 0 评论 -
mount: Structure needs cleaning
[root@pc4 ~]# mount /data2mount: Structure needs cleaning[root@pc4 ~]# xfs_repair -L /dev/vgcb0 Phase 1 - find and verify superblock...Phase 2 - using internal log - zero log...原创 2014-06-27 17:04:13 · 8454 阅读 · 1 评论 -
linux中如何限制IP访问服务器
http://purpen.iteye.com/blog/1135342转载 2014-06-12 15:38:37 · 17368 阅读 · 0 评论 -
linux parted 分区
vgc-config -p /dev/vgcb0 -m maxperformancevgc-config -p /dev/vgcb0 -m maxcapacityparted /dev/vgca0p1 mkfsparted /dev/vgcb0 rm 1parted /dev/vgcb0 mkpart primary 65.5kB 2199GBparted /dev/v原创 2014-01-25 23:20:22 · 1987 阅读 · 0 评论 -
压缩及解压缩
1.压缩一组文件为tar.gz后缀。 #tar cvf pgdump.tar pgdump/#tar cvf pgdump.tar pgdump/ >/dev/null 2>&1#gzip -q pgdump.tar or#tar cvfz pgdump.tar.gz pgdump/#tar cvfz pgdump.tar.gz pgdump/ >/dev/null 2原创 2013-12-12 21:37:34 · 1100 阅读 · 0 评论 -
Linux 配置多路径步骤
1、安装多路径软件包:[root@flash Packages]# ls device-mapper*device-mapper-1.02.77-9.el6.x86_64.rpm device-mapper-libs-1.02.77-9.el6.x86_64.rpmdevice-mapper-event-1.02.77-9.el6.x86_64.rpm原创 2014-12-02 00:25:23 · 8187 阅读 · 1 评论 -
Linux系统上针对rm命令做审计
Linux系统上针对rm命令做审计[root@test ~]# cat /etc/audit/audit.rules# This file contains the auditctl rules that are loaded# whenever the audit daemon is started via the initscripts.# The rules are simp原创 2016-09-14 12:56:41 · 1608 阅读 · 0 评论 -
solaris veritas_SF5.0
#uname -aSunOS test-ora1 5.10 Generic_148888-03 sun4u sparc SUNW,SPARC-Enterprise启动停止VCS软件#/sbin/init.d/llt start#/sbin/init.d/gab start#/opt/VRTSvcs/bin/hastart#cd /opt/VRTSvcs/bin#原创 2016-11-08 11:46:48 · 732 阅读 · 0 评论 -
SunOS 5.10
[root@hzdg /]# ulimit -a core file size (blocks, -c) unlimiteddata seg size (kbytes, -d) unlimitedfile size (blocks, -f) unlimitedopen files原创 2017-03-01 18:46:48 · 2356 阅读 · 0 评论 -
linux 开启ftp和telnet服务
[root@sgpc146 ~]# cd /etc/xinetd.d/[root@sgpc146 xinetd.d]# lltotal 160-rw-r--r-- 1 root root 1157 Feb 23 2012 chargen-dgram-rw-r--r-- 1 root root 1159 Feb 23 2012 chargen-stream-rw-r--r--原创 2012-09-18 14:55:21 · 3149 阅读 · 3 评论 -
syslogd
21:$Message from syslogd@test21 at Sep 19 16:30:02 ... kernel:Uhhuh. NMI received for unknown reason 00 on CPU 128.Message from syslogd@test21 at Sep 19 16:30:02 ... kernel:Do you have a s原创 2017-09-20 10:21:37 · 1028 阅读 · 0 评论 -
Linux 内存使用情况检查
ps:其中rsz是是实际内存ps -e -o 'pid,comm,args,pcpu,rsz,vsz,stime,user,uid' ps -e -o 'pid,comm,args,pcpu,rsz,vsz,stime,user,uid' | grep oracle | sort -nrk5其中rsz为实际内存,上例实现按内存排序,由大到小$ top -u oracle原创 2017-10-10 17:31:01 · 457 阅读 · 1 评论 -
linux 启动顺序及启动时自动运行脚本
在Redhat Redflag centos fc linux系统里面脚本的启动先后顺序:第一步:通过/boot/vm进行启动 vmlinuz第二步:init /etc/inittab第三步:启动相应的脚本,并且打开终端rc.sysinitrc.d(里面的脚本)rc.local第四步:启动login登录界面 login第五步:在用户登录的时候执行sh脚本的顺序:每次原创 2013-11-05 00:38:16 · 1856 阅读 · 0 评论 -
linux 主机监控
[root@sgpc146 s01]# dateSat Sep 15 22:19:34 CST 2012[root@sgpc146 s01]# date -s 09/15/11Thu Sep 15 00:00:00 CST 2011[root@sgpc146 s01]# dateThu Sep 15 00:00:02 CST 2011[root@sgpc146 ~]# da原创 2012-09-11 10:56:49 · 4251 阅读 · 7 评论 -
Linux 常用命令 (日志、fuser)
/etc/init.d/crond restart[root@sgpc146 ~]# chkconfig --list|grep crondcrond 0:off 1:off 2:on 3:on 4:on 5:on 6:off[root@sgpc146 ~]# [root@sgpc146 ~]# [root@sgpc1原创 2013-11-19 22:42:02 · 1296 阅读 · 1 评论 -
Linux组件安装
1.安装X Window支持yum groupinstall "X Window System"2.安装gnomeyum groupinstall Desktop3.修改启动级别使开机默认进入图形化界面vi /etc/inittab 将最后一行id:3:initdefault:中的3改为5.4重启 注意:重启前千万不要执行startx命令,因为此时gnom原创 2012-08-30 23:57:59 · 1837 阅读 · 0 评论 -
osw ERROR. You do not have a legitimate version of java in your PATH
[oracle@sgpc146 oswbb]$ java -jar oswbba.jar -i /s01/osw/oswbb/archiveStarting OSW Black Box Analyzer V5.0OSWatcher Black Box Analyzer Written by Oracle Center of ExpertiseCopyright (c) 2012原创 2012-09-16 21:34:37 · 2410 阅读 · 0 评论 -
centos6对于大容量硬盘(2T以上)的划分使用
原文:http://www.2cto.com/os/201110/109325.html,http://blog.sina.com.cn/s/blog_67be3b4501016tnh.html一个新dell r710做数据库,6块500G,7.2k的SAS硬盘,做成RAID5由于MBR分区有大小限制2.1T,所以采用了GPT分区格式。1.第一次装好系统后,把MBR分区转换成GPT分区转载 2012-09-16 18:47:07 · 2342 阅读 · 0 评论 -
How to use udev for Oracle ASM in Oracle Linux 5
How to use udev for Oracle ASM in Oracle Linux 5[root@pctest01 ~]# rpm -qa|grep udevudev-095-14.27.0.3.el5_7.1[root@pctest01 ~]# 1.修改/etc/scsi_id.config文件.把options=-b注释掉,加入options=-g,该选项保证所有连接原创 2013-04-29 07:26:12 · 1151 阅读 · 1 评论 -
UDEV SCSI Rules Configuration for ASM in Oracle Linux 5 and 6
原文:http://www.oracle-base.com/articles/linux/udev-scsi-rules-configuration-in-oracle-linux-5-and-6.php For Oracle Automatic Storage Manager (ASM) to use disks, it needs to be able to转载 2013-04-29 07:27:59 · 1012 阅读 · 0 评论 -
linux下挂载(mount)光盘镜像文件、移动硬盘、U盘、Windows网络共享和NFS网络共享
详细出处参考:http://www.jb51.net/os/RedHat/1269.html 挂接命令(mount) 首先,介绍一下挂接(mount)命令的使用方法,mount命令参数非常多,这里主要讲一下今天我们要用到的。 命令格式: mount [-t vfstype] [-o options] device dir 其中:转载 2013-04-30 14:12:12 · 974 阅读 · 1 评论 -
fusion-io 安装测试
原文:http://space.itpub.net/7685986/viewspace-717077今天测试了安装fusion-io, 160GB,1、将fusion-io卡接到DELL R710服务器上。2、到http://support.fusionio.com/driver/ 下载驱动站点上的iomemory-vsl-2.6.18-238.9.1.el5-2.3.1.123-转载 2013-05-01 00:50:38 · 4329 阅读 · 0 评论 -
Creating mailbox file: File exists
# /usr/sbin/useradd -g oinstall -G dba,asmdba,oper oracleCreating mailbox file: File existsuseradd: warning: the home directory already exists.Not copying any file from skel directory into it.原创 2013-11-04 21:45:43 · 6637 阅读 · 0 评论 -
linux 防火墙设置、selinux禁用
即时生效,重启后失效 开启: service iptables start 关闭: service iptables stop 重启防火墙使配置生效etc/init.d/iptables restart service iptables restart 重启后生效 开启: chkconfig iptables on 关闭: chkconfig原创 2013-11-01 19:49:32 · 1622 阅读 · 4 评论 -
linux md5工具
md5:[root@erpbak ~]# md5sum -t install.log.1213 559e1d855590edb6a29005ceb505de64 install.log.1213[root@erpbak ~]# md5sum -t install.logaef686e34e33ea7e6e7a0dfae4d842a9 install.log[root原创 2013-12-14 14:06:32 · 1549 阅读 · 0 评论 -
Linux系统shell时间
Linux系统shell时间在shell中,字符串转换为时间戳可以这样做:date -d "2010-10-18 00:00:00" +%s输出形如:1287331200其中,-d参数表示显示指定的字符串所表示的时间,+%s表示输出时间戳。而时间戳转换为字符串可以这样做:date -d @1287331200输出形如:Mon Oct 18 00:00:0原创 2013-12-20 23:55:33 · 1515 阅读 · 0 评论 -
parted /dev/vgca0
[root@erpbak ~]# parted /dev/vgca0GNU Parted 1.8.1Using /dev/vgca0Welcome to GNU Parted! Type 'help' to view a list of commands.(parted) p原创 2014-01-06 00:28:26 · 1613 阅读 · 0 评论 -
linux sed命令使用方法
原文:http://www.cnblogs.com/dong008259/category/340620.htmlsed命令行格式为: sed [-nefri] 'command' 输入文本 常用选项: -n∶使用安静(silent)模式。在一般 sed 的用法中,所有来自 STDIN的资料一般都会被列出到萤幕上。但如果加上 -n 参数后转载 2012-09-22 20:47:57 · 1031 阅读 · 3 评论 -
[转]linux awk命令详解
[转]linux awk命令详解原文链接 :http://blog.chinaunix.net/uid-23302288-id-3785105.htmlawk是行处理器: 相比较屏幕处理的优点,在处理庞大文件时不会出现内存溢出或是处理缓慢的问题,通常用来格式化文本信息awk处理过程: 依次对每一行进行处理,然后输出awk命令形式:awk [-F|-f|-v] 'BEGIN{}...转载 2019-05-15 20:09:37 · 238 阅读 · 0 评论