Oracle Enterprise Linux 5.2安裝Oracle 10g資料庫

來源:互聯網
上載者:User

1、安裝作業系統Oracle Enterprise Linux 5.2

2、建立使用者

建立oracle使用者,建立dba組和oinstall組
[root@oel_11g ~]# groupadd oinstall
[root@oel_11g ~]# groupadd dba
然後在這個根目錄下建立一個目錄 /u01/app/oracle;計劃是把Oracle11G的軟體安裝在/u01/app/oracle這個目錄
建立使用者和密碼
增加一個oracle使用者,密碼:oracle。它的這個首要的組是oinstall;輔助的組是dba;預設的根目錄是/u01/oracle
[root@oel_11g ~]# useradd -g oinstall -G dba oracle
設定密碼以及確認
[root@oel_11g ~]# passwd oracle
[root@oel_11g ~]# cd /
[root@oel_11g ~]# ls –l
改變成了oracle這個使用者了
[root@oel_11g /]# chown -R oracle:oinstall /u01/app/oracle
[oracle@oel_11g /]$ chmod -R 775  /u01/app/oracle
[root@oel_11g /]# ls -l
要檢驗nobody這個使用者是否存在
[root@oracle11g /]# id nobody
uid=99(nobody) gid=99(nobody) groups=99(nobody)

3、檢查安裝oracle11g資料庫的包是否齊全
 
Oracle Enterprise Linux 5.2的作業系統需要如下的包:
binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
e
lfutils-libelf-0.125
elfutils-libelf-devel-0.125
elfutils-libelf-devel-static-0.125
gcc-4.1.2
g
cc-c++-4.1.2
g
libc-2.5-24
glibc-common-2.5
g
libc-devel-2.5
ksh-20060214
libaio-0.3.106
l
ibaio-devel-0.3.106
l
ibgcc-4.1.2
libgomp-4.1.2
l
ibstdc++-4.1.2
l
ibstdc++-devel-4.1.2
make-3.81
sysstat-7.0.2
 
[root@oel_11g ~]:rpm -q
可以使用rpm -q的方式進行檢測,但是有時由於太過繁瑣,個人覺得還是配置yum進行安裝為好,一下提供yum的配置手法
 
4、配置yum
配置網路yum伺服器 【幫客之家 http://www.bkjia.com 】
 
1)安裝vsftpd包與createrepo包
使用rpm -q 指令檢測vsftpd和createrepo包是否安裝
需要安裝的兩個包名為:
createrepo-0.4.11-3.el5.noarch.rpm
vsftpd-2.0.5-12.el5.i386.rpm
使用rpm -ivh 指令進行安裝
 
2)把系統安裝光碟片裡的檔案全部copy到/var/ftp/pub/OEL5U2下 (假設光碟片掛載在/mnt目錄下,其實只拷貝Server和TV兩個檔案中的內容就好)
[root@oel_11g ~]#cp -rf /mnt/* /var/ftp/pub/OEL5U2
3)在OEL5U2目錄下運行createrepo命令
[root@oel_11g OEL5U2]# createrepo ./
4 )啟動vsftpd服務
[root@oel_11g ~]# service vsftpd start
Starting vsftpd for vsftpd:                              [  OK  ]
或者
[root@oel_11g ~] /etc/init.d/vsftpd restart
 
5 )要串連yum伺服器的使用端(以本機為例)編輯yum使用設定檔
# vi /etc/yum.repos.d/rhel-debuginfo.repo
[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=ftp://127.0.0.1/pub/OEL5U2
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-RedHat-release
 
5、配置環境變數
[oracle@oel_11g ~]$ pwd  /home/oracle
[oracle@oel_11g ~]$ vi  .bash_profile
 
填寫如下內容:
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/
export ORACLE_SID=oracle11g
export PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin
 
6、安裝資料庫軟體
[oracle@oel_11g ~]$ ./runinstall
 
完成安裝,以root使用者運行指令碼
[root@oel_11g ~]# sh /u01/oraInventory/orainstRoot.sh
[root@oel_11g ~]# sh /u01/app/oracle/root.sh

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.