SLES 11 安裝Oracle 11g r2

來源:互聯網
上載者:User

標籤:

環境如下:#注意是SLES 

1 yas:~ # cat /etc/SuSE-release 2 SUSE Linux Enterprise Server 11 (x86_64)3 VERSION = 114 PATCHLEVEL = 15 6 7 linux.x64_11gR2_database_1of2.zip8 linux.x64_11gR2_database_2of2.zip

 

 

一 系統篇

1.安裝系統的時候,選上

 

1 “Oracle Server Base”2 “C/C++ Compiler and Tools”

 

再安裝一個

1 libstdc++43-devel-32bit 

2.綁定主機名稱

1 vi /etc/hosts2 127.0.0.1 yas       #yas為主機名稱

3.Oracle安裝基本條件

 

3.1裝了”Oracle Server Base”,則自動添加了oracle使用者,oinstall dba組,但是oracle的shell是/bin/false,需要修改passwd檔案改成/bin/bash

 

同時要修改oracle使用者的密碼

 

1 passwd oracle

 

 

3.2 修改環境變數

 

修改/etc/profile.d/oracle.sh檔案,設定ORACLE_HOME

 

預設的 ORACLE_SID為 orcl ,需要更改自行修改 /etc/profile.d/oracle.sh檔案

 

3.3 設定核心參數

 

1 /usr/sbin/rcoracle start

 

 

二 資料庫篇

以oracle使用者登入系統

將Oracle解壓到任意目錄。賦予許可權

 

1 chown -R oracle:oinstall database

 

進入database目錄,運行

1 ./runInstaller

 

郵箱不填,那個勾取消掉。

1是建立和設定資料庫 2 只安裝資料庫軟體 3升級資料庫 選1

 

桌面圖案 伺服器模式,選伺服器模式

單獨一個執行個體  高可用  選1

典型安裝 進階安裝 選1

密碼需要自己設定一下,其他前面已經設定好了,預設即可。#密碼要以字母開頭

自己改一下目錄,注意目錄是 /opt/oracle/

 

選finish,開始安裝

 用root賬戶執行兩個指令碼

 

1 /opt/oracle/oraInventory/orainstRoot.sh2 /opt/oracle/product/11gR2/db/root.sh 

可以登入網頁管理Oracle

 

 

三 Oracle 設定篇

設定Oracle開機啟動

1 vi /etc/sysconfig/oracle2 START_ORACLE_DB="yes"3 START_ORACLE_DB_LISTENER="yes"4 START_ORACLE_DB_EMANAGER="yes"
5 vim /etc/oratab
6 orcl:/opt/oracle/product/11gR2/db:Y

開啟Enterprise Manager 服務,如果沒有在運行:

1 emctl start dbconsole

用瀏覽器登入 https://localhost:1158/em  

 

四 sqlplus 手動開啟關閉

啟動資料庫:

1 sqlplus /nolog2 SQL> connect / as sysdba3 SQL> startup

 

SLES 11 安裝Oracle 11g r2

聯繫我們

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