ubuntu中启动oracle数据库
生活随笔
收集整理的這篇文章主要介紹了
ubuntu中启动oracle数据库
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
前期準備:
如果你還沒有在ubuntu上安裝oracle請先看我之前到日志
http://blog.csdn.net/backtracker/article/details/6624718
1.
$su oracle
$ sqlplus /nolog
將出現如下連接數據庫信息:
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jul 8 10:14:54 2011
Copyright (c) 1982, 2005, Oracle. ?All rights reserved.
SQL>?
2. SQL> ?conn sys/超級管理員密碼 as sysdba; 將出現下面信息,表示已經鏈接 Connected.
3.啟動數據庫 SQL> startup 將出現下面提示信息,表示數據庫已經啟動 ORACLE instance started. Total System Global Area ?322961408 bytes Variable Size ??104859000 bytes Database Buffers ??213909504 bytes Redo Buffers ????2973696 bytes Database mounted. Database opened. 4.開啟監聽 $su oracle $ lsnrctl 將出現下面信息 TNSLSNR for Linux: Version 10.2.0.1.0 - Production LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 08-JUL-2011 10:03:52 Copyright (c) 1991, 2005, Oracle. ?All rights reserved. Welcome to LSNRCTL, type "help" for information. 開啟監聽: LSNRCTL> start 出現下面信息表示已經成功開啟監聽,啟動監聽完成后可以通過客戶端連接到oracle數據庫服務器 Starting /opt/ora10g/dbms/bin/tnslsnr: please wait... System parameter file is /opt/ora10g/dbms/network/admin/listener.ora Log messages written to /opt/ora10g/dbms/network/log/listener.log Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER ------------------------ Alias ????????????????????LISTENER Version ??????????????????TNSLSNR for Linux: Version 10.2.0.1.0 - Production Start Date ???????????????08-JUL-2011 10:03:57 Uptime ???????????????????0 days 0 hr. 0 min. 0 sec Trace Level ??????????????off Security ?????????????????ON: Local OS Authentication SNMP ?????????????????????OFF Listener Parameter File ??/opt/ora10g/dbms/network/admin/listener.ora Listener Log File ????????/opt/ora10g/dbms/network/log/listener.log Listening Endpoints Summary... ??(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1))) ??(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ubuntu)(PORT=1521))) Services Summary... Service "PLSExtProc" has 1 instance(s). ??Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service... The command completed successfully
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1))) Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ubuntu)(PORT=1521)))
5.打開oem服務 $emctl start dbconsole 出現下面信息,表示已經成功打開oem服務 TZ set to PRC Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0 ? Copyright (c) 1996, 2005 Oracle Corporation. ?All rights reserved. http://ubuntu:1158/em/console/aboutApplication Starting Oracle Enterprise Manager 10g Database Control ............................ started.? ------------------------------------------------------------------ Logs are generated in directory /opt/ora10g/dbms/ubuntu_ORCL/sysman/log? oem地址為: http://ubuntu:1158/em 創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎
2. SQL> ?conn sys/超級管理員密碼 as sysdba; 將出現下面信息,表示已經鏈接 Connected.
3.啟動數據庫 SQL> startup 將出現下面提示信息,表示數據庫已經啟動 ORACLE instance started. Total System Global Area ?322961408 bytes Variable Size ??104859000 bytes Database Buffers ??213909504 bytes Redo Buffers ????2973696 bytes Database mounted. Database opened. 4.開啟監聽 $su oracle $ lsnrctl 將出現下面信息 TNSLSNR for Linux: Version 10.2.0.1.0 - Production LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 08-JUL-2011 10:03:52 Copyright (c) 1991, 2005, Oracle. ?All rights reserved. Welcome to LSNRCTL, type "help" for information. 開啟監聽: LSNRCTL> start 出現下面信息表示已經成功開啟監聽,啟動監聽完成后可以通過客戶端連接到oracle數據庫服務器 Starting /opt/ora10g/dbms/bin/tnslsnr: please wait... System parameter file is /opt/ora10g/dbms/network/admin/listener.ora Log messages written to /opt/ora10g/dbms/network/log/listener.log Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER ------------------------ Alias ????????????????????LISTENER Version ??????????????????TNSLSNR for Linux: Version 10.2.0.1.0 - Production Start Date ???????????????08-JUL-2011 10:03:57 Uptime ???????????????????0 days 0 hr. 0 min. 0 sec Trace Level ??????????????off Security ?????????????????ON: Local OS Authentication SNMP ?????????????????????OFF Listener Parameter File ??/opt/ora10g/dbms/network/admin/listener.ora Listener Log File ????????/opt/ora10g/dbms/network/log/listener.log Listening Endpoints Summary... ??(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1))) ??(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ubuntu)(PORT=1521))) Services Summary... Service "PLSExtProc" has 1 instance(s). ??Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service... The command completed successfully
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1))) Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ubuntu)(PORT=1521)))
5.打開oem服務 $emctl start dbconsole 出現下面信息,表示已經成功打開oem服務 TZ set to PRC Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0 ? Copyright (c) 1996, 2005 Oracle Corporation. ?All rights reserved. http://ubuntu:1158/em/console/aboutApplication Starting Oracle Enterprise Manager 10g Database Control ............................ started.? ------------------------------------------------------------------ Logs are generated in directory /opt/ora10g/dbms/ubuntu_ORCL/sysman/log? oem地址為: http://ubuntu:1158/em 創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎
總結
以上是生活随笔為你收集整理的ubuntu中启动oracle数据库的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Ubuntu下安装Oracle11g(图
- 下一篇: 在与 SQL Server 建立连接时出