在 Linux x86 上安裝 Oracle 資料庫 10g_5

來源:互聯網
上載者:User
結論

現在,您的資料庫已經啟動並運行,您可以開始使用 Oracle 10g 中提供的許多新特性。最好從 Oracle Enterprise Manager 開始使用,這是因為它是徹底地重新編寫的,採用了基於 Web 的介面。如果不確定從何處開始,Oracle 概念指南DBA 兩日速成指南 將協助您熟悉新資料庫。OTN 還提供了一些旨在協助您充分利用 10g 的文章。我最喜歡的是由 Arup Nanda 編寫的系列文章“Oracle 資料庫 10g:為 DBA 提供的 20 個最重要的特性。”

在下一篇文章中,我們將逐步講解如何安裝和配置一個功能齊全的雙節點 Oracle RAC 10g 資料庫。

附錄

使用 SQL*Plus 訪問資料庫

以 oracle 身份登入到 Linux。設定環境。

設定 Oracle 環境變數:

$ export ORACLE_BASE=/u01/app/oracle

$ export ORACLE_SID=demo1

$ export ORACLE_HOME=$ORACLE_BASE/product/10.1.0/db_1

$ export PATH=$PATH:$ORACLE_HOME/bin

運行 SQL*Plus:

$ sqlplus

 

SQL*Plus:Release 10.1.0.2.0 - Production on Sat Jun 5 16:59:21 2004

 

Copyright (c) 1982, 2004, Oracle.All rights reserved.

 

Enter user-name:/ as sysdba

 

Connected to:

Oracle Database 10gEnterprise Edition Release 10.1.0.2.0 - Production

With the Partitioning, OLAP and Data Mining options

 

SQL>

使用 Oracle Enterprise Manager 10g 資料庫控制

在 網頁瀏覽器中,串連到安裝過程中提供的 URL。

例如:
http://ds1.orademo.org:5500/em(如果伺服器不在 DNS 中,則必須使用 IP 位址代替主機名稱。)

使用者名稱:SYS
口令:<安裝過程中選擇的口令>
串連為:SYSDBA

單擊 <Login>

歡迎走入 Oracle Enterprise Manager 10g 資料庫控制的精彩世界!

啟動和停止 Oracle Enterprise Manager 資料庫控制:

$ emctl start dbconsole

$ emctl stop dbconsole

使用 iSQL*Plus 訪問資料庫

iSQL*Plus 是曆史悠久的 SQL*Plus 互動式工具的基於 Web 的版本,用於訪問資料庫。要使用 iSQL*Plus,請單擊 OEM 控制台 Related Links 部分中的 iSQL*Plus 連結,或將瀏覽器指向安裝過程中提供的 iSQL*Plus URL。

例如:
http://ds1.orademo.org:5560/isqlplus(如果資料庫伺服器不在 DNS 中,則必須使用 IP 位址代替主機名稱。)

使用者名稱:SYSTEM
口令:<安裝過程中選擇的口令>

單擊 <Login>。

在 Workspace 框中輸入 SQL 命令,然後單擊 Execute

啟動和停止 iSQL*Plus:

$ isqlplusctl start

$ isqlplusctl stop

啟動和停止監聽器:

監聽器接受用戶端的串連請求,並在驗證認證後建立資料庫連接。要使用 OEM 或 iSQL*Plus,必須先啟動監聽器。

$ lsnrctl start

$ lsnrctl stop

啟動和停止資料庫:

啟動和停止資料庫的最簡單方法是從 OEM 控制台啟動和停止。要從命令列執行此操作,請在以 oracle 身份登入後使用 SQL*Plus,如下所示:

啟動:

$ sqlplus

 

SQL*Plus:Release 10.1.0.2.0 - Production on Sun Jun 13 22:27:48 2004

 

Copyright (c) 1982, 2004, Oracle.All rights reserved.

 

Enter user-name:/ as sysdba

Connected to an idle instance.

 

SQL> startup

ORACLE instance started.

 

Total System Global Area 188743680 bytes

Fixed Size                   778036 bytes

Variable Size             162275532 bytes

Database Buffers           25165824 bytes

Redo Buffers                 524288 bytes

Database mounted.

Database opened.

SQL> exit

Shutdown:

$ sqlplus

 

SQL*Plus:Release 10.1.0.2.0 - Production on Sun Jun 13 22:25:55 2004

 

Copyright (c) 1982, 2004, Oracle.All rights reserved.

 

Enter user-name:/ as sysdba

 

Connected to:

Oracle Database 10gEnterprise Edition Release 10.1.0.2.0 - Production

With the Partitioning, OLAP and Data Mining options

 

SQL> shutdown immediate

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> exit

列出 Oracle 進程:

$ ps a€“fuoracle

什麼是 ocssd.bin 進程?

Oracle 叢集同步服務 (OCSSD) 是 Oracle 叢集就緒服務 (CRS) 的一個組件,用於 RAC 和使用 ASM 的單個執行個體資料庫。它在預設情況下安裝,使用很少的系統資源,並在 /etc/inittab 中進行配置。這些進程在系統每次啟動時自動啟動。Oracle 建議不要禁用 OCSSD,即使您未運行 ASM。

聯繫我們

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