1.安装前准备
配置yum源
yum install binutils compat-db control-center gcc* glibc libXp libstdc++ libstdc++-devel libstdc++-devel openmotif sysstat -y
执行这两条脚本命令:切换root用户
[oracle@localhost database]$ su -
Password:
[root@localhost ~]# cd /oracle/app/oraInventory/
[root@localhost oraInventory]# ls
Contents logs orainstRoot.sh
ContentsXML oraInstaller.properties oui
install.platform oraInst.loc sessionContext.ser
[root@localhost oraInventory]# ./orainstRoot.sh
Changing permissions of /oracle/app/oraInventory to 770.
Changing groupname of /oracle/app/oraInventory to oinstall.
The execution of the script is complete
[root@localhost oraInventory]# cd /oracle/app/oracle/product/10.2.0/db_1/
[root@localhost db_1]# ls
assistants demo jlib odbc plsql
srvm
bin diagnostics jre olap precomp
sysman
cdata has ldap OPatch racg
uix
cfgtoollogs hs lib opmn rdbms
wwg
clone install md oracore relnotes
xdk
config install.platform mesg oraInst.loc root.sh
crs inventory mgw ord root.sh.old
css javavm network oui slax
ctx jdbc nls owm sqlj
dbs jdk oc4j perl sqlplus
[root@localhost db_1]# ./root.sh
Running Oracle10 root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /oracle/app/oracle/product/10.2.0/db_1
Enter the full pathname of the local bin directory:[/usr/local/bin]:按下回车键
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
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.
oracle就安装完成 然后检测是否安装成功 执行 ps -ef | grep ora_
[oracle@localhost ~]$ ps -ef | grep ora_
oracle 14016 1 0 22:11 ? 00:00:00 ora_pmon_TEST
oracle 14018 1 0 22:11 ? 00:00:00 ora_psp0_TEST
oracle 14021 1 0 22:11 ? 00:00:00 ora_mman_TEST
oracle 14023 1 0 22:11 ? 00:00:00 ora_dbw0_TEST
oracle 14025 1 0 22:11 ? 00:00:00 ora_lgwr_TEST
oracle 14027 1 0 22:11 ? 00:00:01 ora_ckpt_TEST
oracle 14029 1 0 22:11 ? 00:00:00 ora_smon_TEST
oracle 14032 1 0 22:11 ? 00:00:00 ora_reco_TEST
oracle 14034 1 0 22:11 ? 00:00:01 ora_cjq0_TEST
oracle 14036 1 1 22:11 ? 00:00:03 ora_mmon_TEST
oracle 14038 1 0 22:11 ? 00:00:00 ora_mmnl_TEST
oracle 14040 1 0 22:11 ? 00:00:00 ora_d000_TEST
oracle 14042 1 0 22:11 ? 00:00:00 ora_s000_TEST
oracle 14126 1 0 22:11 ? 00:00:00 ora_qmnc_TEST
oracle 14136 1 0 22:11 ? 00:00:00 ora_q000_TEST
oracle 14142 1 0 22:12 ? 00:00:00 ora_q001_TEST
oracle 14168 1 0 22:12 ? 00:00:00 ora_p000_TEST
oracle 14170 1 0 22:12 ? 00:00:00 ora_p001_TEST
oracle 14172 1 0 22:12 ? 00:00:00 ora_p002_TEST
oracle 14174 1 0 22:12 ? 00:00:00 ora_p003_TEST
oracle 22552 9866 0 22:17 pts/1 00:00:00 grep ora_