linux 中oracle 10g rac 关闭crs开机自启动

linux 中在没有对init.crs作修改的时候,在开机时总是会自动把的cluster 软件和一起和系统起来.数据库raclinux 另外,也可以通过crs-stat -t查看,把没有启动的服务手工启动 [oracle@rac1 ~]$ crs_stat -t Name Type Target State Host ------------------------------------------------------------ ora.....CRM.cs application OFFLINE OFFLINE ora....db1.srv application OFFLINE OFFLINE ora.devdb.db application ONLINE ONLINE rac1 ora....b1.inst application ONLINE ONLINE rac1 ora....b2.inst application ONLINE OFFLINE ora....SM1.asm application ONLINE ONLINE rac1 ora....C1.lsnr application ONLINE ONLINE rac1 ora.rac1.gsd application ONLINE ONLINE rac1 ora.rac1.ons application ONLINE ONLINE rac1 ora.rac1.vip application ONLINE ONLINE rac1 ora....SM2.asm application ONLINE OFFLINE ora....C2.lsnr application ONLINE OFFLINE ora.rac2.gsd application ONLINE OFFLINE ora.rac2.ons application ONLINE OFFLINE ora.rac2.vip application ONLINE ONLINE rac1 禁止Clusterware在系统重启后自动启动: ...

2010-02-24 · 1 min · 190 words · kevin

linux系统实用命令

1、统计apache占用的系统内存 ps aux | grep apache | awk ‘{sum+=$4};END {print sum}’ 注:$4表示第四域 2、在VIM中的一些技巧 (针对当前屏幕) H——跳到第一行 M——跳到中间一行 L——跳到最后一行 (针对整个文档) gg——到首行 G——到尾行 7yy复制7行 5dd 删除5行 dG 删除所有行 d$ 从当前位置删除到行尾 y$ 从当前位置复制到行尾 3、让命令提示符前显示完整路径 vi /etc/bashrc 找到 “$PS1″ = “\\s-\\v\\\$ ” ] && PS1=”[\u@\h \W]\\$ “这一行,把这里的W改成小w,然后再重新启动一下机器就能实现 4、在字符界面下安装开发工具与开发库 # yum groupinstall “Development Tools” # yum groupinstall “Development Libraries” 转载自:http://www.freeopens.com/2010_01_109.html

2010-01-26 · 1 min · 54 words · kevin

DD命令详解

1.命令简介 dd 的主要选项: 指定数字的地方若以下列字符结尾乘以相应的数字: b=512, c=1, k=1024, w=2, xm=number m if=file #输入文件名,缺省为标准输入。 of=file #输出文件名,缺省为标准输出。 ibs=bytes #一次读入 bytes 个字节(即一个块大小为 bytes 个字节)。 obs=bytes #一次写 bytes 个字节(即一个块大小为 bytes 个字节)。 bs=bytes #同时设置读写块的大小为 bytes ,可代替 ibs 和 obs 。 cbs=bytes #一次转换 bytes 个字节,即转换缓冲区大小。 skip=blocks #从输入文件开头跳过 blocks 个块后再开始复制。 seek=blocks #从输出文件开头跳过 blocks 个块后再开始复制。(通常只有当输出文件是磁盘或磁带时才有效)。 count=blocks #仅拷贝 blocks 个块,块大小等于 ibs 指定的字节数。 conv=conversion[,conversion…] #用指定的参数转换文件。 转换参数: ascii 转换 EBCDIC 为 ASCII。 ebcdic 转换 ASCII 为 EBCDIC。 ibm 转换 ASCII 为 alternate EBCDIC. block 把每一行转换为长度为 cbs 的记录,不足部分用空格填充。 unblock 使每一行的长度都为 cbs ,不足部分用空格填充。 lcase 把大写字符转换为小写字符。 ucase 把小写字符转换为大写字符。 swab 交换输入的每对字节。 noerror 出错时不停止。 notrunc 不截短输出文件。 sync 把每个输入块填充到ibs个字节,不足部分用空(NUL)字符补齐。 ...

2010-01-26 · 2 min · 264 words · kevin

linux启动过程

硬件读取引导扇区 加载LILO或者grub 加载内核 挂装根文件系统 启动/sbin/init ,一切进程的“祖父” 读取/etc/inittab文件 读取rc.sysinit文件 读取/etc/fstab文件 运行rcX.d下的文件(文件都是init.d下的符号链接) 其中有一个xinetd 的超级进程,调用/etc/xinetd.conf 配置文件,从配置文件中知道读/etc/xinetd.d 文件,结束后调用Miggetty 读取/etc/rc.d/rc.local文件

2010-01-26 · 1 min · 15 words · kevin

Linux NFS Root and PXE-Boot

Linux kernel hacking and test running on the same machine becomes a major pain. This tutorial explains how to separate the two easily for a quick code-and-test loop. This tutorial explains how to setup a Linux thin client that boots using PXE by pulling a remote Linux kernel image and mounting a remote root file system over NFS. This is only possible if your client machine has a network card that supports this (do you remember seeing some type of option like press N to boot from network just after posting?). I am using Fedora Core 5 as my server, so some of the details may be specific to FC. ...

2010-01-25 · 3 min · 493 words · kevin

PXELINUX

What is PXELINUX? PXELINUX is a SYSLINUX derivative, for booting Linux off a network server, using a network ROM conforming to the Intel PXE (Pre-Execution Environment) specification. PXELINUX is not a program that is intended to be flashed or burned into a PROM on the network card; if you want that, check out Etherboot ( http://www.etherboot.org/). If you want to create PXE-compliant boot PROM for your network card (to use with PXELINUX, for example), check out NetBoot (http://netboot.sourceforge.net/). ...

2010-01-25 · 15 min · 3174 words · kevin

Setting up a PXE-Boot Server

This documents how to setup a PXE boot server for Linux. This assumes that you’re using Redhat/FC as the PXE boot server. The vast majority of the information has been obtained from the following webpages: http://dev.brantleyonline.com/wiki/index.php/General_Network_%28PXE%29_Booting http://dev.brantleyonline.com/wiki/index.php/PXE_Booting_-_Fedora_Core The first thing to note is that you need to setup your own mini-network that is completely disconnected from the network, since part of this process requires setting up a DHCP server which could conflict with the corporate DHCP server if they were both running on the same network simultaneously. So get yourself a switch from IT up front. You do *NOT* need the switch immediately, so just put it aside until I mention it again later on. The next step is to choose a box to be the PXE boot server. This can really be any box at all, as long as you have a NIC in it that works reliably under Linux. For the purposes of this documentation, I’m going to assume that you’ve loaded Fedora Core 4 on this box (do that now, if you’ve not already). Get this box onto the network with DHCP (just like a normal installation). 2) Next you’ll need to install the following packages (which ship with FC4 already, so if you did an ’everything’ OS install, you should have them already. If not, you can install them easily with yum): tftp-server dhcp httpd syslinux ...

2010-01-25 · 6 min · 1090 words · kevin

定制自己的LiveCD,依托(centos)

1、建立自己的yum-repository或者使用官方的(考虑到你需要的软件小,所以这一步不是很必要)。 2、安装一个centos系统,修改etc/yum.repos.d/centos-livecd.repo文件内容 # Name: CentOS LiveCD repository [livecd] name = CentOS $releasever - LiveCD baseurl = http://www.nanotechnologies.qc.ca/propos/linux/centos-live/$basearch/live enabled=1 protect=0 gpgkey = http://www.nanotechnologies.qc.ca/propos/linux/RPM-GPG-KEY-PGuay 保存之后,执行以下命令: # yum install livecd-tools syslinux 这样就安装好了工具,接下来就是写自己想要的ks脚本; 3、ks脚本 名称:centos-livecd-minimal.ks(包含必须包的脚本) 内容: lang en_US.UTF-8 keyboard us timezone US/Eastern auth --useshadow --enablemd5 selinux --disabled firewall --disabled repo --name=base --baseurl=http://ftp.telus.net/pub/centos/5/os/$basearch repo --name=updates --baseurl=http://ftp.telus.net/pub/centos/5/updates/$basearch repo --name=extras --baseurl=http://ftp.telus.net/pub/centos/5/extras/$basearch #repo --name=base --baseurl=http://isoredirect.centos.org/centos/5/os/$basearch #repo --name=updates --baseurl=http://isoredirect.centos.org/centos/5/updates/$basearch #repo --name=extras --baseurl=http://isoredirect.centos.org/centos/5/extras/$basearch repo --name=live --baseurl=http://www.nanotechnologies.qc.ca/propos/linux/centos-live/$basearch/live %packages bash kernel syslinux passwd policycoreutils chkconfig authconfig rootfiles comps-extras xkeyboard-config gnome-desktop 4、生成 ...

2010-01-20 · 1 min · 86 words · kevin

Nginx整合Resin

操作系统:centos 5.4 64位 1,安装jdk,已经配置有yumrepository,直接使用。 yum install jdk 2,安装pcre,nginx运行所需perl库。 yum install pcre pcre-devel 3,安装mysql ,mysql相关配置省略。 yum install mysql mysql-server 4,安装并配置resin。 wget http://www.caucho.com/download/resin-4.0.3.tar.gz tar zxvf resin-4.0.3.tar.gz cd resin-4.0.3 ./configure --prefix=/usr/local/resin make && make install 修改配置参数 vi /usr/local/resin/conf/resin.xml 注释掉下面代码,不然会提示启动错误 www-data www-data 并添加相应配置 启动resin /usr/local/resin/bin/resin.sh start 5,安装nginx。 wget http://nginx.org/download/nginx-0.8.32.tar.gz tar zxvf nginx-0.8.32.tar.gz ./configure --prefix=/usr/local/nginx make && make install 修改配置文件 vi /usr/local/nginx/conf/proxy proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; client_max_body_size 10m; client_body_buffer_size 128k; proxy_connect_timeout 90; proxy_send_timeout 90; proxy_read_timeout 90; proxy_buffers 32 4k; vi /usr/local/nginx/conf/nginx 修改server { … …} 为下面代码 ...

2010-01-20 · 1 min · 124 words · kevin

linux下的无盘工作站配置(centos)

 需求:需要多个系统同运行同样的服务,如j2ee模块、memcached等,这些服务不与硬盘相关,只运行在内存中,并且多个系统同时运行,为了规避单点故障以及实现高效。 下面步骤是centos5.4系统的无盘服务端配置步骤,客户端只要选择从网络启动,即可在无干预情况下启动系统。 一,新建主要目录 mkdir -p /diskless/x86_64/centos5.4/root mkdir /diskless/x86_64/centos5.4/snapshot 二,拷贝预置模板到/diskless/x86_64/centos5.4/root目录 rsync -auv -e ssh --delete --exclude='/proc/*' --exclude='/sys/*' --exclude='/tmp/*'--exclude='/var/log/*' root@10.0.70.72:/ /diskless/x86_64/centos5.4/root/ 三,配置所需tftp服务 yum -y install tftp tftp-server yum -y install busybox vi /etc/xinetd/tftp diskable=no chkconfig --level 345 xinetd on chkconfig --level 345 tftp on service xinetd start 四,配置dhcp服务 yum -y install dhcp-server chkconfig --level 345 dhcpd on vi /etc/dhcpd.conf allow booting; allow bootp; class “pxeclients” { match if substring(option vendor-class-identifier, 0, 9) = “PXEClient”; next-server <server-ip>; filename “linux-install/pxelinux.0”; } service dhcpd start ...

2009-12-29 · 2 min · 328 words · kevin