How to sync schema changes?

Hi everybody,
my question is:
if I made some changes in application schema on desktop database (e.g. alter table, add constraint or else) how could I sync these changes with mobile schema?
I've tried to re-package application with Packaging Wizard and then run mSync on PDA side, but nothing had changed.
What is the right way to complete the task?
Best regards,
Roman.

Hi
Unfortunately, you cannot rely on republishing for schema evolutions. Behavior is quite odd (for instance, i change column length, it does nothing, and then i add a column, and it works perfectly for both changes).
I've open a TAR on the subject, and was told to use Consolidator API.
If you do not want to use the API, there seems to be a way, but it's pretty uneasy to do (need all your users to have synched at a certain date, need to recreate repository ...); here's a copyand paste of that method (i got it on metalink forum) :
"I manage a mobile schema of 135 tables and I have found that the ONLY reliable way to deploy schema revisions is to drop and recreate my repository. I have spent time on the phone with Oracle regarding a few issues, and the end result is that simply republishing my Mobile app does not work 100% of the time and odd bugs pop up where tables refresh over and over and never get in sync, or some tables never sync up correctly at all, or the structure doesn't update on the PDA. The repository simply gets "out-of-whack" or corrupted.
Furthermore, anytime you make DDL changes to the base backend tables on which your Mobile schema is based, you must republish your application. This is documented, I believe. Republishing the Mobile schema _should_ simply cause your clients to get out of sync and require a full refresh. Your results may vary with 10.0.0.0.x
With my app, I only do maintenance every 90 days or so, so I have all
clients sync by Friday of the weekend of maintenance, and I rebuild my Mobile repositories over the weekend. I do have different customers on different servers so I can do rolling maintenance. It is becoming less acceptable to recreate repositories as our customer base is growing and more users are added to one Mobile server.
If you can get by with a simply republish, by all means do so because if you do recreate the Mobile schema you must recreate users, and the users will require a full database refresh.
1) Make sure all your users have synched any modified records or they will lose their updates
2) Configure and activate tracing on the Mobile server
3) Stop Mobile server
4) Do your DDL on the backend tables
5) Restart Mobile server
6) Republish your JAR file
7) Try a sync, you should get full refresh. Try a 2nd sync. If you get another full refresh, you are hitting the same bug I've seen and you will then probably either have to log a TAR and provide Oracle with lots of tracing information (which you should have if you
did step 1) "
good luck
JC

Similar Messages

  • Using Change Data Capture in SSIS - how to handle schema changes

    I was asked to consider change data capture for a database recently.  I can see that from the database perspective, its quite nice.  When I considered how I'd do this in SSIS, it seemed pretty obvious that I might have a problem, but I wanted to
    confirm here.
    The database in question changes the schema about once per month in production.  We have a lot of controls in our environment, so everytime a tables schema is changed, I'd have to do a formal change request to deal with a change to my code
    base, in this case my SSIS package; it can be a lot of work.   If I wanted to track the data changes for inserts, update and deletes using an SSIS package to send the data changes to the destination tables, would I have to change my SSIS package
    with every schema change, or is there a way to keep the exact same SSIS package with CDC without having to change it every month?
    Thanks,
    Keith

    Hi Keith,
    What is your exact requirement?
    If you want to capture the object_created, object_deleted or object_altered informations, you can try using
    Extended events .
    As mentioned in your OP:
    "If I wanted to track the data changes for inserts, update and deletes using an SSIS package to send the data changes to the destination tables, would I have to change my SSIS package with
    every schema change, or is there a way to keep the exact same SSIS package with CDC without having to change it every month?"
    If you want the databases in two different environments to be in sync, then take periodic
    backup and apply(restore) on the another destination DB.
    (or)
    you can also try with
    SQL Server replication if it is really needed.
    As I understand from your description, if you want the table data & schema to be in sync in two different database:
    then create job [script that will drop the destination DB table & create the copy of source DB table ] as per your requirement:
    --CREATE DATABASE db1
    --CREATE DATABASE db2
    USE db1
    GO
    CREATE TABLE tbl(Id INT)
    USE db2
    GO
    IF EXISTS (SELECT * FROM SYS.OBJECTS WHERE name = 'tb1' and TYPE = 'u')
    DROP TABLE dbo.tb1
    SELECT * INTO db2.dbo.tb1 FROM db1.dbo.tbl
    SELECT * FROM dbo.tb1
    --DROP DATABASE db1,db2
    sathya - www.allaboutmssql.com ** Mark as answered if my post solved your problem and Vote as helpful if my post was useful **.

  • How to sync the changes in Crsytal With repsect to changes in BVM?

    Hi,
    I made some changes in Business View, but dont know how to reflect those changes in the respective Crystal report without restarting application.
    I tried with Refesh, Log On/Off Server in Repository Explorer but the changes did not reflected in report.
    Could any one please help on this?
    Thanks in advance.
    Ashish B.

    As far as I can tell the only way for Crystal Reports to accept changes in the Business Views, Elements or Foundations is to exit and reopen Crystal Reports.  If you go to verify database before restarting, it does not register the changes, but if you restart and then go to verify database (or run the report) then the changes are picked up.  Not sure if this will be fixed in BOER3 or CR2008, but I hope so.
    Geoff.

  • How To Sync WITHOUT Changing App Pages On Device

    *Help please. I can connect and sync my iPod Touch without probs. I want to sync apps WITHOUT changing the pages, or location of icons on each page, as they appear on my device. How may I do this?? There are options to "sync by" size, date, etc, etc. None of those appear to allow me to keep the apps arranged as I have them when I launch iTunes. There must be a way! Thanks!!*

    *Not sure what you mean. I do not have my apps organized by folders. I do have my apps organized by my usage (most used on page 1, etc). I sync MANUALLY. Therefore, when I go to app tab for syncing, the apps are shown as they appear on my device, but are grayed-out. When I check the "sync apps" box (upper left) the apps rearrange themselves into a random order; change pages, etc. I immediately uncheck the box and do not sync. If I do sync the apps, the sync process rearranges the apps into the random order shown when I check the box. All I want to do is sync my apps WITHOUT messing with the order in which I have arranged them on my device. HELP!*

  • How do i change my iCloud account on my iPhone? I want to change it to my husbands so all of our information syncs, but will this completely delete my iCloud account? and by doing this how will my phone change (such as contacts, photos etc.) ?

    I want to change it to my husbands so all of our information syncs on to my iphone and our ipad, but will this completely delete my iCloud account? and by doing this how will my phone change (such as contacts, photos etc.) ?

    Bad idea.
    What information do you want to share, exactly?  You can share contacts, reminders, and calendars with other iCloud users without the need for both of you to use the same iCloud account.  You can authorize both phones to use apps purchased under the same Apple ID without sharing an iCloud account.
    Sharing an iCloud account is a bad idea in general. There is too much opportunity for someone to damage or delete data that will affect both.

  • On my PC, in I-Tunes, my iPod (touch) button disappears every time I try to sync or update.  Everything has been rebooted, but no changes. Any ideas on how to sync to the IPod?

    On my PC, in I-Tunes, the iPod (touch) button disappears every time I try to sync or update.  Everything has been rebooted, but no changes. Any ideas on how to sync to the IPod?  Better yet, how to keep the ipod button on screen when itunes is open and the ipod is connected?

    - Have you tried another USB port and cable?
    - Inspect the dock connector for bend or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.

  • How to sync respositories when Target datastore get changed.

    Hi,
    How to sync the repositories when target data-store get changed. ?
    Means, Suppose my target table say TRG_SALES having 6 columns, but later I alter the target table and added two more columns in it. Then how would I re-sync with repository?
    Can anybody help me ?
    Thanks in advance.
    -Shrinivas
    Edited by: 878809 on Aug 11, 2011 3:45 AM
    Edited by: 878809 on Aug 11, 2011 3:46 AM

    Hi,
    By reverse engineering the target table in the ODI model. If you use 'Selective Reverse', then you can select the tables that you require. If it is only one table, then you can use the 'Object Mask' field.
    Cheers
    Bos

  • How Can I Sync Multiple Changes at the same time?

    Is there a way to configure iTunes so that I can make changes in multiple sections, and only sync or apply them when I've made all of them?
    For example: I want to changes setting in Music, Apps, and Books. Today, it seems like I have to go to change settings,hit apply, and wait for the iTunes to sync for each one. What I want to do it make changes in all of them, then hit apply/sync and wait for the iTunes to sync all my changes in one swoop.
    The seems very intuitive and saves the user a lot of time. Can iTunes be configured to due this?

    The OP's question asked - in iTunes for Windows, if it was possible to "configure iTunes" (not the iPod) and then "Sync those changes to the iPod in one step"
    Is there a way to configure iTunes so that I can make changes in multiple sections, and only sync or apply them when I've made all of them?
    For the media, one can;
    untick songs in the Library in order for them to be removed at the next Sync (and obviously the reverse to put them back on),
    the same procedure for books,
    create and modify Playlists,
    remove or add photos to the chosen Photos folder (in Windows of course, not in iTunes) which then get removed or added at the next Sync,
    and then connect the iPod. One can prevent an iPod from Syncing at initial connection time, so that further changes to things such as which Apps to Sync (which does need to iPod to be connected), choices of Selected Playlists only, etc. (ditto) can be made by choosing the appropriate pane. As yet, whenever I've done this, I have never had to Sync one change before switching to a different pane. The first change causes the Apply and Revert buttons to appear. I ignore them and continue to make further changes on the other panes. Then I select Apply. The Apply/Revert buttons are removed and replaced by a Sync button. So, although there is the Apply, then Sync to be done, it can hardly be described as a burden.
    Are you saying Chris, that you have to apply one change at a time, followed by a sync before making any other change?

  • How to sync changes in user-created distributions lists when used by multiple Outlook users

    Hi all,
    Thanks for looking at my post. We are using Outlook exchange and Outlook 2010.
    I have created a distribution list that is comprised of 20 members (students) with email addresses outside our organisation. I have sent this list to others in my workteam (Lecturers) and they have added the list to their own contacts group - we
    share this list as we all email the same students for different reasons.
    My issue arises when a student needs to be deleted from the distribution list and I am the first person to find out about it. Ideally, I would like to take the student off and have this distribution list automatically update for the other lecturers instead
    of having to re-send the list to them after it has been edited. As it stands at the moment, each lecturer has to go into the distribution list I originally sent to them to delete the student.
    There has to be an easier way to sync the changes that each lecturer makes to this list.
    Any ideas?
    Thanks in advance
    Sharyn

    You can place the group in a shared Contacts folder so everyone will see the same group.
    Depending on your Exchange infrastructure and working habits, this could be a folder in your mailbox, a Public Folder, Shared Mailbox or even a SharePoint List.
    Robert Sparnaaij
    [MVP-Outlook]
    Outlook guides and more: HowTo-Outlook.com
    Outlook Quick Tips: MSOutlook.info

  • Schema changes, minimal downtime

    We are a software development company, using Oracle 10g (10.2.0.2.0). We need to implement schema changes to our application, in a high traffic environment, with minimal downtime. The schema changes will probably mean that we have to migrate data from the old schema to new or modified tables.
    Does anyone have any experience with this, or a pointer to a 'best practices' document?

    It really depends on what "minimal" entails and how much you're willing to invest in terms of development time, testing, hardware, and complexity in order to meet that downtime requirement.
    At the high end, you could create a second database either as a clone of the current system that you would then run your migration scripts against or as an empty database using the new schema layout, then use Streams, Change Data Capture, or one of Oracle's ETL tools like Warehouse Builder (which is using those technologies under the covers) to migrate changes from the current production system to the new system. Once the new system is basically running in sync with the old system (or within a couple of seconds), you can shut down the old system and switch over to the new system. If the application front end can move seamlessly to the new system, and you can script everything else, you can probably get downtime to the 5-10 second range, less if both versions of the application can run simultaneously (i.e. a farm of middle-tier application servers that can be upgraded 1 by 1 to use the new system).
    Of course, at this high end, you're talking about highly non-trivial investments of time/ money/ testing and a significant increase in complexity. If your definition of 'minimal' gets broader, the solutions get a lot easier to manage.
    Justin

  • How does iSync recognise changes in Mac and phone

    Hi all,
    After getting a brand new cellphone Motorola V3X, i managed to transfer all contacts from my MAC address book to the phone via iSync.
    However, i noted the following:
    1. Let say in MAC address book there is an entry called
    "sarah jessica" (as first name) and "parker" (as last name), after sync and transferred to phone, the phone first name becomes "sarah-jessica" while last name remains. The same applies when 2 words appeared in last name, and it will be separated with "-" in phone after sync. Any idea?
    2. Assuming both phone and MAC address book are in sync, and i made changes to contact A in MAC then later made a different change in contact A in phone. If i sync, which entry will be considered as the latest and how does iSync differentiate it?
    Sorry for the length questions as i am a newbie with iSync.
    Thanks

    It's difficult to answer your question directly, because not all sync schemas and their extensions are public. I think Julian is absolutely correct when he points to the behavior you see being the result of Motorola's implementation of contact records. Their structure is generally more restrictive—far less flexible, actually—than those of others like Nokia and SONY Ericsson, and Apple programmers and developers must work within the bounds of these implementations when matching data records through iSync. Some of the issues are very clearly Motorola's alone, and some are likely generic Symbian issues.
    This link is a general overview of how the Sync Services framework operates, and might help you understand the second observation you raised:
    http://developer.apple.com/macosx/syncservices.html
    This one is a link to the public schema for the Address Book, and shows that it is actually much more detailed and complex than surely almost anyone outside of the developer community understands:
    http://developer.apple.com/documentation/AppleApplications/Reference/SyncService sSchemaRef/index.html
    And, it's made more so when extensions are added by third-parties to the schema, like those in CRM applications and alternative synchronization programs like the Missing Sync for Palm OS.

  • What is the best methodology to handle database schema changes after an application has been deployed?

    Hi,
    VS2013, SQL Server 2012 Express LocalDB, EF 6.0, VB, desktop application with an end user database
    What is a reliable method to follow when there is a schema change for an end user database used by a deployed application?  In other words, each end user has their own private data, but the database needs to be expanded for additional features, etc. 
    I list here the steps it seems I must consider.  If I've missed any, please also inform:
    (1) From the first time the application is installed, it should have already moved all downloaded database files to a separate known location, most likely some sub-folder in <user>\App Data.
    (2) When there's a schema change, the new database file(s) must also be moved into the location in item (1) above.
    (3) The application must check to see if the new database file(s) have been loaded, and if not, transfer the data from the old database file(s) to the new database file(s).
    (4) Then the application can operate using the new schema.
    This may seem basic, but for those of us who haven't done it, it seems pretty complicated.  Item (3) seems to be the operative issue for database schema changes.  Existing user data needs to be preserved, but using the new schema.  I'd like
    to understand the various ways it can be done, if there are specific tools created to handle this process, and which method is considered best practice.
    (1) Should we handle the transfer in a 'one-time use' application method, i.e. do it in application code.
    (2) Should we handle the transfer using some type of 'one-time use' SQL query.  If this is the best way, can you provide some guidance if there are different alternatives for how to perform this in SQL, and where to learn/see examples?
    (3) Some other method?
    Thanks.
    Best Regards,
    Alan

    Hi Uri,
    Thank you kindly for your response.  Also thanks to Kalman Toth for showing the right forum for such questions.
    To clarify the scenario, I did not mean to imply the end user 'owns' the schema.  I was trying to communicate that in my scenario, an end user will have loaded their own private data into the database file originally delivered with the application. 
    If the schema needs to be updated for new application features, the end user's data will of course need to be preserved during the application upgrade if that upgrade includes a database schema change.
    Although I listed step 3 as transferring the data, I should have made more clear I was trying to express my limited understanding of how this process "might work", since at the present time I am not an expert with this.  I suspected my thinking
    is limited and someone would correct me.
    This is basically the reason for my post; I am hoping an expert can point me to what I need to learn about to handle database schema changes when application upgrades are deployed.  For example, if an SQL script needs to be created and deployed
    then I need to learn how to do that.  What's the best practice, or most reliable/efficient way to make sure the end user's database is changed to the new schema after the upgraded application is deployed?  Correct me if I'm wrong on this,
    but updating the end user database will have to be handled totally within the deployment tool or the upgraded application when it first starts up.
    If it makes a difference, I'll be deploying application upgrades initially using Click Once from Visual Studio, and eventually I may also use Windows Installer or Wix.
    Again, thanks for your help.
    Best Regards,
    Alan

  • HT1386 I have an 80GB iPod that was purchased in 2007 and I cannot figure out how to sync it using the "newer" iTunes format.  Can anyone help?

    I have an older iPod (80GB) which I used to be able to sync, but now the iTunes format has changed and I cannot figure out how to sync it.  The tutorial showed a page that should pop up when the device is connected to my authorized PC, but that page does not appear.  Any suggestions?  I need to sync my device to transfer newer music.

    If you have a PC, Control S brings back that familiar side bar on the left side. That might help.  I'm also going to askt he hosts to relocated this post in the iPod forum. This is the iPad part and you may get more device specific info there.

  • How to see the changes made for iPad in iTunes on my iPad?

    How to see the changes made for iPad in iTunes on my iPad? I've been transferring some pdf-files and changed the name on them in iTunes under the index books for my iPad device, but the changes do not show in iBooks-PDF. What to do?

    Yes I tried syncing a lot of times, but the changes still wouldn't show, so I did as you said by beginning from the start by adding the PDF's once again.
    Thanks for your help, it works now :-)

  • How to sync my wife's iPad2, iTouch

    How to sync my wife's iPad2, iTouch (iOS5.1)  & iMac account to Mountain Lion when it was originally sync'd to my account on Loin using my ID?

    Ok, to clarify:
    1. You had the iPad2, iTouch, and iMac account sync'ing on 10.7 Lion under your account?
    2. Now you want change those devices to your wife's Apple ID and maybe a new login account for the wife?
    (Did you upgrade from Lion to Mountain Lion on a single iMac that you share?)
    If that's what you meant:
    1. If the devices were activated and sync'd under your Apple ID on your computer then going to a second computer you will receive an error in iTunes about the device being sync'd to a different computer.  You will have to wipe the devices and start over to change that...  You could also end up having Apps installed on the iOS devices some under your AppleID and some under your wife's AppleID.  That can be painful as you need to logout of the App/iTunes stores and switch accounts then update.  You'll see updates available but not be able to update all of them because half are under a different AppleID.
    However, it is possible to share an Apple ID for purchases between devices.  I use my AppleID between my work iPad3, iPhone4S, the wife's iPad2 and iPhone4 as well as my Mac's and the wife's iMac.  This way all purchases are made under one account.  I then setup the wife with her own iCloud account while still using my AppleID for the App/iTunes stores.  All she has to know is the password to my account and I think I can trust the wife with that. 
    Going to need very specific information to provide you the proper course of action to save you time and effort. 

Maybe you are looking for

  • Problem with the GridBagLayout Manager

    Hello i am new to Java Swing and i am facing a problem with the GridBagLayout layout manager . the code in question is attached. First compile and run the code. It will execute w/o probs . Then go to the "Console" tab. There the diff components (6 bu

  • Issue with Importing and Backups

    I am trying to organize all of my photos using a simple scheme which is the following:     1) import all photos into a new Aperture library.     2) using the Aperture Import setting to automatically put a backup of each picture on an external hard dr

  • Calendar syncing problems.

    So I linked my UCF (Knights Email) account to my iPhone. It's microsoft exchange based. I get all the emails just fine, and when I open up Calender on my iPhone, I can create events under the "UCF" Calender just fine. I've created numerous events und

  • Yay...disk read error

    I just started an entirely new PC, except for the hard drive (160 gb, maxtor), which still had my previous installment of windows XP.  On boot-up, I get the 'Post' splash screen, followed by like 10 sec's of a prompt if I want to set up RAID, and the

  • Problem with opening page

    Hi, I have problem with open IR,ID in XI. I can able to logon the xi server through log on pad. But i am unable to open IR,ID, SLD and Runtime work bench. Can u help me this. Thanks and regards manoj