Probelm creating snapshot [message #289404] |
Fri, 21 December 2007 05:06 |
marin.mandic
Messages: 5 Registered: December 2007
|
Junior Member |
|
|
I have problem when creating snapshot. My db link bibe is working.
It does not generate any error, it just do nothing.
this select works ok
SELECT * FROM mpglava@bibe;
but this create snapsohot does not
CREATE SNAPSHOT mv_mpglava_bibe
PCTFREE 15
STORAGE
(INITIAL 200K
NEXT 200K
PCTINCREASE 0)
TABLESPACE optimus
USING INDEX
PCTFREE 0
STORAGE
(INITIAL 200K
NEXT 200K
PCTINCREASE 0)
TABLESPACE optimus_i
REFRESH FORCE AS
SELECT * FROM mpglava@bibe;
|
|
|
|
|
|
Re: Probelm creating snapshot [message #289501 is a reply to message #289471] |
Sat, 22 December 2007 14:41 |
|
Barbara Boehmer
Messages: 9103 Registered: November 2002 Location: California, USA
|
Senior Member |
|
|
Just out of curiosity, do you have the same problem if you use "materialized view" instead of "snapshot"? Have you tried using tracing and checking the trace file and alert log, or using v$session_longops to try to find out what it is doing that is taking so long?
[Updated on: Sat, 22 December 2007 14:42] Report message to a moderator
|
|
|
|
|
|
|
Re: Probelm creating snapshot [message #290158 is a reply to message #290047] |
Thu, 27 December 2007 17:30 |
|
Barbara Boehmer
Messages: 9103 Registered: November 2002 Location: California, USA
|
Senior Member |
|
|
Are your select privileges granted explicitly or through a role? If you SET ROLE NONE, can you still run the select? You need to have the privilege granted explicitly, not through a role, in order to use it in a procedure or snapshot and other such things. However, I would expect that to product an error, rather than just seem to hang. I would try using v$session_longops to try to narrow down what is causing the bottleneck. Ordinarily, I would expect that it is waiting for a lock to be released or some such thing, but I would also expect that force would eliminate that problem.
[Updated on: Thu, 27 December 2007 17:33] Report message to a moderator
|
|
|
|