Is materilized view good in this case?

i have two database across different network. I need to replicate couple of tables from main machine to another. This "refresh" has to be every 5 seconds or so.. Do you think it's good idea to have materized view this 5 seconds refresh or any other better option. Tables are not that big .. only 50 to 60 thousand rows in each with 50 columns ...
thanks in advance

This "refresh" has to be every 5 seconds or so.I don't know if a MV is well for a refresh too often like this. Take care to the time of refresh which should less than 5 second, if not, the refresh will occur permanently.
Are you sure that you want 5 second refresh ?
Why not, in that case, query directly sources tables through the dblink instead of MV ? How often should queried your MVs ?
I would think a little more, before apply MV in your case.
Nicolas.

Similar Messages

  • Preventing SQL injection - can't use cfqueryparam in this case

    Hello. I have a form with a checkbox next to each row.  If the user checks some boxes, then clicks the "Delete" button, I want to execute the following query, but I want to protect it from sql injection attacks:
        <cfquery datasource="#application.mainDS#">
            delete userMessages
            where messageID in (#form.messageID#)
        </cfquery>
    As written above, it works fine.  But if I try to protect this code with <cfqueryparam value="#form.messageID#" cfsqltype="cf_sql_varchar">, I get this error: "Conversion failed when converting the varchar value '7,21' to data type int" (7 and 21 are the messageID's to be deleted).  Obviously the comma prevents conversion to an integer.
    If I use cfsqltype="cf_sql_integer", then the string gets converted to a single integer (in this case 40015, which is nonsense).
    I tried passing form.messageID to a stored procedure, but I seemed to have the same problem there.  I could run the query in a loop where I just delete one row at a time, but I'd like to run just one query if I can do it safely.  Any ideas?
    Thanks.
    PK

    I agree that you should not do an SQL "DELETE" from a web page.  Instead, use "soft deletes," where you contrive for there to be a deleted_flag (boolean), and maybe deleted_by (varchar) and deleted_timestamp.  Then create an SQL "VIEW" which automagically omits the "deleted" records.
    It is also a very good idea to refer to the records using a nonsensical, made-up "moniker" instead of actual record-IDs.  You see, "if I am a nasty person and I know that there is a record #123456, then I'll bet I know the record-IDs of 123,455 other records, too."  But if you refer to the record as "QZB0E9S" and the next record-id in the list is "4Q_9RJPEM2" then it won't take me long to realize that I can't get too far, not even by brute-force.  (And if I see that the record-IDs seem to have verification tags, like "QZB0E9S:4E396", then I know that I am really scroo'd in my hacking-attempt because even if I did somehow million-monkeys my way into a valid record-ID, I've got no earthly idea how to come up with the tag.
    It pays to code defensively, like this.  And it doesn't really take more time.  Without question, always use <cfqueryparam> !!

  • ICloud ruined my life- how can I escalate this case further!!!

    The unthinkable has been hande to me by Apple.
    iCloud corrupted 40% of my documents. Then 'reset' the remaining 60%
    100% of my documents erased by Apple. This has taken 8 months of my life away, the apple care process has been woeful. So many Senior Advisors said they would 'take ownership of the case' and 'call me back'. Nothing, no call back- I am forced to call up again- explain the case again- be promised again by another Senior Advisor that they would 'take ownership of the case' and 'call me back'...
    I am left shattered.
    This was a few months ago- i have lost huge amounts of irreplaceable research generated from over 2000 hours of my own personal work.
    It was not backed up to my mac book as it was rendered inoperable when i 'upgraded' to OSX Lion.
    I did all my work for 8 months on my ipad. All documents were created and stored locally on my ipad. I had no access to my LaCie external because my macbook was inoperable.
    It was recommended by Apple Genius that I turn on icloud for Documents. iCloud then corrupted the documents and synced that corruption back to my documents locally stored on my ipad.
    I could then see all the images in pages documents view. But could not open them- that was for about 40%of my documents. I could still access the other 60%
    My account was then referred to the iCloud engineers. After a few weeks with no contact from apple I called up to chase up this loss of my documents- it had been going on for 7 weeks at this point.
    The senior advisor told me that my account had been 'reset' and should be working fine now..
    WHAT!!!! Reset!!!?????? so what about the 60% of docs that i had access to?
    Gone. Deleted from the icloud account, synced back to my ipad.
    All Gone.\
    If i had been contacted by the engineers. 'We cannot fix your corrupted documents. We propose to reset your account. That will erase all data and documents in your account. Is this ok? Please backup any documents you have on your ipad.'
    This would have saved 60% of my 8 months research- which is a lot.
    but no- no contact, just reset my account and erased my documents.
    its unbelieveable and unthinkable.
    I am a MASSIVE apple fan- i have 22 Apple devices and tell everyone in my network that all my dreams have come true with Apple- ridiculing them for using other devices. It has now turned into a nightmare.
    I WENT TO THE APPLE STORE IN SYDNEY IN DESPARATION- TO FIND OUT IF THERE WAS AN IMAGE OF THE DOCUMENTS SOMEWHERE/ANYWHERE!!! I KNOW THEY CAN ONLY CONTACT ICLOUD IN THE SAME WAY AS ME- BUT WHAT OPTIONS DID I HAVE- I COULDN'T ESCALATE THROUGH APPLE ANY HIGHER- THEY TOLD ME THAT THE SENIOR ADVISORS AND ENGINEERS WERE AS HIGH AS I COULD ESCALATE. SO I WENT TO THE APPLE STORE AND TOLD THEM THAT I WOULD NOT LEAVE THE STORE UNTIL IT WAS RESOLVED- THEY TOLD ME THEY COULDN'T HELP ME- I STAYED FOR 8 HOURS- AFTER 1.5 HOURS WE FOUDN OUT THAT THE ENGINEERS LIKENED TRYING TO RESTORE MY DOCUMENTS TO TRYING TO REBUILD A BURNT DOWN HOUSE.
    We were about to release our energy saving App globally. I had a meltdown and just went away on holiday to New Zealand and Thailand with my kids- I couldn't face the reality of what i had to do to recover.
    I came back to try and get back on track recently. My only way forward was to forget about it and start again.
    AND THEN!!!
    I stupidly used pages on my ipad to edit a document from our development partner the other day. I opened my pages today, the document was there- then in front of my eyes all the documents shuffled around. Guess what- the doc I had edited disappeared.. In shock i called Apple Support. He asked me to check on icloud. com. 15 documents, not the one i want, advisor can see my doc- i cannot. I feel naseous.
    THIS CASE HAD ALREADY GONE TOO FAR. BUT NOW I HAVE HAD ENOUGH!!!!!!
    How can i escalate further? There must be a way. This is not acceptable! Apple are messing with my life!!!!! I'm losing too much time and money- it's just not fair at all. Something MUST be done by way of compensatiing for this series of errors!!!!

    There's nothing anyone here can do for you, and I'm afraid I have little sympathy.
    2000 hours of "irreplaceable work" and at no point during those 8 months did you think "Gee, I really should back up all these hugely important files just in case my iPad gets stolen, lost, breaks or some other disaster occurs"?
    As soon as you noticed something was amiss, or even at the point when you still had access to 60% of your documents, why did you not take the opportunity to download a copy of them via iCloud.com (on any computer) and save them safely on a memory stick or other backup device?
    Having just one copy of any file is asking for trouble. Backing up regularly is the No.1 rule of computing. Apple is not responsible for your lack of any backup routine. Apple advise you to backup regularly. Being able to backup your iPad should've been your motivation for spending an hour or two of those 2000 getting the MacBook up and running.

  • I have a domain with 2 DCs (both virtual machines) in different Hyper-V Hosts. Dose this case make any influence on the time sync?

    As title,
    I have a domain with 2 DCs (both virtual machines) in 2 different Hyper-V Hosts, and one of the perform as a PDC Emulator.
    Dose this case make any influence on the time sync?
    i.e. Both of the VMs sync with Hyper-V host, instead the other host should sync with the PDC Emulator?
    I run w32tm command and get the following result:
    C:\Users\Administrator.DOMAIN8>w32tm /query /computer:dc8.domain8.local /source
    VM IC Time Synchronization Provider
    C:\Users\Administrator.DOMAIN8>w32tm /query /computer:hpvzh05.domain8.local /source
    VM IC Time Synchronization Provider
    HPVZH05.domain8.local works as PDC server.
    How can I make DC8 sync with HPVZH05?

    Awesome!
    It looks like your PDC is successfully pulling time from an external source.  DC8 is not longer pulling from Hyper-V so that is good.
    When you set a client to pull from a source ( and in this case DC8 is pulling from NT5DS, which tells it to pull from the PDC), and it CAN'T pull from that source, it will default to Local CMOS Clock.  This is likely an easy fix.
    First, check connectivity:
    - Method one- Download Portqry and run this command: portqry -n HPVZH05 -p both -e 123 and see if the results say listening, or
    - Method two- Run this command from DC8: w32tm /stripchart /computer:HPVZH05
    If you get any kind of error using method two, it's a connectivity issue.  (Maybe you have a firewall that's blocking access?)
    The other cause of this, and probably more likely in your case, is that your PDC isn't properly advertising as a reliable time source, so DC8 isn't 'allowed' to pull from it.
    Try running this command on your PDC: w32tm /config /reliable:yes
    Then go restart time on your PDC, THEN DC8 again.  (net stop w32time & net start w32time)
    Here's an article you can reference: http://technet.microsoft.com/en-us/library/cc794937(v=WS.10).aspx
    - As always, if you find my posts to be helpful, please mark it appropriately.  Thank you :)
    Chris Ream

  • Any good articles or case studies on using MS technologies for BYOD in education settings ?

    Looking to see if any good articles or case studies on using MS technologies for BYOD in education settings ?  (schools, colleges etc)

    Check if this helps:
    http://www.microsoft.com/en-us/download/details.aspx?id=39681
    Yuri Diogenes [MSFT] - http://blogs.technet.com/yuridiogenes

  • Please recommend personal finance software for Mac that allows month to month analysis of spending by categories.  Quicken on a PC was good at this.  Mint seems very limited.

    Please recommend personal finance software for Mac that allows month to month analysis of spending by categories.  Quicken on a PC was good at this.  Mint seems very limited.

    Quicken for Mac 2007 works just fine (and is said to be compatible with Mavericks).  It is often denounced for not being "modern", but when something works, and does everything I want, I need a good reason to switch. 
    A few years ago (2011), I got that reason when I upgraded OSX and Quicken stopped working due to the absence of Rosetta.  I switched to iBank.  I used it for more than a year.  It was cumbersome, they have no sense of a helpful user interface, but it "works".  I found ONE feature that I liked:  you can attach an image (or any file) to a register entry, so I can save receipts right with the register.
    But when Intuit came out with the revised Quicken 2007 for Mountain Lion, I gladly went back.  I found that being able to update stock prices right in the portfolio view (for those not automatically found online) was handy - in iBank you have to generate a report to see the holdings, and then you have to switch to a view of "Securities" then scroll down through that list to find your stock, then "edit" then change the price, then "Save" then go back to reports and re-generate the portfolio view.  Also, if you enter a stock purchase in a Quicken register, the price you paid gets added to the price history for the stock (as of the date of the transaction).  No such help in iBank.  Most of the helpful UI features (like increasing the date with the + key) are glaringly missing in iBank.  I find I am getting no more than about 3-4 keystrokes before having to move the mouse and click.
    If you are considering sharing the app on an iPad, Quicken won't work, but I found that iBank for iPad doesn't work either.  The interface is completely different from the Mac version, you can't do much with it, and if you have a stock whose price is $11.25 / share and sell 200 shares, you might find that $22.50 gets added to your cash in the account.  (I actually made a few million dollars when it decided that 200 shares at $11.25  yielded $2,250,000.)  Luckly, I received a refund for that app.
    Depending on how the Mavericks switch goes, I hope to be able to stick with Quicken, but I am keeping my records up-to-date in both now, because I can live with iBank.  I will just have to keep an eye on its arithmetic.

  • Does any one use the SPIGEN iphone case? if so, can you tell me the difference between the ultra fit, ultra fit a, ultra fit s, and ultra hybrid? also does this case get in the way of the camera flash? i ask because the camera opening seems so small.

    also if you dont recommend this case please point in the direction of the best slim fit case

    The Ultra Fit A has a cutout on back to display the Apple logo. The Ultra Fit and Ultra Fit S do not. And the Ultra Fit and Ultra Fit A are a soft matte finish all over, while the Ultra Fit S has a brushed finish in its midsection.
    The Ultra Hybrid is a bumper, with back protection. (1) It's made of TPU (for anti-shock) vs. the all polycarbonate (for anti-slip) Ultra Fit/A/S.
    (2) It also has power and volume buttons overlaying Apple's, which the Ultra Fits do not. (3) Lastly, it covers all four sides, whereas the Ultra Fits cover the left and right sides and wrap around the four corners, leaving the top and bottom exposed (which is good if you want to connect some models of headphones or adapters that require more space there).
    They're all properly designed for the 5/5S flash, including the black around that cutout (you don't want to buy a case that doesn't have a black rim there).
    IMO Spigen's slim cases are better made/more durable than other third-party cases (of which I've bought aplenty). I love mine!

  • Using iDVD, I've no problem creating a slideshow, but I want to add three seperate sound files, in this case speeches I've got in iTunes. I want to create three individual buttons/sub menu to access them individually from the photos. Can anyone help

    Using iDVD I've no problem creating a slideshow, but am having problems trying to add three seperate sound files in this case three speeches that I hold in iTunes. I want to be able to access them individually and seperately from the photo slideshow. Can anyone advise if this can be done and if it can, how I go about creating the seperate menu and buttons.

    If you'd like to integrate the speeches with the slideshow, I'd do that in iMovie where you'll have more control over the timing.  Use chapter markers at the beginning of each speech so the viewer can jump to a particular speech (note that chapter markers advance the viewer to a particular spot -- the viewer keeps watching the rest of the video until the end of everything or until they use the remote's menu button).
    If you're just wanting the speeches to be on the DVD so people can listen to the speeches after seeing your slideshow, you could:
    - use iDVD or iMovie to make a "slideshow" with just 1 image matching the length of a speech.
    - create three submenus and use the speeches as menu music.  Here's a (random) video on creating submenus:
    http://www.youtube.com/watch?v=DlhQSb_D5kc
    John

  • Delete vs truncate on materilized view

    is it possible to truncate materilized view? if yes, is it faster than using delete from materialized view?
    thanks.

    user8837158 wrote:
    is it possible to truncate materilized view? YES, for example;
    dbms_mview.refresh( 'MY_MVIW_NAME' , 'C', atomic_refresh => FALSE ); => This does a TRUNCATE
    if yes, is it faster than using delete from materialized view? Yes it is faster ; TRUNCATE is a DDL, no need as much undo as a DELETE, where a DELETE is a DML
    DELETE operation will cause all DELETE triggers on the table to fire. Where with TRUNCATE no triggers will be fired.
    thanks.

  • S-Line Case for iPhone 4: Does anyone have this case?

    Does anyone have this case? Is it any good?
    http://www.ideal-case.com/s-line-series-silicone-case-iphone-4-black.html

    my friend is getting his but I don't think he has it yet.

  • Hi, I have an issue with my Aperture, I recently had a Samsung HD with 225 gb Aperture library fail. As per the instructions I moved the library to a new hard drive, in this case a 2tb Time Capsule. Now Aperture opens but no pictures

    Hi, I had a Samsung 1tb hard drive fail with a 225gb Aperture library on it, as per onscreen instructions I transferred the library to another hard drive in this case a 2tb Time Capsule. Now when I open the Aperture library I see the file structure and the white outline of the photos but no photos. When I try to export photo I get a pop up saying, 'selected master version offline'. The metadata is showing the photo details and size but no pic, and the aperture library is still showing it as 225gb
    If anyone has any suggestions or a way of finding the master files I would deeply appreciate it.
    Many thanks

    When a drive reports failed the data on that drive should be suspected to be corrupt. Initially one should assume any copies made of data after the drive starts reporting failing will also be corrupt.
    After a drive reports failure:
    When a drive reports to be failing our first concern should be the integrity of the existing backup of the data on that drive. It is easy to manage to corrupt the backup data during efforts to retrieve the failing-drive data.
    Step one should be to back up the back up of the failed drive. The known-good backups should be carefully quarantined from the likely-corrupt data.
    Step two (which should only happen after step one is complete and verified) is to make post-drive-failure copies of data from the failing HDD and make efforts to verify the accuracy of the data copied from the failed drive.
    Before a drive reports failure:
    Originals from the camera card should be separately backed up prior to import into Aperture or any other images management application. Always.
    HTH
    -Allen

  • Need help with this CASE statement

    Hi everyone,
    I would like to create a CASE that references another view and uses fields in that view to create a new field in a new view.
    The fields I am working with are called LEVEL_CD and AVAILABLE_AMT.
    In this case I would like to create a field called AVAILABLE_AMT (in my new view) that inserts the AVAILABLE_AMT from the old view into the new field only if the LEVEL_CD = 1. If the LEVEL_CD is anything else but 1 I would like to insert a 0 into my new
    AVAILABLE AMOUNT field.
    This is what I have so far and it doesn't seem to work:
    CASE WHEN old_view.LEVEL_CD = 1 THEN old_view.AVAILABLE_AMT
    WHEN old_view.LEVEL_CD <> 1 THEN 0 END AS AVAILABLE_AMT
    This just gives me zeroes in every record. Can anybody spot what I am doing wrong?
    Thanks!

    SELECT <columns>,CASE WHEN old_view.LEVEL_CD
    =
    1
    THEN old_view.AVAILABLE_AMT
    ELSE 0 END AS AVAILABLE_AMTFROM old_view.PK JOIN new_view.PK WHERE....PS.PK -Primary Key
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • What do you think of this case

    What do you think of this case. Would it work good as a modder for a water cooling system? what do you think?
    http://www.newegg.com/app/ViewProductDesc.asp?description=11-125-462&depa=1
    thanks

    you can't go wrong with chenming... the styling is obvious, why pay more for an antec...
    wonk will tell you antec doens't make its own stuff....
    i guess this means chen ming makes Antec Cases... lol makes sense... chen ming has always been an awesome case
    just so cheap compared to an antec
    EDIT: LOOOOL i found a really good one:
    Chenming Charcoal Black Entry level server case
    ANTEC Black Performance Series II SOHO File Server Tower ATX Case
    look familiar? lol antec=losers

  • Error on load: System.IO.IOException: The process cannot access the file : error in event viewer when users want to view documents from this third party deployed scan solution

    Error on load: System.IO.IOException: The process cannot access the file
    '\\server1\SCANSHARED\.pdf' because it is being used by another process.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
       at System.IO.File.WriteAllBytes(String path, Byte[] bytes)
       at abc.Scan.Layouts.ICC.Scan.View.Page_Load(Object sender, EventArgs e)
    I faced this  error in event viewer  when users want to view documents from this third party deployed scan solution
    here I have two WFS servers  and they configured with load balancing in F5 .
    when I enable both servers in F5 I receive this error messages in 2nd server,
    when users want to view documents
    adil

    Do you have antiVirus installed on the sharepoint servers?
    These folders may have to be excluded from antivirus scanning when you use file-level antivirus software in SharePoint. If these folders are not excluded, you may see unexpected behavior. For example, you may receive "access denied" error messages when files
    are uploaded.
    Please follow this KB and exclude the folders from Scanning.
    http://support.microsoft.com/kb/952167
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • I've moved my Aperture library to another computer, and masters are referencing an old path name.  How can I update these references?  Reloctating masters does not work in this case :(

    I've moved my Aperture library from one computer to another using Finder.
    I merged the library with one which was already on the computer.
    Now, the photos I imported have reference to the old path name on my old computer.
    How can I update these references as "Relocate Masters" does not work in this case?

    Just one suggestion to be able to reconnect all at once:
    Create a smart album containing the images with missing masters:
    File -> New ->  Smart Album,     and add a rule: File Status is "Missing"     (or File Status is "offline")
    Then select the images in this album and go to the File menu:
    and select:   File -> Locate referenced File
    If you are lucky, Aperture will reconnect all at once, if you point the first image version to its counterpart.

Maybe you are looking for

  • Correcting 'Read only' file problem ...

    I while ago I had an HD problem. I installed a new HD, upgraded to Leopard and then brought all my old files in from an external backup. My problem is that they're all now 'Read only'. Is there a way I can solve this problem at a stroke, without havi

  • How to monitor available disk space in archive directory

    I need to monitor the available disk space of the archive directory during a long running PL/SQL program which does a lot of inserts and updates. This program is running in a background session and should regularly check for the available space. If t

  • HTTP Response :500 unable to connect to remote system.

    Hi, I am doing proxy-xi-file scenario, where i am getting this error in sxmb_moni in R/3. The error reads with red flag: HTTP Response :500 unable to connect to remote system. Please  tell me what can be the reason.

  • Proprogating changes to a list to all site pages

    Here is my issue: Currently running a Project 2010 Sharepoint site and my Project Management lead has added a column to the Deliverables list on the home page.  He is wanting to have this new column added to all of the Deliverable lists on all of the

  • I have a problem using ibooks app

    [IMG]http://i62.tinypic.com/28tf12u.jpg[/IMG] There is an error , it says this document can only be experienced on iPad The doc that i'm trying to open is a part of a iTunes U course. Please if anyone knows the way to convert this doc or open it with