CORE-1858

2 fixes to improve CORE-1858 performance issues under Oracle.
First, make the tables snapshot fastFetchQuery method use the table name.
Second, split TABLE and VIEW snapshots to remove the "all_registered_mviews" part from the TABLE snapshot SQL query.