】oracle em配置常用命令
参见:http://fourfire.javaeye.com/blog/48288
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的端口,默认端口在1158
emctl start console启动EM console服务,使用前需要先设置ORACLE_SID环境变量
emctl stop console停止EM console服务,使用前需要先设置ORACLE_SID环境变量
注:通过查看$ORACLE_HOME/install/portlist.ini 文件可以知道当前dbcontrol正在使用的端口
================================================================
【收藏】Oracle 入门之EM配置
参考:http://www.linuxidc.com/Linux/2010-09/28558.htm
ORACLE 11g R2 64位启动em,出现如下错误:
[root@localhost ~]# su - oracle
[oracle@localhost ~]$ emctl start dbconsole
Environment variable ORACLE_UNQNAME not defined. Please set ORACLE_UNQNAME to database unique name.
[oracle@localhost ~]$ export ORACLE_UNQNAME=online
[oracle@localhost ~]$ emctl start dbconsole
OC4J Configuration issue. /u01/app/oracle/oc4j/j2ee/OC4J_DBConsole_localhost.localdomain_online not found.
问题原因为em资料库配置不正确,或者是dbcontrol没有配置好
1:重建EM资料
[oracle@localhost ~]$ emca -repos recreate
STARTED EMCA at Sep 6, 2010 4:42:53 PM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: online
Listener port number: 1521
Password for SYS user:
Password for SYSMAN user:
Do you wish to continue? [yes(Y)/no(N)]: y
Sep 6, 2010 4:43:30 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/cfgtoollogs/emca/online/emca_2010_09_06_16_42_52.log.
Sep 6, 2010 4:43:31 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Dropping the EM repository (this may take a while) ...
Sep 6, 2010 4:46:23 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully dropped
Sep 6, 2010 4:46:24 PM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Sep 6, 2010 4:53:00 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Enterprise Manager configuration completed successfully
FINISHED EMCA at Sep 6, 2010 4:53:00 PM
2:配置dbcontrol
[oracle@localhost ~]$ emca -config dbcontrol db
STARTED EMCA at Sep 6, 2010 5:02:57 PM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: online
Listener port number: 1521
Listener ORACLE_HOME [ /u01/app/oracle ]:
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN 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 ................ /u01/app/oracle
Local hostname ................ localhost.localdomain
Listener ORACLE_HOME ................ /u01/app/oracle
Listener port number ................ 1521
Database SID ................ online
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............
-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: y
Sep 6, 2010 5:03:34 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/cfgtoollogs/emca/online/emca_2010_09_06_17_02_56.log.
Sep 6, 2010 5:03:39 PM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
INFO: Uploading configuration data to EM repository (this may take a while) ...
Sep 6, 2010 5:04:45 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Uploaded configuration data successfully
Sep 6, 2010 5:04:46 PM oracle.sysman.emcp.ParamsManager getLocalListener
WARNING: Error retrieving listener for localhost.localdomain
Sep 6, 2010 5:04:49 PM oracle.sysman.emcp.util.DBControlUtil configureSoftwareLib
INFO: Software library configured successfully.
Sep 6, 2010 5:04:49 PM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Deploying Provisioning archives ...
Sep 6, 2010 5:05:22 PM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Provisioning archives deployed successfully.
Sep 6, 2010 5:05:22 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) ...
Sep 6, 2010 5:06:17 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Database Control secured successfully.
Sep 6, 2010 5:06:17 PM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Sep 6, 2010 5:07:00 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Sep 6, 2010 5:07:00 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is https://localhost.localdomain:1158/em <<<<<<<<<<<
Sep 6, 2010 5:07:04 PM oracle.sysman.emcp.EMDBPostConfig invoke
WARNING:
可以看到em已经启动:
[oracle@localhost ~]$ netstat -ntpl |grep 1158
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 :::1158 :::* LISTEN 11125/java
[oracle@localhost ~]$ emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
https://localhost.localdomain:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is running.
------------------------------------------------------------------
Logs are generated in directory /u01/app/oracle/localhost.localdomain_online/sysman/log
************************ 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/localhost.localdomain_online/sysman/config/emkey.ora. Please ensure this file is
backed up as the encrypted data will become unusable if this file is lost.
***********************************************************
Enterprise Manager configuration completed successfully
FINISHED EMCA at Sep 6, 2010 5:07:04 PM
连接
测试
:
转载于:https://blog.51cto.com/cntway/660774
】oracle em配置常用命令相关推荐
- Oracle EM 配置常用命令
EMCA和EMCTL的简单用法 IT技术网Www.ofAdmin.Com 10G的EM采用了web方式,并且分成了2个产品,database control和grid control.这里主要介绍如何 ...
- Oracle数据库基本常用命令
Oracle数据库基本常用命令 1.得到数据库名和创建日期 SELECT name, created, log_mode, open_mode FROM v$database; 2.ORACLE数据库 ...
- oracle rman 实例,Oracle数据库rman常用命令的使用示例
Oracle数据库rman常用命令的使用是本文我们主要要介绍的内容,接下来我们就开始介绍这一部分内容,希望能够对您有些收获! 连接到rman 1.连接到目标数据库(不使用恢复目录) [oracle@l ...
- 华为交换机配置常用命令
华为交换机配置常用命令 一.配置软件和硬件 1.配置(Console)电缆连接 配置电缆是一根8芯屏蔽电缆,一端是压接的RJ-45连接器,插入交换机的Console口里:另一端则同时带有一个DB-9( ...
- Oracle性能监控常用命令
Oracle性能监控常用命令 --监控事例的等待 select event, sum(decode(wait_Time, 0, 0, 1)) "Prev", ...
- Oracle数据库的常用命令(创建用户、用户授权、用户登录、表空间、备份还原 )
Oracle数据库的常用命令 Oracle数据库的常用命令 一.创建用户及授权相关命令 二.用户登录相关命令 三.表空间相关命令 四.备份的还原 Oracle数据库的常用命令 一.创建用户及授权相关命 ...
- 华为交换机删除配置命令access_华为交换机配置常用命令
华为交换机配置常用命令 一.配置软件和硬件 1.配置(Console)电缆连接 配置电缆是一根8芯屏蔽电缆,一端是压接的RJ-45连接器,插入交换机的Console口里:另一端则同时带有一个DB-9( ...
- oracle em配置报错,oracle em 启动报错OC4J Configuration issue
oracle em 启动报错OC4J Configuration issue 今天在测试服务器上,启动emctl start dbconsole的时候,报如下错误: [oracle@test ~]$ ...
- 史上最全Oracle数据泵常用命令
墨墨导读:expdp和impdp是oracle数据库之间移动数据的工具,本文简单总结了数据泵的常用命令,希望对大家有帮助. 前言 expdp和impdp是oracle数据库之间移动数据的工具.expd ...
- 二、oracle sql*plus常用命令
一.sys用户和system用户 Oracle安装会自动的生成sys用户和system用户 (1).sys用户是超级用户,具有最高权限,具有sysdba角色,有create database的权限,该 ...
最新文章
- opencl fft实例整理
- python编程题-python编程练习题
- Hibernate, 想说爱你不容易
- linux 的 cat more less 命令有什么区别
- 北亚数据恢复关于服务器存储MDisk重建的数据恢复方法的研究
- acm 3278(poj4001)
- 信号问题可根除,苹果新款 iPhone 将搭载高通基带?
- java如何取到配置文件中值,从配置文件中获取配置信息的几种方法
- 他刷题5个月,直通Google,薪资Triple,总结出这套刷题笔记,今天首次公开!
- 比较贵的计算机配置,什么电脑配置好 几款配置比较豪华的笔记本电脑推荐【图文】...
- 软件测试周刊(第21期):不要告诉我你想干什么
- ImDisk 命令行用法
- oblog商业版本4.6注射漏洞,直接拿管理员
- Servlet、ServletConfig、ServletContext
- Java将正整数转换为负数,将负整数转换为正数
- 计算机应用中的CAI,使用计算机来进行翻译属于计算机应用领域中的()。A.AIB.CAEC.CADD.CAI...
- SpringBoot 日期转换
- 【正点原子Linux连载】第二十章 V4L2摄像头应用编程-摘自【正点原子】I.MX6U嵌入式Linux C应用编程指南V1.1
- 计算机网络cidr是啥,计算机网络(4.11)网络层- 无分类编址CIDR
- python for finance pdf_python金融大数据分析 pdf
热门文章
- 并发编程---填充缓存行消除伪共享
- 【bug解决】No OpKernel was registered to support Op 'CudnnRNN' with these attrs.
- 每日一题/005/矩阵/数学归纳法/设A的顺序主子式均不为0.则有下三角矩阵B,使得BA是上三角矩阵,
- 求链表是否有环,及环入口,环长度
- js面向对象数据属性和访问器属性,定义多个属性及读取属性的特性
- SQL语句的优化建议
- QT学习-核心类列表-12、QtDesigner
- 夺命雷公狗----Git---2---基本用法
- Mac 应用开发--Cocoa运用程序显示或隐藏MainNemu
- Shell学习笔记 - 运算符