Anda di halaman 1dari 15

Easy Bank (SQL) Migration: Data Extraction Portion

Migration (Data Extraction Portion of Easy Banking System)


-

Platform: Microsoft SQL 2008 Server


Server23 (server of at the 23rd floor) where fresh master database
available
Mapping File (From reconcile team)
Easy data extraction script
PD data (from branch end)
Branch database (from branch with all the reports)
Make sure all legacy analysis remains okay while migration

Database Restore Process


1. Add a row into MIG_THIS_BRANCH(Server23) from ThisBranch(local)
[BRANCH_NAME] - must be filled
[UPLOAD_COMPANY]- must be filled, e.g. BD0010888
[END_OF_DAY] database must be day ended. put that day here. [YYYYMMDD]
[LEGACY_BRANCH_CODE]- must be filled, (4 digit), e.g. 0888
[JBL_LEGACY_BRANCH_CODE]- must be filled, (4 digit), e.g. 0888
[LEGACY_SYSTEM]- must be filled. values are exactly[Bexi/ Easy/ Flora/ IBS/
Jbsoft]
[START_CUSTOMER_NO] T24 Server Query Last Customer No
Customer ID must be filled
[END_CUSTOMER_NO] Migration Total Customer
Field Otherwise Field Start Customer No must
be filled.
[PO_ACC_NO] after opening the t24 a/c put that a/c no here
[PS_ACC_NO] After opening the T24 A/C put that A/C No here
[SDR_ACC_NO] After opening the T24 A/C put that A/C No here
[DD_ACC_NO] After opening the T24 A/C put that A/C No here

2. mig_accountType_category_map
scriptEasyLiveCateg
ory.sql

a. We need to run a script (scriptEasyLiveCategory.sql


so
far only for EASY/JBSOFT/IBS) in the branch database.For others branch we
have to do manually.
b. Prepare a excel sheet using these data according to the field format of the
table mig_accountType_category_map(Server32). Sample excel file,

mig_accountType_ca
tegory_map.xlsx

c. Here we define which product will go live or not.


d. In the excel sheet we cant keep any field as blank
[Legacy_system]- must be filled. values are [Bexi/ Easy/ Flora/ IBS/ Jbsoft]
[Branch_Code]- must be filled, (4 digit), e.g. 0888

1 | Page

Easy Bank (SQL) Migration: Data Extraction Portion


[BranchName]- must be filled
[AccType]
[Description]
[T24Category]=if category code not found put 0 (Zero) in it.
[IsProduct]=Y/N, Y=live, N=Not Live
[ProductType]=DP/LN/RM, DP=Deposit, LN=Loan, RM=Remittance

e. After completing the excel import it into


mig_accountType_category_map(Server32).
f. This is very import part.
3. mig_gl_coa_map
a. Prepare an excel file according to the mig_gl_coa_map(Server32) of
master field format using GL mapping file.
[BranchCode] = must be filled, (4 digit)
[BranchName] = must be filled
[Legacy_system]= must be filled, (Easy)
[GldetailheadCode]= must be filled, (Legacy GL Code)
[headTitle]= must be filled, (Legacy GL head name)
[Product_YN] = Y/N, Y=Live, N=Not live
[Module] = DP/LN/RM/IB, DP=Deposit, LN=Loan, RM=Remittance (IB=Inter Branch
(CIBTA), Known Fill Up Value
Blank - not fully clear
[coa_acc_no] = must be filled
[remarks] = not mandatory or put Legacy GL head name

b. Import the excel file into mig_gl_coa_map


4. mig_pl_coa_map
a. Prepare an excel file according to the mig_pl_coa_map(Server32) of
masterfield format using PL mapping file.
[Branch_Code]
= must be filled, (4 digit)
[Branch_Name]
= must be filled
[Legacy_system]
= must be filled, (Easy)
[gl_account_no]
= must be filled, (Legacy PL Code)
[gl_account_name]= must be filled, (Legacy PL head name)
[coa_account_no] = must be filled
[remarks]
= not mandatory or put Legacy GL head name

b. import the excel file into mig_pl_coa_map


5. Run script: ScriptEasybanking_CustomerGrouping.sql, at Branch Database

ScriptEasybanking_C
ustomerGrouping.sql

,
a. Customer Customer ID
Account , Customer ID FDR, SB account
, Account Customer ID
b. Before
running
this
script
create
table
MIG_CUSTOMER_GROUPING_INFOin
Branch
databaseusing
the
following script.
2 | Page

Easy Bank (SQL) Migration: Data Extraction Portion


CREATETABLE MIG_CUSTOMER_GROUPING_INFO(accountNo
varchar(20),SB_CD_accountNo varchar(20))

c. Output:
i. Mig_P_customerGen (Store Procedure)
ii. Last customer----script

LIST FBNK.CUSTOMER @ID BY-DSND @ID


LIST FBNK.CUSTOMER @ID WITH @ID GE 1000015581 BY-DSND @ID-For
Check.
d. Execute store procedure: Mig_P_customerGen, it has 3 parameters
i. @migration_date: the date of migration/ (LastShutdownDate
value of ThisBranch table of master database), format (YYYYMMDD)
ii. @customer_grouping_date: the date of migration/
(LastShutdownDate value of ThisBranch table of master database),
format (YYYYMMDD)
iii. @CustomerNo:T24 Sever Script Last Customer No
Value

e. Output:
i. MIG_Customer_Account (Table) Got-3117
ii. Check duplicate data of this table (SELECT CustomerNo,COUNT(*)AS

Duplicate FROM MIG_Customer_Account GROUP BY CustomerNo HAVING


COUNT(*)> 1)

6. Run script: scriptEasybanking(Customer) 28-03-2011.sqlat Branch

scriptEasybanking(C
ustomer) 28-03-2011.sql

Database
a. In the script you will see a checking portion. Before running the whole
script, run that portion. Total records no will be equal to
MIG_Customer_Account (Table).
b. Output:
i. Mig_P_CUSTOMER (Store procedure)
c. Execute the store procedure
d. Output
i. Mig_cus_tbl (Table) total no of records equal to
MIG_Customer_Account (Table)
ii. Mig_V_Cus (View) check all records have mnemonic, mnemonic
first letter must be character, check the customer type, and the
upload company, total no of records equal to
MIG_Customer_Account (Table)
scriptEasyBankingAc
count.sql

7. Run script: scriptEasyBankingAccount.sql at Branch Database


a. In the script you will see a checking portion. Before running the whole
script, run that portion. Total records will be greater than or equal to
MIG_Customer_Account (Table).
3 | Page

Easy Bank (SQL) Migration: Data Extraction Portion

b. Output:
i. Mig_acc_extracted (Table)
ii. Mig_V_Account_CD_SB_STD_FD_FC (View)
iii. Mig_V_AZ_FDR_LE12M (View)
iv. Mig_V_AZ_FDR_GT12M (View)
v. Mig_V_ACCOUNT_FD_INT_LIQ (View)
vi. Mig_V_Deposit_RD (View)
vii. Mig_V_ACI_RD (View)
viii. Mig_V_INT_ACCR_SB_STD_RD (View)
c. At the end of this script there is a verification portion by using that we can
verify the extracted data with the original data.
8. Run script: scriptInternalAccountCommon.sql at Branch Database

scriptInternalAccoun
tCommon.sql

a. Before running the script we must ensure that mapping file has been
properly imported to mig_gl_coa_mapandmig_pl_coa_map tables of
master database.
b. Output:
i. mig_int_acc_list (Table)
ii. mig_internal_account (Table)
iii. Mig_V_AC_INTERNAL (View)
9. Run script: scriptEasyBankingStockEntryFinal.sql at Branch Database

scriptEasyBankingSto
ckEntryFinal.sql

a. Output:
i. Mig_P_Stock_Entry (Store Procedure)
b. Execute the store procedure
i. It has 1 (one) parameter, @inoutdate=migration date
c. Output:
i. mig_stock_entry (Table)
ii. MIG_V_STOCK_ENTRY (View)
iii. Mig_V_Cheque_Issue (View) not uploaded
10.Run script: scripEeasyBankingStockRemitence.sql at Branch Database
a. Output:
i. mig_stock_remitence (Table)
ii. MIG_V_CHEQUE_ISSUE_REMITENCE (View) not uploaded
iii. MIG_V_PO_PS_SDR_outstanding (View)
iv. MIG_V_CHEQUE_ISSUE_FINAL (View) uploaded
b. ,
Mig_V_Cheque_Issue MIG_V_CHEQUE_ISSUE_REMITENCE View
Structure

data

DMD

Upload

scripEeasyBankingStockRemitence.sql Mig_V_Cheque_Is
4 | Page

Easy Bank (SQL) Migration: Data Extraction Portion

sue MIG_V_CHEQUE_ISSUE_REMITENCE
View
MIG_V_CHEQUE_ISSUE_FINAL
View

Insert
MIG_V_CHEQUE_ISSUE_FINAL data upload
11.MIG_LOAN_COA(Server23) of master database

data

EASY.PRODUCT_LIS
T.sql

Data

a. First run script EASY.PRODUCT_LIST.sql

MIG_LOAN_COA.xls
x

Data
Excel sheet
MIG_LOAN_COAtable import
12.Limit category list not clear to me. table was not found
13.MIG_LOAN_COA_DETAILS(Server23) of master database
Now update MIG_LOAN_COA using following script(prerequisite: mig_gl_coa_map
table have to be updated)
Legacy System
Easy Banking

Attached Script
EASY.UPDATE.sql

14.Run script: EASY.MIG_LIMIT_MAPPING.sql at Branch Database


Then run the following scripts individually branch-wise which will create
MIG_LIMIT_MAPPING table.
Legacy System
Easy Banking

Attached Script
EASY.MIG_LIMIT_MAPPING.sql

OUTPUT
MIG_LIMIT_MAPPING
(Table)

15.Run script: EASY.LIMIT.sql at Branch Database


Then run the following scripts to generate Limit related views
Legac
y
Syste
m

Attached Script

Output View

Related DMD

5 | Page

Easy Bank (SQL) Migration: Data Extraction Portion

Easy
Bankin
g

EASY.LIMIT.sql

MIG_INV_HEAD_PARENT_LI
MIT
MIG_INV_PARENT_LIMIT
MIG_INV_CHILD_LIMIT

JBL.LIMIT.HEAD.PAR.
0020

16.Run script: EASY.LIMIT.sql at Branch Database


Then run the following scripts to generate Collateral related views
Legac
y
Syste
m
Easy
Bankin
g

Attached Script

EASY.COLLATERAL.sql

Output View

Related DMD

MIG_INV_COLLATERAL_RIG
HT
MIG_INV_COLLATERAL

JBL.COLL.RIGHT.002
0
JBL.COLLATERAL.002
0

17.Run script: EASY.ACC MOD LOAN.sql at Branch Database


Then run the following scripts to generate all the liquidation account and loan
account. (Change Date)
Legac
y
Syste
m
Easy
Bankin
g

Attached Script

Output View

Related DMD

EASY.ACC MOD LOAN.sql

MIG_INV_STAFF_LOAN_INT
_LIQ_ACC
MIG_INV_LOAN_ACCOUNT
MIG_INV_ADI

JBL.STAFF.IN.0020
JBL.ACCOUNT.CC.00
20
JBL.ADI.0020

18.PD Upload
a. not completed
19.Run script: EASY.BALANCE.sql at Branch Database
Now run the following script to generate financial data
Legac
y
Syste
m

Attached Script

Output View

Related DMD

6 | Page

Easy Bank (SQL) Migration: Data Extraction Portion

Easy
Bankin
g

EASY.BALANCE.sql

MIG_INV_LOAN_ACC_BAL
MIG_INV_LOAN_INTERNAL
_ACC_BAL
MIG_INV_PD_CC_OD

JBL.FT.BAL.0020
JBL.PD.CAP.0020
JBL.PD.SETT.AC.CHN
G.0020
JBL.PD.RATE.CHNG

20.Run script: sriptEasyBankingBalanceAll.sql at Branch Database


sriptEasyBankingBala
nceAll.sql

a. Output
i. MIG_BAL_RET_ALL (Table)
ii. MIG_V_BAL_RET_ALL (View)
21.Run script: scriptEasyBankingFD_Reconcile.sql at Branch Database
scriptEasyBankingFD
_Reconcile.sql

a. difference zero
b. FDR Balance Recon FDR Data Recon
22.Run script: scriptEasybankingReconcileInfo.sqlat Branch Database

scriptEasybankingRe
concileInfo.sql

7 | Page

Easy Bank (SQL) Migration: Data Extraction Portion

Master Database Import Process (Server23 to Local Computer)

1. (Local) Expand Databases> then expand System Databases> Right click


master>Tasks>Import data

8 | Page

Easy Bank (SQL) Migration: Data Extraction Portion

2. Click Next

9 | Page

Easy Bank (SQL) Migration: Data Extraction Portion

3. Here (Choose a data source), Data source: SQL Server Native Client 10.0,
Server Name: 172.17.23.11, Click User SQL Server Authentication, User
name: sa, Password: 123, Database: master

10 | P a g e

Easy Bank (SQL) Migration: Data Extraction Portion

4. Here (Choose a Destination), Data source: SQL Server Native Client 10.0,
Server Name: (local_pc_name), Click Use Windows Authentication/User
SQL Server Authentication, For User SQL Server Authentication mode
you have to provide the User name and Password, Database: master

11 | P a g e

Easy Bank (SQL) Migration: Data Extraction Portion

5. Click Next.

12 | P a g e

Easy Bank (SQL) Migration: Data Extraction Portion

6. Now click Source. Here we will import only the tables. Views will be
excluded.
7. Click Next

13 | P a g e

Easy Bank (SQL) Migration: Data Extraction Portion

8. Click Finish

14 | P a g e

Easy Bank (SQL) Migration: Data Extraction Portion

9. Wait until completes.


10.The end

15 | P a g e