Linux 下Oracle 10g的安裝

來源:互聯網
上載者:User

1.下載安裝檔案

這裡使用10201_database_linux32.zip這個安裝包,並且需要以root使用者登入

2.查看系統的資源及環境是否符合安裝條件

grep MemTotal /proc/meminfo    查詢記憶體大小 10g需>512M

grep SwapTotal /proc/meminfo 查詢交換空間大小 10g需 > 1G

另外10g還需要2.5GB的磁碟空間

[root@localhost ~]# grep MemTotal /proc/meminfo
MemTotal:      1035400 kB
[root@localhost ~]# grep SwapTotal /proc/meminfo
SwapTotal:    2031608 kB
[root@localhost ~]# df -h
檔案系統              容量  已用 可用 已用% 掛載點
/dev/mapper/VolGroup00-LogVol00
                      37G  5.3G  30G  15% /
/dev/sda1              99M  11M  83M  12% /boot
tmpfs                506M    0  506M  0% /dev/shm
[root@localhost ~]#

#vi /etc/RedHat-relese

 

將其中的的內容Red Hat Enterprise Linux Server release 5 (Tikanga)

修改為

redhat-4

安裝需要的軟體包如:(在系統安裝盤的Server中會有,網上下載亦可)

3.建立使用者和組,及orcale安裝目錄及資料存放目錄

[root@localhost ~]# groupadd oinstall
[root@localhost ~]# groupadd dba
[root@localhost ~]# /usr/sbin/useradd -g oinstall -G dba Oracle
[root@localhost ~]# passwd oracle
Changing password for user oracle.
New UNIX password:
BAD PASSWORD: it is WAY too short
Retype new UNIX password:
Sorry, passwords do not match.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@localhost ~]# mkdir /opt/oracle
[root@localhost ~]# mkdir /opt/oradata
[root@localhost ~]# chown -R oracle:oinstall /opt/oracle /opt/oradata
[root@localhost ~]# chmod -R 755 /opt/oracle /opt/oradata

4.配置環境變數

 

切換使用者並配置使用者環境變數

[root@localhost ~]# su oracle
[oracle@localhost root]$ vi /home/oracle/.bash_profile

添加如下內容

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs
# Controls the maximum shared segment size, in bytes
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

# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 2097152

ORACLE_BASE=/opt/oracleORACLE_SID=orclORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1LD_LIBARY_PATH=$ORACLE_HOME/libPATH=$PATH:$HOME/bin:$ORACLE_HOME/binexport ORACLE_BASE ORACLE_SID ORACLE_HOME LD_LIBARY_PATH PATH

5.設定系統參數
切換為root使用者

# Controls the maximum shared segment size, in bytes
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

# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 2097152

  • 1
  • 2
  • 下一頁

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.