Client Copy
用SCC4可以創建一個空的client,但要如何填入資料到這個client 則必須使用 "client copy"
Client copy means "transferring client specific data" within the same instance(SID) 或 between different instances(SID).
Client copy can be performed with three different methods :
- Local client copy: Copy client within the same instance (SID). T-code SCCL
- Remote client copy: Copy client between different instances(SID). T-code SCC9
- Client Import/Export: Copy client between different instances(SID). T-code SCC8
前置作業
為避免資料不一致的狀況,在開始進行client copy之前
1) Disconnect and lock business users(SU10). End the session of active users (SM04).
2) Suspend all background jobs
Execute SE38 --> Fill program name with "BTCTRNS1" --> Execute
3) Target system 必須有足夠的表空間. (DB02)
4) 為避免不一致的狀況,在做client copy 時,最好不要有使用者連接到source client進行作業
5) rdisp/max_wprun_time parameter should be changed to 2000 second as a SAP recommendation . 雖然指定使用parallel processes and schedule job in the background, dialog processes 不會被使用.
Local Client Copy (T-CODE SCCL)
Scenario:
Source Instance & client --> QASCL000
Target Instance & client --> QASCL801
Step 1) 創建 new target client using SCC4. client 801 in QAS system. Log on this client (QASCL801) with user SAP*
Step 2) T-Code SCCL.
Select desired profile
Enter Source client
Enter Description
Step 3) 預設 Client Copy 執行時是single process. 分配 workload to parallel processes 可以縮短 copy client的時間
Select Goto from the menubar. Select Parallel Process.
Step 4) Schedule as background job.
Step 5) 用SCC3來查看client copy 的日誌. Status - "Successfully Completed" means client copy is completed.
Remote Client Copy(T-CODE SCC9)
Scenario:
Source Instance & client --> DEVCL101
Target Instance & client --> QASCL202
Step 1) 登入target system. 創建 new target client using SCC4. client 202 in QAS system. Log on this new client (QASCL202) with user SAP*
Step 2) T-Code SCC9.
Step 3) Fill the basic details as requirement.
Step 4) 預設 Client Copy 執行時是single process. 分配 workload to parallel processes 可以縮短 copy client的時間
Select Goto from the menubar. Select Parallel Process.
Step 5) Schedule the client copy in background
Step 6) 用SCC3來查看client copy 的日誌. Status - "Successfully Completed" means client copy is completed.
Client Import/Export
對容量較大的database, 建議使用 client import/export 替代 remote client copy.
Scenario:
Source Instance & client --> PRDCL300
Target Instance & client --> QASCL202
This technique always starts with client export step.
Note: 必須先確認/usr/sap/trans file system 有足夠的空間來進行the client export.
How to export client?
Step 1) 登入target system. 創建 new target client using SCC4. client 202 in QAS system.
Step 2) 開始做export. Export 是將 data files and co-files 從 source system's database 傳送到 target system's import buffer.
Log on to the source system/source client(PRD). Execute T-code SCC8.
Step 3) Select profile Choose target system.
Step 4) Schedule the export in background
Step 5) 當工作開始執行, data files and co-files of profiles from PRD system's database 傳送到 QAS system's import buffer.
Once we will import request in QAS only then it will be reflected in a database of QAS system.
Depending on the chosen export profile there can be up to 3 transport requests created:
Request PRDKO00175 will hold the cross-client data,
Request PRDKT00175 will hold the client dependent data,
Request PRDKX00175 will also hold some client dependent data.
如何 import the client?
Step 1) 登入新創建的 target client(QASCL202) using SAP*.
Step 2) T-Code: STMS_IMPORT
選擇由client export 產生的 transport requests. Import theses transport requests on the target client.
The transport requests should be imported 依下列順序:
Request PRDKO00175
Request PRDKT00175
Request PRDKX00175
系統會自動偵測到先前執行的client export transport requests and 自動做 import of the 3 requests.
The import logs 可以在 STMS_IMPORT 中觀察
Step 3) Post import phase: 當import完成後, 執行SCC7 來進行 post client import actions. Schedule the post import job in background.
Step 4) 用SCC3來查看Import log. The Client is successfully imported.
沒有留言:
張貼留言