Oracle 10gas basic management guide

Source: Internet
Author: User
There are two ways to manage the 10g
  
1. Oracle Enterprise Manager
2. Command Line
  
You can enable and disable Enterprise Manager, restart various as compoment, and modify them in various configuration files.
  
It monitors and manages data through the following processes:
  
   1. Dynamic Monitoring Service (DMS)
It collects the running status of each component, such as response time and serviced request.
The DMs is supported for both Linux and OHS, so you can monitor the data.
  
   2. Oracle Process Manager and Notification Server (OPMN)
It is his credit to enable and disable various components through em.
  
   3. Distributed configuration management (DCM)
You can use em to publish a program or modify various configuration files to synchronize to various components.
  
This OPMN and DCM are the key processes of As, and their functions are also complicated. They belong to advanced courses. After a while, if you need them, I 'd like to explain them in depth.
  
It is convenient and easy to manage through em, so the focus is on the management of command line.
  
It is managed through command line, mainly through opmnctl and dcmctl.
Before 10gas, dcmctl can basically implement all functions.
In 10gas, all processes are managed through opmnctl, and other functions are managed through dcmctl.
  
   1. view various process statuses
Opmnctl status
  
Processes in instance: iastest.finproduction.tplife.com
------------------- + -------------------- + ------- + ---------
IAS-component | process-type | PID | status
------------------- + -------------------- + ------- + ---------
Productname | home | 12474 | alive
Webcache | webcacheadmin | N/A | down
Webcache | N/A | down
Http_server | 8028 | alive
DCM-daemon | 10746 | alive
Logloader | logloaderd | 10818 | alive
  
The status of processes installed on the server is displayed. We can see two processes related to the webcache component.
The status of webcacheadmin and webcache is down, and other processes are alive.
  
   2. Start the process
There are three methods to start the service,
Start all processes
Opmnctl startall (and OPMN is not started. It will also be started in this mode)
  
Note that in this mode, DCM-daemon and logloader cannot be started. You must start them separately by starting the component.
  
Start a component. For example, webcache has two related processes: webcacheadmin, And the webcache startup method is as follows:
Opmnctl verbose status
  
Processes in instance: iastest.finproduction.tplife.com
------------------- + -------------------- + ------- + ---------
IAS-component | process-type | PID | status
------------------- + -------------------- + ------- + ---------
Productname | home | 12474 | alive
Webcache | webcacheadmin | N/A | down
Webcache | N/A | down
Http_server | 8028 | alive
DCM-daemon | 10746 | alive
Logloader | logloaderd | 10818 | alive
Opmnctl startproc IAS-Component = webcache
  
Opmnctl status
  
Processes in instance: iastest.finproduction.tplife.com
------------------- + -------------------- + ------- + ---------
IAS-component | process-type | PID | status
------------------- + -------------------- + ------- + ---------
Productname | home | 12474 | alive
Webcache | webcacheadmin | 29489 | alive
Webcache | 29500 | alive
Http_server | 8028 | alive
DCM-daemon | 10746 | alive
Logloader | logloaderd | 10818 | alive
  
We can see that all the webcache-related processes are available.
  
The OHS startup method is as follows:
Opmnctl startproc IAS-Component = http_server
The following method is used to start the Solaris service:
Opmnctl startproc IAS-Component = productname
The following describes how to start DCM-daemon:
Opmnctl startproc IAS-Component = DCM-daemon
The method for starting logloader is as follows:
Opmnctl startproc IAS-Component = logloader
  
Start a separate process
For example, webcache has two separate processes.
Webcacheadmin and webcache
Opmnctl status
  
Processes in instance: iastest.finproduction.tplife.com
------------------- + -------------------- + ------- + ---------
IAS-component | process-type | PID | status
------------------- + -------------------- + ------- + ---------
Productname | home | 12474 | alive
Webcache | webcacheadmin | N/A | down
Webcache | N/A | down
Http_server | 8028 | alive
DCM-daemon | 29691 | alive
Logloader | logloaderd | 29780 | alive
  
The startup command is as follows:
  
Opmnctl startproc process-type = webcacheadmin
Opmnctl: Starting OPMN managed processes...
  
Check the Process status,
[Ias10g @ finproduction Home] $ opmnctl status
  
Processes in instance: iastest.finproduction.tplife.com
------------------- + -------------------- + ------- + ---------
IAS-component | process-type | PID | status
------------------- + -------------------- + ------- + ---------
Productname | home | 12474 | alive
Webcache | webcacheadmin | 7839 | alive
Webcache | N/A | down
Http_server | 8028 | alive
DCM-daemon | 29691 | alive
Logloader | logloaderd | 29780 | alive
  
Webcacheadmin is up.
  
The command to start other processes is as follows:
Opmnctl startproc process-type = home
Opmnctl startproc process-type = webcache
Opmnctl startproc process-type = http_server
  
Note that DCM-daemon and logloaderd cannot pass
This method can only be started in component mode.
  
Start the program, and close the program.
  
   There are also three ways to disable
1. Close all
Opmnctl stopall
Opmnctl status
  
Processes in instance: iastest.finproduction.tplife.com
------------------- + -------------------- + ------- + ---------
IAS-component | process-type | PID | status
------------------- + -------------------- + ------- + ---------
Productname | home | 12474 | alive
Webcache | webcacheadmin | 7839 | alive
Webcache | N/A | down
Http_server | 8028 | alive
DCM-daemon | 29691 | alive
Logloader | logloaderd | 29780 | alive
  
Opmnctl stopall
Opmnctl: Stopping OPMN and all managed processes...
[Ias10g @ finproduction Home] $ opmnctl status
Unable to connect to OPMN.
OPMN may not be up.
  
We can see that all processes are closed, including the OPMN process.
  
2. Close a component
Opmnctl status
  
Processes in instance: iastest.finproduction.tplife.com
------------------- + -------------------- + ------- + ---------
IAS-component | process-type | PID | status
------------------- + -------------------- + ------- + ---------
Productname | home | 8290 | alive
Webcache | webcacheadmin | 8289 | alive
Webcache | 8314 | alive
Http_server | 8288 | alive
DCM-daemon | 8553 | alive
Logloader | logloaderd | 8584 | alive
  
[Ias10g @ finproduction Home] $ opmnctl stopproc IAS-Component = webcache
  
Opmnctl: Stopping OPMN managed processes...
  
[Ias10g @ finproduction Home] $ opmnctl status
  
Processes in instance: iastest.finproduction.tplife.com
------------------- + -------------------- + ------- + ---------
IAS-component | process-type | PID | status
------------------- + -------------------- + ------- + ---------
Productname | home | 8290 | alive
Webcache | webcacheadmin | N/A | down
Webcache | N/A | down
Http_server | 8288 | alive
DCM-daemon | 8553 | alive
Logloader | logloaderd | 8584 | alive
  
We can see that both processes of webcache have stopped.
  
To stop other components, follow these steps:
Opmnctl stopproc IAS-Component = productname
Opmnctl stopproc IAS-Component = http_server
Opmnctl stopproc IAS-Component = DCM-daemon
Opmnctl stopproc IAS-Component = logloader
 
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.