PutDocument and XQuery update in the same txn
Hey all!
Is it a good idea to use putDocument() and then insert nodes into another document in the same transaction? The only thread I have hangs on XmlQueryExpression qe = xmlManager->prepare(...). If it's not a good idea, can I somehow perform those two actions atomically?
Many thanks
Vyacheslav
Hi Vyacheslav,
That's completely fine. My suspicion is that you aren't using the transaction for the call to XmlManager::prepare(), which is then creating a new transaction under the covers. Using more than one transaction in a single thread is a really bad idea, and can lead to the kind of hangs you describe.
John
Similar Messages
-
When trying to update apps an invalid apple id show up and I cannot get the apple id to update to the same id, I have restored, restored as a new phone, I have been into the manage I am at wits end after 7 hours on hold and working with techs.
Finally got through to tech support and found someone who seemed to know what was going on, he walked me through and using appleid.applesupport got me to a point where i could get a new password for the apple id that kept showing up.
I think you were on the right trail and I want to say thanks for your help. Much appreciated
ccl43 -
Can we use both INSERT and UPDATE at the same time in JDBC Receiver
Hi All,
I would like to know is it possible to use both INSERT and UPDATE at the same time in one interface because I have a requirement in which I have to perform both the task.
user send the file which contains both new and old record and I need to save those in MS SQL database.
If the record exist then use UPDATE otherwise use INSERT.
I looked on sdn but didn't find any blog which perform both the things at the same time.
Interface Requirement
FILE -
> PI -
> JDBC(INSERT & UPDATE)
I am thinking to use JDBC Lookup but not sure if it good to use for bulk record.
Can somebody please suggest me something or send me the link of any blog or anything to solve this problem.
Thanks,Hi ,
If I have understood properly the scenario properly,you are not performing insert and update together. As you posted
"If the record exist then use UPDATE otherwise use INSERT."
Thus you are performing either an insert or an update which depends on outcome of a search if the records already exist in database or not. Obviously to search the tables you need " select * from ... where ...." query. If your query returns some results you proceed with update since this means there are some old records already in database. If your query returns no rows you proceed with "insert into tablename....." since there are no old records present in database.
Now perhaps the best method to do the searching, taking a decision to insert or update, and finally insert or update operation is to be done by a stored procedure in MS SQL database. A stored procedure is a subroutine available to applications accessing a relational database system. Here the application is PI server. If you need further help on how to write and call stored procedure in MS SQL you can look into these links
http://www.daniweb.com/web-development/databases/ms-sql/threads/146829
http://www.sqlteam.com/article/stored-procedures-parameters-inserts-and-updates
[ This part you can ignore, Since its not sure that you will face this situation
Still you might face some problems while your scenario runs. Lets consider this scenario, after the stored procedure searches the database it found no rows. Thus you proceed with an insert operation. If your database table is being accessed by multiple applications (or users) other than yours then it is very well possible that after the search operation completed with a null result, an insert/update operation has been performed by some other application with the same primary key. Now when you are trying to insert another row with same primary key you get an error message like "duplicate entry not possible for same primary key value". Thus you need to be careful in this respect. MS SQL has a feature called "exclusive locks ". Look into these links for more details on the subject
http://msdn.microsoft.com/en-us/library/aa213039(v=sql.80).aspx
http://www.mssqlcity.com/Articles/Adm/SQL70Locks.htm
http://www.faqs.org/docs/ppbook/r27479.htm
http://msdn.microsoft.com/en-US/library/ms187373.aspx
http://msdn.microsoft.com/en-US/library/ms173763.aspx
http://msdn.microsoft.com/en-us/library/e7z8d5hf(v=vs.80).aspx
http://mssqlserver.wordpress.com/2006/11/08/locks-in-sql/
http://www.mollerus.net/tom/blog/2008/03/using_mssqls_nolock_for_faster_queries.html
There must be other methods to avoid this problem. But the point is you need to be sure that all access to database for insert/update operations are isolated.
regards
Anupam -
hello i hav an ipad mini and i was in the middle of the ios 8 update and i held the sleep and home button at the same time to cancel the update and now it wants me to connect to itunes i dont no how to do that can someone pleaze help me?
RECOVERY MODE
1. Turn off iPad
2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
3. Plug USB cable into computer's USB port
4. Hold Home button down and plug the other end of cable into docking port.
DO NOT RELEASE BUTTON until you see picture of iTunes and plug
5. Release Home button.
ON COMPUTER
6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
7. Select "Restore iPad"...
Note:
1. Data will be lost if you do not have backup
2. You must follow step 1 to step 4 VERY CLOSELY.
3. Repeat the process if necessary. -
II've had my ipad with retina display for about a 1 now and everything was fine In till I got my iphone 4s and put them on the same account then my ipad stopped letting me log in to my FaceTime and iMessage and it doesn't let me update my apps and dosnt let me log in to iCloud ever since I got my phone and put them on the same account does anyone know how I could fix it and still be able to connected to my iphone??
Did you change your Apple ID?
Unable to make or receive FaceTime calls after April 16, 2014
http://support.apple.com/kb/TS5419
Using FaceTime http://support.apple.com/kb/ht4319
Troubleshooting FaceTime http://support.apple.com/kb/TS3367
The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
http://tinyurl.com/a7odey8
Troubleshooting FaceTime and iMessage activation
http://support.apple.com/kb/TS4268
iOS: FaceTime is 'Unable to verify email because it is in use'
http://support.apple.com/kb/TS3510
Using FaceTime and iMessage behind a firewall
http://support.apple.com/kb/HT4245
iOS: About Messages
http://support.apple.com/kb/HT3529
Set up iMessage
http://www.apple.com/ca/ios/messages/
iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
http://support.apple.com/kb/HT5538
How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
Set Up Alert Sounds
http://www.quepublishing.com/articles/article.aspx?p=1873027&seqNum=3
Extra FaceTime IDs
http://tinyurl.com/k683gr4
Troubleshooting Messages
http://support.apple.com/kb/TS2755
Troubleshooting iMessage Issues: Some Useful Tips You Should Try
http://www.igeeksblog.com/troubleshooting-imessage-issues/
Setting Up Multiple iOS Devices for iMessage and Facetime
http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
FaceTime and iMessage not accepting Apple ID password
http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
Fix Can’t Sign Into FaceTime or iMessage iOS 7
http://ipadtutr.com/fix-login-facetime-imessage-ios-7/
FaceTime, Game Center, Messages: Troubleshooting sign in issues
http://support.apple.com/kb/TS3970
Unable to use FaceTime and iMessage with my apple ID
https://discussions.apple.com/thread/4649373?tstart=90
iOS 7 allows you to block phone numbers or e-mail addresses from contacting you via the Phone, FaceTime, or Messages
http://howto.cnet.com/8301-11310_39-57602643-285/you-can-block-people-from-conta cting-you-on-ios-7/
How to Block Someone on FaceTime
http://www.ehow.com/how_10033185_block-someone-facetime.html
My Facetime Doesn't Ring
https://discussions.apple.com/message/19087457#19087457
How to watch FaceTime calls on the big screen with Apple TV
http://www.imore.com/daily-tip-ios-5-airplay-mirroring-facetime
Send an iMessage as a Text Message Instead with a Quick Tap & Hold
http://osxdaily.com/2012/11/18/send-imessage-as-text-message/
To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
How to Text on the iPad
http://ipad.about.com/od/ipad_tricks/a/How-To-Text-On-The-Ipad.htm
How to Send SMS from iPad
http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
How to Receive SMS Messages on an iPad
http://yourbusiness.azcentral.com/receive-sms-messages-ipad-16776.html
Apps for Texting http://appadvice.com/appguides/show/apps-for-texting
You can check the status of the FaceTime/iMessage servers at this link.
http://www.apple.com/support/systemstatus/
Cheers, Tom -
I have updated my iphone 5 with IOS7. Now there is an update 7.0.2 on my cell and the size of update file is showing around 21.0 MB. I tried to update it ITunes but it seems it is downloading the entire IOS. Is there any separate update for the same or I have to download the entire IOS again?
Well when you download the update with iTunes it will always download the whole new version (in your case 7.0.2) even if its just an bug fix. If you already have 7.0 download the update over-the-air.
You already wrote that the update is only 21 MB, so its not the whole firmware package of 7.0.2 you get with iTunes. -
I just updated my phone to iOS7 and me and my mom have the same apple ID, so now for some reason I get all the text messages that are sent to her iPhone on mine..? Help please!!
Stop sharing an Apple ID. That is the cause.
Settings > Messages > Send & Receive > You can be reached for messages at... -
i was updating my phone and and the connect to itunes sign has come on and wont go? now my phone is wont come on and if i try the same connect to itunes sign comes up
You need to restore the device to factory settings using a computer with iTunes. Then, if you have a backup, you can try restoring the backup to your device.
-
Nsert/Update and Add Column at the same Table and at the "same" Time
Hello,
I want Insert/Update and Add Column at the same Table and at the "same" Time but in different sessions.
Example:
At first the "insert/update" statement:
Insert into TestTable (Testid,Value) values (1,5105);
After that the "add" statement:
Alter table TestTable add TestColumn number;
- sadly now I get the message: ORA-00054: resource busy and acquire with NOWAIT specified
"insert/update" statement:
Insert into TestTable (Testid,Value) values (2,1135);
After that the execute commit.
I don't know when the first session set the commit statement so I want that the DB the "Alter Table..." statement execute if it's possible.
If it's possible I want to save a repeat loop with the "Alter Table..." statemtent.
Thanks for ideasWell I want to walk in the rain without and umbrella and still stay dry, but it ain't gonna happen.
You can't run a DDL statement against a table with transactions pending. Session 2 has to wait until session commits or rollbacks (or until the session is killed). That's just the way it is.
This makes sense if you think about it. The data dictionary has to be consistent across all sessions. If session 2 was allowed to change the table structure whilst session 1 has a pending transaction then the database is in an inconsistent state. This is easier to see if you consider the reverse situation - the ALTER TABLE statement run by session 2 does a DROP COLUMN TESTID rather than adding a column: now what should happen to session 1's INSERT statement? You have retrospectively invalidated a statement that was perfectly legal when it was executed.
If it's possible I want to save a repeat loop with the "Alter Table..." statemtent.Fnord.
Cheers, APC -
Im trying to install Photoshop Elements premier 12 on my new Mac with the latest update and i keep getting the same failed to initialise message. I was able to register the key code at first but now im not able to either open the program or reinstall it.
What is "Photoshop Elements Premier 12"? Do you mean Photoshop Elements or Premiere Elements? Were your files copied over from a previous mac that had PSE installed on it?
-
Run DW CS4 and DW CS5.5 update on the same machine?
Is it possible to run DW CS4 and DW CS 5.5 (as an update of the DW CS 4) on the same machine? Due to the fact that ADDT doesn't exist anymore and we still have some projects needed to be maintained on ADDT, DW CS 4 should still be usable on the same Mac.
Yes, each upgrade installs into its own folder.
Just don't try and run them at the same time.
Many people keep half a dozen versions (upgrades of each other) on their hard drive since hard drives are so spacious these days. -
After just installing OS10 Yosemite v10.10.1, I try to open Photoshop CS5 and get a message saying 'To open "CS5ServiceManager", you need to install the legacy Java SE 6 runtime.' I updated to Java 8 update 25 and I still get the same message when I try to open CS5. What do I need to do in order to open and use Photoshop CS5 using Yosemite? Thank you for your help
Here it is: Apple Java 2014-001.
-
I need to update illustrator, flash and after effects and I keep getting the same error 49 over and over. Please help thanks!
Link for Download & Install & Setup & Activation problems may help
-Chat http://www.adobe.com/support/download-install/supportinfo/
OR
-http://helpx.adobe.com/creative-cloud/kb/error-downloading-cc-apps.html
-http://forums.adobe.com/community/download_install_setup
-http://helpx.adobe.com/creative-cloud/kb/troubleshoot-cc-installation-download.html
-http://helpx.adobe.com/x-productkb/global/errors-or-unexpected-behavior-websites.html
-http://helpx.adobe.com/creative-cloud/kb/unknown-server-error-launching-cc.html
-Server won't connect https://forums.adobe.com/thread/1233088 -
iPhone 5, updating using iTunes, iphone could not be updated, error code 3014, iphone is in recovery mode, I have re-installed iTunes twice and each time got the same message
Error 3014
This error occurs when iTunes can't reach gs.apple.com in a timely fashion. Follow the steps below to contact the iOS software update server gs.apple.com. -
ok i need to unlock my ipod but i don't know my password i use itunes but i need to update at the same time this srcews up the itunes and i have to restart the computer i need to restore the ipod please help
Connect the iOS device to your computer and restore via iTunes. Place the iPod in Recovery Mode if necessary to allow the restore.
If recovery mode does not work try DFU mode.
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
Maybe here:
Trouble installing iTunes or QuickTime for Windows
iOS: Device not recognized in iTunes for Windows
Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
Maybe you are looking for
-
How to configure sngle-disk RAID?
970a-G46, bios 1.11, and would like to know if anyone else is having trouble configuring a single boot disk for RAID. Along with my twin 500GB RAID 0 & two 320GB RAID 0 drives for applications and data I thought I was OK. My last MSI mobo included
-
Error while opening in-box from ESS
We have a user in SAP, and he has 1200 unread doc in his In-box. If this user tried to open his in-box from ESS, he will get an error Any idea How to resolve it ? Regards Suraj
-
PP - creation of planned order
HI, I have a finished product say F001 which has the semi finished product - say- a001 and a001 has another semi finished product - aa001 aa001 has another semi finished product - aaa001 Now When I run MRP for finished product F001 and after that
-
Hi, here are some of my Lightroom Feature Requests (maybe later more): - Filter based on image size. Example: show me all photos with a resolution of 1600x1200 or less. - More complex filtering. Example: show me all photos from the Collection A that
-
How much power does the iMac use at idle? (e.g. in watts)
I've just noted how much my current PC chews up in power - wondering how good an iMac would be?