Materialized Views Fail
Hello,
I have been trying to create some MV and I am able to create in our clone TEST DB
but when I create in production they continue to fail with fail to commit.
They won't create in Enterprise Manager or with SQLPLUS.
CREATE MATERIALIZED VIEW CUSTOM.SCUFS_DELIVERIES_MV
TABLESPACE TABLES
PCTUSED 40
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 1M
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
FREELISTS 1
FREELIST GROUPS 1
BUFFER_POOL DEFAULT
NOCACHE
LOGGING
NOPARALLEL
BUILD IMMEDIATE
REFRESH COMPLETE
START WITH TO_DATE('13-May-2010 01:00:00','dd-mon-yyyy hh24:mi:ss')
NEXT trunc(sysdate+1) + 1/24
WITH PRIMARY KEY
AS
SELECT ALL
z.DELIVERY_STORE_CD,
s.FINAL_DT,
SUM ((sl.QTY * sl.UNIT_PRC) * decode(s.ord_tp_cd,’CRM’,-1,1)) FINAL_DELIVERIES
FROM SO s, SO_LN sl, ZONE z
WHERE (s.STAT_CD = 'F' AND sl.VOID_FLAG = 'N'
AND s.FINAL_DT BETWEEN ADD_MONTHS (TRUNC (SYSDATE - 1), -6)
AND TRUNC (SYSDATE - 1)
AND s.ORD_TP_CD IN ('SAL', 'CRM', 'EEX')
AND s.PU_DEL = 'D')
AND ( (s.SHIP_TO_ZONE_CD = z.ZONE_CD)
AND (s.DEL_DOC_NUM = sl.DEL_DOC_NUM))
GROUP BY z.DELIVERY_STORE_CD, s.FINAL_DT;
CREATE UNIQUE INDEX CUSTOM.SCUFS_DELIVERIES_MV_U1 ON CUSTOM.SCUFS_DELIVERIES_MV
(DELIVERY_STORE_CD, FINAL_DT)
LOGGING
TABLESPACE INDEXES
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 1M
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
FREELISTS 1
FREELIST GROUPS 1
BUFFER_POOL DEFAULT
NOPARALLEL;
SUM ((sl.QTY * sl.UNIT_PRC) * decode(s.ord_tp_cd,’CRM’,-1,1)) FINAL_DELIVERIES
ERROR at line 29:
ORA-00911: invalid character
SUM ((sl.QTY * sl.UNIT_PRC) * decode(s.ord_tp_cd,’CRM’,-1,1)) FINAL_DELIVERIES
SUM ((sl.QTY * sl.UNIT_PRC) * decode(s.ord_tp_cd,'CRM',-1,1)) FINAL_DELIVERIESIs this the same you've used to create it in Test?
Did you try after correcting the quotes?
-Anantha
Similar Messages
-
Create materialized view failed!
I want to create a mv from a table which does not contain primary key constraint,but failed. why?
SQL> Create Table tb_test01
2 (
3 Id Number,
4 Name Varchar2(1024)
5 );
Table created.
SQL>
SQL> Create Materialized View Log On tb_test01
2 With Sequence,Rowid(Id,Name)
3 Including New Values;
Materialized view log created.
SQL> Create Materialized View mv_tb_test01
2 Refresh Fast On Commit
3 As
4 Select * From tb_test01;
Select * From tb_test01
ERROR at line 4:
ORA-00604: error occurred at recursive SQL level 1
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at line 7
ORA-12014: table 'TB_TEST01' does not contain a primary key constraint12014, 00000, "table '%s' does not contain a primary key constraint"
// *Cause: The CREATE MATERIALIZED VIEW LOG command was issued with the
// WITH PRIMARY KEY option and the master table did not contain
// a primary key constraint or the constraint was disabled.
// *Action: Reissue the command using only the WITH ROWID option, create a
// primary key constraint on the master table, or enable an existing
// primary key constraint. -
Refresh FAST for Materialized View failed after Partition Operation
Dear all,
I have created a Materialized View having a simple join between a Dimension and Fact Table of a Datawarehouse. The MV is REFRESH FAST ON DEMAND.
However, when a Partition Maintenance Operation (PMOP) was performed on the Master Tables, the MV failed to Refresh giving a ORA-32313 error.
As suggested on one of the troubleshooting websites, we did a complete refresh of the MV and fixed it temporarily. However, I would like to know the exact cause for this and would like to have a permanent fix for the same.
Can the DBA for this Database provide me the answers or are there some standard troubleshooting steps for the same?
Please let me know.
Best,
KetanHello Maurice,
Here are the answers to your questions.
1) Database is Oracle 9i.
2) We have a stored procedure to refresh the MV. The command is dbms_mview.refresh('SALES_FACT_MV','f'). It was working fine daily. Only after a PMOP was done on the Master Tables, it failed to refresh. We have also created indexes on some columns of the MV for performance improvement. We are getting a very good improvement.
3) We have MV logs for both Master Tables to store the incremental values.
4) We are not able to get the output from DBMS_MVIEW.EXPLAIN_MVIEW since this can be done only by the DBA. WIll update you once I have the info.
5) Same as Point 2.
Let me know if you need any further info.
Thanks, Ketan -
Create materialized View fails with "table or view does not exist"
DB: 10.2.0.4
OS: Win 2003
Hi,
Here in my tests, i have 2 databases (A(source) and B(backup)), and i am trying to create an mview in database B to replicate data from one test table from database A, only for test purpose. I'm getting the error "table or view does not exist" when i try to create a mview with REFRESH FAST. Here is my code:
CREATE MATERIALIZED VIEW TESTES.TAB_TESTES_REPLIC_MVIEW_02
REFRESH FAST
START WITH TO_DATE('21/02/2012 18:50:00', 'DD/MM/YYYY HH24:MI:SS')
NEXT SYSDATE + 1/24/60
WITH PRIMARY KEY
AS SELECT REGISTRO1,
REGISTRO2
FROM TESTES.TAB_TESTES_REPLIC_MVIEW_02@DB_LINK_ORA10;
The dblink is workig fine(dblink user has select privilege on TESTES.TAB_TESTES_REPLIC_MVIEW_02), and i have created the mview log on database A.
Where is my mistake.
Thanks a lot.
Edited by: Fabricio_Jorge on 21/02/2012 19:06I found the solution.
I had to grant SELECT on the mview log. The name is avaiable in DBA_MVIEW_LOGS -
Refreshing materialized view fails
Hi,
I'm trying to refresh a materialized view. I've set up everything according to the documentation but when I try to do a refresh of the MV I get an end-of-file on communication channel. I know there is not a single cause of this error but maybe someone has an idea. The statement is:
CALL DBMS_MVIEW.REFRESH ('ismart_user.psis_images', '?');
The output of sql*plus:
list => 'ismart_user.psis_images',
ERROR at line 3:
ORA-03113: end-of-file on communication channel
The mv table is defined as:
PSIS_IMAGE_ID NOT NULL NUMBER
PSIS_IMAGE ORDSYS.ORDIMAGE
PSIS_THUMBNAIL ORDSYS.ORDIMAGE
PSIS_IMAGE_NAME VARCHAR2(50)
PSIS_IMAGE_WIDTH NUMBER
PSIS_IMAGE_HEIGHTN NUMBER
There are about 50 other table (also with ORDSYS.ORDIMAGE columns) which don't give any problem, only this single table. (FYI: the table is empty).
What can be the cause of the end-of-file on comm channel error?There are many reasons for this error. I suggest you check for related docs on Metalink.
-
Create a materialized view :-
How do I create a materialized view on a view ,so that it will refresh automatically on every commit in base table where the view having more that 9 function ?
Read Materialized View Refresh for complete information.
For a Jist:
Refresh Mode Description
ON COMMIT
Refresh occurs automatically when a transaction that modified one of the materialized view's detail tables commits. This can be specified as long as the materialized view is fast refreshable (in other words, not complex). The ON COMMIT privilege is necessary to use this mode.
ON DEMAND
Refresh occurs when a user manually executes one of the available refresh procedures contained in the DBMS_MVIEW package (REFRESH, REFRESH_ALL_MVIEWS, REFRESH_DEPENDENT).
When a materialized view is maintained using the ON COMMIT method, the time required to complete the commit may be slightly longer than usual. This is because the refresh operation is performed as part of the commit process. Therefore this method may not be suitable if many users are concurrently changing the tables upon which the materialized view is based.
If you anticipate performing insert, update or delete operations on tables referenced by a materialized view concurrently with the refresh of that materialized view, and that materialized view includes joins and aggregation, Oracle recommends you use ON COMMIT fast refresh rather than ON DEMAND fast refresh.
If you think the materialized view did not refresh, check the alert log or trace file.
If a materialized view fails during refresh at COMMIT time, you must explicitly invoke the refresh procedure using the DBMS_MVIEW package after addressing the errors specified in the trace files. Until this is done, the materialized view will no longer be refreshed automatically at commit time. -
Oracle Materialized View replication
I am perplexed by the fact that I have a slave sight full of MV's and a refresh group created to refresh with the Master site.
When I refresh, however, the master site updates all of the tables (MV's) except one within my refresh group and all the changes I make on the MV site replicates to the Master site including this ONE MV.
Where the problem lies is that the one MV does not accept any changes from the Master??
Help!!Hello,
I'm sorry to answer you so late.
I could find an interesting Notes on My Oracle Support which gives a solution to this problem.
Please, have a look on the following Notes:
Complete refresh of a materialized view fails with ORA-02266 [ID 270456.1]In fact, you may have to add another MV to the Refresh Group so as to avoid the Truncate operation during the Refresh.
If possible, you may also try a Fast Refresh (there's no Truncate in this case), but you'll need MV Log.
Hope this help.
Best regards,
Jean-Valentin
Edited by: Lubiez Jean-Valentin on May 19, 2010 11:44 PM -
Hello All,
I intend to use a materialized view , to develop a report.
I have set this view to do a complete refresh every nigth. My concern is, if for some reason the materialized view fails to refresh, the resulting report will not have the correct data.
How will I know if a materialized view refresh encountered an exception, and if so can I take any resulting action.
Thanks
PHKThe "automated notification system" will be the fact that if there is a failure, a message will be written to the alert log. As Dan already mentioned, monitoring the alert log is going to be something every DBA is going to need to do regardless-- this is just one more thing that may generate an error in the alert log.
If a job in DBA_JOBS fails, Oracle automatically retries it up to 16 times at geometrically increasing intervals (1 second, 2 seconds, 4 seconds, 8 seconds, 16 seconds, etc).
Realistically, though, if a failure occurred, it is very likely that retrying will do no good and may cause other problems if there are other jobs running at the same time. Most problems that you would normally encounter doing this sort of refresh would require the DBA to do something to resolve the issue-- you wouldn't want Oracle to keep retrying if the problem were that a tablespace were out of disk space, for example, you'd want the alert log monitor to wake up the DBA and let him or her resolve the problem and to have the DBA do the refresh explicitly (the back-off algorithm means that if it takes you an hour from the time of the first failure to get notified of and resolve the underlying problem, the refresh wouldn't run again for another hour, which is generally not ideal.
Justin -
Create materialized view is failing when refresh fast is used
version 10.2.0.4 on solaris
This statement is working fine
CREATE MATERIALIZED VIEW MVIEW1
TABLESPACE MIS_CURD01
BUILD IMMEDIATE
as
SELECT ACTIVITY_ID "ACTIVITY_ID",
ASSOC_ID "ASSOC_ID",
PIT_ROLE_CODE "PIT_ROLE_CODE",
PIT_BANK_CODE "PIT_BANK_CODE",
PIT_COST_CENTER "PIT_COST_CENTER",
RESP_ASSOC_IND "RESP_ASSOC_IND"
FROM TABLE1@DBLINK;
The statement with fast refresh is failing with this error message
ERROR at line 18:
ORA-12018: following error encountered during code generation for
"TABLE1"
ORA-00942: table or view does not exist
Here is the statement
CREATE MATERIALIZED VIEW MVIEW1
TABLESPACE MIS_CURD01
NOCACHE
LOGGING
NOCOMPRESS
NOPARALLEL
BUILD IMMEDIATE
USING INDEX TABLESPACE MIS_CURI01
REFRESH FAST ON DEMAND
WITH PRIMARY KEY
AS
SELECT ACTIVITY_ID "ACTIVITY_ID",
ASSOC_ID "ASSOC_ID",
PIT_ROLE_CODE "PIT_ROLE_CODE",
PIT_BANK_CODE "PIT_BANK_CODE",
PIT_COST_CENTER "PIT_COST_CENTER",
RESP_ASSOC_IND "RESP_ASSOC_IND"
FROM TABLE1@DBLINK;
Any idea what's going wrong here. Thanks for your help in advance.
Edited by: user11319873 on Jun 30, 2010 4:17 PMRefresh FAST requires that
a. An MV Log (Snapshot Log) be created on the source table
b. The user doing the refresh (i.e. the account that the DBLink uses) has SELECT privilege on the MV Log.
Hemant K Chitale -
Job for refreshing materialized view will be failed by manually is ok
Hello to all
I have created a read only materialized view and i have created a
stored procedure tha calls DBMS_MVIEW.REFRESH for refreshing the
materialized view by this script
CREATE MATERIALIZED VIEW "REZA"."T1_MV2"
REFRESH FAST WITH PRIMARY KEY
AS SELECT "T1"."ID" "ID","T1"."NAME" "NAME" FROM "REZA"."T1"@TEHRAN.COM "T1";
create or replace procedure refresh_mv
as
begin
DBMS_MVIEW.REFRESH (list=>'reza.t1_mv2',push_deferred_rpc=>false,method=>'f');
end;
and i have created a job for calling refresh_mv frequently by this script
DBMS_SCHEDULER.CREATE_JOB (
job_name => 'MV_JOB',
job_type => 'STORED_PROCEDURE',
job_action => 'reza.refresh_mv',
start_date => SYSTIMESTAMP,
repeat_interval => 'FREQ=SECONDLY;INTERVAL=90',
end_date => null
when i run this job by DBMS_SCHEDULER.RUN_JOB all thing is right and the materialized view will be update
and STATUS filed in ALL_SCHEDULER_JOB_LOG is SUCCEEDED for that execution
and it's completion duration is very short (+000000000 00:00:00.141000)
but when the job execute in its time (my mean is every 90 second) that will be failed and materialized view don't update
and STATUS filed in ALL_SCHEDULER_JOB_LOG is FAILED for this job
do you know what is wrong?
thanksthank all of you i myself found the problem that was because of DATABASE LINK i used fixed user database link
and then the problem refined -
Materialized view complete refresh fails with ora-02068
exec dbms_mview.refresh('WZ_PMS_INVOICE_DTLS','C');
BEGIN dbms_mview.refresh('WZ_PMS_INVOICE_DTLS','C'); END;
ERROR at line 1:
ORA-12008: error in materialized view refresh path
ORA-02068: following severe error from
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 820
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 877
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 858
ORA-06512: at line 1
Please help
RPi traced this CTAS
alter session set timed_statistics = true;
alter session set events '10046 trace name context forever, level 12';
create table pms_temp as select telephone_no from pms_invoice_dtls@cdrwest;
create table pms_temp as select telephone_no from pms_invoice_dtls@cdrwest
ERROR at line 1:
ORA-02068: following severe error from
and it generated a trace file in udump
the last few lines contain the following
=====================
PARSING IN CURSOR #11 len=283 dep=1 uid=0 oct=6 lid=0 tim=1277033874638425 hv=3948238198 ad='9f4a5a30'
update seg$ set type#=:4,blocks=:5,extents=:6,minexts=:7,maxexts=:8,extsize=:9,extpct=:10,user#=:11,iniexts=:12,lists=decode(:13, 65535, NULL, :13),groups=decode(:14, 65535, NULL, :14), cachehint=:15, hwmincr=:16, spare1=DECODE(:17,0,NULL,:17) where ts#=:1 and file#=:2 and block#=:3
END OF STMT
PARSE #11:c=0,e=17,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,tim=1277033874638420
BINDS #11:
bind 0: dty=2 mxl=22(22) mal=00 scl=00 pre=00 oacflg=08 oacfl2=1 size=24 offset=0
bfp=b781099c bln=24 avl=02 flg=05
value=3
bind 1: dty=2 mxl=22(22) mal=00 scl=00 pre=00 oacflg=08 oacfl2=1 size=24 offset=0
bfp=b7810978 bln=24 avl=03 flg=05
value=448
bind 2: dty=2 mxl=22(22) mal=00 scl=00 pre=00 oacflg=08 oacfl2=1 size=24 offset=0
bfp=b7810954 bln=24 avl=02 flg=05
value=22
bind 3: dty=2 mxl=22(22) mal=00 scl=00 pre=00 oacflg=08 oacfl2=1 size=24 offset=0
bfp=b7810930 bln=24 avl=02 flg=05
value=1
bind 4: dty=2 mxl=22(22) mal=00 scl=00 pre=00 oacflg=08 oacfl2=1 size=24 offset=0
bfp=b781090c bln=24 avl=06 flg=05
value=2147483645
bind 5: dty=2 mxl=22(22) mal=00 scl=00 pre=00 oacflg=08 oacfl2=1 size=24 offset=0
bfp=b78108e8 bln=24 avl=02 flg=05
value=64
bind 6: dty=2 mxl=22(22) mal=00 scl=00 pre=00 oacflg=08 oacfl2=1 size=24 offset=0
bfp=b78108c4 bln=24 avl=01 flg=05
value=0
bind 7: dty=2 mxl=22(22) mal=00 scl=00 pre=00 oacflg=08 oacfl2=1 size=24 offset=0
bfp=b78108a0 bln=24 avl=03 flg=05
value=2475
bind 8: dty=2 mxl=22(22) mal=00 scl=00 pre=00 oacflg=08 oacfl2=1 size=24 offset=0
bfp=b780fe9c bln=24 avl=02 flg=05
value=4
bind 9: dty=2 mxl=22(22) mal=00 scl=00 pre=00 oacflg=08 oacfl2=1 size=24 offset=0
bfp=b780fe78 bln=24 avl=01 flg=05
value=0
bind 10: (No oacdef for this bind)
bind 11: dty=2 mxl=22(22) mal=00 scl=00 pre=00 oacflg=08 oacfl2=1 size=24 offset=0
bfp=b780fe54 bln=24 avl=01 flg=05
value=0
bind 12: (No oacdef for this bind)
bind 13: dty=2 mxl=22(22) mal=00 scl=00 pre=00 oacflg=08 oacfl2=1 size=24 offset=0
bfp=b780fe30 bln=24 avl=01 flg=05
value=0
bind 14: dty=2 mxl=22(22) mal=00 scl=00 pre=00 oacflg=08 oacfl2=1 size=24 offset=0
bfp=b780fe0c bln=24 avl=05 flg=05
value=1642736
bind 15: dty=2 mxl=22(22) mal=00 scl=00 pre=00 oacflg=08 oacfl2=1 size=24 offset=0
bfp=b780fde8 bln=24 avl=04 flg=05
value=131073
bind 16: (No oacdef for this bind)
bind 17: dty=2 mxl=22(22) mal=00 scl=00 pre=00 oacflg=08 oacfl2=1 size=24 offset=0
bfp=b7810a08 bln=22 avl=03 flg=05
value=137
bind 18: dty=2 mxl=22(22) mal=00 scl=00 pre=00 oacflg=08 oacfl2=1 size=24 offset=0
bfp=b78109e4 bln=24 avl=02 flg=05
value=68
bind 19: dty=2 mxl=22(22) mal=00 scl=00 pre=00 oacflg=08 oacfl2=1 size=24 offset=0
bfp=b78109c0 bln=24 avl=04 flg=05
value=104537
EXEC #11:c=1000,e=1183,p=0,cr=5,cu=1,mis=0,r=1,dep=1,og=4,tim=1277033874639736
STAT #11 id=1 cnt=0 pid=0 pos=1 obj=0 op='UPDATE '
STAT #11 id=2 cnt=1 pid=1 pos=1 obj=14 op='TABLE ACCESS CLUSTER SEG$ '
STAT #11 id=3 cnt=1 pid=2 pos=1 obj=9 op='INDEX UNIQUE SCAN I_FILE#_BLOCK# '
EXEC #3:c=726889,e=217706310,p=7,cr=417,cu=409,mis=0,r=0,dep=0,og=4,tim=1277033875797114
ERROR #3:err=2068 tim=1919250001
*** 2011-06-10 13:16:24.262
XCTEND rlbk=0, rd_only=1
STAT #6 id=1 cnt=1 pid=0 pos=1 obj=475 op='TABLE ACCESS FULL CDC_SYSTEM$ ' -
Refresh fails on materialized view with CLOB data type
Hi,
Hope somebody can help me with this issue.
Some materialized views get status broken on refreshment, but only sometime. When I try to refresh them manually I get following message: "ORA-01400: cannot insert NULL into...". But I know for sure that there are no NULL values in the master table, MV and master tables are declared in the same way and all columns in master tables are NOT NULL columns. Another ting is that this error I get only on columns with data type CLOB.
Please, help!
/Juliahi,
I cant upgrade to 11g.Also i cant change the table structure.
Here is a sample of xmltype field content:
RECID XMLRECORD
D00009999 <row id='D100009999'><c2>10000</c2><c3>xxxxx</c3><c5>xxxx..
And i need to extract in the mv the data from c2, c3 and so on.
Still waiting for a hint.
Thank you. -
Materialized View Refresh fails
Hi Colleagues,
trying to refresh a MV using this:
SQL> exec DBMS_MVIEW.REFRESH ('HR_ASSIGNMENT_L1_L2_DATA_V_MV', 'C');
BEGIN DBMS_MVIEW.REFRESH ('HR_ASSIGNMENT_L1_L2_DATA_V_MV', 'C'); END;
ERROR at line 1:
ORA-12008: error in materialized view refresh path
ORA-00913: too many values
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2256
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2462
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2431
ORA-06512: at line 1
thanksHi,
kindly check the sql and list of columns (number) which mismatches and then carry out the refresh.
- Pavan Kumar N -
Fast refresh of materialized view
Hi All,
This is my first posting on this forum, so I hope I don't step on anyone's toes as I wade into a problem that I am experiencing.
I have a number of either join-only or single table aggregate materialized views that I have experienced problems with. All the views are setup for FAST REFRESH ON DEMAND but I'm hitting an error if I execute a COMPLETE refresh of the view when I've done an ALTER SESSION ENABLE PARALLEL DML. The error I get is:
ERROR at line 1:
ORA-30439: refresh of 'DTKTGT.CTNS_PER_HR_VOL_AGG_MV' failed because of ORA-32320: REFRESH FAST of "DTKTGT"."CTNS_PER_HR_VOL_AGG_MV" unsupported after cointainer table PMOPs
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 814
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 872
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 852
ORA-06512: at "DTKTGT.MV_REFRESH", line 21
ORA-06512: at line 2
Any help anyone could provide would be greatly appreciated as every now and then, a COMPLETE refresh is unavoidable and using the ENABLE PARALLEL DML makes the refresh run a lot faster than without the ALTER SESSION.
GaryThis forum only is for questions relating to the use of OLAP Option. I would post your question on the database forum.
Keith Laker
Oracle Data Warehouse Product Management
OLAP Blog: http://oracleOLAP.blogspot.com/
OLAP Wiki: http://wiki.oracle.com/page/Oracle+OLAP+Option
DM Blog: http://oracledmt.blogspot.com/
OWB Blog : http://blogs.oracle.com/warehousebuilder/
OWB Wiki : http://wiki.oracle.com/page/Oracle+Warehouse+Builder
DW on OTN : http://www.oracle.com/technology/products/bi/db/11g/index.html -
Materialized View to be run every 1 minute through dbms_scheduler
Hi,
I have a materialized view on 1 database which has its select statement going across a database link to numerous tables on another database.
The materialized view creates fine and when refreshed using dbms_snapshot refreshes without error.
My requirement is to automate this refresh for every minute. I have created a job through dbms_scheduler for the refresh to happen every minute but it fails with the error message
ORA-12008: error in materialized view refresh path
I have ctreated another materialized view on the database which does not go across a dblink and scheduled this though dbms_scheduler for every minute, this works fine.........
So it appears my issue is the selecting from tables across a dblink.
Does any one have any experience of this area, how to resolve this issue or maybe an alternative solution than dbms_scheduler?
Thanks in advance.
Mark.How is your database link defined?
Is it using a fixed user? i.e create database link .... identified by xxxxx
I think it needs to be to be used in a scheduled job.
Carl
Maybe you are looking for
-
I�m hoping someone may understand the cause of the LabVIEW crash I�m experiencing. LabVIEW 6.1 crashes and Windows 2000 says, "LabVIEW.exe has generated errors and will be closed by Windows" when I try to load an llb by clicking on the top-level vi f
-
Link between knvp and the data belonging to a pernr
Hello In table knvp there are link between customer and partners. These partners can be companies but also persons. Thje personnujmber is filled in case.of a person. Does anyone knows the links or the tables belonging to that pernr ( like the adddres
-
Tabale for Actual cost value for Process orders
Hi Friends From which table can we retrive the actual values relates to process orderwise, like actual material consumption cost, activites cost, overhead cost and other costs.
-
Is it possible to sort contacts by "company" rather than by first or last name?
-
Performance Issues - Stupid Question!?!
Below are the specs on my Mac Book. My question is regarding the speed of our Mac. When initially booting up the Mac to use it it can take anywhere from 60 to 95 seconds. When logging on to the internet Safari can take 30 to 45 seconds to completely