Vous êtes sur la page 1sur 2

Barcode Machine and database Integration (Process 1)

Client Machine Barcode Punch Machine Attendance Data 2 4

Access Database
Attendance Data Local Machine

Oracle DB (Local)
Tables: - TBDBDATA, TBDBDATA_RAW, TBDBDATA_ERR

1 5 Diagram - 01

Main Database Server in SSL


Tables: - ATTENDANCE TABLE.

Step 1: - When Local database get data into link table from Access database, then it make a replica of the data into another table called TBDBDATA_RAW. The table TBDBDATA_RAW consider as unique by Attendance date and employee code. If more than one record found for an employee for same date in link table then all the data goes to another table (TBDBDATA_ERR) excluding first one. Step 2: - A user make request for available attendance information to the Main Database. Step 3: - Main Database Server executes the user request by getting available data from Local oracle database and send it back to the request user. Step 4: - When user save the attendance data as IN Time Information or Out Time Information the Main Database server save it into Attendance Table. Step 5: - The Main Database also sends an acknowledgement to the table TBDBDATA_RAW of local database. Comments: - In this process, The Main database handle the local database and all the data traffic. For each data the data transactions between two databases happen for two times like step 3 and step 5.

Barcode Machine and database Integration (Process 2)

Client Machine Barcode Punch Machine Attendance Data 2 3

Access Database
Attendance Data Local Machine

Oracle DB (Local)
Tables: - TBDBDATA,

Main Database Server in SSL


Tables: - ATTENDANCE TABLE, TBDBDATA_RAW, TBDBDATA_ERR

Diagram - 02 Step 1: - When Local database get data into link table from Access database, then it make a replica of the data into the table of Main Database called TBDBDATA_RAW. The table TBDBDATA_RAW consider as a unique by Attendance date and employee code. If more than one record found for an employee for same date in link table then all the data goes to the TBDBDATA_ERR table of Main Database excluding first one. Step 2: - A user make request for available attendance information to the Main Database. Step 3: - Main Database Server executes the user request by getting available data from TBDBDATA_RAW and send it back to the request user. Step 4: - When user save the attendance data as IN Time Information or Out Time Information the Main Database server save it into Attendance Table. And also sends an acknowledgement to the table TBDBDATA_RAW. Comments: - In this process local database push the attendance data to the Main Database. For each data the data transactions between two databases happen for a single time.