Write a procedure to find out the data copy is happening or not.

Good Day all,
I have two databases called "*Report*" and "*Production*". I have a report database which copy a data from production database. I want to write a Stored procedure to compare the count of one table in both the databases. All the tables are same in both the databases.
Please note :*
1. We are writing the procedure to find out the data copy is happening or not and also report database is down or not.
2. Not all times, the both the count is same, sometimes it take delay to copy the data in report database but report database is not down.
Please see the query to compare
_"Report"_
Select count(*) from trx where date ='03-Oct-2010'
*"Production"*
Select count(*) from trx where date ='03-Oct-2010'
I am suggesting to take a count for every 5 mins and keep in temp table and compare it.
Thanks
Nihar

How are you replicating the data from the production database to the reporting database?
Wouldn't it make more sense to monitor that replication process rather than counting every row in the table every 5 minutes? That's going to get rather expensive for non-trivial tables. If you are using something like Streams to replicate the data, it would make far more sense to monitor the Streams apply process, to determine when the reporting database it updated as of, than it would to monitor the underlying tables.
Justin

Similar Messages

  • How can I find out the date of a movie I am trying to pre-order if the date is not available/showing in the "manage pre-order" section?

    How can I find out the date of a movie I am trying to pre-order if the date is not available/showing in the "manage pre-order" section?

    Thanks so much for your reply King_Penguin. No, sadly there is not indication of the expected release date on the film, it's no where to be found. I have also tried to look in other places online, but no luck. I guess your latter statement jives more with my situation, that  being the studio/rights-holder hasn't feel inclined to provide the date.

  • How do I find out the date in which I registered my imac?

    How do I find out the date in which I registered my imac?

    It doens't really matter what date you registered it. However if you are looking to see when your expiration on AppleCare is/was it is 3 years from the original date of purchase. You can use the Apple Online Service Assistant afer you input the serial number click the link that says See your service and support coverage.

  • How do I find out the date and time a picture was taken on my Ipad?

    How do I find out the date and time a picture was taken on my Ipad?

    Photo Manager Pro
    http://i1224.photobucket.com/albums/ee374/Diavonex/Album%202/7a2b3650710f4bded81 ab75dda6a3ee5.jpg

  • Can we find out the date/time when the datafile last extended?

    Hello all,
    Can we find out the date/time when the datafile last extended?
    Is it possible to find out from the alert.log file?
    Correct me if I am worng?
    Thanks in advance
    Himanshu

    In continuation with the earlier post, can you tell me what sort of entry should be search if the above information is available in the alert.log file?
    Thanks
    Himanshu

  • How to find out the date of license conversion (from Standard to Datacenter)?

    I had problems with Microsoft licensing and i need to find out, when my servers was converted from Standard to be Datacenter ?
    All my servers was standard, now it's Datacenter and i need to know from when it's Datacenter ???

    What I really mean is that I have EA with Microsoft and I'm eligible for example 10 Standard and 5 Datacenter.
    During Microsoft auditing they found that I have installed 10 Datacenter and 5 Standard, which is not original design, so obviously someone from my team converted 5 servers from Standard to Datacenter.
    My question here that I need to know when exactly my servers where converted, so I can know who converted it as this mistake costs my company a lot!
    I need to know time and data when my server was converted from Standard to Datacenter edition? May be it's recorded in registry or somewhere i can find using PowerShell or something, the same Idea of finding out Installation date using this command:
    "([WMI]'').ConvertToDateTime((Get-WmiObjectWin32_OperatingSystem).InstallDate)"
    Ah, that helps me understand, thanks.
    If you installed Standard, and then used DISM /Online /Set-Edition.....
    http://technet.microsoft.com/en-us/library/jj574204.aspx
    this should be logged in the DISM logfile: %windir%\Logs\DISM
    https://technet.microsoft.com/en-us/library/ee851579(v=ws.10).aspx
    You may also find some details in the Windows event logs (if you still have that history available).
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • APPLE CARE - How do I find out the date of purchase of my mac?

    Can anyone point out how do I find out the exact date of purchase of my mac? I would like to purchase the apple care extended warranty and I do not recall the exact date of purchase of my mac...just before or after a full year...? Can I look it up anywhere?
    Many thanks in advance for your help.
    Max

    You can go to this site,
    https://selfsolve.apple.com/GetWarranty.do
    it tells you when your warranty expires which is 1 year after you purchased it, thats possibly the easiest way, but if you bought it from a store it may be different as it may be the date they purchased it.
    With the extension program, if i purchase one now, my MBP was purchased april last year, will the extended warranty ad onto the date i purchase the extension program or from april last year when i purchased the mbp? I'm wondering because if purchase it now that effectively makes it covered for warranty for up to 4 years!

  • Standard Procedure to find out the hardcoding

    Hi Experts,
    What is the standard procdure to look for whether any hardcoding is existing in the system ....????
    Thanks in Advance,
    Praveen

    Hi Praveen,
    You can use transaction SCI to find the hardcoded text used in the progra. Once you get the programs and text location you need to manually check all the code to find out the literals used in the ' ' are actually hard coding or not.
    Regards,
    Atish

  • How to find out the date when an oracle database is upgraded

    Hi,
    I would like to know the date when an oracle database is upgraded (for example 10.2.0.4 to 11.2.0.3).
    Can you help me to find out these details.
    Thanks,
    Sarayu

    user13312943 wrote:
    Hi Ed and SB,
    Thanks for your replies. How about this option?
    Let us assume I am interested in checking when my database is upgraded to any 11g version.
    Will this query help?
    select min(first_usage_date)  from  dba_feature_usage_statistics where  version like '11%';
    I understand this may not be a generic solution , but with this idea I may be able to build up a query to get the result.
    Thanks,
    Sarayu
    How is it that you or nobody knows when the DB was upgraded?
    I would have expected a formal testing & upgrade plan.
    Does the organization practice safe software & utilize any source code repository?
    Does everyone suffer from amnesia?
    How could a MAJOR database upgrade slip by everyone who should care about such a detail?

  • Can I find out the date that a video was taken?

    I am wanting to put all my videos from my iphone of my daughters first years onto a DVD, I would like to mark the dates for each one.  How do I find out what the dates of each video or picture are?

    Thanks so much for your reply King_Penguin. No, sadly there is not indication of the expected release date on the film, it's no where to be found. I have also tried to look in other places online, but no luck. I guess your latter statement jives more with my situation, that  being the studio/rights-holder hasn't feel inclined to provide the date.

  • How to find out the date I can upgrade

    I'm on a family plan and I don't have access to my dad's account, and he's the account owner. I want to upgrade to an iPhone so I'm looking to know when I can upgrade and how much it'll cost, but I can't find any of this on the My Verizon page. There's a "check upgrade availability" on the iPhone page but it says something about Verizon being unavailable and to try later, but I've been trying since yesterday. I can't find out how to look at my plan and all I need to know is when I can upgrade...this website is not being very helpful so far.

    bellreavue wrote:
    I'm on a family plan and I don't have access to my dad's account, and he's the account owner. I want to upgrade to an iPhone so I'm looking to know when I can upgrade and how much it'll cost, but I can't find any of this on the My Verizon page. There's a "check upgrade availability" on the iPhone page but it says something about Verizon being unavailable and to try later, but I've been trying since yesterday. I can't find out how to look at my plan and all I need to know is when I can upgrade...this website is not being very helpful so far.
    If you are not the account owner, I don't think that this information will be available to you. Just ask your father for the information.

  • How do I find out the date something was purchased?

    I need to know the date/time something was ordered.  The receipt date is not the date the item was ordered from iTunes or apps.  I've received the receipt in the past several days after I had ordered something, so I know I cannot rely on that date being the actual date an item was ordered.  thanks!

    On the receipt, it should say the date and time.

  • How to find out the query hits an aggregate or not

    Hi Experts,
    Can anyone please tell me how to find out whether a Query is hitting the aggregates or not.
    Thank you
    KR

    Hi,
    Go to RSRT t.code and give your query name , execute with debug mode , an pop screen will come there you enable the flag for Display aggregate found and select aggregate.
    It will show you which aggregate has been used for that report.
    Regards,
    Siva.

  • How can I find out the date of manufacture for any particular iPod?

    I suppose the Subject Title says it all really!
    Someone told me that there was a website that list codes but I cannot find it anywhere.
    Any advice would be greatly appreciated.

    http://www.chipmunk.nl/klantenservice/applemodel.html

  • How do I find out the date of creation and last modification of the current page being viewed through Firfox 3.6.18?

    I thought that by using the Tools function - Page Info, that this would give the information. It does not. What do I need to do?

    I thought that by using the Tools function - Page Info, that this would give the information. It does not. What do I need to do?

Maybe you are looking for

  • No service issue

    Dear Apple Support, I did update my iphone 5s to ios 8.1 (before 7.1.2) , after the update the sim signal not working , It is working only out side of my home, if I go inside it showing 'No service' ,then i did searched google and found lot of method

  • An Error Occurred during CHART Generation in BI Launch Pad 4.0

    Hi Guys, I am creating a report on BI launch Pad, the query result shows fine in the "Table" format but when i "Turn Into" chart it gives me an error " An Error Occurred During chart generation, The chart cannot be displayed". I created the same repo

  • Lumia 620 not woking after cyan update

    I did cyan update on lumia 620 , while updating it shows a sad smile and rebooted to running wheels. after 20-30 seconds its keep rebooting and the loop continues. Future is here. where ???? help me if you can. anyway am not going to stay with nokia

  • Essbase/OLAP Time Dimension in OBIEE

    I am on OBIEE 11g release. After exported the below essbase time dimension with dynamic time series thru the Administration tool Time |_ Spring |_ Q1      |_Feb           |_FebW1      |_FebW1D1           |_ .....           |_FebW1D7 |_FebW2      |_Ma

  • SCORM content on Oracle Learning Management

    Hi, Currently we are trying to setup a basic SCORM tracked course on Oracle Learning Management. We are using the example single course from http://www.adlnet.gov/Technologies/scorm/SCORMSDocuments/Forms/AllItems.aspx?RootFolder=%2fTechnologies%2fsco