Configuring and Controlling the Management Server

Configuring and Controlling the Management Server

oracle 9i中可以方便的把数据导出为文件,或者从文件导入,即ExportImport。但是需要到OMS下,如果以独立启动模式进入OEM进行ExportImport操作,会提示:

只有在应用程序已连接到Oracle Manager Server(OMS)的情况下才能启动该向导。试图重新启动向导之前,请先启动该应用程序并连接到OMS

 

然后重新启动OEM,并选择登陆到Oracle Management Server(L),管理员/口令为sysman/oem_tempManagement Server(M)为服务器IP地址。但是提示:

VTK-1000:无法连接到Management Server
                  
请验证您已输入Oracle Management Server的正确主机名和状态。


 

该错误引起的原因有两种,一是OracleOraHome90ManagementServer还没启动;二是没有输入主机名。

 

下面介绍一下如何配置和管理OMS,首先介绍一下前文提到的独立启动登陆到Oracle Management Server。前者可以让我们执行一些普通的管理工作,比如管理帐户、数据库对象等,只有后者才能为我们提供备份的功能。不过在登陆到oms之前,你必须首先安装oms服务。

 

然后确认一下已安装的ORACLE产品,在完全安装的情况下,Oracle的系统服务共有11项:(可以使用OUI查看)

  • Oracle OLAP 9.0.1.0.1
  • Oracle OLAP Agent
  • OracleOraHome90Agent
  • OracleOraHome90ClientCache
  • OracleOraHome90HTTPServer
  • OracleOraHome90ManagementServer(0.5M)
  • OracleOraHome90PagingServer
  • OracleOraHome90SNMPPeerEncapsulator
  • OracleOraHome90SNMPPeerMasterAgent
  • OracleOraHome90TNSListener(5.2M)
  • OracleServiceORACLE(70M)

 (注:OraHome90是可以在安装时改变的Oracle的主目录名称,是安装时的默认值)

其中最重要的服务有3个,分别是OracleOraHome90ManagementServerOracleOraHome90TNSListenerOracleServiceORACLE。而与OMS相关的就是OracleOraHome90ManagementServer如果没有该产品,可以使用OUI安装。

 

安装完成后,你需要配置一个管理资料库,系统将会创建一个名为oemrep的数据库,保存管理信息,其中你需要指定syssystem帐号的密码。如下是引自ORACLE官方网站的摘录,介绍了如何配置和管理OMS,注意因为需要使用DBCA创建管理资料库,所以需要准备足够的空间,如空间不足会提示创建失败,我的经验是准备2GB足够了。

 

1Starting the Enterprise Manager Configuration Assistant

To start the Enterprise Manager Configuration Assistant, perform the following steps:

·   On Windows NT:
You can start the Enterprise Manager Configuration Assistant from the Windows Start Menu.
You can also start the Enterprise Manager Configuration Assistant from the command line using the command:
emca

·   On UNIX:
You can start the Enterprise Manager Configuration Assistant from the command line using the command:
emca 

 

When you click Finish, the Enterprise Manager Configuration Assistant starts the Database Configuration Assistant to create the database instance.

 

When the Database Configuration Assistant allows you to change the passwords for the database, you must change the passwords; otherwise, you will not be allowed to continue.

 

Once the instance has been created and the Database Configuration Assistant exits, the Enterprise Manager Configuration Assistant tries to connect to the database using the SYS credentials. Once the connection has been made, the Enterprise Manager Configuration Assistant then creates the repository user and populates the repository schema.

 

 

2Starting a Local Management Server On UNIX

To start the Management Server on UNIX, at the command line, enter

% oemctl start oms

 

3Checking the Status of the Management Server

To quickly check whether a local Management Server is up or down on Windows or UNIX, at the operating system prompt, enter:

% oemctl ping oms

To check the status of a local Management Server on Windows or UNIX, at the operating system prompt, enter:

% oemctl status oms

You will be prompted to enter the username and password of an Oracle Enterprise super administrator.

To check the status of a remote Management Server on Windows or UNIX, at the operating system prompt, enter:

% oemctl status oms sysman/<password>@<hostname of Management Server machine>

For example

% oemctl status oms sysman/sysman@dlsun2305

 

An example of the output is shown below:

OEMCTL for Windows NT: Version 9.2.0.1.0
Copyright (c) 1998, 2002 Oracle Corporation. All rights reserved.
The Oracle Management Server on host [znripley-pc.ovenbird.com] is functioning pr
operly.
The server has been up for 0 00:00:25.953
Target database session count: 0 (session sharing is off)
Operations queued for processing: 1
Number of OMS systems in domain: 1 (znripley-pc.ovenbird.com)
Number of administrators logged in: 0
Repository session pool depth: 15
Repository session count: 8 in-use and 1 available, pool efficiency: 18%

 

4Stopping a Local Management Server

To stop a local Management Server, perform the following steps:

On Windows:

1. From the Start menu >Settings >Control Panel, double-click the Services icon.

2. Select the Oracle<Oracle_Home_Name>ManagementServer service.

3. Click Stop to stop the Management Server.

You will be prompted to enter the username and password of an Oracle Enterprise super administrator.

On UNIX:

At the command line, enter

% oemctl stop oms

You will be prompted to enter the username and password of an Oracle Enterprise super administrator.

前文在 《Configuring and Controlling the Management Server》  中提到了ORACLE三个重要的服务:分别是 OracleOraHome90ManagementServerOracleOraHome90TNSListenerOracleServiceORACLE。下面就来看一下有哪些启动错误与它们有关。

    1.Oracle系统提示:Ora-12541:TNS:没有监听器;
    2.操作系统提示:在本地计算机无法启动OMS服务
                    错误:1053:服务并未及时响应来控制请求附带;
以上两种错误提示大都是由OracleOraHome90TNSListener监听服务引起的。
解决方法:
---->NT
控制面版->管理工具->服务->右键单击“OracleOraHome90TNSListener”,再单击“启动”。
 
---->UNIX
%lsnrctl start

    3.Oracle系统提示:Ora-12500:TNS:监听程序无法启动专用服务器进程;
         该错误是由OracleServiceORACLE专用服务器进程引起的。
------------------------------------------------------------------------------------------------------------------------
Cause: The process of starting up a dedicated server process failed. The executable could not be found or the environment may be set up incorrectly.
 
Action: Turn on tracing at the ADMIN level and re-execute the operation. Verify that the Oracle Server executable is present and has execute permissions enabled. Ensure that the Oracle environment is specified correctly in LISTENER.ORA. The Oracle Protocol Adapter that is being called may not be installed on the local hard drive. Check that the correct Protocol Adapter are successfully linked. If the error persists, contact Oracle Support Services.
------------------------------------------------------------------------------------------------------------------------

    4.Oracle系统提示:
                        VTK-1000:无法连接到Management Server。
                        请验证您已输入Oracle Management Server的正确主机名和状态。
         该错误引起的原因有两种,一是OracleOraHome90ManagementServer还没启动;二是没有输入主机名。这个在 《Configuring and Controlling the Management Server》  中有详细介绍,这里不再介绍。
 
小结:这三个服务的启动或关闭还有先后的顺序。一般来讲,启动时必须先启动OracleOraHome90TNSListener再启动 OracleOraHome90ManagementServer或OracleServiceORACLE,在启动 OracleOraHome90ManagementServer时,同时也启动了OracleServiceORACLE。
而关闭时必须先关闭OracleOraHome90ManagementServer再关闭 OracleOraHome90TNSListener或OracleServiceORACLE,关闭 OracleOraHome90ManagementServer时,若有提示输入用户名和口令,请输入sysman的用户名和口令,以确保成功的执行。有些其他提示如:资源已被占用,I/O重复,端口已被使用等等之类的话,那最好与系统管理员联系,再寻求解决办法。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值