I have three different data base regions

Help is Greatly appreciated.
I have three different databases - development, QA and Production.
my requirement --I have to insert 20 new records  into "scott.PERMANENT" table 
2)In the Developemnt,QA both regions in the "scott.PERMANENT" table , 3 records are already presnet in the above new 20 records. 3)In the Production database , i dont have any data and have to insert all of the records.
So inorder to insert the data i have to use the same script in all the regions meaning i have to iclude all the 20 new records in the insert script ,but based on the region name it should check and insert those records .
could anyone please kindly give me an idea how to check the region name and insert.
Your help is kindly appreciated.

Hi,
975482 wrote:
Help is Greatly appreciated.
I have three different databases - development, QA and Production.
my requirement --I have to insert 20 new records  into "scott.PERMANENT" table  Don't create your own tables in Oracle-supplied schemas, such as SCOTT. Why not create your own schema?
2)In the Developemnt,QA both regions in the "scott.PERMANENT" table , 3 records are already presnet in the above new 20 records. 3)In the Production database , i dont have any data and have to insert all of the records.
So inorder to insert the data i have to use the same script in all the regions meaning i have to iclude all the 20 new records in the insert script ,but based on the region name it should check and insert those records .Use MERGE instead of INSERT. If you're using Oracle 10 or higher, then you don't even need a WHEN MATCHED clause; if you only have a WHEN NOT MATCHED clause, it will simply ignore the rows that you said to add but already exist.
If the columns have unique constraints, you can also INSERT all the data, and use an error logging clause
I hope this answers your question.
If not, post a complete test script that people can run to re-create the problem and test their ideas.
For example:
-- In all 3 databases, the permanent table looks like this:
CREATE TABLE permanent ...
-- In Production, where it has no rows, I could populate it like this:
INSERT INTO permanent ...
-- This is how I want the table to look in all 3 databases when everything is finished.
-- But in Development and QA, the table does have some rows already, like this:
TRUNCATE TABLE  permanent;
INSERT INTO permanent ...
-- What statement(s) would get the table to the finished state regardless of how it starts?Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
See the forum FAQ {message:id=9360002}

Similar Messages

  • I can't send emails from Mail. I have three different accounts set up and have the same problem with all. The mail just sits in my outbox. All worked fine until Yosemite upgrade. Recent update has not fixed problem.

    I can't send emails from Mail. I have three different accounts set up and have the same problem with all. The mail just sits in my outbox. All worked fine until Yosemite upgrade. Recent update has not fixed problem.

    I have been experiencing the same problem. My mail app won't even open on my Late 2011 Macbook Pro. It will show as open, but the app will never actually show up.

  • I have three different e-mail addresses, and need to receive the incoming e-mails from the three sources.  How do I enable my iPhone to do it? Tks in advance.

    I have three different e-mail addresses, and need to receive the incoming e-mails from the three sources into my iPhone (it's presently receiving msgs from only one of them).  How do I enable my iPhone to do it? Tks in advance.

    Many thanks for your help!

  • I have three different listings for Bob Seger on my iPod (bob Seger, Bob Seger System and Bob Seger and The Silver Bullet Band) How can I put all 3 in the same artist folder without changing artist name?

    I have three different listings for Bob Seger on my iPod (Bob Seger, Bob Seger System and Bob Seger and The Silver Bullet Band) How can I put all 3 in the same artist folder without changing artist name?

    Can you just create a new "Playlist", name it Bob Seger and drag what you want into the Playlist.
    File/New Playlist

  • I have three different computer with three different libraries. All are under the same sign on and password, can I sync them so I have the same content on all computers?

    I have three different computer with three different libraries, but all are under the same sign on and password. Can I sync the libraries somehow and get all my music and movies on each computer?

    Can you just create a new "Playlist", name it Bob Seger and drag what you want into the Playlist.
    File/New Playlist

  • I'm trying to install OEM SR 2.1: Windows 95B in Qemu...  How do I figure out which brand of CD-ROM drive Qemu emulates since I have three different drive specific boot disks...?

    I'm trying to install OEM SR 2.1: Windows 95B in Qemu...  How do I figure out which brand of CD-ROM drive Qemu emulates since I have three different drive specific boot disks...?

    Not exactly...; all MS produced Win9X/ME install CDs are ISO-9660 & maybe even Joliet too...  The really confusing part is that not all Windows 98 SE full install CDs are even bootable in the first place (they tend to only ship one if the PC is capable of booting directly from its optical drive...; the vast majority of PCs have to use the chain loading method due to buggy, poorly written, outdated BIOSes...; etc.).  OEM SR 2.1/Windows 95B is really quite special & innovative for its time in that it was the first Service Release of Windows 95 to support larger HDs via FAT32 which back then was still brand new: i.e.: exciting technology & it still has proven to be quite useful & versatile since most flash memory storage devices come pre-formatted FAT32.
    There's also a hidden X:\Usbsupp folder on the CD that contains the MS USB 1.1 supplement patches/upgrader: a common mis-nomer is that you don't need to install it unless your PC has USB 1.1 ports.  Even without USB 1.1 ports the upgrades to C:\Windows\system make it a lot less buggy, more secure & stable.  For anyone else that enjoys emulating OEM SR 2.1 there's also a great unofficial SP 1 for it which has so many useful patches in it I'm considering integrating it into all of my install CDs... 
    Unfortunately I've found that getting it to run decently requires tracking down a bevy of essential but according to MS's not releasing them in patch form optional DLL upgrades...  I guess not all machines are that unreliable but better to have them...; just in case you encounter a PC with a buggy BIOS that has hardware coniptions and/or ACPI/APM bugs.

  • Keep getting "not responding" message, extremely slow, have tried rebuilding data base, tried removing and re-installing. Still the same

    keep getting "not responding" message, extremely slow, have tried rebuilding data base, tried removing and re-installing. Still the same

    Do you use McAfee anti-virus software?
    If yes, please read:
    * https://wiki.mozilla.org/Thunderbird:Testing:Antivirus_Related_Performance_Issues#McAfee
    Is this an Imap mail account?
    if yes, you can choose to only synchronize the most recent of emails instead of a whole folder.
    see info :
    * https://support.mozilla.org/en-US/kb/imap-synchronization#w_configuring-synchronization-and-disk-space-usage
    Make sure you compact folders on a regular basis to remove all 'marked as deleted' emails.
    Tools -> Account Settings -> Server Settings -> Clean up ("Expunge") Inbox on Exit will compact the Inbox folder when you exit Thunderbird. If you check "Empty Trash on Exit" it will also empty and compact the Trash folder when you exit.

  • Suggestion to have a Test Data Base

    We have a "Production" Data Base Oracle 9i Release 9.0.1. 4.0 and we want to set up a "Test" Data Base because we need to make many changes and we don't want to affect "Production Data".
    We are thinking on using "Oracle Express" since we do not need a lot of data to do the test.
    Is this a Good Solution?
    Also we want to set up a process to transfer Data from Production database to this Test database.
    Any suggestions on how to accomplish this?
    Thanks a lot for your comments...!!!!

    We are thinking on using "Oracle Express" since we do not need a lot of data to do the test.
    Is this a Good Solution? Nope. You need to have a test environment (you haven't had one all this time?) that mirrors your production environment as closely as possible.
    Having exact duplicate hardware can be difficult (i.e. expensive), but your Oracle installation should be exactly what you have in production.
    The best way is to use one of the many methods of cloning your production environment to your test environment.

  • We have three different logins or accounts on our computer.  In the administrator's login, iTunes loads, syncs, and accesses the store fine.  On my two kids' logins, however, loading, syncing and acessing the store takes exponentially longer.  Any ideas?

    We have three different logins or user accounts on our comoputer.  In the administrators' login, we have no trouble opening iTunes, syncing the iPod or accessing the store.  However, in my two kids' logins, getting iTunes to recognize the device, sync it, or access the store takes exponentially longer.
    Does anyone have similiar trouble with this, and if so, do you have any suggestions?

    I think this is an excellent indicator that not only is Palm reviewing the feedback from the support forums here, but actively reviewing feedback/comments/wishes on other sites as well.
    As the original poster copied this (quite solid, IMO) wishlist from Pre Central, the palm support staff acknowledged first seeing it there.

  • I have three different ipods with music on them and have had to replace our computer as it was in a fire. How can we combine the ipods into one ipod.

    We had to replace our computer due to a fire and lost many of the fiels which were on them. Many were music files for the ipods, we have thre. Also, do not have ID's and passwords to the iTunes store.
    How can we combine the information so that they are all in each one or at least compbine everything into one ipod?

    Just so you know the method suggested by Nelsonleee will cost your $29.95 USD, Yamipod is free.

  • Can I have three different iCloud accounts in my iBook? one for each user of the family? Thanks

    I have a computer at home which is used by 5 family members. Each of us have a separate user in the MacBook. Can each of us have a different iCloud account to sincronize with each of our iPhones or once you download the iCloud for one of us, no other iCloud will be added to the same laptop?
    Many thanks.

    Hi Valeriano009,
    Welcome to the Support Communities!
    You are already on the right track with 5 individual user accounts on your computer.    Please be sure to back up your main Apple ID account before making any changes below.
    The article below will explain in more detail ... but it sounds like you will want to create a separate Apple ID for each member of your family to keep their contacts, calendars, Photo Stream etc. separate. 
    If your family has made a lot of iTunes Store purchases, you can stay signed in to your current Apple ID to have access to them.   Or your family members can start fresh with their own iTunes Store purchases.  Please review the Frequently Asked Questions section in this article:
    Using your Apple ID for Apple services
    http://support.apple.com/kb/HT4895
    Each member of your family should log into their own user account on the computer, and then click on the link below to create their unique Apple ID.
    Apple - My Apple ID
    https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/
    Make sure that the email address you want to use for your Apple ID meets these conditions:
    The email address is one that you use regularly, because it will be the primary email address for your Apple ID.
    The email address is not associated with any other Apple ID.
    The email address is not an iCloud email address, which is already an Apple ID. iCloud email addresses end with @icloud.com, @me.com, or @mac.com.
    If each family member is currently using the old Apple ID for their iCloud account on their devices, they will need to follow these steps:
    iCloud: Change iCloud feature settings
    http://support.apple.com/kb/PH2613
    Before you delete the old iCloud account from your iPhone, iPad or iPod touch, turn off each of the features ( contacts, calendars, etc. ) and when prompted, choose to "Keep on My iPhone" if you wish to keep that information.  If your family member doesn't need or want any of this information, then skip down to the selection below to delete the iCloud account completely.
    Turn iCloud features  off
    On your iOS device’s Home screen, go to Settings > iCloud, then tap to turn off iCloud features.
    When you turn off a feature, you’re asked whether you want your device to keep a copy of your information stored in iCloud for that feature.
    Once you have saved the contacts, calendars, etc. that you want from the current iCloud account on your family member's iPhone, then you can delete the old iCloud account from their device.
    Turn off iCloud completely
    On your iOS device’s Home screen, go to Settings > iCloud, then at the bottom of the screen, tap Delete Account.
    At this point, I would suggest turning off the device, and restarting it.  Then, tap on Settings > Mail, Contacts, Calendars.  Tap on Add Account.  Tap iCloud.  Now type in your family member's new Apple ID email address and password.
    Apple ID: What to do after you change your Apple ID
    http://support.apple.com/kb/HT5796?viewlocale=en_US&locale=en_US
    I hope this information helps ....
    Have a great day!
    - Judy

  • I cannot get Elemtnts 13.1 to download completely.  I have three different case numbers from Adobe and nothing helps.  I always get the "download failed" and the error code u44m1i210.

    I cannot get Elements 13.1 to download completely.  I have 3 different case numbers from Adobe and nothing helps.  I always get the "download failed" and the error code u44m1i210.  I would either like to get the product downloaded or eliminate the constant attempt which just ties up my computer.

    You could try the direct download links here
    Adobe Photoshop Elements 13 Direct Download Links, Premiere too | ProDesignTools
    And here is some info on that error code
    Error U44M1I210 | Install updates

  • Newbie: how to pull data from different data bases to a central location

    Hello,
    I have no experience at all in Oracle; just in MySQL, PostgreSQL, Firebird for simple applications. I have this project where my Client wants to extract data from related 5 tables, from 12 databases in different locations. Table structure in all 12 locations are the same, and I need to consolidate information for reporting purposes. I was planning in developing a Delphi application for this purpose, yet maybe with pure Oracle SQL or Oracle tools can I automate this?
    Thank you

    Please clarify your term "database".Instance of an Oracle database, one in each of the 12 locations.
    Are the computers in all these locations available via Internet?My client can see all 12 databases from an Oracle database manager; I still have to investigate if its through Internet or private WAN.
    What RDBMS are all these data sources?I have yet to verify the precise Oracle version, yet I know its an old one: 7 or 9. Will confirm it.
    What flavor of RDBMS is the target data repository?Same as previous question
    Is this a 1 shot data load or an ongoing requirement to consolidate "new" data into repository?The require to pull data automatically, maybe a batch process done by night.

  • I have three different libraries.  How can I combine them?

    Downloading more music onto my Mac, but they show up in different libraries on my ipod.  Is there a way to combine the libraries?
    Thanks

    Hey Kelliott222,
    Thanks for using Apple Support Communities.
    In iTunes your library library some items might be stored in different locations and you can consolidate all the files in your library to the iTunes folder.
    iTunes 11 for Mac: Change where your iTunes files are stored
    http://support.apple.com/kb/PH12165
    Managing content manually on iPhone, iPad, and iPod
    http://support.apple.com/kb/ht1535
    You can drag media files onto the iPod or iPad in iTunes to add them to the device without adding them to the iTunes library.
    Have a nice day,
    Mario

  • How do I combine three itune accounts into one? Then have three different family member have three different log-in's to sync many different devices to the same itune account ?

    How do I combine three itune accounts into one? Then how do I set up three users for the one Itunes account on ONE Mac Pro Computer with one Itunes program? We are one family with 3 I-Phones, 2- I-Pads, 2- Lap tops and 3-I-Pods and would like to use one main computer to sync all our devices to.

    "How do I combine three itune accounts into one? "
    You cannot.
    "Then how do I set up three users for the one Itunes account on ONE Mac Pro Computer with one Itunes program?"
    You can copy all of the music to one computer and set up different users see:
    Learn how to set up additional user accounts.
    How to use multiple iPods, iPads, or iPhones with one computer

Maybe you are looking for

  • I need help understanding how the Apple components integrate to create a system across all my devices?

    I need help understanding how the Apple components connect to create a whole system across all my devices? Is there a resource that describes current system and associated functionality? For example: Buy A, B, C to achieve "X"  You will need: an inte

  • How I can saving visa resource name in windows registery and load it again?

    I use visa functions in my program for serial communication , I want to save selected resource name in windows registery and next time that i run my program, i want to read it from registery and assign it to my visa resource name control. example:   

  • OAS is slow when accessing on same machine

    I have OAS 4.0.8.1 installed on an NT machine (4.0 sp6) on our network. When it serves pages to a browser on the same machine the response time is very slow (5-6 seconds). The pages that I'm accessing are fine. When using a browser on another machine

  • Document downloadin​g

    Hi, new user and not computer savvy at all.  I downloaded a document from an email attachment.  It will not open, message says it won't open becuase it's an RTF file (don't know what that is).   This question was already asked and answered on this fo

  • Error updating dataplugin properties

    When going to setting>options>extensions>dataplugins clicking on a dataplugin and clicking the Properties... button gives me an error. I get the error Error while executing "SUDDlgShow" command Error type: Access Violation Error Address: 0007c2ca Mod