You can write a procedure to upload records from table1 to table2 and create a timertask in java to schedule run of this procedure as per your needs.