RedHat 安裝11g rac
1、linux的ip配置
[root@node1 ~]# vi /etc/sysconfig/network NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=node1 |
[root@node1 ~]# vi /etc/sysconfig/network NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=node1 |
[root@node1 ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 IPADDR=192.168.6.10 GATEWAY=192.168.6.1 # Intel Corporation 82540EM Gigabit Ethernet Controller BOOTPROTO=static NETMASK=255.255.255.0 > |
|
# Intel Corporation 82540EM Gigabit Ethernet Controller BOOTPROTO=static NETMASK=255.255.255.0 [root@node1 ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth1 DEVICE=eth1 IPADDR=10.10.10.2 > |
|
注:GATEWAY 閘道器不能跟其他地方有衝突 ,node1和node2閘道器是相同的。netmask是子網掩碼
[root@node1 ~]# cat /etc/hosts # that require network functionality will fail.
192.168.6.12 node1-vip
192.168.6.13 node2-vip
# Do not remove the following line, or various programs 127.0.0.1 localhost 192.168.6.10 node1 10.10.10.1 node1-priv 192.168.6.11 node2 10.10.10.2 node2-priv 192.168. 6 .14 rac_scan |
注:互相ping下,node1 node1-priv看是否通,通說明成功,vip是叢集件託管,11g由grid使用者管理
2、磁碟的相關配置
df -h fdisk -l
注:sd是SATA磁碟,其中a是第一塊盤,b是第二塊盤,1代表第一個分割槽
[root@node1 ~]# fdisk /dev/sdb
Command (m for help): n Command action e extended p primary partition (1-4) p Command (m for help): p Disk /dev/sdb: 17.1 GB, 17179869184 bytes 255 heads, 63 sectors/track, 2088 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 2088 16771828+ 83 Linux Command (m for help): w
然後將sdb做格式化
mkfs.ext4 /dev/sdb1 mount /dev/sdb1 /u01 [root@node1 ~]# vi /etc/fstab /dev/VolGroup00/LogVol00 / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 /dev/VolGroup00/LogVol01 swap swap defaults 0 0 /dev/sdb1 /u01 ext3 defaults 0 0
配置swap空間(當系統的實體記憶體不夠用的時候,就需要將實體記憶體中的一部分空間釋放出來,以供當前執行的程式使用。那些被釋放的空間可能來自一些很長時間沒有什麼操作的程式,這些被釋放的空間被臨時儲存到Swap空間中,等到那些程式要執行時,再從Swap中恢復儲存的資料到記憶體中)
free -m [root@node1 dev]# dd if=/dev/zero of=/u01/swapfile bs=1M count=2048
注:dd:複製命令 if:輸入裝置 of:輸出裝置 bs:blocksize 以1M為單位,2048個單位,意思是生成2G的檔案。
mkswap /u01/swapfile swapon /u01/swapfile ll -h /u01/swapfile /u01/swapfile swap swap default 0 0 /*注:寫到/etc/fstab中*/
[rootnode1 dev]# free total used free shared buffers cached Mem: 2075468 2013448 62020 0 11812 1913816 -/+ buffers/cache: 87820 1987648 Swap: 4194288 0 4194288
3、配置安裝環境
注:grid管理共享磁碟,asmadmin是所有組,兩邊使用者組id必須是相同的
groupadd -g 200 oinstall groupadd -g 201 dba groupadd -g 202 oper groupadd -g 203 asmadmin groupadd -g 204 asmoper groupadd -g 205 asmdba useradd -u 200 -g oinstall -G dba,asmdba,oper oracle useradd -u 201 -g oinstall -G asmadmin,asmdba,asmoper,oper,dba grid su - oracle id passwd oracle passwd grid
-
-建立目錄指令碼
mkdir -p /u01/app/oraInventory chown -R grid:oinstall /u01/app/oraInventory/ chmod -R 775 /u01/app/oraInventory/ mkdir -p /u01/11.2.0/grid chown -R grid:oinstall /u01/11.2.0/grid/ chmod -R 775 /u01/11.2.0/grid/ mkdir -p /u01/app/oraInventory/ mkdir -p /u01/app/oracle mkdir -p /u01/app/oracle/cfgtoollogs mkdir -p /u01/app/oracle/product/11.2.0/db_1 chown -R oracle:oinstall /u01/app/oracle chmod -R 775 /u01/app/oracle
修改oracle和grid使用者環境變數,兩個節點相同
export EDITOR=vi export ORACLE_SID=prod1 export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1 export LD_LIBRARY_PATH=$ORACLE_HOME/lib export PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin umask 022
# .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs export EDITOR=vi export ORACLE_SID=+ASM1 export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=/u01/11.2.0/grid export GRID_HOME=/u01/11.2.0/grid export LD_LIBRARY_PATH=$ORACLE_HOME/lib export THREADS_FLAG=native export PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin umask 022
--修改核心引數:單機和rac都得改,除非oracle自己出的那個linux不用改
echo " fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 1054504960 kernel.shmmni = 4096 # semaphores: semmsl, semmns, semopm, semmni kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default=262144 net.core.rmem_max=4194304 net.core.wmem_default=262144 net.core.wmem_max=1048586 " >> /etc/sysctl.conf
cat>> /etc/security/limits.conf<echo " session required /lib/security/pam_limits.so session required pam_limits.so " >> /etc/pam.d/login echo " if [ $SHELL = "/bin/ksh" ]; then ulimit -n 65536 ulimit -u 16384 -n 65536 fi " >> /etc/profile
ntp
cat /etc/ntp.conf
# Use public servers from the pool.ntp.org project. # Please consider joining the pool (http://www.pool.ntp.org/join.html). server ntp.config.net server 0.rhel.pool.ntp.org iburst server 1.rhel.pool.ntp.org iburst server 2.rhel.pool.ntp.org iburst server 3.rhel.pool.ntp.org iburst #broadcast 192.168.1.255 autokey # broadcast server #broadcastclient # broadcast client #broadcast 224.0.1.1 autokey # multicast server #multicastclient 224.0.1.1 # multicast client #manycastserver 239.255.254.254 # manycast server #manycastclient 239.255.254.254 autokey # manycast client
影響開機將郵件服務關掉
chkconfig sendmail off
[root@node1 ~]# mv /etc/ntp.conf /etc/ntp.conf.bak
ntp 時間同步,如果不關閉, ------ 注意其中“ ========= 配置 =================
/etc/yum.repos.d
[root@node1 yum.repos.d]# cp rhel-debuginfo.repo yum.repo
rhel-debuginfo.repo yum.repo
[root@node1 yum.repos.d]# vi yum.repo
[Base]
baseurl=file:///media/Server 以安裝目錄光碟做一個倉庫
gpgcheck=0
linux ISO 光碟,安裝軟體
[root@node1 yum.repos.d]#mount /dev/hdc /media
yum install -y libaio*
yum install unix* -y
yum -y install xdpyinfo
unixODBC-2.2.11-7.1
unixODBC-kde-2.2.11-7.1
報錯:
[root@node2 Server]# yum install unix* -y
Loaded plugins: rhnplugin, security
Repository rhel-debuginfo is listed more than once in the configuration
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Examining unix2dos-2.2-26.2.3.el5.x86_64.rpm: unix2dos-2.2-26.2.3.el5.x86_64
Cannot add package unix2dos-2.2-26.2.3.el5.x86_64.rpm to transaction. Not a compatible architecture: x86_64
Examining unixODBC-2.2.11-7.1.i386.rpm: unixODBC-2.2.11-7.1.i386
Marking unixODBC-2.2.11-7.1.i386.rpm to be installed
Examining unixODBC-2.2.11-7.1.x86_64.rpm: unixODBC-2.2.11-7.1.x86_64
Cannot add package unixODBC-2.2.11-7.1.x86_64.rpm to transaction. Not a compatible architecture: x86_64
Examining unixODBC-devel-2.2.11-7.1.i386.rpm: unixODBC-devel-2.2.11-7.1.i386
Marking unixODBC-devel-2.2.11-7.1.i386.rpm to be installed
Examining unixODBC-devel-2.2.11-7.1.x86_64.rpm: unixODBC-devel-2.2.11-7.1.x86_64
Cannot add package unixODBC-devel-2.2.11-7.1.x86_64.rpm to transaction. Not a compatible architecture: x86_64
Examining unixODBC-kde-2.2.11-7.1.i386.rpm: unixODBC-kde-2.2.11-7.1.i386
Marking unixODBC-kde-2.2.11-7.1.i386.rpm to be installed
Examining unixODBC-kde-2.2.11-7.1.x86_64.rpm: unixODBC-kde-2.2.11-7.1.x86_64
Cannot add package unixODBC-kde-2.2.11-7.1.x86_64.rpm to transaction. Not a compatible architecture: x86_64
Resolving Dependencies
--> Running transaction check
---> Package unixODBC.i386 0:2.2.11-7.1 set to be updated
---> Package unixODBC-devel.i386 0:2.2.11-7.1 set to be updated
---> Package unixODBC-kde.i386 0:2.2.11-7.1 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=========================================================================================================
Package Arch Version Repository Size
=========================================================================================================
Installing:
unixODBC i386 2.2.11-7.1 /unixODBC-2.2.11-7.1.i386 1.8 M
unixODBC-devel i386 2.2.11-7.1 /unixODBC-devel-2.2.11-7.1.i386 2.9 M
unixODBC-kde i386 2.2.11-7.1 /unixODBC-kde-2.2.11-7.1.i386 2.1 M
Transaction Summary
=========================================================================================================
Install 3 Package(s)
Upgrade 0 Package(s)
Total size: 6.8 M
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 37017186
Public key for unixODBC-kde-2.2.11-7.1.i386.rpm is not installed
[root@node2 Server]# rpm -qa | grep -i odbc
這是由於yum安裝了舊版本的GPG keys造成的,解決辦法是可以執行下面命令:
sudo rpm --import /etc/pki/rpm-gpg/RPM*
7、安裝Grid(grid使用者進行安裝軟體包是grid使用者asmadmin組)
/etc/hosts中rac_scan名字
scan ip的網段和主機一致都是6的
後改的hosts 中ip對映要重啟機器 |
|
點選ADD新增vip,
11g這裡可以配置互信,
點選SSH後輸入grid的密碼
|
|
沒問題點選下一步。 |
|
ocr存在ASM磁碟中,
|
|
如果找不到列表中的磁碟的話,
高冗餘5個,normal 2個
|
|
root分別跑倆腳
|
Oracle 11gR2 在Linux下安裝時 cluster verification utility failed(不用管它)
在linux下安裝 Oracle 11gR2 的grid infrastructure時,root.sh執行完後,最後一步校驗時出現 下列錯"oracle cluster utility failed"。 之前所有過程都是好的。 檢查crs_stat -t,發現gsd資源是目標和狀態值都是offline。 Oracle官方資料解釋說。這個GSD是用在9.2庫上的,如果沒有9.2的庫,該服務是可以OFFLINE的。 5.3.4 Enabling The Global Services Daemon (GSD) for Oracle Database Release 9.2 By default, the Global Services daemon (GSD) is disabled. If you install Oracle Database 9i release 2 (9.2) on Oracle Grid Infrastructure for a Cluster 11g release 2 (11.2), then you must enable the GSD. Use the following commands to enable the GSD before you install Oracle Database release 9.2: srvctl enable nodeapps -g srvctl start nodeapps 因此,這個問題可以不考慮。 在安裝日誌檔案中發現NTPD的錯誤資訊,回憶起之前NTPD後臺服務我沒有啟動,忽略錯誤過去的。 因此,手工啟動NTPD服務。 [bash]# chkconfig --level 2345 ntpd on [bash]# /etc/init.d/ntpd restart 再重新安裝一次,這次一切正常。 11g安裝過程中,所有的校驗項都是成功的最好。 後記: 其實,可以忽略該錯誤的。NTPD可以不用。不就是一個時間同步嘛。 gsd的資源offline也沒關係,初始設定的目標就是offline,在11g中也用不上了。 |
[grid@node2 ~]$ crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online 叢集件同部服務css 一個節點新增或刪除通知其他節點。他通知
CRS-4533: Event Manager is online 節點間通訊的工具,都託管給crs
驗證crs 服務:
Error: OUI cannot be launched because the current working directory is set on the CD-ROM
disk later in the installation. Please change the working directory and relaunch OUI.
the 'runInstaller' command by typing its full path (e.g. /mnt/cdrom/runInstaller)
srvctl enable oc4j -n node1 -v
srvctl start oc4j -v
srvctl start nodeapps -v
crs_start -f
ora.node1.gsd
8、
這個說明了 OCR做了冗餘,並且每個盤用的資料量就1019-710=309(M
)
這裡name對應上邊的asmca建立盤的時候,指定的名字選項
9、安裝oracle軟體(這裡就不再贅述了)
udev裸裝置安裝 參考這個 :
http://blog.itpub.net/29990276/viewspace-1549250/
3.1 掛載Oracle Linux 6光碟(以root使用者執行)
#mkdir -p /mnt/cdrom
#mount /dev/cdrom /mnt/cdrom
3.2 建立local.repo檔案(以root使用者執行)
#vi /etc/yum.repos.d/local.repo
[HighAvailability] name=HighAvailability baseurl=file:///mnt/cdrom/HighAvailability enabled=1 gpgcheck=0
[LoadBalancer] name=LoadBalancer baseurl=file:///mnt/cdrom/LoadBalancer enabled=1 gpgcheck=0
[Server] name=Server baseurl=file:///mnt/cdrom/Server enabled=1 gpgcheck=0 |
3.3 修改public-yum-ol6.repo檔案配置(以root使用者執行)
#mv /etc/yum.repos.d/public-yum-ol6.repo /etc/yum.repos.d/public-yum-ol6.repo_bak
#vi /etc/yum.repos.d/public-yum-ol6.repo
[oel6_local] name = oracle Enterprise Linux 6 baseurl=file:///mnt/cdrom/Server/ gpgcheck=0 enabled=1 |
oracle linux 6 yum 依賴包
mkdir /etc/yum.repos.d/bak
cd /etc/yum.repos.d && mv *.repo bak
cat >> /etc/yum.repos.d/yum.repo <
name=Server
baseurl=file:///mnt/Server
enabled=1
gpgcheck=0
[HighAvailability]
name=HighAvailability
baseurl=file:///mnt/HighAvailability
enabled=1
gpgcheck=0
[LoadBalancer]
name=LoadBalancer
baseurl=file:///mnt/LoadBalancer
enabled=1
gpgcheck=0
[ResilientStorage]
name=ResilientStorage
baseurl=file:///mnt/ResilientStorage
enabled=1
gpgcheck=0
[ScalableFileSystem]
name=ScalableFileSystem
baseurl=file:///mnt/ScalableFileSystem
enabled=1
gpgcheck=0
EOF
-----------------------------------------------------------------------------------------
mount /dev/sr0 /mnt
-----------------------------------------------------------------------------------------
yum install -y binutils.x86_64
yum install -y compat-libstdc++-33.x86_64
yum install -y elfutils-libelf.x86_64
yum install -y elfutils-libelf-devel.x86_64
yum install -y gcc.x86_64
yum install -y gcc-c++.x86_64
yum install -y glibc.x86_64
yum install -y glibc-common.x86_64
yum install -y glibc-devel.x86_64
yum install -y glibc-headers.x86_64
yum install -y kernel-headers.x86_64
yum install -y ksh.x86_64
yum install -y libaio.x86_64
yum install -y libaio-devel.x86_64
yum install -y libgcc.x86_64
yum install -y libstdc++.x86_64
yum install -y libstdc++-devel.x86_64
yum install -y make.x86_64
yum install -y numactl.x86_64
yum install -y sysstat.x86_64
yum install -y unixODBC.x86_64
yum install -y unixODBC-devel.x86_64
yum install -y libXp.x86_64
yum install -y libXp.i686
yum install -y compat-libstdc++-33.x86_64
yum install -y compat-libcap1.i686
yum install -y compat-libcap1.x86_64
yum install -y libaio-devel.x86_64
yum install -y libXtst.i686
yum install -y xterm
yum install -y libXtst.x86_64
-------------------------------------------------------
無法啟動圖形,試試xstart
/usr/bin/xterm -ls -display $DISPLAY
yum install xterm
yum install xorg-x11-xauth
亂碼的話, 改作業系統字符集
export LC_ALL=en_US.UTF-8 export NLS_LANG='American_America.AL32UTF8'
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29990276/viewspace-1365093/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle:Redhat 7 + Oracle RAC 11g 安裝 bug 總結OracleRedhat
- Vmware linux redhat6.4 安裝11g(11.2.0.1) 雙節點RACLinuxRedhat
- redhat7.6安裝Oracle11G RACRedhatOracle
- rhel7 安裝11g rac
- Oracle 11G RAC叢集安裝(2)——安裝gridOracle
- Oracle 11G RAC叢集安裝(3)——安裝OracleOracle
- redhat7 搭建oracle 11g RAC 問題與處理RedhatOracle
- oracle 11g RAC 安裝前準備指令碼Oracle指令碼
- RedHat Advance Server上安裝Oracle 9204 RAC參考手冊(轉)RedhatServerOracle
- Oracle 11G RAC叢集安裝(1)——安裝前的準備Oracle
- redhat安裝dockerRedhatDocker
- RedHat 7.7 平臺安裝19c(19.3) RAC 詳細操作過程Redhat
- 通過ORACLE VM virtualbox環境安裝oracle 11G RAC(ASM)OracleASM
- Linux(01):RedHat 7.6 安裝LinuxRedhat
- centOS(同redhat)安裝 dockerCentOSRedhatDocker
- Oracle 11g RAC安裝--基於openfiler儲存+多路徑+udev方式Oracledev
- RedHat 7.7 平臺安裝19c(19.3) RAC 靜默詳細操作過程Redhat
- RedHat FC5安裝xmmsRedhat
- PostgreSQL:Redhat 8.5 + PostgreSQL 14.5 安裝SQLRedhat
- linux7 安裝11g rac的時候突然卡著不動了Linux
- rac靜默安裝
- Redhat 7 下安裝達夢7Redhat
- RedHat 7.6作業系統安裝Redhat作業系統
- Oracle 11G 安裝文件Oracle
- 11g rac新增節點步驟(11g)
- 11G RAC+DG搭建
- redhat 5.4下安裝MYSQL全過程RedhatMySql
- 2節點RAC安裝
- 安裝RAC 19C
- CentOS 7.6 安裝11.2.0.4 RACCentOS
- Oracle 11G 安裝 bbed 工具Oracle
- Windows 11.2.0.4 RAC安裝配置以及RAC新增節點Windows
- 11g rac監聽配置解析
- Oracle 11g RAC Silent Install For NFSOracleNFS
- RedHat上靜默安裝Oracle11gRedhatOracle
- redhat7.2靜默安裝Oracle11.2.0.4RedhatOracle
- RAC安裝【AIX 7 + 11.2.0.4 + ASM】AIASM
- 【11g 單庫解除安裝、靜默安裝】實驗
- 在Linux(Redhat/CentOS)下安裝MySQL之yum(rpm)線上安裝方式LinuxRedhatCentOSMySql