스니퍼 구성 및 관리
하나의 감청 설정은 하나 이상의 감청 프로토콜 주소를 포함하고, 정보는 지원하는 서비스를 포함하며, 실행할 때의 파라미터를 제어하며, 감청 설정은listener에 유지됩니다.ora 파일에서감청하는 매개 변수는 기본값이 있기 때문에, 설정하지 않고 감청을 시작하고 사용할 수 있습니다. 기본 감청 이름은listener입니다. 시작할 때 서비스가 지원되지 않습니다. 아래 프로토콜 주소에서 감청합니다.
(ADDRESS=(PROTOCOL=tcp)(HOST=host_name)(PORT=1521))
지원하는 서비스, 즉 전송 고객의 요청을 감청하는 서비스는listener에 설정할 수 있습니다.ora에서, 또는 이 정보는 동적 등록이 가능합니다.이 동적 등록을 서비스 등록이라고 한다.등록된 동작은 pmon 프로세스에서 작동합니다.동적 등록은listener가 필요하지 않습니다.ora 파일의 모든 설정서비스 등록은 다음과 같은 이점을 제공합니다.
1 구성 단순화
2 접속 시 장애 조치
감청은 항상 실례의 상태를 알고 있기 때문에 서비스 등록은 자동 고장 이동에 도움이 되며, 하나의 실례에서 클라이언트 연결을 떨어뜨려 작별 인사를 요청하는 실례에 도움이 된다.
정적 설정 모델에서 감청은 클라이언트 요청을 받을 때 전용 서버를 시작하고 서버가 실례적으로 시작하지 않는 것을 발견하면'
Oracle not available
정보를 보냅니다.3 런타임 연결 로드 밸런싱
서비스 등록은 고객 연결 요청 루트의 최소 부하를 감청하는 실례에서 서비스 등록은 서비스 프로세서와 노드에 균형적으로 부하된다.
설치 중 스니퍼 구성
netca는listener라는 감청을 자동으로 설정하고 외부 저장 프로세스를 위한 ipc 프로토콜 주소도 자동으로 설정합니다.netca도 자동으로 외부 저장 프로세스를 위한 서비스 정보를 설정합니다.
다음의 예는listener 항목이 감청하는 프로토콜 주소를 정의한다.sidlis_listener 항목은 정적 지원을 감청하는 서비스 정보를 정의합니다
LISTENER= (DESCRIPTION= (ADDRESS_LIST= (ADDRESS=(PROTOCOL=tcp)(HOST=sales-server)(PORT=1521)) (ADDRESS=(PROTOCOL=ipc)(KEY=extproc)))) SID_LIST_LISTENER= (SID_LIST= (SID_DESC= (SID_NAME=plsextproc) (ORACLE_HOME=/oracle10g) (PROGRAM=extproc)))
만약 ipc 프로토콜을 사용한다면, 가장 큰 병렬 ipc 연결을 통해 성능을 향상시킬 수 있습니다. 예를 들어
listener_name=(description=(address=(protocol=ipc)(key=listener0)(queuesize=50)))
대량의 병렬 연결 요청을 처리하다
만약 감청기가 대량의 병렬 연결 요청을 처리하고 싶다면, tcp/ip나 ipc에 감청기 대기열을 지정할 수 있습니다.대기열 크기를 지정하기 위해queuesize 파라미터를 제정하려면 다음과 같습니다
LISTENER=(DESCRIPTION=(ADDDRESS=(PROTOCOL=tcp)(HOST=sales-server)(PORT=1521)(QUEUESIZE=20)) 아래는 서로 다른 플랫폼의 기본값입니다.
Solaris Operating System: 5
Windows NT 4.0 Workstation: 5
Windows NT 4.0 Server: 50
정적 정보 구성
listener에 있습니다.ora의 정적 서비스 설정
Oracle Net Manager Field
listener.ora File Parameter
Description
SID
SID_NAME
Specifies the Oracle System Identifier (SID) of the instance. You can obtain the SID value from the
INSTANCE_NAME
parameter in the initialization parameter file. Service Name
GLOBAL_DBNAME
Identifies the database service. Can the following paragraph be removed? It seems to be relevant only to Oracle8 While processing a client connection request, the listener tries to match the value of this parameter with the value of the
SERVICE_NAME
parameter in the client connect descriptor. If the client connect descriptor uses the SID
parameter, then the listener does not attempt to map the values. This parameter is primarily intended for configurations with Oracle8 release 8.0 databases (where dynamic service registration is not supported for dedicated servers). This parameter may also be required for use with Oracle8i and higher database services by some configurations. The value for this parameter is typically obtained from the combination of the DB_NAME
and DB_DOMAIN
parameters ( DB_NAME
. DB_DOMAIN
) in the initialization parameter file, but the value can also contain any valid name used by clients to identify the service. Oracle Home Directory
ORACLE_HOME
On UNIX, this setting is optional. Use it to specify the Oracle home location of the instance. Without this setting, the listener assumes its Oracle home for the instance. On Windows, this setting is ignored. The Oracle home specified by the
ORACLE_HOME
parameter in HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOME
ID
of the Windows registry is used. 다음은 정적 설정 데이터베이스 서비스의 예이다
listener.ora
file statically configured for a database service called sales.us.acme.com
: SID_LIST_listener=
(SID_LIST=
(SID_DESC=
(GLOBAL_DBNAME=sales.us.acme.com)
(SID_NAME=sales)
(ORACLE_HOME=/u01/app/oracle/10g)))
수신을 위한 암호 구성
비밀번호를 설정했습니다. 설정을 유지하고 감청을 정지하는 것과 같은 동작은 모두 비밀번호를 요구합니다. 감청 제어 도구changepassword 명령을 사용하여 암호를 설정합니다.
다음은 비밀번호를 설정한 예이다
LSNRCTL>
CHANGE_PASSWORD
Old password:
New password:
takd01
Reenter new password:
takd01
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=tpc)(HOST=sales-server)(PORT=1521)))
Password changed for LISTENER
The command completed successfully
LSNRCTL>
SAVE_CONFIG
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=sales-server)(PORT=1521)))
Saved LISTENER configuration parameters.
Listener Parameter File /oracle/network/admin/listener.ora
Old Parameter File /oracle/network/admin/listener.bak
The command completed successfully
다음은 비밀번호를 수정한 예이다
LSNRCTL>
SET PASSWORD
Password:
takd01
The command completed successfully
LSNRCTL>
CHANGE_PASSWORD
Old password:
takd01
New password:
smd01
Reenter new password:
smd01
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=tpc)(HOST=sales-server)(PORT=1521)))
Password changed for LISTENER
The command completed successfully
LSNRCTL>
SAVE_CONFIG
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=sales-server)(PORT=1521)))
Saved LISTENER configuration parameters.
Listener Parameter File /oracle/network/admin/listener.ora
Old Parameter File /oracle/network/admin/listener.bak
The command completed successfully
서비스 등록 구성
동적 서비스 등록은 데이터베이스 초기 매개 변수에 설정되어 있으며,listener가 필요하지 않습니다.ora에서 다른 설정을 만듭니다.
서비스의 정상적인 등록을 확보하기 위해서, 초기화 파라미터 파일에는 아래의 파라미터가 포함되어야 한다
SERVICE_NAMES for the database service name
INSTANCE_NAME
for the instance name 기본 로컬 스니퍼 등록 서비스 사용
기본적으로 pmon 프로세스는 로컬 감청을 사용하고 하위 기본 로컬 주소에 서비스 정보를 등록합니다.감청 설정과 데이터베이스 설정이 동기화되면 pmon은 기본 로컬 감청 또는 원격 감청 등록 서비스를 사용할 수 있습니다.
비기본 스니핑으로 등록
pmon으로 로컬 감청을 등록하려면 tcp/ip, 1521 포트가 적용되지 않으며 파라미터 파일에locallistener 매개 변수로 로컬 감청을 지정합니다.
Set the
LOCAL_LISTENER
parameter as follows: local_listener=listener_alias
listener_alias는 감청 프로토콜 주소를 명칭으로 해석합니다.
원격 감청으로 정보를 등록하다
원격 감청에 등록하면rac를 사용하는 것 같습니다.remote 구성 필요listener 파라미터는 원격 감청을 지정합니다. 예를 들어, 감청이ales1-server와ales2-server의 기계에 설정되어 있으면,remotelistener 매개 변수는ales1-server에서 다음과 같습니다.
REMOTE_LISTENER=listener_sales2
sales1-sever의 tnsnames.ora 파일의 해석 listenersales2
listener_sales2= (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=sales2-server)(PORT=1521)))
수신 시작 중지
lsnrctl STOP [listener_name]
lsnrctlSTART [listener_name]
lsnrctl STATUS [listener_name]
수신된 로그 닫기
1 매개변수 lsnrctl>set logstatus off 2는listener에 있습니다.ora 파일에 "LOGGING LISTENER=OFF"추가
모니터링 모니터링 서비스
서비스 명령 사용
Example 10-4 Listener Control Utility's SERVICES Command Output
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=net)))
Services Summary...
Service "sales.us.acme.com" has 1 instance(s).
Instance "sales", status READY, has 3 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
"D000" established:0 refused:0 current:0 max:10000 state:ready
DISPATCHER <machine: sales-server, pid: 1689>
(ADDRESS=(PROTOCOL=tcp)(HOST=sales-server)(PORT=52414))
"D001" established:0 refused:0 current:0 max:10000 state:ready
DISPATCHER <machine: sales-server, pid: 1691>
(ADDRESS=(PROTOCOL=tcp)(HOST=sales-server)(PORT=52415))
Service "hr.us.acme.com" has 1 instance(s).
Instance "hr", status READY, has 2 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
"D000" established:0 refused:0 current:0 max:10000 state:ready
DISPATCHER <machine: sales-server, pid: 11326>
(ADDRESS=(PROTOCOL=tcp)(HOST=sales-server)(PORT=58361))
The command completed successfully
This output shows that two database services,
sales.us.acme.com
and hr.us.acme.com
, are registered with the listener. Client connection requests to
sales.us.acme.com
are handled by two dispatchers named D000
and D001
and one dedicated server. All handlers have a status of ready
, indicating that they are ready to receive connections. Client connection requests to
hr.us.acme.com
are handled by one dispatcher named D001
and one dedicated server.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Control Version de una base de datos OraclePodemos는 Flyway y Liquibase의 새로운 기반 버전을 제어할 수 있는 프로젝트를 제안합니다. Dada la integración de SQLcl y Liquibase, este ejemplo nos...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.