Contens 5.8 安裝 oracle grid infrastruture(使用asmlib製作asm disk)
Contens 5.8 安裝 oracle grid infrastruture(使用asmlib製作asm disk)
軟體支援包
http://docs.oracle.com/cd/E11882_01/install.112/e24321/pre_install.htm#i1011296
compat-libstdc++-33-3.2.3
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
gcc-4.1.2
gcc-c++-4.1.2
glibc-2.5-24
glibc-common-2.5
glibc-devel-2.5
glibc-headers-2.5
ksh-20060214
libaio-0.3.106
libaio-devel-0.3.106
libgcc-4.1.2
libstdc++-4.1.2
libstdc++-devel 4.1.2
make-3.81
sysstat-7.0.2
執行安裝
yum install binutils compat-libstdc++ elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibcglibc-common glibc-devel glibc-headers ksh-20060214 libaio libaio-devel libgcc libstdc++- libstdc++-devel make-3.81 sysstat
記憶體要求
RAM>=1.5G oracle grid
RAM>=2.5G oracle grid + oracle database
RAM>=4G oracle grid + oracle rac
硬碟要求
至少5.5G磁碟空間
至少1G /tmp 磁碟空間
如果/tmp不足1G,你可以設定grid環境變數 /tmpdir
sudo mkdir /u01/app/tmp
sudo chmod a+wr /u01/app/tmp
export TMP=/u01/app/tmp
export TMPDIR=/u01/app/tmp
建立組、使用者、修改密碼、使用者資源限制、核心引數、使用者環境變數
建立組
/usr/sbin/groupadd oinstall
/usr/sbin/groupadd –g 502 dba
/usr/sbin/groupadd –g 503 oper
/usr/sbin/groupadd –g 504 asmadmin
/usr/sbin/groupadd –g 505 asmoper
/usr/sbin/groupadd –g 506 asmdba
建立使用者
/usr/sbin/useradd –u 8001 –g oinstall –G asmadmin,asmdba,asmoper,dba grid
修改密碼
passwd grid
使用者資源限制
vi /etc/security/limits.conf
grid soft nproc 2047
grid hard nproc 16384
grid soft nofile 1024
grid hard nofile 65536
grid soft stack 10240
核心引數
vi /etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 524288
kernel.shmmax = 1073741824
kernel.shmmni = 4096
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 = 1048576
sysctl –p 立即生效
建立目錄
mkdir –p /u01/app/grid
mkdir –p /u01/app/oraInventory
mkdir –p /u01/app/11.2.0
chown –R grid:oinstall /u01/app/grid
chown –R grid:oinstall /u01/app/oraInventory
chown –R grid:oinstall /u01/app/11.2.0
chmod 775 /u01/app/grid
chmod 775 /u01/app/oraInventory
chmod 775 /u01/app/11.2.0
grid使用者環境變數
vi .bash_profile
export ORACLE_BASE=/u01/app/grid
export ORACLE_HOME=/u01/app/11.2.0
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:
export ORACLE_SID=+ASM
umask 022
ASM DISK
檢視核心版本
[root@doudou-32bit grid]# uname -r
2.6.18-348.3.1.el5
下載asmlib版本
http://www.oracle.com/technetwork/topics/linux/asmlib/index-101839.html
oracleasm-2.6.18-348.3.1.el5-2.0.5-1.el5.i686.rpm
oracleasm-2.6.18-348.3.1.el5debug-2.0.5-1.el5.i686.rpm
oracleasm-2.6.18-348.3.1.el5PAE-2.0.5-1.el5.i686.rpm
oracleasm-2.6.18-348.3.1.el5xen-2.0.5-1.el5.i686.rpm
oracleasmlib-2.0.4-1.el5.i386.rpm
oracleasm-support-2.1.8-1.el5.i386.rpm
配置ASM磁碟管理使用者
[root@doudou-32bit ~]# /etc/init.d/oracleasm configure
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface []: grid
Default group to own the driver interface []: asmadmin
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
格式化分割槽
fdisk /dev/sda
n
p
1
回車
回車
w
[root@doudou-32bit ~]# /etc/init.d/oracleasm createdisk DISK1 /dev/sda1
Marking disk "DISK1" as an ASM disk: [ OK ]
其餘省略……..
[root@doudou-32bit grid]# /etc/init.d/oracleasm listdisks
DISK1
DISK2
DISK3
DISK4
DISK5
DISK6
DISK7
DISK8
export DISPLAY=192.168.1.1:0.0 (xmanger 圖形安裝)
[grid@doudou-32bit grid]$ ./runInstaller
。。。。。圖形安裝過程省略
Oracle grid infrastructrue解除安裝
./deinstall
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26442936/viewspace-759011/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Using ASMLIB Management ASM DiskASM
- RedHat 5.8 安裝Oracle 11gR2_Grid叢集RedhatOracle
- Oracle ASM Disk DirectoryOracleASM
- Oracle ASM Disk PartnerOracleASM
- 【BUILD_ORACLE】使用ASMLib包搭建ASM磁碟UIOracleASM
- oracle linux使用安裝盤製作本地yumOracleLinux
- Oracle ASM Disk HeaderOracleASMHeader
- Oracle ASM spfile in a disk groupOracleASM
- Laravel5.8 安裝使用 vueLaravelVue
- 使用NSIS製作安裝包
- oracle asm Unable to mount ASMlib driver filesystemOracleASM
- Oracle ASM Disk Used Space DirectoryOracleASM
- Oracle ASM ACFS disk group rebalanceOracleASM
- Oracle ASM Disk Group AttributesOracleASM
- 安裝grid執行root.sh報錯ORA-15020 discovered duplicate ASM disk排查ASM
- CentOS 5.8上安裝Oracle 10gCentOSOracle 10g
- 【ASM】ASMLIB 系列ASM
- drop asm disk、撤銷drop asm diskASM
- oracle ASM錯誤Initializing the Oracle ASMLib driver:[FAILED]OracleASMAI
- Oracle 使用BBED 檢視 ASM Disk Header 內容OracleASMHeader
- Oracle grid infrastructure 解除安裝OracleASTStruct
- [Oracle Script] ASM Disk Groups UsedOracleASM
- 12C__單機安裝Grid+Oracle的方法,ASM使用UDEV進行磁碟繫結OracleASMdev
- oracle11Gr2安裝ASM,使用裸裝置OracleASM
- Oracle ASM安裝要點OracleASM
- 手工建立ASM Disk Groups、為 ASM Disk Groups 新增 diskASM
- Oracle ASM disk誤被格式化OracleASM
- Asm disk managerASM
- 在redhat 5.8下安裝11gR2在安裝grid時報錯:INS-32026Redhat
- Oracle 12.2 GRID的安裝方式Oracle
- 安裝oracle 11g 使用ASM儲存 詳細OracleASM
- ASM Disk Group TemplateASM
- Redhat kickstart 安裝光碟製作Redhat
- RedHat DVD安裝盤製作Redhat
- 【Oracle】ASM例項安裝入門OracleASM
- Oracle ASM+11gR2安裝OracleASM
- 探索ORACLE之ASM02_安裝OracleASM
- ASM using ASMLib and Raw DevicesASMdev