linux下配置oracle 10G EM Database Console
1、啟動dbconsole
[oracle@devrfel501 ~]$ emctl start dbconsole
如果提示:OC4J Configuration issue. /opt/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsol,則說明沒有配置或沒有建立
2、配置dbconsole
[oracle@devrfel501 ~]$ emca -config dbcontrol db
STARTED EMCA at Apr 21, 2009 2:21:41 AM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: orcl
Listener port number: 1521
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN user:
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
-----------------------------------------------------------------
You have specified the following settings
Database ORACLE_HOME ................ /opt/oracle/product/10.2.0
Database hostname ................ devrfel501
Listener port number ................ 1521
Database SID ................ orcl
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............
-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: Y
Apr 21, 2009 2:23:52 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /opt/oracle/product/10.2.0/cfgtoollogs/emca/orcl/emca_2009-04-21_02-21-41-AM.log.
Apr 21, 2009 2:24:14 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) ...
Apr 21, 2009 2:24:35 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Database Control secured successfully.
Apr 21, 2009 2:24:35 AM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Apr 21, 2009 2:26:15 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Apr 21, 2009 2:26:15 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO:
>>>>>>>>>>> The Database Control URL
is https://devrfel501:5502/em
<<<<<<<<<<<
Enterprise Manager configuration completed successfully
FINISHED EMCA at Apr 21, 2009 2:26:15 AM
3、檢視dbconsole的狀態和訪問地址
[oracle@devrfel501 ~]$ emctl status dbconsole
TZ set to PRC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
https://devrfel501:5502/em/console/aboutApplication #訪問地址Oracle Enterprise Manager 10g is running.
------------------------------------------------------------------
Logs are generated in directory /opt/oracle/product/10.2.0/devrfel501_orcl/sysman/log
4、刪除資料庫的 Database Control配置
oracle@devrfel501 ~]$ emca -deconfig dbcontrol db
5、常用的命令語法:
emca -repos create建立一個EM資料庫
emca -repos recreate重建一個EM資料庫
emca -repos drop刪除一個EM資料庫
emca -config dbcontrol db配置資料庫的 Database Control
emca -deconfig dbcontrol db刪除資料庫的 Database Control配置
emca -reconfig ports 重新配置db control和agent的埠
emctl start console啟動EM console服務,使用前需要先設定ORACLE_SID環境變數
emctl stop console停止EM console服務,使用前需要先設定ORACLE_SID環境變數
注:透過檢視$ORACLE_HOME/install/portlist.ini 檔案可以知道當前dbcontrol正在使用的埠,預設dbcontrol http埠1158,agent埠3938。如果要重新配置埠,可以使用如下命令:
emca -reconfig ports -dbcontrol_http_port 1159
emca -reconfig ports -agent_port 3939
使用命令列工具emctl可以啟動/停止console服務,察看服務狀態等。
===================================
====================================
如果用資料庫克隆到新機器上(不同的主機名),訪問EM的時候可能發生如下錯誤:
java.lang.Exception: UnknownHostException sending request ::
要在控制檯輸入:
emca -config dbcontrol db -repos recreate
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9697/viewspace-1021655/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 如何手工重建10g database consoleDatabase
- oracle 10g flashback databaseOracle 10gDatabase
- Scheduler in Oracle Database 10g(轉)OracleDatabase
- Oracle 19c Database Configure the HTTPS Port for EM ExpressOracleDatabaseHTTPExpress
- Oracle 10g 下載地址Oracle 10g
- oracle 10g在linux下的安裝及簡單命令Oracle 10gLinux
- Converting Oracle Database from Linux to Windows using RMANOracleDatabaseLinuxWindows
- oracle 11g rac配置em dbconsole ORA-12514Oracle
- oracle EM 優化Oracle優化
- Oracle 19C EMOracle
- ORACLE database vaultOracleDatabase
- Oracle clone databaseOracleDatabase
- Oracle Database Cloud - Database as a Service Quick StartOracleDatabaseCloudUI
- Console LDAP 配置解密LDA解密
- ORACLE windows和linux環境下 10g升級到11.2.0.4 並安裝11.2.0.4.19補丁OracleWindowsLinux
- Oracle Database Scheduler整理OracleDatabase
- Oracle Physical Database LimitsOracleDatabaseMIT
- 4.4 為CDB配置EM ExpressExpress
- oracle 10G特性之awrOracle 10g
- Oracle 12.2 使用Database Link優化Standby Database WorkloadOracleDatabase優化
- ISO 映象安裝oracle 10gOracle 10g
- Oracle 10g RAC故障處理Oracle 10g
- Oracle 10g 增刪節點Oracle 10g
- .netcore console 日誌和配置NetCore
- linux下配置javaLinuxJava
- 11. Oracle for Linux安裝和配置—11.3. Oracle安裝和配置—11.3.3. Oracle net配置OracleLinux
- Oracle 19c Concepts(01):Introduction to Oracle DatabaseOracleDatabase
- Oracle 19c Concepts(13):Oracle Database InstanceOracleDatabase
- Oracle OCP(35):Database 安裝OracleDatabase
- Oracle DG Standby Database型別OracleDatabase型別
- Oracle DG建立Physical Standby DatabaseOracleDatabase
- Oracle DG建立Logical Standby DatabaseOracleDatabase
- Linux下基於裸裝置建立10g資料庫Linux資料庫
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.5. Linux配置OracleLinux
- Oracle 12C Database File Mapping for Oracle ASM FilesOracleDatabaseAPPASM
- Linux下iptables安全配置Linux
- linux下tomcat安全配置LinuxTomcat
- 在 Linux 下配置 RAIDLinuxAI
- .NET Core學習筆記(1)——在Linux下執行Console APP筆記LinuxAPP