Why??? Simple snapshot can not refresh automatically, but can refresh manually.

Server 1 : Oracle 7.3.4 (as a Master site)
Server 2 : Oracle 7.3.4 (as a Snopshot site)
Client PC: SQL*Plus (Oracle 7.3.4 Client)
Step 1: on Client PC, start 2 SQL*Plus dialog Windows,
one(Window A) for <Server 1> , another(Window B) for <Server 2>;
Step 2: on <Window A> do:
SQL>connect scott/tiger@Server1
SQL>CREATE SNAPSHOT LOG ON scott.dept ;
SQL>select * from dept;
DEPTNO DNAME LOC
10 AAAAAA AAAAA
20 BBBBBB AAAAA
30 CCCCCC AAAAA
Step 3: on <Window B> do:
SQL>connect scott/tiger@Server2
SQL>CREATE DATABASE LINK oracle USING 'Server1';
SQL>CREATE SNAPSHOT all_dept REFRESH fast
start with sysdate NEXT SYSDATE+1/(24*60)
AS SELECT * FROM scott.dept@oracle;
-- refresh interval: 1 minute
SQL>select * from all_dept;
DEPTNO DNAME LOC
10 AAAAAA AAAAA
20 BBBBBB AAAAA
30 CCCCCC AAAAA
Step 4: on <Window A> do:
SQL>insert into dept values (50,'MMMMMM','NNNNN');
SQL>commit;
SQL>select * from dept;
DEPTNO DNAME LOC
10 AAAAAA AAAAA
20 BBBBBB AAAAA
30 CCCCCC AAAAA
50 MMMMMM NNNNN
<one or two minutes later ... ... >
Step 5: on <Window B> do:
SQL>select * from all_dept;
DEPTNO DNAME LOC
10 AAAAAA AAAAA
20 BBBBBB AAAAA
30 CCCCCC AAAAA
conclusion: Simple snapshot can not refresh automatically ???????
SQL>exec DBMS_SNAPSHOT.REFRESH( list => 'all_dept',method => 'F');
SQL>select * from all_dept;
DEPTNO DNAME LOC
10 AAAAAA AAAAA
20 BBBBBB AAAAA
30 CCCCCC AAAAA
50 MMMMMM NNNNN
conclusion:Simple snapshot can refresh manually.
How to solve this problem?????
Thank you very much
Zhang Ming-an

When you are manually refreshing the snapshot as scott/tiger, and your database link was defined with a 'connect to/identified by ' clause, your login credentials will be scott/tiger. When the refresh happens from the job queue, it does not use those credentials, It uses some default set. What you should probably do is:
1. create public database link Oracle using 'server1';
2. as scott/tiger, create database link Oracle connect to scott identified by tiger;
3. your automatic refresh should work now.

Similar Messages

  • When I set up my mail I could send emails now a day later I can not send them but can still receive them ... I can't see what is wrong .. Any answers .

    When I set up my mail I could send emails now a day later I can not send them but can still receive them ... I can't see what is wrong .. Any answers .

    It's not a good idea to use a network disk for both Time Machine backups and other things.  By design Time Machine will eventually consume all the space on its output disk, which will then cause problem for your other files.  I'd store those other files on an external disk connected to the Time Capsule.  The problem with that is that Time Machine will only back up files that are local to your Mac.  That means that you'll only have one copy of the files on or attached to your Time Capsule.
    By the way, you've been misled by poor field labeling on this forum into typing a large part of your message into the field intended for the subject.  In the future just type a short summary of your post into that field and type the whole message into the field below that.

  • Hi, face issue that can not activate iPhone but can log in iCloud wed page with same Apple ID and Password after Iphone been update to IOS 8. Need Help. Thanks

    Hi, face issue that can not activate iPhone but can log in iCloud web page with same Apple ID and Password after iPhone been update to IOS 8.1.2
    Also in the iCloud 'Find my iPhone" , no Device been found.
    Been raise this incident, got the Case ID and call to Apple Support but it seems like out of office hour
    Need Help Thanks

    Yes, able to make a call to Apple Support but in the end still keep on going to try the Apple ID and Password.
    And it seems like the iPhone ID  in this device been locked
    May to know is that possible to ask the Apple Technician to unlocked the ID so i could activate the iPhone without log in any Apple ID?

  • Mail can not send emails, but can receive emails

    My apple mail have two mail account,   one is gmail,   another is pop3 mail ( 263.net ),    I can send and receive email via gmail account,   but can not send email through another account (263.net ),   meanwhile I can receive email via this account.    I sure all the setting is right.   I also found this "can't " is occasionally.   sometimes I can send,  but sometimes I can not send email.    But for gmail account,  It is OK for all time.
    Why

    This may help
    https://discussions.apple.com/message/22569311#22569311

  • BH 214 can not make call but can hear music.

    I am using Nokia X6-00 8GB, I have BH 214, I have succesfuly connect the bluethooth headphone and i can heared music throgth it but  when make call, the call is not handfree to bh 214. please reply as soon as posible. thank you. But with E63 it work properly

    just try a hard reset on ur phone, i had almost d same prob. sound can b heard from headphones but headset buttons were not working during call, so cant accept n reject call with BH 214

  • TS3899 Can not send mail but can receive

    I have a iPhone 3GS that has been working fine since I have purchased it. Now out of the blue it won't send any emails out on either of my two accounts. I have no problem receiving them but will not send. Any help would be appreciated

    In Mail you may have to resetup your Outgoing Mail Servers settings using the proper info from your mobile carriers. Obviously your Incoming Mail Server settings are correct, since you are receivng mail OK.
    Hope this helps

  • Can't make calls but can receive calls

    can not make calls but can received calls

    According to your profile you have IOS 2.x? Strange!
    iPhone 4 came with IOS 4 in June 2010 not IOS 2.x
    Call your carrier and ask them why.

  • Can you tell me why my temp tablespace can not release automatically?

    when i up the database, the temp tablespace is used by o,but after some time it is used 99.99%,even all the task are finished,it is still used 99.99%,and can not release automatically!
    who can tell me than is why?

    Are you receiving an error ?
    A "Temporary" tablespace manages it's allocation differently than a normal tablespace. The idea is to avoid the overhead of extent allocation, etc.
    Take a look at:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:134496932618587661::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:108812348061,
    or
    http://asktom.oracle.com/pls/ask/f?p=4950:8:134496932618587661::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:1384603628260,
    or (these URLs don't seem to be pasting correctly)
    go to Ask Tom and search on "temporary" in the "page contains" option in advance search.
    Ken

  • I have an apple id but ı can not use it for sign in to itunes connect account while publishing my ibook document. Why ı can not login? What can ı do to figure out this problem?

    I have an apple id but ı can not use it for sign in to itunes connect account while publishing my ibook document. Why ı can not login? What can ı do to figure out this problem?

    As note already on the iBA forum [ AppleID for ibooks publishing ], you need two IDs. You can't use your developer ID.
    If you already signed up for books with that ID, you need to talk to Apple to straighten things out.

  • Why my spotlight can not find my personal files ? It can find them before but can not find them now,I want to know why?

    why my spotlight can not find my personal files ? It can find them before but can not find them now,I want to know why?

    From the menu bar, select
     ▹ System Preferences ▹ Spotlight ▹ Privacy
    The list of items excluded from Spotlight indexing is shown (it may be empty.) Click the plus (“+”) icon to add an item to the list. Select your boot volume (under DEVICES) and add it to the list. Then remove it from the list by selecting it and clicking the minus (“-“) icon.
    Spotlight will rebuild the index. If you try to do a Spotlight search now from the magnifying-glass icon in the top right corner of the display, a pulsing dot will appear in the icon. When the dot disappears, the indexing is complete.

  • TS2446 I just got my Ipad and I can not download apps.  I get a message saying my Apple ID has been disabled.  I have reset my password, I can access itunes and icloud but still can not download apps.  Can someone please tell me how to get my ID activated

    I just got my Ipad and I can not download apps.  I get a message saying my Apple ID has been disabled.  I have reset my password, I can access itunes and icloud but still can not download apps.  Can someone please tell me how to get my ID activated?  TY

    Depending on why it's been disabled you might be able to re-enable it via this page : http://appleid.apple.com, then 'reset your password'
    Or you might need to contact Apple : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page
    If it then works on your computer's iTunes but not your phone/iPad then try logging out of your account on the phone/iPad by tapping on your id in Settings > Store (Settings > iTunes & App Stores on iOS 6) and then log back in and see if that 'refreshes' the account on it

  • Workflow 2013 does not start automatically but 2010 yes

    Hello everyone,
    I'm facing to a strange issue on my SharePoint 2013 server:
    A workflow creates an item in an other list.
    This list has two workflows created by Designer 2013, one 2010, the other in 2013. The two are configured with the "Start when item created".When the item is created, 2010 starts but not the 2013.
    I'm not using the system account and I have two workflows to understand why the 2013 is not started automatically.
    Regards,

    Here is something similar..
    http://stackoverflow.com/questions/17222287/sharepoint-2013-workflow-not-firing-when-document-checked-in-but-works-if-checke
    Bala

  • TS3988 My icloud account is not verifying it says check my mail witch I have done and I get a message say your iPhone for has been used to set up and Icloud account but still can not use the icloud can anybody help me.

    My icloud account is not verifying it says check my mail witch I have done and I get a message say your iPhone for has been used to set up and Icloud account but still can not use the icloud can anybody help me.

    Be sure you are checking the email account that you used to set up the Apple ID you used to create the iCloud account.  Also, be sure to check your spam/junk folder as well as your inbox.  The email you should receive looks like the image below.  When you get it, click the Verify Now link.
    If it still isn't there, try going to https://appleid.apple.com, click Manage your Apple ID, sign in, click on Name, ID and Email addresses on the left, then to the right look for a link to resend the verification email.

  • I upgraded my old mac to snow lepord and now when i try to play music in my i tunes it says "file can not be located" but it still lists all of my music

    I upgraded my old mac to snow lepord and now when i try to play music in my i tunes it says "file can not be located" but it still lists all of my music

    Use Spotlight Search (the magnifying glass on the top right-hand corner of your menu bar) to locate your music files. Then point iTunes to those files.

  • I have an ipad2 and we purchased an HP office jet 6600.  I can not connect to print.  In searching the net, I have been advised to get the firmware update but can not find it.  Can you advise?

    I have an ipad2 and we purchased an HP office jet 6600.  I can not connect to print.  In searching the net, I have been advised to get the firmware update but can not find it.  Can you advise?

    Is the HP on the airprint list?
    iOS AirPrint Printers  http://support.apple.com/kb/HT4356
    How to Print from Your iPad: Summary of Printer and Printing Options
    http://ipadacademy.com/2012/03/how-to-print-from-your-ipad-summary-of-printer-an d-printing-options
    Print from iPad / iPhone without AirPrint
    http://ipadhelp.com/ipad-help/print-from-ipad-iphone-without-airprint/
    How to Enable AirPrint on a Mac and Use Any Printer
    http://ipadhelp.com/ipad-help/how-to-use-airprint-with-any-printer/
     Cheers, Tom

Maybe you are looking for