Ubuntu安裝oracle10G

來源:互聯網
上載者:User

轉載於:http://jessdy.iteye.com/blog/196811

 

 1.下載ORACLE的安裝程式:
在這裡下http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10201linx8664soft.html

這個是FOR 64位系統的。下的時候下10201_database_linux_x86_64.cpio.gz就可以了。
用 gunzip <filename>把檔案解包,然後在資源管理員裡再解一次,知道解除DATABASE檔案夾為止。

2.安裝compat libraries and 32-bit libraries:
sudo apt-get install gcc libaio1 lesstif2 lesstif2-dev make libc6 libc6-i386 libc6-dev-i386 libstdc++5 lib32stdc++6 lib32z1 ia32-libs

3.開啟/etc/sysctl.conf檔案,在後面加入一以文字:
# Oracle stuff
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
vm.swappiness=10

4.建立ORACLE的使用者和使用者組:
sudo groupadd nobody
sudo groupadd oinstall
sudo groupadd dba
sudo useradd -s /bin/bash -g oinstall -G dba oracle
sudo passwd oracle

5.開啟/etc/security/limits.conf,在檔案末尾加入:
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536

6.在終端輸入一下命令:
sudo ln -s /usr/bin/awk /bin/awk
sudo ln -s /bin/true /bin/rpm
sudo ln -s /usr/bin/basename /bin/basename
sudo ln -s /lib/libgcc_s.so.1 /lib/libgcc_s.so
sudo mkdir -p /u01/oracle/10g
sudo chown -R oracleinstall /u01/oracle/10g
sudo chmod -R 775 /u01/oracle

7.為了防止ORACLE安裝介面出現亂碼,在終端執行:
export LANG=C

8.再建立/etc/redhat-release,添加下面的內容:
Red Hat Linux release 4.1
因為Oracle預設是不支援Ubuntu的,所以要把Ubuntu偽裝成Redhat

9.好了,可以執行安裝命令了:
./runInstaller -IgnoreSysPrereqs

然後就一步一步安裝吧,要有耐心,我等了將近一個小時。
安裝時參考了一個老外的文章,具體在哪裡我忘了,在這裡謝謝他吧。

聯繫我們

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