Job with materialized view not working anymore

I'm on windows 2008 server with 10.2.0.4
I have a job that was running at every hour in the database that was refreshing some materialized view (refresh group) the sql query on that MV goes by dblink to another database.
Le atrget database had crashed last thursday since then the job on my first database do not execute.
I tried to start the job in TOAD but it does nothing.... Le last refresh date still on thurday.
Here are my script :
DECLARE
X NUMBER;
BEGIN
SYS.DBMS_JOB.SUBMIT
( job => X
,what => 'dbms_refresh.refresh(''"EREGROUPEMENT_TEMP"."VM_CANTOR_CREDENTIALS"'');'
,next_date => to_date('20-09-2010 13:17:21','dd/mm/yyyy hh24:mi:ss')
,interval => 'sysdate + 60/(60*24) '
,no_parse => FALSE
SYS.DBMS_OUTPUT.PUT_LINE('Job Number is: ' || to_char(x));
COMMIT;
END;
DECLARE
SnapArray SYS.DBMS_UTILITY.UNCL_ARRAY;
JobNo Number;
BEGIN
SnapArray(1) := 'EREGROUPEMENT_TEMP.VM_CANTOR_CREDENTIALS';
SnapArray(2) := 'EREGROUPEMENT_TEMP.VM_CANTOR_CV';
SnapArray(3) := 'EREGROUPEMENT_TEMP.VM_CANTOR_DIS_CV';
SnapArray(4) := 'EREGROUPEMENT_TEMP.VM_CANTOR_FINANCEMENT';
SnapArray(5) := 'EREGROUPEMENT_TEMP.VM_CANTOR_FORM_ETUD_STAG';
SnapArray(6) := 'EREGROUPEMENT_TEMP.VM_CANTOR_MOTS_CLES';
SnapArray(7) := 'EREGROUPEMENT_TEMP.VM_CANTOR_OBR_CV';
SnapArray(8) := 'EREGROUPEMENT_TEMP.VM_CANTOR_ORGANISME';
SnapArray(9) := 'EREGROUPEMENT_TEMP.VM_CANTOR_SCHA_CV';
SnapArray(10) := NULL;
SYS.DBMS_REFRESH.MAKE (
name => 'EREGROUPEMENT_TEMP.VM_CANTOR_CREDENTIALS'
,tab => SnapArray
,next_date => TO_DATE('01/01/4000 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
,interval => 'SYSDATE + 60/(60*24)'
,implicit_destroy => TRUE
,lax => TRUE
,job => 0
,rollback_seg => NULL
,push_deferred_rpc => TRUE
,refresh_after_errors => FALSE
,purge_option => 1
,parallelism => 0
,heap_size => 0
select job
into JobNo
from all_refresh
where rowner = 'EREGROUPEMENT_TEMP'
and rname = 'VM_CANTOR_CREDENTIALS';
SYS.DBMS_JOB.BROKEN(JobNo,TRUE);
Commit;
END;
Info on the MV :
Last Refresh 2010-09-16 17:39:25
Next Refresh SYSDATE + 60/(60*24)
Refresh Type FORCE
Refresh Mode Refresh Mode
Start With 2010-09-16 18:39:25
Do I have to refresh COMPLETE all the VIEWS MANUALLY and the recreate the refresh group or something wrong?

RUN Procedure
This procedure runs job JOB now. It runs it even if it is broken.
Running the job recomputes next_date. See view user_jobs.
Syntax
DBMS_JOB.RUN (
job IN BINARY_INTEGER,
force IN BOOLEAN DEFAULT FALSE);
Parameters
It only change the next_date but it won't run.
It tell me next date is in an hour but after an hour nothing has changed
Edited by: Jpmill on 20 sept. 2010 11:32

Similar Messages

  • Order by in MATERIALIZED VIEW not work successfully with first column (ID)

    Dears,
    I am trying to create a Materialized View as below:
    CREATE MATERIALIZED VIEW HR.MV_EMP
    PCTFREE 10
    MAXTRANS 255
    TABLESPACE users
    STORAGE (
    INITIAL 65536
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    BUILD IMMEDIATE
    REFRESH ON DEMAND
    AS
    SELECT *
    FROM employees
    where rownum < 5000 order by employee_id desc ;But while querying the MATERIALIZED VIEW, it did not work successfully as the data did not appear in the accurate order.
    I tried to create the same MATERIALIZED VIEW but order by another column (Column Date), it worked successfully and the data appeared in the accurate order.
    It means that MATERIALIZED VIEW not work successfully with the first column (id).
    Can you please help me in this ?
    Thanks & regards,,

    A few pointers :
    1. As has been pointed out, the ROWNUM has been incorrectly placed. ROWNUM values are assigned as rows are fetched from the source before the ORDER BY. You need to ORDER BY first (in a SubQuery) and then ROWNUM afterwards (outside the SubQuery).
    2. I wonder why you want only the last 5000 EMPLOYEE_IDs. What if Employee_ID 1 is still an active employee (he is the founder, first employee and CEO ?). There could be very many "low" EMPLOYEE_IDs that are still active.
    3. Logically I would expect some filter other than the ROWNUM ... ORDER BY to be used to select candidate rows. Then, an ORDER BY in the CREATE query would be unnecessary.
    4. When querying the Materialized View you must explicitly ORDER BY (irrespective of whether you did or did not do an ORDER BY in the CREATE ...)
    5. How do you expect to refresh the MV ? Will it always be a COMPLETE Refresh ? Remember that your "5000 employees" filter would likely exclude older employees at the next refresh. If you use some other filter, it should be consistent across all refreshs.
    Hemant K Chitale

  • Default Data Deduplication Optimisation job with "StopWhenSystemBusy" does not work correctly

    I have configured Data Deduplication on Windows Server 2012 R2 and enabled on a volume.
    Data Deduplication creates a default Optimisation task called "BackgroundOptimization".
    I have placed files on my volume, and started the job manually.  It succeeds but does nothing.  InPolicyFiles still shows zero.
    If I edit this job in Task Scheduler and remove the /backoff switch (StopWhenSystemBusy), then start the job manually again, it succeeds, and also incrememnts the InPolicyFiles.
    At the same time, the CPU and RAM on the server is fairly idle, with no users on the system.
    Is there a problem with the StopWhenSystemBusy?  Should we not use this parameter, and simply run the task out of business hours instead?  Has anyone seen this before?
    This happens on two Windows Server 2012 R2 servers, so is reproducable here.
    David

    Hi David,
    Please also try -Priority and -Memory with-StopWhenSystemBusy - set Priority to High and set a proper memory value such as 50% to see the result.
    If you have any feedback on our support, please send to [email protected]

  • Exports with Embeded TC not working anymore-v7.1

    Am I missing a settting?
    Recent upgrade to AME v7.1 and no longer get embeded TC with QT exports from PPro via AME (queue). ProRes 422 proxy...Match Seq Settings. Has been working before upgrade.
    I can get embedded TC thru direct export out of PPro v7.1...so something has changed? Or could be an AME preference? I had to trash preferences today...but exports from last week did not have embedded TC either.
    Any ideas?
    thanks!

    There is a known issue we are investigating. However, you can do one of the following in the mean time:
    1.    After importing the file in to AME: open the Export Settings dialog, close it, then export your sequence. The resulting file will have the correct timecode.
    2.    Go to Preference > General and turn off "Enable native Premiere Pro sequence import."

  • Autologin not working anymore with systemd, xfce, slim

    Hi,
    I recently upgraded my system to a full systemd setup and since then autologin to xfce with slim does not work anymore.
    I was previously running a systemd/initscripts system (updated to 31/07/2012) and things were working fine. Upon updating to current, autologin stopped working. Instead I am presented with the slim login screen. Once I put my username and password in xfce starts as normal.
    I searched these forums and others to find a solution but have not been successful so far.
    My .xinitrc:
    #!/bin/sh
    # ~/.xinitrc
    # Executed by startx (run your window manager from here)
    if [ -d /etc/X11/xinit/xinitrc.d ]; then
    for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
    done
    unset f
    fi
    # exec gnome-session
    # exec startkde
    exec startxfce4
    # ...or the Window Manager of your choice
    and my /etc/slim.conf
    # Path, X server and arguments (if needed)
    # Note: -xauth $authfile is automatically appended
    default_path /bin:/usr/bin:/usr/local/bin
    default_xserver /usr/bin/X
    xserver_arguments -nolisten tcp vt07
    # Commands for halt, login, etc.
    halt_cmd /sbin/shutdown -h now
    reboot_cmd /sbin/shutdown -r now
    console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
    #suspend_cmd /usr/sbin/suspend
    # Full path to the xauth binary
    xauth_path /usr/bin/xauth
    # Xauth file for server
    authfile /var/run/slim.auth
    # Activate numlock when slim starts. Valid values: on|off
    numlock on
    # Hide the mouse cursor (note: does not work with some WMs).
    # Valid values: true|false
    # hidecursor false
    # This command is executed after a succesful login.
    # you can place the %session and %theme variables
    # to handle launching of specific commands in .xinitrc
    # depending of chosen session and slim theme
    # NOTE: if your system does not have bash you need
    # to adjust the command according to your preferred shell,
    # i.e. for freebsd use:
    # login_cmd exec /bin/sh - ~/.xinitrc %session
    login_cmd exec /bin/bash -login ~/.xinitrc %session
    # Commands executed when starting and exiting a session.
    # They can be used for registering a X11 session with
    # sessreg. You can use the %user variable
    # sessionstart_cmd some command
    # sessionstop_cmd some command
    # Start in daemon mode. Valid values: yes | no
    # Note that this can be overriden by the command line
    # options "-d" and "-nodaemon"
    # daemon yes
    # Available sessions (first one is the default).
    # The current chosen session name is replaced in the login_cmd
    # above, so your login command can handle different sessions.
    # see the xinitrc.sample file shipped with slim sources
    sessions xfce4,icewm-session,wmaker,blackbox
    # Executed when pressing F11 (requires imagemagick)
    screenshot_cmd import -window root /slim.png
    # welcome message. Available variables: %host, %domain
    welcome_msg Welcome to %host
    # Session message. Prepended to the session name when pressing F1
    # session_msg Session:
    # shutdown / reboot messages
    shutdown_msg The system is halting...
    reboot_msg The system is rebooting...
    # default user, leave blank or remove this line
    # for avoid pre-loading the username.
    default_user laffi
    # Focus the password field on start when default_user is set
    # Set to "yes" to enable this feature
    #focus_password no
    # Automatically login the default user (without entering
    # the password. Set to "yes" to enable this feature
    auto_login yes
    # current theme, use comma separated list to specify a set to
    # randomly choose from
    current_theme default
    # Lock file
    lockfile /var/lock/slim.lock
    # Log file
    logfile /var/log/slim.log
    Any help will be much appreciated

    Hi,
    I recently upgraded my system to a full systemd setup and since then autologin to xfce with slim does not work anymore.
    I was previously running a systemd/initscripts system (updated to 31/07/2012) and things were working fine. Upon updating to current, autologin stopped working. Instead I am presented with the slim login screen. Once I put my username and password in xfce starts as normal.
    I searched these forums and others to find a solution but have not been successful so far.
    My .xinitrc:
    #!/bin/sh
    # ~/.xinitrc
    # Executed by startx (run your window manager from here)
    if [ -d /etc/X11/xinit/xinitrc.d ]; then
    for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
    done
    unset f
    fi
    # exec gnome-session
    # exec startkde
    exec startxfce4
    # ...or the Window Manager of your choice
    and my /etc/slim.conf
    # Path, X server and arguments (if needed)
    # Note: -xauth $authfile is automatically appended
    default_path /bin:/usr/bin:/usr/local/bin
    default_xserver /usr/bin/X
    xserver_arguments -nolisten tcp vt07
    # Commands for halt, login, etc.
    halt_cmd /sbin/shutdown -h now
    reboot_cmd /sbin/shutdown -r now
    console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
    #suspend_cmd /usr/sbin/suspend
    # Full path to the xauth binary
    xauth_path /usr/bin/xauth
    # Xauth file for server
    authfile /var/run/slim.auth
    # Activate numlock when slim starts. Valid values: on|off
    numlock on
    # Hide the mouse cursor (note: does not work with some WMs).
    # Valid values: true|false
    # hidecursor false
    # This command is executed after a succesful login.
    # you can place the %session and %theme variables
    # to handle launching of specific commands in .xinitrc
    # depending of chosen session and slim theme
    # NOTE: if your system does not have bash you need
    # to adjust the command according to your preferred shell,
    # i.e. for freebsd use:
    # login_cmd exec /bin/sh - ~/.xinitrc %session
    login_cmd exec /bin/bash -login ~/.xinitrc %session
    # Commands executed when starting and exiting a session.
    # They can be used for registering a X11 session with
    # sessreg. You can use the %user variable
    # sessionstart_cmd some command
    # sessionstop_cmd some command
    # Start in daemon mode. Valid values: yes | no
    # Note that this can be overriden by the command line
    # options "-d" and "-nodaemon"
    # daemon yes
    # Available sessions (first one is the default).
    # The current chosen session name is replaced in the login_cmd
    # above, so your login command can handle different sessions.
    # see the xinitrc.sample file shipped with slim sources
    sessions xfce4,icewm-session,wmaker,blackbox
    # Executed when pressing F11 (requires imagemagick)
    screenshot_cmd import -window root /slim.png
    # welcome message. Available variables: %host, %domain
    welcome_msg Welcome to %host
    # Session message. Prepended to the session name when pressing F1
    # session_msg Session:
    # shutdown / reboot messages
    shutdown_msg The system is halting...
    reboot_msg The system is rebooting...
    # default user, leave blank or remove this line
    # for avoid pre-loading the username.
    default_user laffi
    # Focus the password field on start when default_user is set
    # Set to "yes" to enable this feature
    #focus_password no
    # Automatically login the default user (without entering
    # the password. Set to "yes" to enable this feature
    auto_login yes
    # current theme, use comma separated list to specify a set to
    # randomly choose from
    current_theme default
    # Lock file
    lockfile /var/lock/slim.lock
    # Log file
    logfile /var/log/slim.log
    Any help will be much appreciated

  • Hi, my MacBook Air is not working anymore if it's not connected with the power cable. It's pretty new so I can't imagine that the battery is dead already. Why can't I use my MacBook Air without the power cable even though I charged it for hours?

    Hi, my MacBook Air is not working anymore if it's not connected with the power cable. It's pretty new so I can't imagine that the battery is dead already. Why can't I use my MacBook Air without the power cable even though I charged it for hours?

    Please take the Mac to  Apple store to have it checked out.
    Genius Bar reservation
    http://www.apple.com/retail/geniusbar/
    Best.

  • While updating my ipad to new software through itunes it got stuck and does not work anymore - it just displays the screen with symbols of itunes and the cable to connect to it - help - what should i do?

    while updating my ipad to new software through itunes it got stuck and does not work anymore - it just displays the screen with symbols of itunes and the cable to connect to it - help - what should i do?

    Disconnect the iPad, do a Reset [Hold the Home and Sleep/Wake buttons down together for 10 seconds or so (until the Apple logo appears) and then release. The screen will go blank and then power ON again in the normal way.] It is 'appsolutely' safe!, reconnect and follow the prompts.
    If that does not work then see here http://support.apple.com/kb/HT1808

  • My Google search autocomplete me in Firefox does not work anymore. However, it still works with Internet Explorer. How can I fix this so Google gives me search suggestions again?

    My Google search autocomplete me in Firefox does not work anymore. However, it still works with Internet Explorer. How can I fix this so Google gives me search suggestions again?

    Solution update: Disabled XULRunner 1.9.1 extension from Add-ons > Extensions. Problem solved.

  • HT1222 hello i have a problem with my fingerprint id its not working anymore like before his not recognised my finger anymore why ?

    hello i have a problem with my fingerprint id its not working anymore like before his not recognised my finger anymore why ?

    I have had to periodically delete and re-enter my fingerprint. The last update (7.1) may have improved that. You can delete by going to Settings > Touch ID & Passcode, enter your passcode and then tap "Turn Passcode Off" and then go back to the same area, put a passcode back on and then a fingerprint.

  • Have a new mac with OS X 10.9.5 and my CS4 is Not Working anymore. It says to Contact Adobe Support regarding the licence- but that Seems impossible. Any idea how to solve this?

    I Have a new mac book pro with OS X 10.9.5 and now my CS4 is Not Working anymore. It tells me to Contact Adobe Support regarding the licence - but that Seems impossible. Any idea how to solve this?

    Use the web chat and just be patient.
    Mylenium

  • Just updated my iPad with iOS 7 and now internet does not work anymore, how to fix if???? Desperate

    Just updated my iPad with iOS 7 and now internet does not work anymore, how to fix if???? Desperate

    Try resetting your iPad:
    Double click the Home button. Slide up with one finger on ALL your apps to close them.
    Then, Press the Sleep/Wake button + Home button and hold 15 seconds or until you see the Apple logo.
    This will reset your device without erasing data, apps or settings.

  • Hi there, I have a problem with my iPod Classic (from 2009). Everytime I connect it to my computer (Windows), iTunes does not work anymore. Music is automatically deleted on my iPod. Any suggestions please?

    Hi there, I have a problem with my iPod Classic (from 2009). Everytime I connect it to my computer (Windows), iTunes does not work anymore. Music is automatically deleted on my iPod. Any suggestions please?

    Thanks, for info, iPod Classic is a slower machine compared the Nano, unfortunately, if you read these discussions, majority of the freezes involved iTunes 10. Although if might be just slow and some impatient user just disconnect the iPod ands cause more problems. ( Yes I also did that but safely by doing a iPod Hard Reset, before disconnecting).
    Here is the Apple support article that may help you.
    http://support.apple.com/kb/TS1717
    or my usual solution for Windows Users.
    Antivirus has a tendency to freeze iTunes sync Operation with iPod Classic, causing a timeout, which corrupt your iPod filesystem, so when iTunes can't read the iPod, it is pointing to this problem. Other causes is when your iPod hardisk is dying, or your battery is dying causing hardisk crashes.
    My suggestion.
    Connect your iPod to the PC and run chkdsk, to fix any iPod diskerror, then disconnect it, after chkdsk complete.
    Disconnect your PC from Internet. (just to make sure no nasties creep into your system while you syncing.
    Stop the Antivirus program
    Connect your iPod to the PC, using a high speed USB 2.0 port at the back of your PC, do not use any USB Hub.
    When iTunes Open up, Restore your iPod please, this is for iTunes to map correctly, to fix the corrupted filesystem.
    When Restore complete, eject the iPod and reconnect again.
    Sync your ipod, preferably manually Manage in small batches and disconnect after every batch, to check that all is well.
    When all sync is complete, and iPod disconnected, start back your Antivirus and connect back the Internet.
    Good Luck!

  • Anyone had issues with on/off sleep button not working anymore

    Anyone had issues with on/off sleep button not working anymore?

    If there is Warranty or AppleCare make Genius reservation or set up Service and take or send to Apple for resolution. If no coverage, use virtual Lock Button, tap Settings App > General > Accessibility > Assistive Touch > ON > tap new white screen button > Device > Lock Screen. This can even turn OFF iPhone. To turn ON, connect iPhone to power, charger or USB of computer.

  • Materialized view not being used in the report

    I have had a materialized view (MV) for a particular report. Recently, the report definition has changed little bit, so the existing MV is not being used by the report anymore. I copied the code Discoverer's SQL Inspection and recreated the materialized view. But still it is not working. Obviously, I am missing something at the database level. Does anyone have any idea? The database is 9i and Discoverer is 9.0.2. Thank you!

    The SQL that you see from the Inspect SQL option will provide you with the SQL that Discoverer sends to the database. The database then may do a query rewrite to point to an available materialized view if available. This rewrite won't be seen from the inspect sql option. You need to check at the database level to verify if a query rewrite did in fact take place.
    You may want to check the section titled "Query Rewrite with Materialized Views" from Ch1 - "Introduction to the Optimizer" in the Oracle9i Database Performance Tuning Guide and Reference, Release 2 (9.2), Part Number A96533-02, available at http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96533/optimops.htm#37287
    Regards
    Abhinav Agarwal
    Oracle Business Intelligence Product Management
    http://www.oracle.com/bi
    http://www.oracle.com/technology/documentation/bi_ee.html
    http://www.oracle.com/technology/software/products/ias/htdocs/101320bi.html
    http://oraclebi.blogspot.com/

  • Automatic Selected Item of List Builder Component Does not work (anymore)

    Hi all,
    Í'm working with Xcelsius Engage 2008 (version 5.3.2.0) and the automatic selection of an item at runtime of the list builder component does not work anymore. In a previous version it worked very well.
    Here's the case: at runtime I want that the list builder component automatically puts the first item in the list to the destination section and selects it, so that a graph can show the underlying pushed data. In the previous version it worked o.k., but now at runtime the destination section remains empty at startup. If I interactively select an item from the source section to the destination section and update the list builder, the data is shown correctly, but it must done automatically, which worked o.k. in an earlier version of Xcelsius 2008...
    This are my settings of the list builder component (which was running correctly earlier..):
    -at the general tab I defined a range of labels
    -at the general tab I defined 2 data column insertion series
    -at the behaviour-common tab I defined selected items: position mode; items: the first item of the label list; insert items at runtime
    -all of the data comes from an external xml data source
    You can find an example of the visualisation at: http://onderzoek2.evinet.nl/projecten/10169/dynarap.htm. You will see that at start-up there is no item visible and selected in the destination section of the list builder....
    I've tried every combinations of settings, build up the component from scratch, but its not working (anymore).
    Greetings Erik-Jan Vriens

    Hi njnits,
    Print view button is a standard component of Xcelsius: look at it in the IDE
    Exporting to Powerpoint is also a standard functionality, so yes. For this particular dashboard/report all data resides in an external xml-file which have to be accessible for Powerpoint
    All visualisations, not only the table,  in this/report fetch their data from an external xml-file, but a QaaWS-connection will also do the trick. You will have to write this dedicated service. In our case the xml-data is also generated automatically.
    The external data is best defined as a sort of matrix, consisting of approx. 100 columns by 1000 rows. I agree it takes a lot of Xcelsius but it does the job....
    Hopes this info helps....

Maybe you are looking for