SQL & PL/SQL :: MView Refresh Rate?

Feb 17, 2011

My MVIEW has a refresh rate (sysdate + 1 ) + 24/24 So how often it gets refreshed .

View 3 Replies


ADVERTISEMENT

Replication :: Check The Refresh Rate Of Existing MView?

Jan 28, 2010

hw can i check the refresh rate of existing Mview..

View 4 Replies View Related

MView In More Than One Refresh Group?

Sep 11, 2013

I have 5 MViews that I want to refresh in two occassions, every sundays and at the 1st of the month. I created a Refresh Group for the weekly and that work fine. But when I tried to created the second Refresh Group for the monthly I get a "materialized view is already in a refresh group".

You can only have a materialized view in one refresh group? What options to I have to refresh it in different intervals?

View 1 Replies View Related

SQL & PL/SQL :: MView Refresh - Cannot Extend Temp Table Space Error?

Sep 16, 2012

while trying to refresh an materialized view.. oracle throws cannot extend temp table space error.. while starting to refresh mivew temp table space is empty but once refresh started temp tablespace is growing and throws cannot extend temp tablespace error,,,size of temp tablesapce is 200GB..when i monter the session it does an sort event of an table(ammt_pol_ag_comm).. only 4% of this sort event is completing after that it throws error bu occupying the entire 200 GB tabespace.. MView script below..

CREATE materialized VIEW ammv_agent_pol_persis_emas
NoLogging
Parallel 10
Build Immediate
Refresh on demand
With Primary Key
AS

[code]...

View 13 Replies View Related

PL/SQL :: Getting Rate For Report?

Nov 8, 2012

This is my sample code:

create table myReport(
report_id integer,
product_class_id integer,
place_id integer,

[code]...

would like to get the rate for my report table base. The search for the rate first will be base on product_class_id, year and place_id, second if the report row match the product_class_id and year but not place_id it should get the default rate (in my rate table the place_id is null).

Last if the report row doesn't match any key the result should be zero.This is my result query, how can I do this query?
report_id     product_class_id     place_id     fy rate
1     1     1     2012   15
2     1     2     2011   6
3     1     3     2011   7
4     2     2     2012   18
5     2     5     2011   2
6     3     1     2012   0
7     4     1     2012   0

I try to do a function by don't know how to handle the default place_id (null)

View 2 Replies View Related

How To Calculate Redo Rate

Nov 14, 2006

how would I be able to calculate the Redo rate for using in the Required bandwidth Formula as seen below :

Required bandwidth Formula ((Redo rate in bytes per second / 0.7) * 8) / 1,000,000 = bandwidth in Mbps

Example: 385 KB/sec peak rate would require an available network bandwidth of at least

((394253 / 0.7) * 8) / 1,000,000 = 4.5 Mbps.

SOURCE OF FORMULA Network Bandwidth Implications of Oracle Data Guard...I'm using Oracle 10g

View 3 Replies View Related

SQL & PL/SQL :: Update Rate Using Having Count?

Dec 15, 2011

I need to update rate_per_hour for all projects having less than 5 employee to 500

here is the code what i wrote, but it updates all employee

set serveroutput on

declare
cursor rate_cur is
select * from project

[Code].....

View 8 Replies View Related

SQL & PL/SQL :: How To Get Department Wise Effective Rate

Oct 26, 2013

1) First Table

Id , Name , Eff_date
10 I1 15-APR-2013
20 I2 30-APR-2013
30 I3 26-May-2013
20 I4 10-SEP-2013
40 I5 10-sep-2013
40 I6 10-Oct-2013

2) Second Table

Eff date Rate
15-APR-2013 900
30-APR-2013 500
16-Sep-2013 400
05-Oct-2013 200

Q. How to get department wise effective rate?

View 3 Replies View Related

Replication :: Cannot Fast Refresh Truncated MV Even After Complete Refresh

Aug 14, 2010

I am getting ORA -32320 when I tried to fast fresh MVs that were truncated.I am able to complete refresh all MVs. However, some MVs are still giving me ORA-32320 when I try to do fast refresh even after complete refresh.

DBMS_MVIEW.EXPLAIN_PLAN says the MVIEW can be fast refreshed.

ERROR at line 1:
ORA-32320: REFRESH FAST of "dev"."Claim_line" unsupported after cointainer table
PMOPs
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 803
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 860
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 841
ORA-06512: at line 1

Quote:ORA-32320:
REFRESH FAST of "string"."string" unsupported after container table PMOPs Cause: A Partition Maintenance Operation (PMOP) has been performed on the materialized view, and no materialized view supports fast refersh after container table PMOPs. Action: Use REFRESH COMPLETE. Note: you can determine why your materialized view does not support fast refresh after PMOPs using the DBMS_MVIEW.EXPLAIN_MVIEW() API.

how to again make the MVs fast refreshable?

View 4 Replies View Related

Performance Tuning :: SQL Library Miss Rate?

Mar 18, 2011

in spotlight toad tool alarm appears about sql library miss rate 61,2%

View 15 Replies View Related

Backup & Recovery :: How To Determine The Rate Of Block Change

Aug 3, 2011

rdbms:oracle 10gr2
os:windows

with reference to

[URL]......

Quote:
A.2.2 Writing Backup Scripts for Disk and Tape Scenarios

As in the disk-only scenarios, the backup scripts in this section are categorized based on database workload. as stated very clearly it depends on the workload, more precisely the rate of block change. The size of the database can be found out based on formula from

[URL]....

so how would I know the rate of block change in order to know which script is suitable for me? I try to find out the rate of block change for the database based on change tracking file but based on

[URL].....

Quote:

The size of the change tracking file is proportional to the size of the database and the number of enabled threads of redo. The size is not related to the frequency of updates to the database. So how do I determine the rate of change? can the rate of block change based on size of archive logs?

I have the following information with me:

starting from 5/10/2011 0101
ending 5/18/2011 1114

this constitute to 9.5 days

F:
ecover_area>dir/w
1644 File(s) 27,942,770,176 bytes
2 Dir(s) 10,019,270,656 bytes free

average size of each file 27,942,770,176/1644
=16996818.841849148418491484184915

average size of each day's log = 27,942,770,176/9.5
=2941344229.0526315789473684210526
about 3G

If I have a database size of 92G, based on the archive log size of about 3G per day, can I conclude that a change of 3G/92G is considered as few block change?

View 1 Replies View Related

SQL & PL/SQL :: Mview Is Not Refreshing

Jun 4, 2012

I have a mview based on the database link. Mview created without the error and first time refrehment has been done properly in time, but after the first time it is not refreshing.

CREATE MATERIALIZED VIEW "SMSCHAT"."TBL_VOICECHAT_NEW1"
ORGANIZATION HEAP PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS NOLOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "SMSCHAT"
BUILD IMMEDIATE
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
[code].....

I have set the refreshment time for mview for 15 min with the following command

alter MATERIALIZED VIEW SMSCHAT.TBL_VOICECHAT_NEW1 REFRESH FAST START WITH sysdate+0 NEXT sysdate+(15/86400*60);

But now this mview is not refreshing and no jobs is showing in dba_jobs_running.

18:10:32 SQL> select LAST_DATE,LAST_SEC,THIS_DATE,THIS_SEC,NEXT_DATE,NEXT_SEC,TOTAL_TIME,BROKEN from dba_jobs where job=234;

LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE NEXT_SEC TOTAL_TIME B
-------------------- -------- -------------------- -------- -------------------- -------- ---------- -
04-jun-2012 17:47:13 17:47:13 04-jun-2012 18:02:13 18:02:13 34 N

View 11 Replies View Related

SQL & PL/SQL :: Date Format In MVIEW

Jan 11, 2011

I have created the snapshot as

CREATE SNAPSHOT EMPLOYEE_CRIS_MVIEW
PCTFREE 10
PCTUSED 40
MAXTRANS 255
TABLESPACE users
[code].........

The date format for the column join_dt is dd-mon-yyyy. But I want to modify the date format for this column as 'MM/DD/YYYY'.
For that I tried

ALTER snapshot EMPLOYEE_CRIS_MVIEW modify(TO_CHAR(join_dt,'MM/DD/YYYY'));

But I got the error

ERROR at line 1:
ORA-00902: invalid datatype

change the date format of the column of the snapshot with out dropping the snapshot.

View 2 Replies View Related

MVIEW - Getting Different Date Format In Two Schema?

Dec 14, 2010

We have created this Mview in two schemas i.e.MRD and MRDSEIn MRD schema we are getting the date format is MM/DD/YYYY where as in MRDSE we are getting the format DD-MON-YYYY. why we are getting the difference in date format in two schemas.We are not modifying any thing.

Here is DATAENCRYPTION Package.
ENCRYPTDATA Function.

We are getting this date format issue only for the ENCRYPETED date columns in MRDSE.
MM/DD/YYYY

We are not getting this date format issue for the ENCRYPETED date columns in MRD.
DD-MON-YYYY
CODECREATE OR REPLACE VIEW emp_join_vw (
   encr_emp_nr,
 
[code]...

View 2 Replies View Related

Mview Always Showing Status Needing Compile?

Sep 14, 2012

we have a routine which refreshes matrerilized view every day

dbms_mview.refresh('MVIEW_NAME>,'C') refresh ok but in user_ mviews always has status needing compile afterwarsd when compile isfine.

using 11.2.0.3

View 2 Replies View Related

Performance Tuning :: MVIEW Huge Temp Space?

Nov 23, 2011

I run a query, takes 20 minutes or so, I traced it and can see no more then 20-30 mb of temp space required in the plan.

I developed it for use in a materialized view, however when I create the mview with the sql, the temp space required grows until it maxxes out. I increased the existing 10gb to 50gb but still maxxed out. Took the SQL out, reran it, ran in 20 minutes barely scratching the temp, I ran a "create table as <select>" and same behaviour as the SQL, barely touched the temp as per the plan. So the temp space blolwing is unique to the mview create.

Im working with mviews years on several sites and have never seen this.

View 6 Replies View Related

SQL & PL/SQL :: PCT Is Not Enabled While Creating Mview / Though Base Tables Are Partitioned

Apr 4, 2011

I created a mv for one of the partitioned tables but on viewing the mv capabilities it still shows PCT is set to 'N'.

create materialized view MV_summary_SEC
refresh fast
start with sysdate
nEXT SYSDATE + 1/24
enable query rewrite as
[code]....

If i remove the sub query and create the mview like this,then PCT is enabled.

create materialized view MV_summary_SEC
refresh fast
start with sysdate
nEXT SYSDATE + 1/24
enable query rewrite as
select PERIOD , SUM(SUM_WEB_HITS)
from summary ,date_table
where PERIOD >= DATE_TABLE.CUR_DATE
group by PERIOD

Is it simply because oracle doesn't support PCT if the definition contains subqueries ?

View 4 Replies View Related

SQL & PL/SQL :: Possible To Hold Data From Select Statement Without Temp Table Or MView?

Apr 27, 2010

Is it possible to hold the data from select statement without temp table or materialized view or view in oracle?

because my DBA does not give access to create temp table.but we are selecting the records from 3 different sql statement.

Example: inserting in temp table

a) insert into temp select empno,ename,sal from emp where sal>4000
b) insert into temp select empno,ename,sal from emp where dept=40
c) insert into temp select empno,ename,sal from emp where comm is null

View 6 Replies View Related

Server Administration :: MView Not Refreshing Automatically At Time Interval Specified?

Sep 14, 2011

I have create a mview using a dblink with the refresh difference of every 10min. Suddenly I check the mview refresh date and time it was not getting refreshed automatically at the time interval specified.

drop MATERIALIZED view log on afccv.tbl_voicechat;
drop MATERIALIZED VIEW SMSCHAT.TBL_VOICECHAT_NEW1 ;
CREATE MATERIALIZED VIEW SMSCHAT.TBL_VOICECHAT_NEW1
ORGANIZATION HEAP PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS NOLOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)

[code]....

I am trying to find out what is the cause of not refreshing and also googled for the same. got some link also either not linked to same problem or not cleared.. Where should i checked regarding the error cause.

View 33 Replies View Related

How To Refresh A Database

Feb 16, 2011

How can we refresh a database ?

View 3 Replies View Related

How To Refresh Materialized Views

Aug 4, 2011

I have a created a materialized view which is based on a view on remote database. Now how do I refresh the view.

Materialized view is created by

CREATE MATERIALIZED VIEW mv_employee_name
AS SELECT EMPLID, EMPL_NAME
FROM VEMPDATA@REMOTEDB
WHERE REGION = 'US';

how the refersh happens or how do I specify the refresh clause.

REFRESH FAST option is looking for VIEW LOG on the master table but in this case its a remote view, so I cannot create any object on remote db.

View 1 Replies View Related

Materialized View Refresh?

Sep 10, 2010

A scheduler job is there to refresh some materialized views. All the views are run under single job name. Some mviews are not refreshing and those are not refreshing in the next run too.if we run those mviews manually then they are working fine from then . after some days those views which i told before are not refreshing and this happens frequently and i check the job_run_details views also and i am not seeing any errors in that.

View 6 Replies View Related

SQL & PL/SQL :: Refresh Views And Function?

Aug 17, 2010

Is there any function to refresh all views and functions in oracle.

View 4 Replies View Related

SQL & PL/SQL :: Refresh All Materialized Views?

Nov 28, 2011

I have n number of materialized views in my schema ..I want to refresh all M_views at once by using cursor

View 3 Replies View Related

SQL & PL/SQL :: Refresh View And Where Is Log Located?

Aug 12, 2013

How to refresh a view and where is a log located?

View 2 Replies View Related

Replication :: MV Refresh Error

Jan 28, 2010

During the MV refresh we are getting the following error and not able to fix it .

SQL> EXECUTE DBMS_MVIEW.REFRESH('EMP','F');
BEGIN DBMS_MVIEW.REFRESH('EMP','F'); END;

*
ERROR at line 1:
ORA-12008: error in materialized view refresh path
ORA-01400: cannot insert NULL into ("XYZ"."EMP"."DESCRIPTION")
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2251
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2457
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2426
ORA-06512: at line 1

The above column:- Emp.Description is a 'CLOB NOT NULL' .

We have created the MV using the below script

create materialized view EMP refresh on demand for update as select *from ABC.EMP@DBLINK;

View 2 Replies View Related

Oracle 6i Refresh Function

May 18, 2009

when i press the save button in my application the record will be saved but the value in my "display item" wont be refreshed. when i minimize the form designer and maximize it again, the "display item" is refreshed.

so i am searching for a "refresh" function

SYNCHRONIZE;
redisplay;

these functions doesn't work.

View 3 Replies View Related

SQL & PL/SQL :: Set MV As Incremental Refresh Option?

Aug 19, 2011

i already created metalized view

now i want to set MV as incremental refresh option?

is it possible to set this attribute after mv created..?

View 1 Replies View Related

MV-Scheduled Refresh Failure?

Jul 12, 2012

I have created a materialized view log on table testing_mview_rev in 11g:

SQL> CREATE MATERIALIZED VIEW LOG ON testing_mview_rev WITH ROWID;

Materialized view log created.

And a MV on it in 10g:

SQL> create materialized view testing_mview_1_rev REFRESH Force start with (sysdate) next (sysdate+1/1440) with rowid as select * from testing_mview_rev@S58_TO_S56;
Materialized view created.

Now this is suppose to automatically refresh itself every minute but refresh is failing. However manual refresh is working fine.

what I have missed here. is there any other way to schedule the MV to run every minute?

View 13 Replies View Related

Database Refresh In Different Version?

Aug 24, 2012

Oracle 11.2.0.1 and 11.2.0.3.

Can rman refresh database from 11.2.0.1 to 11.2.0.3?

In another words, my source database is 11.2.0.1, my target database is 11.2.0.3

I want to refresh target database from source database. Is it ok since version is different?

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved