Johnny B wrote:
Have a materialized view defined as refresh fast on commit:
CREATE MATERIALIZED VIEW mat_vw_name REFRESH FAST ON COMMIT WITH ROWID AS
Importing data to the table that is part of the mat view using SQL Loader. The query is taking a long time to process.
Do I need to perform anything after the bulk import is done? Is the mat view running after the bulk import?
Is there a way to see if any process is running in the background?
Thanks in advance.
using: Oracle Database 12c Enterprise Edition Release 220.127.116.11.0 - 64bit
The materialized view based on the table you are loading will be updated as part of the transaction that is loading the base table. If you wanted to see what was going on you could query for the session doing the data load and watch what is being executed (v$ views, OEM, TOAD, etc will all allow you to view what the session is doing).
Very weird, it was not showing locked items. Now it is working fine as it was before I incorporate the loader.
Thanks for your help.