ORACLE Database / WAS (iAS) / SQL 자료실 - 포기하지 않으면 실패하지 않는다!
Vote Reply Modify Delete Forward Prev Next List

  Author   : 조성환 [ ladmin ] Vote: 1497, Modifies: 1, Hit: 4863, Lines: 87, Category: Etc.
[WAS] oracle was 데몬 확인하기 (command mode) (강추)

1. WAS 현재상태 확인하기

swhis:[/oracle/as10g] $   opmnctl status

Processes in Instance: his01.swhis
-------------------+--------------------+---------+---------
ias-component      | process-type       |     pid | status
-------------------+--------------------+---------+---------
HTTP_Server        | HTTP_Server        |   14526 | Alive
LogLoader          | logloaderd         |     N/A | Down
dcm-daemon         | dcm-daemon         |   14564 | Alive
OC4J               | home               |   24710 | Alive
OC4J               | home               |   24711 | Alive


; 아파치 웹서버 1개, OC4J 2개 (하나의 OC4J [home] 에 인스턴스를 2개 사용한다는 뜻입니다.)



2. WAS (component) 수동으로 내렸다 올리기

예를 들어 "OC4J" 를 stop 하고 싶을때는 다음과 같이 명령을 줍니다.

swhis:[/oracle/as10g] $   opmnctl stopproc ias-component=OC4J

opmnctl: stopping opmn managed processes...



swhis:[/oracle/as10g] $   opmnctl status

Processes in Instance: his01.swhis
-------------------+--------------------+---------+---------
ias-component      | process-type       |     pid | status
-------------------+--------------------+---------+---------
HTTP_Server        | HTTP_Server        |   14526 | Alive
LogLoader          | logloaderd         |     N/A | Down
dcm-daemon         | dcm-daemon         |   14564 | Alive
OC4J               | home               |   25093 | Down
OC4J               | home               |   25094 | Down



참고로 "HTTP_Server" - 웹서버 를 내리시려면 ias-component 명을 HTTP_Server 로 변경후 명령을 주시면 됩니다.

ex)  opmnctl stopproc ias-component=HTTP_Server


그리고 ias-component 중 "LogLoader" 는 Oracle Enterprise Manager 10g (Web tcp 1810 Port Login) 에서 해당 (통계등) 요청 들어올때만 프로세서가 Alive 됬다가 Down 된다고 합니다.





<<opmnctl 명령어 정리 >>


opmnctl


usage: /oracle/as10g/opmn/bin/opmnctl [verbose] [<scope>] <command> [<options>]

verbose: print detailed execution message if available

Permitted <scope>/<command>/<options> combinations are:

scope    command     options
-------  ---------   ---------
        start                         - Start opmn
        startall                      - Start opmn & all managed processes
        stopall                       - Stop opmn & all managed processes
        shutdown                      - Shutdown opmn & all managed processes
[<scope>] startproc   [<attr>=<val> ..] - Start opmn managed processes
[<scope>] restartproc [<attr>=<val> ..] - Restart opmn managed processes
[<scope>] stopproc    [<attr>=<val> ..] - Stop opmn managed processes
[<scope>] reload                        - Trigger opmn to reread opmn.xml
[<scope>] status      [<options>]       - Get managed process status
[<scope>] dmsdump     [<attr>=<val>&..] - Get DMS stats
        ping        [<max_retry>]     - Ping local opmn
        validate    [<filename>]      - Validate the given xml file
        help                          - Print brief usage description
        usage       [<command>]       - Print detailed usage description



Prev: [WAS] oracle was (10gAS) 에서 index 디렉토리 변경하기 (초강추)
Next: Tablespace (테이블스페이스) drop 하기
2006/10/28(06:02) from 59.30.129.220
CrazyWWWBoard 2000

Vote Reply Modify Delete Forward Prev Next List
(c) Nobreak Technologies, Inc.