Skip to Main Content

Oracle Database Discussions

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!

Questions on Materialized View refresh

PeaceMongerSep 17 2021 — edited Sep 17 2021

DB versions : 19c, 12.1 

I am new to materialized views.

Question 1.
The table like structure (with rows) within the below mentioned MVs (any MVs) are created/populated only when the complete refresh is done by DBMS_MVIEW.REFRESH as shown below. I mean, I was always under the impression that the rows are populated when CREATE MATERIALIZED VIEW command is executed. Its not. Its only done when the MV is refreshed.
Last month, in production, after a DROP of MV + complete refresh, I found 2 indexes of the MV in UNUSABLE state. Still don't know the root cause of it.
So, when dropping and recreating MVs along with its indexes, is it safe to create the Indexes for a materialized view after the full refresh ?

Question 2.
When materialized views with REFRESH FAST clause are dropped and recreated, their materialized view logs need NOT have to be dropped and recreated as well. Right ? Anyone remember ?
I mean the MV Log of DEPT and EMP may be used by other Materialized views as well. Right ?

grant create materialized view to scott;

create materialized view log on dept
NOLOGGING
ENABLE ROW MOVEMENT
WITH ROWID
EXCLUDING NEW VALUES;
 
create materialized view log on emp
NOLOGGING
ENABLE ROW MOVEMENT
WITH ROWID
EXCLUDING NEW VALUES;
 

 
create materialized view mv3
BUILD DEFERRED
USING INDEX 
REFRESH FAST ON DEMAND
USING DEFAULT LOCAL ROLLBACK SEGMENT
USING ENFORCED CONSTRAINTS 
ENABLE QUERY REWRITE
as
select a.rowid erowid, b.rowid drowid, b.dname, a.*
from emp a, dept b
where a.deptno=b.deptno;

--- In real life, I have around 25 indexes like below for just one MV

CREATE INDEX mv3_idx1 ON mv3 (empno) ;

begin
DBMS_MVIEW.REFRESH 
(
LIST => 'MV3',  
METHOD => 'C',   
ATOMIC_REFRESH => FALSE
);
end;
/

Comments

Mark Williams
Answer

Hi,

What your NuGet link points to is the Oracle Data Provider for .NET Core (ODPC) which is different from the Oracle Provider for Entity Framework Core. The EF provider is a separate assembly which has not been released yet (as of this posting date). The EF assembly will require the ODPC assembly.

Regards,

Mark

Marked as Answer by c0036513-d01d-46af-8a69-d47e16c6c3ce · Sep 27 2020
3822801

When will the provider be released?

Alex Keh-Oracle

We're targeting November/December for the public beta.

JoLi

Hi Alex,

that is good to hear. We are currently evaluating Entity Framework Core in a product that runs on .net 4.7.2.

Will the new provider also work in full framework or is .net core required?

66aed53f-0401-48d6-bf2f-390fe8ae1d95

Are you guys still targeting December on initial Beta release? I am currently working on a brand new project rewrite of .net over Oracle with .net core and I hope to see if work nicely with EF Core. I would love to help with the beta testing if you guys are looking for any help there!

Alex Keh-Oracle

We're currently conducting an Oracle EF Core private beta with a small number of customers right now. If you want to join, send an email to us: dotnet_us (at) oracle.com

We still plan to have a wide public beta distribution in December. It will probably be late December.

user902614

Hi, Oracle.

Do you have any updates on releasing beta version of entity framework core support?  It is holding up several development activities for our company. We have both Oracle and SQL Server databases.

Thank you,

Alex Keh-Oracle

Public beta still looking like late December.

You can get access to the private beta by emailing the address in my previous post.

user12147365

Hi , Excuse me , Public beta is released ? or How long does it take?

a0d7b336-f6d4-420a-846e-f15c67c1f11b

Hello, we have been reached January/2019 and still don't have any information about this feature.

I searched all over the site and 18c released documentation as well, but couldn't find a mention about EF Core.

Can confirm if the EF Core feature has already been released in 18c?

Thanks.

Alex Keh-Oracle

The public beta is not yet available. However, the private beta is. If you would like to join the private beta and start using Oracle EF Core now, send an email to dotnet_us (at) oracle.com.

3866898

How long should I expect to wait after sending an email for beta access?

Alex Keh-Oracle

Usually, we can get you access within a couple of business days.

3878615

Any estimation on when the EF Core driver will be released ?

Abderrahman Cheddir

Hello, we're actually working on a .Net Core project targeting an oracle database using ODP.NET for .Net Core and we'd like to migrate to EF Core, any news about the public beta or the final release, will it be available on the second quarter of this year ?

Alex Keh-Oracle

After the public beta and hearing the feedback, Oracle will have a better idea of when production will be for Oracle EF Core. My best estimate right now for production remains second quarter this year.

The public beta should be available quite soon.

user3120128

Hi Alex.

I'm having troubles with private beta, where can I find documentation or where to report

thanks

Alex Keh-Oracle

The doc is enclosed in the NuGet beta package. You can email me if you encounter an issue.

3873836

If you rename the .nupkg file to .zip, you can just unzip it like a regular zip file, and find the documentation inside.

3889708
Mark Williams

Hello,

That is the link for the Oracle Data Provider for .NET Core product. I'm not sure if that is the specific product you mean. It is not, for example, the link for the Oracle EF Core provider product.

Regards,

Mark

3907530

Hi Guys

Any updates on the public beta date?  I've requested private beta access almost a week ago, but haven't heard anything.  Are you still targeting the second quarter for the full release?  Seeing as the public beta hasn't started, I'm thinking that date will be pushed also? 

Thanks

Justin

Alex Keh-Oracle

Hi Justin,

The beta invitation to you was sent out on Feb. 28. I'll resend it again.

3907530

I received it the second time around.  Thanks Alex!

d77098dd-c260-43de-803d-b1d7ecfaae8c

Hi Alex,

Would you mind send me the invitation for the oracle EF Core? Many thanks.

Best regards,

Hongjun

3914849

Hi Alex,

Could you please send me the invitaition for Oracle EF Core? Thanks.

Alex Keh-Oracle

If you would like to join the EF Core beta program, email dotnet_us (at) oracle.com.

e903bc85-56d0-4a47-aceb-52482873f525

Could you please tell us what the hold up is in getting at least the public beta version out?  It's way behind schedule now.

Alex Keh-Oracle

The ODP.NET EF Core Beta 3 is available on nuget.org.

https://www.nuget.org/packages/Oracle.EntityFrameworkCore/

1 - 29

Post Details

Added on Sep 17 2021
5 comments
543 views