安裝過(guò)程分以下四個(gè)步驟
一,安裝準備
二,下載安裝
三,相關(guān)設置
四,常見(jiàn)錯誤
一,安裝準備
1,創(chuàng )建oracle用戶(hù)
以root用戶(hù)登錄,創(chuàng )建oracle用戶(hù)以及其所屬的dba組
123456 | su -# groupadd dba# groupadd oinstall# groupadd asmdba# groupadd asmadmin# useradd -g oinstall -G dba,asmdba,asmadmin -m -d /export/home/oracle -s /usr/bin/bash oracle |
2,設置系統參數
編輯 /etc/system 文件添加下行
1 | set noexec_user_stack=1 |
執行下面命令
1234 | # projadd -U oracle -K "project.max-shm-memory=(priv,4g,deny)" user.oracle# projmod -sK "project.max-sem-nsems=(priv,512,deny)" user.oracle# projmod -sK "project.max-sem-ids=(priv,128,deny)" user.oracle# projmod -sK "project.max-shm-ids=(priv,128,deny)" user.oracle |
可以通過(guò)”prctl -i project user.oracle” 命令對配置進(jìn)行檢查
3,創(chuàng )建oracle目錄
123 | # mkdir /opt/oracle# mkdir /opt/oracle/112# chown -R oracle:dba /opt/oracle |
4,設置oracle環(huán)境變量
編輯 /home/oracle/.bash_profile 并添加下列行:
12345678 | ORACLE_BASE=/opt/oracleORACLE_HOME=$ORACLE_BASE/112ORACLE_SID=ORA11GR2CRS_HOME=$ORACLE_BASE/112_crsLD_LIBRARY_PATH=$ORACLE_HOME/lib:$CRS_HOME/libPATH=$PATH:/usr/local/bin:/usr/ccs/bin:$ORACLE_HOME/bin:$CRS_HOME/bin export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH |
保存后通過(guò)下面命令是配置生效
123 | su - oraclecd /export/home/oracle. .bash_profile |
二,下載安裝
1,下載并安裝需要的rpm軟件包
檢查軟件包安裝情況:
1 | pkginfo -i SUNWarc SUNWlibms SUNWtoo SUNWi1cs SUNWi15cs SUNWxwfnt SUNWxwplt SUNWmfrun SUNWxwplr SUNWxwdv SUNWgcc SUNWbtool SUNWi1of SUNWhea SUNWlibm SUNWsprot SUNWuiu8 SUNWpool SUNWpoolr |
安裝軟件包:
12 | # pkgadd -d . SUNWarc SUNWlibms SUNWtoo SUNWi1cs SUNWi15cs SUNWxwfnt SUNWxwplt SUNWmfrun SUNWxwplr SUNWxwdv SUNWgcc SUNWbtool \SUNWi1of SUNWhea SUNWlibm SUNWsprot SUNWuiu8 SUNWpool SUNWpoolr |
2,下載Oracle 11g
下載地址:http://www.oracle.com/technology/software/products/database/oracle11g/112010_sparc_x64soft.html
對于Grid (CRS)
1 | unzip solaris.x64_11gR2_grid.zip |
對于database
12 | unzip solaris.x64_11gR2_database_1of2.zipunzip solaris.x64_11gR2_database_2of2.zip |
3,進(jìn)行安裝
對于Grid (CRS)
12 | cd grid./runInstaller |
對于database
12 | cd database./runInstaller |
三,相關(guān)配置
1,以root用戶(hù)執行下面腳本
12 | # /opt/oracle/oraInventory/orainstRoot.sh# /opt/oracle/102/root.sh |
四,常見(jiàn)錯誤
1,錯誤:Unable to convert from “UTF-8″ to “646″ for NLS!
安裝軟件包 SUNWuiu8
2,錯誤:Checking monitor: must be configured to display at least 256 colors >>> Could not execute auto check for display colors using command /usr/openwin/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<< Some requirement checks failed. You must fulfill these requirements before continuing with the installation,at which time they will be rechecked.
安裝SUNWxwplt 軟件包,并設置DISPLAY參數,并以root用戶(hù)執行”xhost +“命令
3,錯誤:Exception in thread “main” java.lang.UnsatisfiedLinkError:
… libmawt.so: ld.so.1: java: fatal: libXm.so.4: open failed: No such file or directory
安裝SUNWmfrun軟件包
4,錯誤:Can’t load ‘/usr/perl5/5.8.4/lib/i86pc-solaris-64int/auto/Sun/Solaris/Project/Project.so’ for module Sun::Solaris::Project: ld.so.1: perl: fatal: libpool.so.1: open failed: No such file or directory at /usr/perl5/5.8.4/lib/i86pc-solaris-64int/DynaLoader.pm line 230. at /usr/sbin/projadd line 19 Compilation failed in require at /usr/sbin/projadd line 19. BEGIN failed–compilation aborted at /usr/sbin/projadd line 19.
安裝 SUNWpool SUNWpoolr 軟件包
5,錯誤:root.sh: /usr/xpg4/bin/grep: not found
執行命令:ln -s /usr/bin/grep /usr/xpg4/bin/grep
聯(lián)系客服