Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Question on Mat View refresh

Johnny BMar 30 2020 — edited Apr 20 2020

Hi all,

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.

Johnny

using: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit

This post has been answered by Johnny B on Apr 20 2020
Jump to Answer

Comments

Tubby

Johnny B wrote:

Hi all,

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.

Johnny

using: Oracle Database 12c Enterprise Edition Release 12.2.0.1.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).

Cheers,

Johnny B
Answer

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.

Marked as Answer by Johnny B · Sep 27 2020
1 - 2

Post Details

Added on Mar 30 2020
2 comments
146 views