Linux下创建Oracle的OEM
来源:互联网 发布:centos openssl安装 编辑:程序博客网 时间:2024/05/18 01:55
1.创建OEM
注意,这里的SID需要和你设定的SID一模一样,大小写也一样,否则会失败。
[oracle@BD01 ~]$ emca -repos createSTARTED EMCA at Mar 15, 2016 8:01:42 PMEM Configuration Assistant, Version 11.2.0.3.0 ProductionCopyright (c) 2003, 2011, Oracle. All rights reserved.Enter the following information:Database SID: ORCLListener port number: 1521Password for SYS user: Password for SYSMAN user: Do you wish to continue? [yes(Y)/no(N)]: yMar 15, 2016 8:01:53 PM oracle.sysman.emcp.EMConfig performINFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/orcl/emca_2016_03_15_20_01_42.log.Mar 15, 2016 8:01:54 PM oracle.sysman.emcp.EMReposConfig createRepositoryINFO: Creating the EM repository (this may take a while) ...Mar 15, 2016 8:08:46 PM oracle.sysman.emcp.EMReposConfig invokeINFO: Repository successfully createdEnterprise Manager configuration completed successfullyFINISHED EMCA at Mar 15, 2016 8:08:46 PM[oracle@BD01 ~]$
然后配置一下,或者创建和配置一起使用也行。
[oracle@BD02 ~]$ emca -config dbcontrol db
STARTED EMCA at Mar 15, 2016 7:52:29 PMEM Configuration Assistant, Version 11.2.0.3.0 ProductionCopyright (c) 2003, 2011, Oracle. All rights reserved.Enter the following information:Database SID: ORCLDatabase Control is already configured for the database ORCLYou have chosen to configure Database Control for managing the database ORCLThis will remove the existing configuration and the default settings and perform a fresh configurationDo you wish to continue? [yes(Y)/no(N)]: yListener ORACLE_HOME [ /u01/app/oracle/product/11.2.0/dbhome_1 ]: 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 settingsDatabase ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/dbhome_1Local hostname ................ localhostListener ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/dbhome_1Listener port number ................ 1521Database SID ................ ORCLEmail address for notifications ............... Outgoing Mail (SMTP) server for notifications ............... -----------------------------------------------------------------Do you wish to continue? [yes(Y)/no(N)]: yMar 15, 2016 7:53:10 PM oracle.sysman.emcp.EMConfig performINFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/orcl/emca_2016_03_15_19_52_29.log.Mar 15, 2016 7:53:11 PM oracle.sysman.emcp.util.DBControlUtil stopOMSINFO: Stopping Database Control (this may take a while) ...Mar 15, 2016 7:53:17 PM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepositoryINFO: Uploading configuration data to EM repository (this may take a while) ...Mar 15, 2016 7:54:56 PM oracle.sysman.emcp.EMReposConfig invokeINFO: Uploaded configuration data successfullyMar 15, 2016 7:55:02 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsoleINFO: Securing Database Control (this may take a while) ...Mar 15, 2016 7:56:17 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsoleINFO: Database Control secured successfully.Mar 15, 2016 7:56:17 PM oracle.sysman.emcp.util.DBControlUtil startOMSINFO: Starting Database Control (this may take a while) ...Mar 15, 2016 7:57:37 PM oracle.sysman.emcp.EMDBPostConfig performConfigurationINFO: Database Control started successfullyMar 15, 2016 7:57:38 PM oracle.sysman.emcp.EMDBPostConfig performConfigurationINFO: >>>>>>>>>>> The Database Control URL is https://localhost:1158/em <<<<<<<<<<<Mar 15, 2016 7:57:53 PM oracle.sysman.emcp.EMDBPostConfig invokeWARNING: ************************ WARNING ************************Management Repository has been placed in secure mode wherein Enterprise Manager data will be encrypted. The encryption key has been placed in the file: /u01/app/oracle/product/11.2.0/dbhome_1/localhost_orcl/sysman/config/emkey.ora. Ensure this file is backed up as the encrypted data will become unusable if this file is lost. ***********************************************************Enterprise Manager configuration completed successfullyFINISHED EMCA at Mar 15, 2016 7:57:53 PM
然后就可以启动OEM了。
启动OEM用命令emctl start dbconsole,
[oracle@BD02 ~]$ emctl start dbconsoleOracle Enterprise Manager 11g Database Control Release 11.2.0.4.0 Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.https://localhost:1158/em/console/aboutApplicationStarting Oracle Enterprise Manager 11g Database Control ............ started. ------------------------------------------------------------------Logs are generated in directory /u01/app/oracle/product/11.2.0/dbhome_1/localhost_orcl/sysman/log
然后在浏览器下输入地址后就可以访问dbconsole了。
2.删除OEM
可以停止OEM
[oracle@BD02 ~]$ emctl stop dbconsoleOracle Enterprise Manager 11g Database Control Release 11.2.0.4.0 Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.https://localhost:1158/em/console/aboutApplicationStopping Oracle Enterprise Manager 11g Database Control ... ... Stopped.删除用命令如下
[oracle@BD01 ~]$ emca -repos dropSTARTED EMCA at Mar 15, 2016 7:40:22 PMEM Configuration Assistant, Version 11.2.0.3.0 ProductionCopyright (c) 2003, 2011, Oracle. All rights reserved.Enter the following information:Database SID: ORCLListener port number: 1521Password for SYS user: Password for SYSMAN user: ----------------------------------------------------------------------WARNING : While repository is dropped the database will be put in quiesce mode.----------------------------------------------------------------------Do you wish to continue? [yes(Y)/no(N)]: yMar 15, 2016 7:40:30 PM oracle.sysman.emcp.EMConfig performINFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/orcl/emca_2016_03_15_19_40_21.log.Mar 15, 2016 7:40:31 PM oracle.sysman.emcp.EMReposConfig invokeINFO: Dropping the EM repository (this may take a while) ...Mar 15, 2016 7:42:46 PM oracle.sysman.emcp.EMReposConfig invokeINFO: Repository successfully droppedEnterprise Manager configuration completed successfullyFINISHED EMCA at Mar 15, 2016 7:42:46 PM
0 0
- Linux下创建Oracle的OEM
- Linux下开启Oracle oem
- LINUX环境下启动/关闭ORACLE数据库的OEM
- Oracle:创建OEM
- Oracle:创建OEM
- 在linux下启动oracle oem和遇到的错误解决(时区问题和oem无法关闭)
- Oracle 清理oem下的预警信息
- Linux系统下Oracle 10g OEM中文显示为方框的解决办法
- linux下oracle创建数据库的创建
- 手动创建oracle后,OEM无法启动的问题
- oracle OEM的配置
- ORACLE如何清除OEM下的历史警告信息
- Linux下创建Oracle的实例
- Linux上oracle怎么启动OEM
- oracle oem
- Oracle OEM
- ORACLE OEM
- ORACLE OEM
- Netty中的ByteBuf原理分析
- [DP 容斥原理] BZOJ3622 已经没有什么好害怕的了 && BZOJ 2024 [SHOI2009] 舞会
- 项目1:个人所得税计算器
- uvalive3667 ruler
- linux搭建jenkins
- Linux下创建Oracle的OEM
- 第3周项目3(1) 输出星号图
- Leetcode:290. Word Pattern(JAVA)
- Android GirdView/Listview 最后一行显示不完整
- java中标签库.tld文件的书写格式
- soledede--牛顿下山法
- ViewPager的简单应用
- 重写object类equals方法(避免类中出现重复的数据)
- python编码问题汇总