Patent ID: 8495079

Claim:
A method of initializing a multi-tenant database, the method comprising the steps of: executing a trial of a legacy initialization tool on a trial database; capturing database statements issued by said legacy initialization tool during said step of executing a trial; capturing trial execution results of said database statements; executing said legacy initialization tool on a multi-tenant database; intercepting said database statements issued by said legacy initialization tool during said step of executing said legacy initialization tool on said multi-tenant database; and executing a mock of intercepted database statements corresponding to types of said database statements comprise DDL (data definition language) statements and DML (data modification language) statements, types of tables involved in said database statements, and said trial execution results of said database statements, wherein said step of executing said mock of said intercepted database statements further comprises the steps of: executing said database statement on said multi-tenant database when said intercepted database statement is a database statement for an application system table; modifying said DDL statement by adding a tenant ID column to said tenant shared table when said intercepted database statement is a DDL statement for a tenant shared table; obtaining a modified DDL statement when said intercepted database statement is said DDL statement for said tenant shared table; executing said modified DDL statement when said intercepted database statement is said DDL statement for said tenant shared table; refraining execution of said database statement when said intercepted database statement is said DML statement for said tenant shared table or said database statement for a tenant private table; and returning a trial execution result of said database statement to said legacy initialization tool, wherein at least one of the steps is carried out using a computer device.