sp_hsm
sp_hsm
설명
sp_hsm 유틸리티를 사용하여 외부 스토리지(HSM)에 저장된 SharePlex에 Oracle Wallet 비밀번호를 제공합니다. SharePlex는 지갑 비밀번호를 사용하여 TDE 기본 암호화 키에 접근합니다. SharePlex는 TDE 기본 암호화 키를 사용하여 복제해야 하는 리두 로그에서 TDE로 보호되는 데이터의 암호화를 해제합니다.
sp_hsm을 사용하기 전에 Oracle Wallet 파일에 대한 읽기 권한을 dba 그룹에 부여하십시오.
지원되는 데이터베이스
Oracle
sp_hsm 유틸리티 실행
sp_hsm 유틸리티를 실행하려면 다음을 수행합니다.
-
명령 프롬프트를 엽니다.
-
RAC 구성 [ORCL1]: ORCL1인 경우 Oracle SID 또는 TNS 별칭을 입력합니다.
-
HSM 라이브러리가 다음과 같이 올바르게 설정되었는지 확인합니다.
HSM opm_is_hsm_library_setup entered for sid o.ORCL1
HSM opm_is_hsm_library_setup returned true
-
Oracle 데이터베이스가 구성된 HSM의 슬롯 ID를 입력합니다.
HSM Slot ID [0]: 1
-
HSM 비밀번호를 입력합니다.
SharePlex에 HSM 비밀번호를 성공적으로 추가하면 유틸리티에 다음 메시지가 표시됩니다.
The HSM password has been successfully added to Shareplex.
Shareplex will automatically connect to HSM upon startup.
The sp_hsm utility will not need to be run again unless you want to change the HSM password.
To change the HSM password, just run sp_hsm and enter the new password.
The old HSM password will replace the existing password.
sp_security
설명
sp_security 유틸리티를 사용하여 SharePlex 네트워크 통신에 대한 SSL/TLS 설정을 활성화, 비활성화하거나 확인합니다.
SSL/TLS 활성화
중요! SSL/TLS는 공통 네트워크 비밀번호를 사용하여 활성화하거나 모든 SharePlex 설치에서 비활성화해야 합니다.
SSL/TLS를 활성화하려면 다음을 수행합니다.
sp_security --setup을 실행하고 SSL/TLS 옵션을 선택한 후 네트워크 비밀번호를 입력합니다.
% sp_security --setup
Security Setup Wizard
---------------------
This wizard will walk you through setting up the SharePlex network security.
Setup configuration for '/home/shareplex/var110/' and Port 2100 [N]: Y
Choose your network security model. Please note the following:
* Cop must be down when the security model is changed, or when the network password is changed
* The same model must be used among all SharePlex nodes replicating to each other
* For security model [1], the same network password must be set on all SharePlex nodes replicating to each other
[1] Use basic SSL/TLS connections
[2] Use non-SSL/TLS connections (default prior to SharePlex 9.1.3)
Security model: 1
Please enter a network password that will be used for authentication
among the SharePlex nodes. All SharePlex nodes that replicate data to each
other must have the same network password.
Network password:
Please re-enter the network password
Network password:
Security settings:
Configuration for '/home/shareplex/var110/' and Port 2100:
Security model : SSL/TLS
Network password : stored for unattended startup
SSL key file password : stored for unattended startup
SSL key file : key.pem
SSL cert file : cert.pem
Setup complete!
SSL/TLS 비활성화
중요! SSL/TLS는 공통 네트워크 비밀번호를 사용하여 활성화하거나 모든 SharePlex 설치에서 비활성화해야 합니다.
SSL/TLS를 비활성화하려면 다음을 수행합니다.
Run “sp_security --setup” and select non-SSL/TLS connections.
% sp_security --setup
Security Setup Wizard
---------------------
This wizard will walk you through setting up the SharePlex network security.
Setup configuration for '/home/shareplex/var110/' and Port 2100 [N]: Y
Choose your network security model. Please note the following:
* Cop must be down when the security model is changed, or when the network password is changed
* The same model must be used among all SharePlex nodes replicating to each other
* For security model [1], the same network password must be set on all SharePlex nodes replicating to each other
[1] Use basic SSL/TLS connections
[2] Use non-SSL/TLS connections (default prior to SharePlex 9.1.3)
Security model: 2
Security settings:
Configuration for '/home/shareplex/var110/' and Port 2100:
Security model : Un-encrypted
Setup complete!
현재 SSL/TLS 구성 보기
현재 SSL/TLS 구성을 보려면 다음을 수행합니다.
Run “sp_security --show”.
% sp_security --show
Security settings:
Configuration for '/home/shareplex/var110/' and Port 210:
Security model : Un-encrypted
트리거 스크립트
설명
SharePlex는 복제를 방해하지 않도록 트리거를 관리하기 위해 SQL*Plus에서 실행할 수 있는 세 가지 대화형 스크립트를 제공합니다. 스크립트를 실행하기 전에 다음 사항을 검토합니다.
지원되는 데이터베이스
Oracle 및 지원되는 플랫폼
sp_add_trigger.sql
피어-투-피어 및 고가용성 구성과 같이 타겟 객체에서 트리거를 비활성화할 수 없는 경우 sp_add_trigger.sql을 사용합니다. 이 스크립트는 Post 프로세스와 연결된 SharePlex Oracle 사용자를 무시하지만 다른 모든 사용자에 대해서는 실행되도록 트리거를 변경합니다. 데이터베이스의 각 트리거에 다음 WHEN 절을 삽입합니다.
when user != ‘SharePlex_username’ begin
스크립트는 SharePlex 사용자 이름을 묻는 프롬프트를 표시한 후 트리거를 수정합니다. SYS, SYSTEM 및 SCOTT에 속한 트리거는 수정하지 않습니다.
구문
@absolute_pathname/sp_add_trigger.sql
sp_change_trigger.sql
sp_change_trigger.sql을 사용하여 sp_add_trigger.sql로 생성된 WHEN 절의 SharePlex 사용자 이름을 대체할 수 있습니다. 현재 SharePlex 사용자 이름과 새 사용자 이름을 묻는 프롬프트가 표시됩니다. 이 스크립트를 실행하기 전에 Oracle에서 SharePlex 사용자를 변경합니다.
구문
@absolute_pathname/sp_change_trigger.sql
sp_remove_trigger.sql
sp_remove_trigger.sql을 사용하여 sp_add_trigger.sql로 생성된 WHEN 절을 제거할 수 있습니다. SharePlex 사용자 이름을 묻는 프롬프트를 표시한 후 모든 트리거에서 WHEN 절을 자동으로 제거합니다. 해당 테이블에 더 이상 복제하지 않을 경우 이 스크립트를 사용합니다. 트리거를 비활성화하지 않고 SharePlex를 계속 사용하여 해당 테이블에 복제하면 SharePlex가 데이터를 게시할 때 트리거가 실행되고 SharePlex에서 동기화 중단 오류가 발생합니다.
구문
@absolute_pathname/sp_remove_trigger.sql
PostgreSQL의 트리거 스크립트
PostgreSQL의 트리거 스크립트
설명
SharePlex는 복제를 방해하지 않도록 트리거를 관리하기 위해 SQL*Plus에서 실행할 수 있는 세 가지 대화형 스크립트를 제공합니다.
스크립트를 실행하기 전에 다음 사항을 검토합니다.
제한 사항: PostgreSQL 데이터베이스는 사용자와 스키마 간에 일대다 관계(즉, 한 명의 사용자와 여러 개의 스키마)이므로 이러한 스크립트는 사용자를 입력으로 사용하고 해당 사용자의 데이터베이스에서 모든 트리거를 활성화하거나 비활성화합니다.
지원되는 데이터베이스
지원되는 플랫폼의 PostgreSQL
sp_pg_add_trigger.sql
피어-투-피어 및 고가용성 구성과 같이 타겟 객체에서 트리거를 비활성화할 수 없는 경우 sp_pg_add_trigger.sql을 사용합니다. 이 스크립트는 Post 프로세스와 연결된 SharePlex PostgreSQL 사용자를 무시하지만 다른 모든 사용자에 대해서는 실행되도록 트리거를 변경합니다. 데이터베이스의 각 트리거에 다음 WHEN 절을 삽입합니다.
when user != ‘SharePlex_username’ EXECUTE { FUNCTION | PROCEDURE } function_name ( arguments )
스크립트는 SharePlex 사용자 이름을 묻는 프롬프트를 표시한 후 트리거를 수정합니다. SYS, SYSTEM 및 SCOTT에 속한 트리거는 수정하지 않습니다.
구문
\i absolute_pathname/sp_pg_add_trigger.sql
sp_pg_change_trigger.sql
sp_pg_change_trigger.sql을 사용하여 sp_pg_create_trigger.sql로 생성된 WHEN 절의 SharePlex 사용자 이름을 대체할 수 있습니다. 현재 SharePlex 사용자 이름과 새 사용자 이름을 묻는 프롬프트가 표시됩니다. 이 스크립트를 실행하기 전에 PostgreSQL에서 SharePlex 사용자를 변경합니다.
구문
\i absolute_pathname/sp_pg_change_trigger.sql
sp_pg_remove_trigger.sql
sp_pg_remove_trigger.sql을 사용하여 sp_pg_create_trigger.sql로 생성된 WHEN 절을 제거할 수 있습니다. SharePlex 사용자 이름을 묻는 프롬프트를 표시한 후 모든 트리거에서 WHEN 절을 자동으로 제거합니다. 해당 테이블에 더 이상 복제하지 않을 경우 이 스크립트를 사용합니다. 트리거를 비활성화하지 않고 SharePlex를 계속 사용하여 해당 테이블에 복제하면 SharePlex가 데이터를 게시할 때 트리거가 실행되고 SharePlex에서 동기화 중단 오류가 발생합니다.
구문
\i absolute_pathname/sp_pg_remove_trigger.sql