(IJCSIS) International Journal of Computer Science and Information Security,Vol.
TABLE I. C
TableNameFAbase Dbname Serverid FAconstraintsStudent Year DB1 S1 1student year DB2 S2 2Table I. above consists of 5 main attributes that displays themain information about the fragmented relational or tables inthe distributed system:1.
Table Name: contains the name of the fragmented tables.2.
FAbase: contains the attribute where the tables wherefragmented according on.3.
Dbname: contains the name of the DB in the distributedservers where it handles the fragmented table.4.
Serverid: contains the server ID to refer to the server’sIP for the distributed DB.5.
FAconstraints: contains the value of the fragmentationbase attribute for each table.IV.
In distributed systems, database retrieval process isachieved on two main ways. The first way is to directly accessthe server that contains the required data. The secondtechnique is to distribute the searching query into thedistributed servers. In this research, we will be calling thesetwo techniques direct search and distributed searchrespectively.The system will take the decision of choosing thesearching method after analyzing and understanding the SQLstatement. The decision will be based on the existing of thefragmentation attribute via the query, in such case, system willchoose the direct search and. The existing of the fragmentationattribute in the query means that the system can get directlythe data from the distributed server(s) by getting the site of that server from the catalogue database, by referring to the
in that table. In this case, the performance will behigher since it reduces lots of time if it was using thedistributed search.From Figure 2. we can see the main architecture of theresearch framework. The processes can be categorized intofive main layers:
User interface, SQL Processing System Management Connections (JDBC) and Servers pool
Figure 2. Main framework and architectureFigure 3. Flowchart for database retreiving based on catalogue database
SQL Processing Search
In SQL processing step, several procedures will be done insidethe engine to process the SQL, which are:1.
Getting the SQL statement from the web-server
inthe interface, the user will write the SQL statement forretrieving certain data as a string.2.
(validation) does it start with“SELECT”, by using searching method for this word(select), if yes, continue to next step, else, give an errormessage and back to the main page .3.
Table Name Searching:
After getting the SQL, a tablesearching method will be called. Its main job is tosearch for the table's name inside the SQL statement(string).4.
checks if the name was mentioned(the SQL statement is correct so far), if yes, save thetable name and continue to next step, else, give an errormessage and back to the main page.5.
Retrieving Fragmentation Attribute (FA):
Get the FAstyle for that table from the catalogue database which issaved in the main server.6.
Another searching method will be calledto search for the FA style in the SQL statement.7.
If the FA was found in the SQL statement, thesystem will choose the
; else it will choosethe