Oracle安裝配置流程

來源:互聯網
上載者:User

標籤:

Oracle安裝流程

第一次自己動手安裝oracle,之前對oracle安裝配置一竅不通,最後最終弄好。總結下。

1、  安裝oracle10gserver端

2、  安裝oracle10gclient。

server端和client不一定要安裝在同一個機器上。

3、  啟動server端的NetConfiguration Assistant,配置監聽程式

4、  使用DatabaseConfiguration Assistant嚮導建立資料庫

5、  安裝PL/SQLDeveloper。

6、  配置client的tnsnames.ora檔案

7、  開啟PL/SQLDeveloper。登入測試

 

在第一步安裝的時候,筆者這裡碰到了一個情況,就是命令列表單一閃而過,勉強看到提示資訊為“在 oraparam.ini 中未找到先決條件檢查,不運行系統先決條件檢查。

準備從下面地址啟動 oracle universal installerc:\docume~1\admini~1\locals~1\temp\orainstall2008-12-30_10-40-42PM.請稍候.....”,這裡有幾處須要注意的地方,

(1)假設是win7,要改檔案了。首先右擊setup.exe。選擇屬性——相容性——更改全部使用者佈建——以相容模式執行這個程式。而且選擇Windows XP(Service Pack 3),然後確定。這是為了更改oracle與win7相容。

(2)假設是win7。更改安裝資料夾檔案。第一點是改動在這個refhost.xml檔案,在檔案夾10201_database_win32\database\stage\prereq\db\refhost.xml下。

在當中加入例如以下代碼:

<OPERATING_SYSTEM>

<VERSION VALUE="6.1"/>

</OPERATING_SYSTEM>

(3)查看install中的oraparam.ini檔案。發現例如以下問題:

[CertifiedVersions]

#You can customiseerror message shown for failure, provide value forCERTIFIED_VERSION_FAILURE_MESSAGE

#Windows=4.0,5.0,5.1,5.2

#Windows NT 4.0

#[Windows-4.0-required]

#Service pack forWindows NT4.0, use %SystemRoot%\WinNt\System32\winver.exe to find version andservice pack

#SERVICE_PACK=6a

#You can customisethe message shown for Service Pack failure through SERVICE_PACK_FAILURE_MESSAGE

#Minimum displaycolours for OUI to run

MIN_DISPLAY_COLORS=256

#UseMIN_DISPLAY_COLORS_FAILURE_MESSAGE to customise message for failure of checkfor Display colors

#Minimum CPU speedrequired for OUI in MHz

#CPU=300

#CPU_FAILURE_MESSAGE,use to customise error message for CPU speed check

 

#[Windows-4.0-optional]

 

#Windows 2000 use winver.exe to find version

[Windows-5.0-required]

#Minimum display colours for OUI to run

MIN_DISPLAY_COLORS=256

#Minimum CPU speed required for OUI

#CPU=300

 

[Windows-5.0-optional]

 

#Windows XP use winver.exe to find version

[Windows-5.1-required]

#Minimum display colours for OUI to run

MIN_DISPLAY_COLORS=256

#Minimum CPU speed required for OUI

#CPU=300

 

[Windows-5.1-optional]

 

#Windows .net use winver.exe to find version

[Windows-5.2-required]

#Minimum display colours for OUI to run

MIN_DISPLAY_COLORS=256

#Minimum CPU speed required for OUI

#CPU=300

 

[Windows-5.2-optional]

如上文中紅色部分,這裡是檢查系統內容的,結果都被凝視了。所以自然是不檢查了!將這裡的#刪掉就可以。另假設是win7,還須要加入windows6.1支援。

(4)另外假設提示條件檢查通過卻還不能出現安裝介面,可能是oracle當前安裝路徑有中文或者空格,能夠將安裝路徑自己改一下再重試就可以。

(5)假設檢查安裝條件過程中,提示網路介面卡有問題,則安裝之前請將本地IP地址手動設定。

前三步都非常容易。基本直接依照嚮導的提示來就可以。第四步建立資料庫也非常easy,假設沒有特殊設定,也是依照嚮導提示操作就可以。

第五步。我用的是綠色版,免安裝,這裡須要一些配置。

(1)      開啟程式,不登陸。進入程式。

(2)在tools-preference中的connection中,配置oracle home和OCI,其路徑為相應的oracle用戶端中的instantclient路徑。如“D:\oracle\product\10.2.0\client_1\instantclient”。

(3)改動oracle用戶端下。D:\oracle\product\10.2.0\client_1\NETWORK\ADMIN下的tnsnames.ora檔案,類似

ORCL =

  (DESCRIPTION =

    (ADDRESS_LIST =

      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.35.157)(PORT = 1521))

    )

    (CONNECT_DATA =

      (SERVICE_NAME = orcl)

    )

  )

 

EXTPROC_CONNECTION_DATA =

  (DESCRIPTION =

    (ADDRESS_LIST =

      (ADDRESS = (PROTOCOL = IPC)(KEY =EXTPROC0))

    )

    (CONNECT_DATA =

      (SID = PLSExtProc)

      (PRESENTATION = RO)

    )

  )

當中基本僅僅須要改動紅色標註的地方,各自是資料庫服務的名字和oracleserver主機地址。

(4)在D:\oracle\product\10.2.0\client_1\instantclient\下建立network\admin目錄,將上面的tnsnames.ora拷貝進去。

(5)再次開啟PL/SQL Developer,選擇資料庫。輸入usernamepassword登入,就可以。

進入後,可使用system使用者建立使用者。資料表空間或資料表。並配置角色和許可權,之後便可使用自己定義的使用者登入,並做相關操作。

以上步驟是我隔了一段時間之後總結的,詳細的過程假設有遺漏和錯誤,請查閱其它相關資料。



Oracle安裝配置流程

聯繫我們

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