Things to consider while merging two DBs?

Dear gurus,
We have 2 instances, 1 is prod and other is replica of prod, just 4-5 hours behind prod,
used for queries just to reduce overhead on PROD,(the second instance is not a DSS/warehosuese/OLAP env it is just replica on instance 1) with some additional indexes,
now the management has decided to remove the second instance,
my question is : how do i proceed that the queries running on instance 2 should not create any problem when shifted to instance 1
thanks

user548749 wrote:
my question is : how do i proceed that the queries running on instance 2 should not create any problem when shifted to instance 1If an existing query on instance 2 uses an index which is not available on instance 1, there can be a hefty performance impact. Or instance 1 can already be quite busy and unable to handle the additional volume of queries from instance 2. Or the buffer cache on instance 1 may not allow the same level of caching enjoyed by queries on instance 2 (due to production processes that are absent from instance 2).
So there is no simple way to identify problematic queries that worked fine on instance 2 and would be a problem on instance 1. For starters, you will need to parse every single query on both and compare the resulting execution plans simply to determine if there will be a difference.
Also, as instance 1 contains more data than instance 2 (which lags some hours behind), execution plans can quite likely be different in some cases due to the volume of data.
This is not a simple exercise to undertake. There will be execution plan differences - and the difference may not be a bad thing due to the differences of instance 1 compared with instance 2.
What you can do is implement resource profiles on instance 1 for instance 2 queries - and that way attempt to control those queries resource utilisation and thus minimise their impact on instance 1.
Bottom line though - I see this as a lot of manual and hard work to make the replacement of instance 2 with instance 1 a transparent one to the end users that are using instance 2 for queries.
Billy

Similar Messages

  • Things to consider while Creating Indexes in the tables

    Hi All,
    We have some application slow issues becasue of the tables which it is calling are Heap. There are Primary keys created on few tables though. I have to think and design the indexing on those tables. What are different things need to check to design the Indexes?
    Thanks
    Swapna

    Hi All,
    We have some application slow issues becasue of the tables which it is calling are Heap. There are Primary keys created on few tables though. I have to think and design the indexing on those tables. What are different things need to check to design the Indexes?
    Thanks
    Swapna
    Adding to what others have said create an index and check execution plan whether it is being used by optimizer or not if it is used and query runs fast that index can be kept
    You should also take help of DMV
    sys.dm_index_usage_stats to see whether index is being utilized or not. refer to user seek user update and user scan col. If Update is very much greater that seek/scan index is probably not utilized , you can consider removing it
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • Things to consider while uploading the photo to show up in ESS

    Hello All,
    We are planning to have Employee Photo in ESS, We just want to know what all things need to be considered, like
    1) Database size
    2) constraint on size.(how to restrict the size of the image)
    3) We will be doing the configuration required for that.
    other than these what things have to be considered.
    Please help me out in this.
    Points will be awarded for the appropriate answers.
    Pramod

    Solved

  • Things to consider while designing an interface

    Hi friends,
    I've got an opportunity to design (functional design) the first outbound interface of my career. I'm little confused with the data mapping part of it with the legacy team. I want to follow a structured method to avoid missing out things and bother the legacy team again and again with silly question. Can anyone provide me a structured method and the important things that I should know and discuss with the legacy team?
    I'm new to SDN and I'm not aware of all the protocols of the forum. Please excuse me if I've put accross a wrong question.
    Thanks,
    Rohit

    Hi,
    When you working on design what kind of design??
    Like have you got functional requirements from functional Team?? or you involving in gathering functional Requirement??
    Functional Design:
    Nothing to do with your Interface design, try to understand the business requirement, and identify the source data and target data, and what system is going to be source and target.
    then identify the is there any business data validations and data mapping between source and data, for this you have maintain one excel sheet for data mapping, define source and target structures and business logic involved in mapping.
    in this phase you have to develop functional document, which gives the high-level business requirement and graphical representation of data flow between source and target system(MSVisio diagram).
    Technical Design:
    Technical design will talk about how youu2019re going to achieve your functional requirement using PI.
    First analyze the requirement, like source and target systems and which adapters will full fill your requirement to retrieve/send data to source/target systems.
    Then identify which type of interface it is Synchronous or asynchronous.
    Then you have to identify mapping logic, refer functional data mapping document and identify which mapping will be required(Message ,JAVA,XSLT and ABAP ),if your requirement can be achieved using message mapping then well and good.
    Identify the best approach to implement your business requirement using SAP PI, prepare design document, if you donu2019t have much experience in SAP PI, then refer senior recourse about design, he will help you if anything needed to be changed in your design approach.
    Now you are clear with requirement, mapping logic and ready with design.
    Start development refer naming convention document before starting your requirement and follow the valid naming standards and complete your development and mean time complete technical specification document for your interface.
    Regards,
    Raj

  • Things to consider while copying a seeded package.procedure?

    Hi,
    I was trying to do some customization as part of my project in PO_APPROVALLIST_S1.rebuild_approval_list. I copied the procedure and put it in my package after renaming it and done some code changes. The syntax errors were corrected and the package got compiled successfully.
    But when I did testing in Requisition Approval -Forward Action where I customized, the workflow is erroring out in Exception. Retry also not working.It is again going to exception
    Failed Activity: Update Approval List Response
    Activity Type: Function
    Error Name: -6512
    Error Message: ORA-06512: at line
    Error Stack : Wf_Engine_Util.Function_Call(PO_APPROVAL_LIST_WF1S.UPDATE_APP_LIST_RESP_SUCCESS, REQAPPRV, 23371461-562932, 968804, RUN)
    How can i identify at which point it errs out? Is there any problem if we are using seeded procedures in custom packages?
    Please help me to proceed further..
    thanks,
    Nish

    Hi, since you've modified a package that is tied to the workflow, it would be a good idea to stop/restart workflows because original code is probably in memory and your modification are not considered but the state has changed.

  • Things to consider while making a class singleton?

    sometimes i need to share the state of object across application.I get confused should i declare it singleton or declare state vaiables as static.
    As per mythoughts, if intention is just to share the state of object across application i should go for static variables. Is this right?
    My understanding about when we should go about singleton is below
    We should declare the class as singleton when we need only one instance across jvm. But i am not unable to find any practical scenario
    when we where we may need singleton . Any help here will be appreciated. Everywhere on different sites i get to see the example of logger
    class where the reason is generally given as so that single log file is created not multiple log files.
    But again this could have been achieved with declaring the file variable as static in logger file?
    So actual reason is for declaring the logger as singleton is becuase we need the single log file with issues avoiding concurrent writing
    which wont be possible if we make the separate instance of logger for each write..
    Is the above reasoning correct so that i can proceed in right direction?

    How will declaring its state as static accomplish that objective?With declaring variables as class variable instead of instance variables, there will be a single copy of each variable. In each instance (in this case logger if we dont declare it singleton) we can check if file is already created or not. I mean it will be visible across all instances.
    No, because the file name isn't the only state. There is also the output stream/writer, its current position, its charset, the log level, the logger name, its filters, its formatters, ...Agreed. I just wanted to convey the point. As you said there will be other parameters,in that case we can declare all of them as static.
    A configuration file holder is a good example: there is only one configuration file so there should only be one holder instance.Thanks for pointing it out. Configuration file is used mainly to read the properties. we usually dont update the values there.So even if we dont make it singleton it may be correct. The advantage i can think of making it singleton is that if configuration file is used frequently then we dont have create the object again and again.
    So actual reason is for declaring the logger as singleton is becuase we need the single log file with issues avoiding concurrent writing
    No it isn't, and that doesn't follow from anything you said previously so the 'so' part is meaningless.I want to say here is that t to have single log file should not be the only reason behind making the logger file as singleton, other reasons can be handling of concurrent writing too.
    Have a look at the Wikipedia article on the Singleton pattern, or buy the booki have gone through the singleton pattern in headfirst book and some of the articles on net. But they mainly describe how the make the class as singleton and the reason that We should declare the class as singleton when we need only one instance. But looking for actual scenarios where we need singleton. So i took the examplle of logger file which is used in many project and trying to understand it is constructed as singleton so that i can use in my project if required.
    Edited by: JavaFunda on Aug 28, 2011 3:51 AM
    Edited by: JavaFunda on Aug 28, 2011 3:56 AM

  • Error Importing Schema on 7.1.04.131 (trying to merge two repo.structure)

    Hello MDM Experts,
    I am trying to merge CUSTOMER and VENDOR repository and getting an error while importing repository schema. We are on MDM 7.1 version 7.1.04.131(SP04 and latest Patch08). when i choose Transport>Import repository schema, "Import Schema VENDOR" screen pops up which gives me an opportunity to accept or reject tables/fields/roles etc...after finished with accept/reject tables/fields when i hit OK system gives me an error saying...
    "Error Importign Schema"
    "One or more of the selected items requires that you select additional items"
    Has any one come across same error while merging two repository structures..? or any suggestions would be appreciated..
    Thanks in Advance
    Rohit

    Hey Rohit,
    This error could come due to several reasons, some of the most common ones can be:
    1. You have defined a Remote System and Port, and assigned a syndication/Import map to it, now if you transport only the Port, you can get the error since the Port has a dependency on Remote system and you should transport both of them together.
    2. You have defined a Main table (or a lookup table) which has a dependency on another lookup table. Now if you transport only the Main table, you will have an error since Main in dependent on Lookup table.
    If it is possible, you can try transporting whole repository , instead of individually picking and choosing objects. This will make sure all the objects are transported. If that is not the case then you need to look at all the objects and make sure its dependent objects are also transported.
    Thanks
    Aamir

  • Purchasing concerns while merging operating units

    Hi all,
    Can any body please guide regarding the concerned entities of Purchasing while merging two operating units?
    Regards,
    Abdul Rehman.

    Hi Abdul,
    While merging 2 OU, the following purchasing entities you should review as per opinion.
    (1) Items of old OU should be created/assigened to merged OU, if it is not exists in merged OU.
    (2) Similary , Suppliers of old OU should be created to merged OU, if it is not exists in merged OU.
    (3) You should go for the redesign Posiition hierarchy and PO approval limit groups.
    (4) New Payment terms should be require to create, if it is new for merged OU.
    (5) Creation of new buyers are required.
    HTH
    Sanjay

  • Merging two cubes into one

    Is it possible to merge two cubes into one , if so how ??

    Hi
    Can u please check how we merge two cubes with 1st with 8 dimension ,
    and in other 7 dimensions, both has the same dimension.
    but in these cube when they r doing the demand planning, they r doing on different levels.
    We have one option of merging the cubes but planning across the two cubes
    or
    same cube with alternate hierarchy.
    what all things i have take in to consider while doing this.
    Please reply

  • Merge two XML files From java

    hi,
    i'm in need to merge two XML files from my java code please help me as soon......

    Rajesh42 wrote:
    hi,
    i'm in need to merge two XML files from my java code please help me as soon......Hello Rajesh42,
    While it is wonderful that you have discovered the magically code tags, please consider if it is the right time to use them. Code tags should only go round code. Note used to make your posts "stand out", or used to quote other people. Just code.
    As to your question, what have you tried, what are you stuck on?
    Mike

  • Possibility of Merging two Projects

    Hi,
    I have come across a situation where the users have entered two projects in system for one. They entered planning data for one of them only and both projects are in execution already. There are actual costs posted.
    For some time, it remained un-noticed and now I am looking for a way to clear up this mess.
    Is there any way that I can "merge" these projects or get the things "in line" after this?

    All solutions seemed to be working fine, its just that I faced a problem with different fiscal years. The client has already closed 2009 financially and revenues have been locked. One of the two projects was initiated in 2009, any changes in material costs would also require MM periods to be open for past postings.
    The business realizes the financial impacts this activity may have and decided to leave the projects in their state, considering them as two seperate projects.
    Thank you all for your responses.

  • Merging Two Views in a Single Role

    Hello All,
    I wanted to Merge two iviews with in a single role.Consider the below example.
    See, i have a role called "Role A"(TLN1 Entry) and i have two url views( iView1 and iView2) which needs to be added and it should fall under the as TLN2 entry.
    Now i have two set of groups( Group A and Group B) , if i add this role to these two groups, users who all are part of "Group A" should see the "iView1" and users who all are part of "Group  B" should see the "iView2".
    I have read some help documentation, but i could understood the concept of merging.But i would like to know, how this can be achieved.
    Please help me.
    Thanks In Advance.
    Best Regards,
    Manoj K

    Hello both,
    Thanks for the quick reply.
    I am clear now. But one thing which i would like to know, is there any possibility, if these two iviews are assigned to a single role, and this roles is assigned to two groups, basically group A and group B,  only one group of people can should see Iview1 and other group of people should see iview2.( As per i know, access can be organized via roles, but still i wanted to check with you is there any provision where i can achieve this.
    Thanks for helping me.
    Best Regards,
    Manoj K

  • I get error message iTunes could not sync calendars to iPhone because an error occurred while merging data

    I get error message iTunes could not sync calendars to iPhone because an error occurred while merging data on my wifes phone how do you correct problem without losing calendars info on phone.

    One thing that might help.
    1. open itunes preferences from the edit menu and click on the devices tab.
    2. check the box to disable syncing for iphones connected to itunes and click ok.
    3. Then click the button to reset sync history.
    4. Now click ok to close the preferences window.
    5. connect the iphone to itunes and go to the info tab.
    6. scroll to the bottom of the info page and check the box to replace the ical data on the iphone.
    7. then click apply on the bottom right of itunes.
    This will overwrite any events on the iphone, including any events that has become corrupted.
    Hope this helps

  • How can I merge two iPhoto libraries stored on an external drive?

    Today I was in a One-to-One at the Apple Store.  I want to merge two i-Photo libraries into one.  One library is on my Air, the other is on my iMac.  Both libraries have been moved to an external drive.  When I try to move one onto the other, they won't go.  Yet I am certain that while at the store today, the person there started to merge them.  He did not need the library manager software in order to do so.  We stopped the merge in order to move on to another issue.  Now that I am home, I can't get the libraries to merge.  What am I failing to do?  Thanks!

    The only way to merge two libraryies is to use  iPhoto Library Manager which will merge two libraries and keep keywords, titles, faces, places, and other metadata intact.
    If one imports one library into another library every image file in the first library, originals, thumbnails, face files, etc,  get imported as an original photo. You will end up with a total mess.  DO NOT IMPORT ONE LIBRARY INTO ANOTHER LIBRARY!
    If you have backup copies of your libraries get them back and use iPhoto Library Manager to merge them.
    OT

  • Can you merge two user accounts on macbook? my wife has created a user on her new macbook , then inadvertently created a second one when using the migration tool. 1st ac has her office 365 install, yet 2nd has her itunes database, docs and contacts.

    Can you merge two user accounts on a macbook? my wife has created a new user on her new macbook air then, inadvertently, created a second one when using the migration tool. 1st a/c has her office 365 install, while 2nd has her itunes database, docs and contacts. What is the best way forward to get everything into the one account? Not sure if the office 365 will allow another installation into the second account, otherwise would just do that and delete the first, if that is possible?

    There is no merge but you can move data from one account to another via the Shared folder. Data is copied from Shared. Watch your free space when copying. These are large files.  Do one at a time if you are on a small drive. After making copy, delete from other users before you start next copy.
    Office365 installs in the main Applications folder and is available for all users on the computer. Activation is tied to the drive not the User.

Maybe you are looking for

  • I have multiple iPhones using a single iTunes account.

    Periodically, apps that were downloaded on 1 device will pop up on another device, without being synced to a computer or being manually downloaded. Is there any way to stop this from occuring? The original downloads were done on an iPhone 4, the devi

  • HT1349 My Ipad was stolen, How can I get the serial Number from Apple. It was registered with them

    I had  2 Ipads, a mac book pro and a Mac Air stolen 2 weeks ago I am trying to locate one of the serial numbers, but cant find the last box.  Can I get the serial number from Apple. It was registered and now it is not showing up as one of my products

  • How do I prevent the use of a digital signature?

    I realize this flies in the face of some core security issues built into PDFs, but here we go... We have a customer for whom we are creating fillable PDF forms.  Due to the nature of the documents, they require handwritten signatures on printed hard

  • SXMB_MONI - Message Status - Automatic Restart

    Hello, When a message in transferred, in transaction SXMB the message has an "AUTOMATIC RESTART" icon. Other messages stuck in the queue and are waiting for the message to restart. Only after some time, the "AUTOMATIC RESTART" icon converts to "Red F

  • Lotus notes calendar one-way sync - reminder/alarm problem

    Hello Everyone, I haven't found a proper answer to this so posting here. Hopefully I will get a quick answer from some of the experts here. BB Desktop Manager version: 5.0.1.37 Device: Curve 8900 4.6.1 Lotus notes version: 8.0.2 I use BIS with tmobil