11g單機使用asm
11g單機使用asm
=========================
和10g不同,11g中如果要單機使用asm需要安裝grid frastructure元件
安裝軟體就在grid包中,安裝時選擇第二個選項就能進入這個元件的安裝
具體安裝步驟如下:
安裝軟體就在grid包中,安裝時選擇第二個選項就能進入這個元件的安裝
具體安裝步驟如下:
10g單機使用asm的方法可以參考
http://space.itpub.net/13177610/viewspace-713292
http://space.itpub.net/13177610/viewspace-713292
-------------------------------
--安裝依賴的rpm包
--rpms
--rpms
oracleasm-support-2.1.7-1.el5.i386.rpm
oracleasmlib-2.0.4-1.el5.i386.rpm
oracleasm-2.6.18-194.el5xen-2.0.5-1.el5.i686.rpm
oracleasmlib-2.0.4-1.el5.i386.rpm
oracleasm-2.6.18-194.el5xen-2.0.5-1.el5.i686.rpm
--asm對應的磁碟
--sdb,大小5g
--對sdb只進行fdisk,不建立檔案系統
--sdb,大小5g
--對sdb只進行fdisk,不建立檔案系統
fdisk -l
fdisk /dev/sdb
--config asmdisks
oracleasm configure
oracleasm createdisk DATA /dev/sdb1
oracleasm scandisks
oracleasm listdisks
oracleasm createdisk DATA /dev/sdb1
oracleasm scandisks
oracleasm listdisks
-----------------
--create groups and users
groupadd -g 501 oinstall
groupadd -g 502 dba
groupadd -g 503 oper
groupadd -g 504 asmadmin
groupadd -g 505 asmoper
groupadd -g 506 asmdba
groupadd -g 502 dba
groupadd -g 503 oper
groupadd -g 504 asmadmin
groupadd -g 505 asmoper
groupadd -g 506 asmdba
useradd -g oinstall -G dba,asmdba,oper oracle
useradd -g oinstall -G asmadmin,asmdba,asmoper,oper,dba grid
useradd -g oinstall -G asmadmin,asmdba,asmoper,oper,dba grid
mkdir -p /oracle/app/oracle/product/11.2.0/dbhome
mkdir -p /oracle/app/grid/product/11.2.0/grid
chown -R oracle:oinstall /oracle/app/
chown -R grid:oinstall /oracle/app/grid
chmod -R 775 /oracle/
mkdir -p /oracle/app/grid/product/11.2.0/grid
chown -R oracle:oinstall /oracle/app/
chown -R grid:oinstall /oracle/app/grid
chmod -R 775 /oracle/
passwd grid
passwd oracle
passwd oracle
# vi /etc/security/limits.conf
#ORACLE SETTING
grid soft nproc 2047
grid hard nproc 16384
grid soft nofile 1024
grid hard nofile 65536
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
#ORACLE SETTING
grid soft nproc 2047
grid hard nproc 16384
grid soft nofile 1024
grid hard nofile 65536
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
# vi /etc/pam.d/login
#ORACLE SETTING
session required pam_limits.so
#ORACLE SETTING
session required pam_limits.so
# vi /etc/sysctl.conf
#ORACLE SETTING
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
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 = 1048586
#ORACLE SETTING
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
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 = 1048586
gird時間同步所需要的設定
Network Time Protocol Setting
/sbin/service ntpd stop
chkconfig ntpd off
rm /etc/ntp.conf
-----------------
--envs
#grid
ORACLE_SID=+ASM; export ORACLE_SID
ORACLE_BASE=/oracle/app/grid; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/grid; export ORACLE_HOME
ORACLE_SID=+ASM; export ORACLE_SID
ORACLE_BASE=/oracle/app/grid; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/grid; export ORACLE_HOME
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LANG=C; export LANG
if [ $USER = "oracle" ] || [ $USER = "grid" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi
LANG=C; export LANG
if [ $USER = "oracle" ] || [ $USER = "grid" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi
#oracle
ORACLE_BASE=/oracle/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome; export ORACLE_HOME
ORACLE_SID=DB11; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
ORACLE_BASE=/oracle/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome; export ORACLE_HOME
ORACLE_SID=DB11; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
LANG=C; export LANG
if [ $USER = "oracle" ] || [ $USER = "grid" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi
---------------------
--install grid infrstruncture
--安裝沒什麼可說的
--不過安裝完軟體執行root.sh指令碼報錯,如下
--這個報錯會導致叢集不能正確配置
--最終導致安裝失敗
--在網上查了下,是個bug
--處理方法是執行root.sh指令碼後到/var/tmp/.oracle中等著
--當出現檔案npohasd後執行如下命令
--dd if=/var/tmp/.oracle/npohasd f=/dev/null bs=1024 count=1
--之後就不會報錯
--錯誤如下
--安裝沒什麼可說的
--不過安裝完軟體執行root.sh指令碼報錯,如下
--這個報錯會導致叢集不能正確配置
--最終導致安裝失敗
--在網上查了下,是個bug
--處理方法是執行root.sh指令碼後到/var/tmp/.oracle中等著
--當出現檔案npohasd後執行如下命令
--dd if=/var/tmp/.oracle/npohasd f=/dev/null bs=1024 count=1
--之後就不會報錯
--錯誤如下
[root@localhost grid]# sh root.sh
Running Oracle 11g root.sh script...
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /oracle/app/grid/product/11.2.0/grid
ORACLE_OWNER= grid
ORACLE_HOME= /oracle/app/grid/product/11.2.0/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying coraenv to /usr/local/bin ...
The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
2012-01-04 11:57:57: Checking for super user privileges
2012-01-04 11:57:57: User has super user privileges
2012-01-04 11:57:57: Parsing the host name
Using configuration parameter file: /oracle/app/grid/product/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user 'grid', privgrp 'oinstall'..
Operation successful.
CRS-4664: Node localhost successfully pinned.
Adding daemon to inittab
CRS-4124: Oracle High Availability Services startup failed.
CRS-4000: Command Start failed, or completed with errors.
ohasd failed to start: Inappropriate ioctl for device
ohasd failed to start: Inappropriate ioctl for device at /oracle/app/grid/product/11.2.0/grid/crs/install/roothas.pl line 296.
--其他沒什麼好說的
--圖形介面點而已
--之後安裝資料庫軟體、建立資料庫
--參考了下面的內容
--比較詳細
--圖形介面點而已
--之後安裝資料庫軟體、建立資料庫
--參考了下面的內容
--比較詳細
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/13177610/viewspace-714416/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- AIX6.1安裝ORACLE 11g(單機使用ASM)AIOracleASM
- 10g 單機使用asmASM
- 單機搭建ASM環境ASM
- oracle 11g ASM 的管理使用者OracleASM
- ORA-01078 ORA-29701 11g單機asm系統啟動後不能啟動asmASM
- 單機環境配置ASM例項ASM
- 安裝oracle 11g 使用ASM儲存 詳細OracleASM
- Oracle 11g單例項ASM遷移到檔案系統Oracle單例ASM
- 11g ASM asm_preferred_read_failure_groupASMAI
- oracle 11g ASM問題OracleASM
- 使用RMAN將RAC+ASM複製到單例項+ASM上ASM單例
- ASM 11g New Features - How ASM Disk Resync WorksASM
- 單機環境安裝配置ASM例項ASM
- 11g rac ASM下最簡單歸檔開啟/關閉方法ASM
- 11G R2 ASM管理ASM
- 11g rac standby asm---04ASM
- 11g rac multipath asmlib ASM asm_open error Operation not permittedASMErrorMIT
- oracle 11g asm自動備份asm磁頭任務OracleASM
- OCP(11g)------> ASM Command-Line Utility (ASMCMD)和 使用 ASMCMDASM
- 簡單配置ASMASM
- ASM簡單管理ASM
- 11g asm Oracle 系統核心修改ASMOracle
- 11g資料庫遷移ASM資料庫ASM
- install 11G ASM on RedHat step by stepASMRedhat
- ASM 11g新功能fast disk resyncASMAST
- [轉]Important ASM changes in 11g Release 2ImportASM
- ORA-29701--10g 單機asm不能啟動ASM
- oracle 11gR2 oracle restart 單機使用asm儲存 主機名發生更改處理過程OracleRESTASM
- RAC 11G ASM磁碟損壞恢復ASM
- 11G R2 ASM啟動方法ASM
- oracle 11g asm 磁碟組相容屬性OracleASM
- 11g asm md_backup md_restoreASMREST
- RAC 11G ASM下修改spfile檔案ASM
- 【Oracle】11gR2 grid單機使用asm儲存修改主機名後導致的故障處理OracleASM
- 搭建11g 單機 linux standby 操作文件Linux
- Oracle 11gR2 restart 單機使用asm儲存 主機名發生更改處理過程 (文件 ID 986740.1)OracleRESTASM
- 12C__單機安裝Grid+Oracle的方法,ASM使用UDEV進行磁碟繫結OracleASMdev
- oracle 11.2.0.3 單機 asm 儲存打psu 10補丁OracleASM