LINUX5.4 64bit安裝ORACLE10g64bit
特別說明:oracle 10g_64必須安裝在64位的rhel上面,否則的話,對不起了作業系統重灌
查詢linux版本:
#uname –i
x84_64
則說明作業系統是64位的
否則可能出現一下錯誤:
Exception String: Error in invoking target install of makefile /orasys/oracle/product/9.2.0/plsql/lib/ins_plsql.mk
1.保證網路沒有問題,特別是網路卡設定.
設定網路卡上的主機名
修改/etc/hosts檔案,把127.0.0.1修改為網路卡設定的(直實)ip地址,其後把多餘的主機名去掉,只保留一個真實的主機名.
2.按照下面的方法將下列所以rpm都檢查一遍,看是否安裝
rpm –qa | grep libaio*
下列為rpm包:
libaio-0.3.103-3.i386.rpm
compat-db-4.1.25-9.x86_64.rpm
control-center-2.8.0-12.x86_64.rpm
gcc-3.4.3-22.1.x86_64.rpm
gcc-c++-3.4.3-22.1.x86_64.rpm
glibc-2.3.4-2.x86_64.rpm
glibc-common-2.3.4-2.x86_64.rpm
libstdc++-3.4.3-22.1.x86_64.rpm
libstdc++-devel-3.4.3-22.1.x86_64.rpm
make-3.80-5.x86_64.rpm
pdksh-5.2.14-30.x86_64.rpm
sysstat-5.0.5-1.x86_64.rpm
compat-libstdc++-33-3.2.3-47.3.x86_64.rpm
glibc-kernheaders-2.4-9.1.87.x86_64.rpm
glibc-headers-2.3.4-2.9.x86_64.rpm
libaio-0.3.103-3.x86_64.rpm
glibc-devel-2.3.4-2.9.x86_6
glibc-devel-2.3.4-2.9.i386.rpm
libXp-1.0.0-8.1.el5.i386.rpm
實際環境中,只要下列需要安裝,rpm包在安裝盤的server目錄下
rpm -Uvh '/media/RHEL_5.4 x86_64 DVD/Server/pdksh-5.2.14-36.el5.x86_64.rpm'
rpm -Uvh '/media/RHEL_5.4 x86_64 DVD/Server/sysstat-7.0.2-3.el5.x86_64.rpm'
rpm -Uvh '/media/RHEL_5.4 x86_64 DVD/Server/glibc-headers-2.5-42.x86_64.rpm'
rpm -Uvh '/media/RHEL_5.4 x86_64 DVD/Server/kernel-headers-2.6.18-164.el5.x86_64.rpm'
rpm -Uvh '/media/RHEL_5.4 x86_64 DVD/Server/libXp-1.0.0-8.1.el5.i386.rpm'
以上工作沒做好,可能在安裝過程中出現一下錯誤:
(1)、Exception String:Error in invoking target’agent’of makefile
‘/home/oracle/oracle/product/10.2.0/db_1/sysman/lib/ins_sysman.mk,
See‘/home/oracle/oraInventory/logs/installActions2009-07-20_02-54-28PM.log’for details
(2)、makefile '/oracle/product/10.2.0/db_1/rdbms/lib/ins_rdbms.mk' 的目標 'all_no_orcl' 時出錯。
請參閱 '/oracle/oraInventory/logs/installActions2005-12-29_10-44-31AM.log',等等
3.以下修改核心引數等檔案,已保證Oracle的預安裝準備成功。執行如下:
vi /etc/sysctl.conf 行末新增以下內容
# 20100909 add content for oracle install
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
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
執行下述命令。匯入剛才寫入的引數。不執行,oracle在後面安裝前的檢測會報警。
sysctl -p
vi /etc/security/limits.conf 行末新增以下內容
# 20100909 add content for oracle install
soft nproc 2047
hard nproc 16384
soft nofile 1024
hard nofile 65536
vi /etc/pam.d/login 行末新增以下內容
# 20100909 add content for oracle install
session required pam_limits.so
vi /etc/selinux/config 確保以下內容
SELINUX=disabled
此處再確認一下吧。
4.建立oracle使用者,和一些安裝目錄
groupadd dba
groupadd oinstall
useradd -g oinstall -G dba -m oracle
passwd oracle
mkdir -p /opt/oracle
chown -R oracle.oinstall /opt/oracle
將oracle的安裝檔案置於家目錄,進行加壓。
zcat 10201_database_linux_x86_64.cpio.gz | cpio -idmv
5.新增環境變數,定義SID等
su - oracle
vi .bash_profile
#--------------------------------------
# Set for Oracle10g Install;
#--------------------------------------
trap " " 0 1 2 3 5 9 15
trap clear 0
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_BASE=/home/DBSoftware/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_SID=NACEC
export ORACLE_TERM=xterm
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$PATH
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib:/usr/lib:/usr/local/lib
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib64:/usr/lib64:/usr/local/lib64:/usr/X11R6/lib64/
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export LD_ASSUME_KERNEL=2.6.18
export NLS_LANG="AMERICAN_CHINA.ZHS16GBK"
LC_CTYPE=zh_CN.UTF8
LC_ALL=zh_CN.UTF8
LANG=zh_CN.UTF8
umask 022
#
執行環境設定
source ~/.bash_profile
6.因為oracle 的官方只支援到RHEL4為止,所以要修改版本說明
編輯檔案 /etc/redhat-release 把Red Hat Enterprise Linux Server release 5 (Tikanga) 改成版本:
Red Hat Enterprise Linux AS release 4 (Nahant Update)
當然oracle安裝完成後,要修改回來.
7.安裝oracle
終端輸入:xhost local:oracle non-network local connections being added to access control list
#export DISPLAY=:0.0
#xhost +
su - oracle
export LANG=en_US
./database/runInstaller
安裝到最後時,一定要注意執行安裝系統提示的那兩個指令碼。
8.啟動oracle
安裝後的調整dbstart
在執行$ORACLE_HOME/bin/dbstart時報錯,
Failed to auto-start Oracle Net Listene using /ade/vikrkuma_new/oracle/bin/tnslsnr
解決方法:修改dbstart這個檔案,找到ORACLE_HOME_LISTNER=/ade/vikrkuma_new/oracle
su - oracle
vi `which dbstart`
ORACLE_HOME_LISTNER=$ORACLE_HOME
修改/etc/oratab檔案
dsc:/datas/apps/oracle/product/10.2.0/db_1:Y
建立自啟動指令碼。
oracle 10g在自身的dbstart已經啟動了lsnrctl,所以下面的指令碼上註釋掉了lsnrctl的啟動
touch dbora
chmod 700 dbora
vi dbora
dbora內容如下
#!/bin/bash
#
# chkconfig: 2345 80 05
# description: Oracle 10g Server
# /etc/init.d/dbora
#
# Run-level Startup script. for the Oracle Instance, Listener, and
# Web Interface
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_SID=dsc
export PATH=$PATH:$ORACLE_HOME/bin
ORA_OWNR="oracle"
# if the executables do not exist -- display error
if [ ! -f $ORACLE_HOME/bin/dbstart -o ! -d $ORACLE_HOME ]
then
echo "Oracle startup: cannot start"
exit 1
fi
# depending on parameter -- startup, shutdown, restart
# of the instance and listener or usage display
case "$1" in
start)
# Oracle listener and instance startup
echo -n "Starting Oracle: "
# su $ORA_OWNR -c "$ORACLE_HOME/bin/lsnrctl start"
su $ORA_OWNR -c $ORACLE_HOME/bin/dbstart
touch /var/lock/oracle
su $ORA_OWNR -c "$ORACLE_HOME/bin/emctl start dbconsole"
su $ORA_OWNR -c "$ORACLE_HOME/bin/isqlplusctl start"
echo "OK"
;;
stop)
# Oracle listener and instance shutdown
echo -n "Shutdown Oracle: "
# su $ORA_OWNR -c "$ORACLE_HOME/bin/lsnrctl stop"
su $ORA_OWNR -c $ORACLE_HOME/bin/dbshut
rm -f /var/lock/oracle
su $ORA_OWNR -c "$ORACLE_HOME/bin/emctl stop dbconsole"
su $ORA_OWNR -c "$ORACLE_HOME/bin/isqlplusctl stop"
echo "OK"
;;
reload|restart)
$0 stop
$0 start
;;
*)
echo "Usage: `basename $0` start|stop|restart|reload"
exit 1
esac
exit 0
載入到自動啟動目錄
cp dbora /etc/rc.d/init.d
chkconfig --add dbora
chkconfig --list | grep dbora
[root@localhost init.d]# /sbin/chkconfig --add dbora
[root@localhost init.d]# /sbin/chkconfig --list |grep dbora
dbora 0:關閉 1:關閉 2:啟用 3:啟用 4:啟用 5:啟用 6:關閉
一些服務介紹和補充
a:$ORACLE_HOME/bin/dbstart | dbshut
b:$ORACLE_HOME/bin/lsnrctl start | stop 監聽器啟動|關閉。
c:$ORACLE_HOME/bin/emctl start | stop dbconsole
訪問 http://yourIP:1158/em
d:$ORACLE_HOME/bin/isqlplusctl start | stop
訪問 http://yourIP:5560/isqlplus
安裝完成之後,再執行兩個指令碼就可以了:
使用root使用者來執行該指令碼,
分別執行/u01/app/oracle/oraInventory/orainstRoot.sh和/u01/app/oracle/product/10.2.0/db_1/root.sh
退出安裝介面
切換到oracle使用者進入SQL操作介面:
Sqlplus / as sysdba (sqlplus / nolog)
SQL>
檢視是否可以進入web介面管理oracle10g資料庫
執行命令:emctl status dbconsole
啟動web介面:emctl start dbconsole
停止web介面:emctl stop dbconsole
(預設安裝完oracle之後就已經啟動oracle 10g 的web的管理介面)
預設OEM地址http://yourIP:1158/em
預設isqlplus地址:http://yourIP:5560/isqlplus
SQL> connect sys/mzl as sysdba
已連線。
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file ’/opt/oracle/app/oracle/product/10.1.0/Db_1/dbs/initoracle.ora’
這是因為在oracle9i和oracle10g中,
資料庫預設將使用spfile啟動資料庫,如果spfile不存在,則就會出現上述錯誤。
解決方法:
將$ORACLE_BASE/admin /資料庫名稱/pfile目錄下的init.ora.012009233838形式的檔案copy到$ORACLE_HOME/dbs目錄下 initoracle.ora即可。(注:initoracle.ora中的oracle為你的例項名 ORACLE_SID)
SQL> startup
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/16978544/viewspace-691828/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- linux5.4安裝phpLinuxPHP
- Linux5.4下vncserver的安裝LinuxVNCServer
- Linux5.4安裝11.2.0.3報錯Linux
- ubuntu 16.04 64bit安裝 JuliaUbuntu
- windows 10 64bit下安裝Tensorflow+KerasWindowsKeras
- 安裝sysbench報錯 libmysqlclient.so.18()(64bit)IBMMySqlclient
- Detour3.0 win7 64bit下的安裝Win7
- RUEI for rhel6.4 64bit oracle11g 安裝手冊Oracle
- 64bit Oracle9204安裝dbca報錯一例:Oracle
- 虛擬機器+oracle 10g rac 64bit 安裝成功虛擬機Oracle 10g
- fedora 11 64bit 下安裝flash player 10 x86-64
- 阿里雲伺服器靜默安裝Oracle 11.2.0.4.0 -64bit阿里伺服器Oracle
- Win7 64bit安裝Oracle 10g Server的報錯Win7Oracle 10gServer
- ORACLE10g在linux5 64bit安裝問題OracleLinux
- Ubuntu 14.04 64bit上安裝Intel官方集顯更新驅動程式UbuntuIntel
- Xubuntu18.04 64bit 安裝 NVIDIA GTX1050 TI 驅動Ubuntu
- 在rhel3上安裝oracle 9i 32bit or 64bit的需求Oracle
- vmware環境oracle 10.2.0 rac 在linux as4 64bit上的安裝OracleLinux
- Win7 64bit版本下安裝Oracle 11g OS許可權處理Win7Oracle
- CentOS6.5 64bit + MariaDB 10.0.30 + Galera Cluster 10.0.30 叢集部署安裝CentOS
- OEL5.5(64bit)安裝Oracle 11g R2 RAC教程(圖文並茂超詳細)Oracle
- 64bit Linux下如何安裝32bit的rpm包 - yum install libaio.i686LinuxAI
- codis安裝 (java 安裝 + zookeeper 安裝 + go 安裝 + codis 安裝JavaGo
- 資料分析&SAS課程專用環境安裝與示例《SAS9.3+windows7 64bit》附下載Windows
- Red Hat Enterprise Linux 4.0 U4下安裝Oracle10.2.0.1 (64bit) -- 簡易步驟LinuxOracle
- nmon for redhat 4.7(64bit)Redhat
- 資料分析&SAS課程專用環境安裝與示例《SAS9.3+windows7 64bit》附下載薦Windows
- 用了3天終於完成Linux AS4.0下Oracle10g RAC (OCFS, 64Bit)的安裝配置,測試LinuxOracle
- 安裝npm 解除安裝npm 安裝apidocNPMAPI
- mysql安裝 (yum 安裝)MySql
- MMM安裝、MHA安裝
- mysql安裝------RPM包安裝及解除安裝MySql
- oracle安裝:OUI安裝Oracle(圖形介面安裝)OracleUI
- Red Hat Enterprise Linux 4.0 U4 X86_64下安裝Oracle10.2.0.1(64bit) [簡易版]LinuxOracle
- ffmpeg安裝之mac安裝Mac
- docker安裝及解除安裝Docker
- 02 安裝git、安裝TortoiseGitGit
- Ubuntu解除安裝和安裝Ubuntu