Oracle10g在Linux4.7_32位上的安裝
一、修改作業系統檔案
1、配置主機名:
[root@x3a-test ~]# hostname x3a-test
[root@x3a-test ~]# hostname
x3a-test
[root@x3a-test ~]# vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=x3a-test
2、修改 /etc/hosts檔案
[root@x3a-test cdrom]# vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.2.6 x3a-test
[@more@]3、修改/etc/sysctl.conf檔案:
檔案最後追加如下內容
[root@x3a-test ~]# vi /etc/sysctl.conf
#Oracle Install Paramaters
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
然後執行如下命令,讓修改的引數生效
[root@x3a-test ~]# sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
4、修改/etc/security/limits.conf 檔案
檔案最後增加如下內容:
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536
5、修改/etc/pam.d/login檔案
檔案最後增加如下內容:
[root@x3a-test ~]# vi /etc/pam.d/login
session required /lib/security/pam_limits.so
5、檢視或配置網路
[root@x3a-test cdrom]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
BROADCAST=192.168.2.255
HWADDR=84:8F:69:DB:5A:89
IPADDR=192.168.2.6
NETMASK=255.255.255.0
NETWORK=192.168.2.1
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
GATEWAY=192.168.2.1
二、建立Orcale組及使用者:
[root@localhost ~]# groupadd oinstall
[root@localhost ~]# groupadd dba
[root@localhost ~]# useradd -g oinstall -G dba oracle
[root@localhost ~]# passwd oracle
Changing password for user oracle.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
三、建立Orcale相關目錄:
[root@localhost ~]# mkdir -p /opt/oracle/product/10.2.0/database
[root@localhost ~]# chown -R oracle.oinstall /opt/oracle
[root@localhost ~]# chown -R /opt/oracle
[root@localhost ~]# chmod -R 775 /opt/oracle
四、為Oracle使用者配置環境變數:
[root@x3a-test ~]# su - oracle
[oracle@x3a-test ~]$ vi .bash_profile
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/opt/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/database; export ORACLE_HOME
ORACLE_SID=test; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$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
五、解壓Oracle安裝程式軟體
[root@x3a-test opt]# su - oracle
[oracle@x3a-test ~]$ cd /opt/
[oracle@x3a-test opt]$ ls
10201_database_linux32.zip lost+found oracle
[oracle@x3a-test opt]$ unzip 10201_database_linux32.zip
...
[oracle@x3a-test opt]$ ls
10201_database_linux32.zip database lost+found oracle
六、配置圖形顯示環境並執行runInstaller指令碼開始安裝資料庫軟體:
Oracle的安裝環境需要配置圖形介面功能,具體有如下三種方式:
1、以Oracle使用者直接登入伺服器影像介面執行runInstaller
2、透過Xmanager的客戶端工具,在客戶端現實圖形介面的方式安裝
3、透過Linux自帶的vncserver配置和啟動來客戶端現實圖形介面,然後執行runInstaller指令碼,例如:
[root@x3a-test ~]# xhost +
access control disabled, clients can connect from any host
[root@x3a-test ~]# su - oracle
[oracle@x3a-test ~]$ export LANG=en
[oracle@x3a-test ~]$ cd /opt/
[oracle@x3a-test opt]$ ls
10201_database_linux32.zip database lost+found oracle
[oracle@x3a-test opt]$ cd database/
[oracle@x3a-test database]$ ls
doc install response runInstaller stage welcome.html
[oracle@x3a-test database]$ ./runInstaller
Starting Oracle Universal Installer...
Checking installer requirements...
Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
Passed
All installer requirements met.
如果圖形介面配置正常的話,在你的眼前呈現安裝程式嚮導視窗,如下跟Windows的安裝步驟基本一致,按提示開始單擊下一步...
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/18841027/viewspace-1058579/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle10g 在AIX 5.3上的安裝OracleAI
- 在AIX上安裝配置Oracle10g RACAIOracle
- 在VMware 上安裝配置Oracle10g RACOracle
- 在rhel5上安裝oracle10gOracle
- Oracle10g 在AIX 6.1上的靜默安裝OracleAI
- 32位軟體安裝在64位OS上
- centos5 64位上的ORACLE10g安裝需要的包CentOSOracle
- 在linux上安裝oracle10g(轉載)LinuxOracle
- Oracle10g在Solaris10上的安裝配置(轉)Oracle
- 在AIX上安裝配置Oracle10g RAC2AIOracle
- zt: 在RedHat AS3上快速安裝Oracle10gRedhatS3Oracle
- 在雪豹10.6.6(Mac OS X)上安裝Oracle10gMacOracle
- 上週在Aix上安裝oracle10g rac遇到兩個問題AIOracle
- Ubuntu上Oracle10g安裝指南UbuntuOracle
- 在windows64位上安裝Python3.0WindowsPython
- oracle10g在linux下的安裝OracleLinux
- 在 Debian 64 位上安裝 wkhtmltopdf 時遇到的問題HTML
- mysql++在64位作業系統上的安裝指南MySql作業系統
- Solaris10上安裝Oracle10gOracle
- 在RHEL4/Fedora4上安裝Oracle10g攻略(zt)Oracle
- 在64位作業系統上安裝ArcGISServer9.3.1作業系統Server
- SonarQube在CentOS上的安裝CentOS
- Oracle10g RAC with ocfs在windows安裝OracleWindows
- linux5.2上安裝oracle10gLinuxOracle
- RH4上安裝oracle10g薦Oracle
- redhat-linux 5.3 64位安裝oracle10gRedhatLinuxOracle
- Oracle在Linux上的安裝OracleLinux
- 在rhel5上靜默(silent)安裝oracle10g(10.2.0.1)報錯Oracle
- 在CentOS上安裝GitCentOSGit
- 在centos上安裝molochCentOS
- 在Windows上安裝MavenWindowsMaven
- 在CentOS上安裝dockerCentOSDocker
- 在CentOS上安裝PowerShellCentOS
- 在windows上安裝numpyWindows
- 在mac上安裝DockerMacDocker
- mysql 在windows上安裝MySqlWindows
- 在Centos上安裝wordpressCentOS
- 在AIX上安裝GCCAIGC