ojdbc8.jar : C:\app\oracle\product\19.0.0\dbhome_1\jdbc\lib
xdb6.jar : C:\app\oracle\product\19.0.0\dbhome_1\rdbms\jlib
xmlparserv2.jar : C:\app\oracle\product\19.0.0\dbhome_1\lib
※ 「C:\app\oracle\product\19.0.0\dbhome_1」はOracleをインストールしたフォルダ
-- SYSTEM ユーザーで Oracleにログイン (PDBにログイン)
connect system/<password>@ORCLPDB
-- Replication 用の Oracleユーザーを作成
CREATE USER ORDER_ENTRY_REP IDENTIFIED BY <password>
DEFAULT TABLESPACE "USERS"
TEMPORARY TABLESPACE "TEMP"
;
-- 権限設定 ※システム権限
GRANT UNLIMITED TABLESPACE TO ORDER_ENTRY_REP;
GRANT CREATE SESSION TO ORDER_ENTRY_REP;
GRANT CREATE SEQUENCE TO ORDER_ENTRY_REP;
GRANT CREATE PROCEDURE TO ORDER_ENTRY_REP;
GRANT CREATE ANY TRIGGER TO ORDER_ENTRY_REP;
GRANT ADMINISTER DATABASE TRIGGER TO ORDER_ENTRY_REP;
GRANT CREATE TABLE TO ORDER_ENTRY_REP;
-- 権限設定 ※オブジェクト権限 : レプリケーション対象テーブルに対しての参照権限
GRANT SELECT ON ORDER_ENTRY.CUSTOMERS TO ORDER_ENTRY_REP;
GRANT SELECT ON ORDER_ENTRY.PRODUCTS TO ORDER_ENTRY_REP;
GRANT SELECT ON ORDER_ENTRY.ORDERS TO ORDER_ENTRY_REP;
C:\Windows\system32>cd C:\usr\sap\dataprovagent01\bin
C:\usr\sap\dataprovagent01\bin>agentcli.bat -configAgent
Configuring the Agent at the following location:
C:\usr\sap\dataprovagent01
Initializing DPAgent Configuration Tool
************************************************************
DPAgent Configuration Tool
************************************************************
1. Agent Status
2. Start or Stop Agent
:
************************************************************
Enter Option:2
************************************************************
Start or Stop Agent
************************************************************
1. Start Agent Using Service
2. Stop Agent Using Service
:
************************************************************
Enter Option:2
Stopping agent service. Command: sc stop SAP_HANA_SDI_Agent_Service_Daemon_SAPJPN101
Stop Service return code: 0
Agent was shutdown gracefully
Press Enter to continue...
<少し時間をおく。停止するまで時間が掛かります。>
************************************************************
Start or Stop Agent
************************************************************
1. Start Agent Using Service
2. Stop Agent Using Service
:
************************************************************
Enter Option:1
Agent service daemon location: C:\usr\sap\dataprovagent01\bin\DPAgentServiceDaemon.exe
Starting agent service. Command: sc start SAP_HANA_SDI_Agent_Service_Daemon_SAPJPN101
Start Service return code: 0
Press Enter to continue...
************************************************************
Start or Stop Agent
************************************************************
:
3. Ping Agent
:
************************************************************
Enter Option:3
Ping successful
Press Enter to continue...
************************************************************
Start or Stop Agent
************************************************************
:
q. Quit
b. Back
************************************************************
Enter Option:q
0
2022-08-25 23:27:19,607 [ERROR] DPFramework | Message.write []
- Exception while writing to output stream: Connection reset by peer:
socket write error (local port 53916 to address 127.0.0.1, remote port 5051 to address 127.0.0.1)
Agent service daemon location: C:\usr\sap\dataprovagent01\bin\DPAgentServiceDaemon.exe
C:\WINDOWS\system32>set DPA_INSTANCE=C:\usr\sap\dataprovagent01
C:\Windows\system32>cd C:\usr\sap\dataprovagent01\bin
C:\usr\sap\dataprovagent01\bin>agentcli.bat -configAgent
Configuring the Agent at the following location:
C:\usr\sap\dataprovagent01
Initializing DPAgent Configuration Tool
************************************************************
DPAgent Configuration Tool
************************************************************
:
7. SAP HANA Connection
:
************************************************************
Enter Option:7
************************************************************
SAP HANA Connection
************************************************************
1. Connect to SAP HANA Cloud via JDBC
2. Connect to SAP Data Warehouse Cloud via JDBC
:
************************************************************
Enter Option:2
************************************************************
Connect to SAP Data Warehouse Cloud via JDBC
************************************************************
Press "Enter" button to keep default or skip an optional setting.
If a setting cannot be skipped, that means it is required.
************************************************************
Enter Agent Name:
SAPJPN101
Enter Use encrypted JDBC connection[true]: Valid options: true|false
true
Enter Host Name:
23b3fd16-b480-xyz.xyz.xyz.hanacloud.ondemand.com
Enter Port Number:
443
Enter Use Proxy Server[false]: Valid options: true|false
false
Enter HANA User Name for Agent Messaging:
DWC_DP_MSG_SAPJPN101
Enter HANA User Password for Agent Messaging:
<コピーしたパスワードをペーストします。画面上は表示されません>
Enter HANA User Password for Agent Messaging: (confirm)
<コピーしたパスワードをペーストします。画面上は表示されません>
Do you want to save these connection settings? Any existing settings will be overwritten.
Enter [false] if you do not want to save or [true] to save.
true
Agent connection settings for SAP Data Warehouse Cloud have been saved.
Restart the agent for the changes to take effect.
Press Enter to continue...
************************************************************
SAP HANA Connection
************************************************************
:
b. Back
************************************************************
Enter Option:b
Initializing DPAgent Configuration Tool
************************************************************
DPAgent Configuration Tool
************************************************************
:
2. Start or Stop Agent
:
************************************************************
Enter Option:2
************************************************************
Start or Stop Agent
************************************************************
1. Start Agent Using Service
2. Stop Agent Using Service
:
************************************************************
Enter Option:2
Stopping agent service. Command: sc stop SAP_HANA_SDI_Agent_Service_Daemon_SAPJPN101
Stop Service return code: 0
Agent was shutdown gracefully
Press Enter to continue...
************************************************************
Start or Stop Agent
************************************************************
1. Start Agent Using Service
2. Stop Agent Using Service
:
************************************************************
Enter Option:1
Agent service daemon location: C:\usr\sap\dataprovagent01\bin\DPAgentServiceDaemon.exe
Starting agent service. Command: sc start SAP_HANA_SDI_Agent_Service_Daemon_SAPJPN101
Start Service return code: 0
Press Enter to continue...
************************************************************
Start or Stop Agent
************************************************************
:
3. Ping Agent
:
************************************************************
Enter Option:3
Ping successful
Press Enter to continue...
************************************************************
Start or Stop Agent
************************************************************
:
q. Quit
b. Back
************************************************************
Enter Option:q
0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
18 | |
13 | |
13 | |
8 | |
7 | |
5 | |
4 | |
4 | |
4 | |
4 |