Is there a way to use owa_opt_lock.checksum in Select query that returns multiple records?

Trying to do something as data would be uploaded and edited in grid. At present I am using Ora_Hash.
SELECT
        e.ROWID, e.Employee_Id,e.First_Name,e.Last_Name,e.Email,e.Phone_Number,e.Hire_Date,
        e.Job_Id,e.Salary,e.Manager_Id,e.Department_Id,
        owa_opt_lock.checksum('HR','EMPLOYEES', e.rowid) As HashForThisRow
FROM EMPLOYEES e;
Thx

No you can't.
owa_opt_lock.checksum is a function which is used for optimist locking. It locks the row(probably by using Select FOR Update mechanism) which you select and which you are trying to update. As a result, what you are eventually trying to do is that inside a Select query you are using a function that is locking the rows, which is not allowed. And thus your query will fail with the below mentioned error.
ORA-14551: cannot perform a DML operation inside a query
ORA-06512: at "SYS.DBMS_SQL", line 1575
ORA-06512: at "SYS.OWA_OPT_LOCK", line 172
14551. 00000 -  "cannot perform a DML operation inside a query "
*Cause:    DML operation like insert, update, delete or select-for-update
           cannot be performed inside a query or under a PDML slave.
*Action:   Ensure that the offending DML operation is not performed or
           use an autonomous transaction to perform the DML operation within
           the query or PDML slave.
Thanks,
Ishan

Similar Messages

  • Is there a way to use the keyboard to select a Bookmark Toolbar item?

    Hello. I'm using FF 25 on a Mac running Mountain Lion 10.8.5. I love how fast it is! However, one thing I use constantly in Safari is the ability to use a keyboard shortcut to access my Bookmark Bar items, since they're all bookmarklets. For example, in Safari I can use Command-1 to invoke the first bookmark bar item, etc.
    Is there a way to do this in FF 25?
    Thanks.

    Try this extension:
    *Bookmark Shortcut Keys: https://addons.mozilla.org/firefox/addon/bookmark-shortcut-keys/
    You can set the modifier in the Preferences of the extension.<br />
    I've tested it on Linux and it still appears to work for me in spite of the comments, so you can give it a try and see which modifier works on Mac.

  • Is there a way to create mutiple page forms in Acrobat that store 1 record per page?

    Basically, I'm creating a form, that I would like to make notes on each page individually. I am running into an issue however, since the name of the fields are the same throughout the whole document. Is there a way for Acrobat to treat each page as an individual record, so I can track this data throughout the whole thing? Is my only alternative to resort to Javascript to change these names in acrobat? On the front end, I'm designing the form in InDesign, and then exporting to acrobat.

    In Acrobat, a page can be made a template, which is really nothing more than a page that has been given a name. With JavaScript, you can spawn a template page to create a new one, and any fields a template page has can be automatically renamed when spawned (following a particular convention) so that each page's fields are independent from those on other pages. Note that JavaScript is not able to change a field's name, but it can create and remove fields.

  • Is there a way to interpet the chords on a track that's already recorded?

    Hi,
    I know that in the Midi monitor when you play a chord on your keyboard it'll show you the chord name. But, I would like to be able to see the chord name once the part is already recorded. Is there any way to do this? Or is there a way to select the notes in one of the windows and let it interpet the chord (like in Cubase)? I don't see it in the manual.
    Thanks

    If you're in express a poor man's way to do it is to add a tuner to your channel strip and just look to see what the base of the chord being played is. From there you can extrapolate the rest of it. Silly, but it does work

  • Is there a way to base a collection from a query that shows all Distribution Points?

    Hi,
    I am able to create a query in Excel that shows all distribution points in my SCCM hierarchy:
    i.e.
    SELECT v_DistributionPointInfo.ServerName 
    FROM SMS_EY0.dbo.v_DistributionPointInfo v_DistributionPointInfo
    Is there anyway to get this query into SCCM Queries so that I can base a Collection off of the query.  This way, I will have a dynamic collection to show me all of my 630+ distribution points?
    Thanks!

    Thanks alot for the statement. In my situation it didn't worked. The probem is, that the data in SMS_DistributionPointInfo.Servername is written as FQN. In SMS_R_System.Name the Name is without FQ.
    I have successfuly tested the following query in SQL:
    Select
    * from
    v_r_system
    where
    v_r_system.Name0
    in (Select
    REPLACE(Servername,
    'FQN-String',
    '') from
    v_DistributionPointInfo)
    But this doesn't work in WQL
    Select
    * from
    SMS_R_System where
    SMS_R_System.Name
    in (Select
    REPLACE(Servername,
    'FQN-String',
    '') from
    SMS_DistributionPointInfo)
    Do you see another solution for my problem?
    Kind regards Stefan Somogyi

  • Is there a way to use a path as a selection marquee?

    Is there a way to take path, closed, and select everything that falls inside? or crosses it?

    Nope. I've been suggesting that for years as a better interface for both "lasso" selections and cutting paths.
    If Illustrator's Javascript model provided a function for path intersection and "collision", (similar to FlashScript's ability to detect path collisions) scripting such a solution would probably be trivial. But there is no such function provided.
    Such a function could be leveraged for other features, too. For example, imagine integrating it with Symbols. You're drawing a map. You have a Symbol of a tree. You draw a path in the shape of the forest, and issue a command to randomly position any desired number of Instances of the Symbol.within the path. (Compare the speed and ease of that to the tedious and difficult-to-control Symbolism tools.)
    You can do cumbersome workarounds, but so far, any I've come up with proove too sluggish. For example, you could semi-automate this with a combination of Script and Actions:
    1. Draw a path.
    2. Fill it with a Pattern Swatch (or Create Object Mosaic)
    3. Expand the fill (or Ungroup the Object Mosaic)
    4. Replace the resulting Groups (or Object Mosiac paths) with Instances of a Symbol.
    5. Use the Random setting of Transform Each to somewhat "randomize" the placements.
    But even that does not guarantee intersection with the original path.
    I have used similar routines to script the creation of pseudo halftones and diffusion dithers. But for much detail the scripts are very slow.
    JET

  • Is there a way to use a statically defined appearance stream in a dynamically created annotation?

    Hello,
    I want to create a document with cascading 'popups'.  Not the built-in text-only popup, but an annotation containing an appearance stream that defines text and images.  I'm currently using widget annotations based on a pushbutton field.
    Each page in my document has many citations that refer to other pages in the document.  When a user hovers over the citation, I want a 'popup' to appear containing a depiction of the destination.  However, as the destination will itself have citations, I also want the 'popup' to contain citations that the user can hover over, triggering another popup, etc.  In this way, a user could navigate throughout the document without leaving the page or even clicking the mouse.
    Obviously, with even a modest number of citations per page, pre-calculating and statically defining all of these widgets causes a combinatorial explosion, making the document sluggish and very large.
    Instead, I'd like to statically define appearance streams once per document, and then dynamically create annotations and assign the appropriate appearance stream using JS as the user navigates.
    So far I've created a named AP in the names dictionary, but I haven't been able to use it to dynamically set an appearance stream of a dynamically created widget annotation.
    Also, I've called Doc.getIcon(), passing in the named AP, which returns an Icon object.  However, after field.buttonSetIcon() and passing in the named AP, the button does not display the icon.
    Is there a way to use a statically defined appearance stream in a dynamically created annotation?
    Thank you,
    Dave

    Hi George, I've gotten named APs to work, and I expect hidden buttons will follow.  Thank you very much!
    Quick follow-up - I will have many documents embedded within the same pdf file, and some of these documents will contain identical popups.  However, I don't want to store identical icons in each document on account of file size.
    Instead, I'd like to store one instance of each icon for all documents in the file.
    Can I store all of the icons in a single document, and then access them by calling <DocName>.getField().getIcon() from any document in the file?
    Thank you again,
    Dave

  • My MacBook Air does not have an optical drive.  I have a program (Megastar V) which is installed using a CD.  Is there a way to use the optical drive on my PC laptop to install this program on my MacBook Air?

    MacBook Air does not have an optical drive.  There is a program I wish to install on my Air which is an astronomy application called Megastar V.  Installation requires the use of a CD.  Is there a way to use the optical drive on my PC (toshiba laptop using Windows 7) to install this program onto my Air?
    With gratitude,
    Otto

    Thank you for explaining to me how to do this.  I will try it tomorrow and let all of you know how it goes.
    Otto

  • Is there a way to use the iMac's display mode with a Mac mini with out logging in first on the Mac mini

    Is there a way to use the iMac's display mode with a Mac mini with out logging in first on the Mac mini (late2014)
    im currently useing my Mac mini as a portable computer, I take it to the university and use the iMacs there as a monitor but before I can do that I have to log in to my Mac mini first which means doing it blind
    is there a way to put the IMacs into display mode with out logging into my Mac mini first
    or is there a portable monitor that I can use that will not require me to login first

    This
    Target Display Mode: Frequently Asked Questions (FAQ) - Apple Support
    says:
    How do I enable TDM?
    Make sure both computers are turned on and awake. 
    Connect a male-to-male Mini DisplayPort or ThunderBolt cable to each computer.
    Press Command-F2 on the keyboard of the iMac being used as a display to enable TDM.
    Note: In Keyboard System Preferences, if the checkbox is enabled for "Use all F1, F2, etc. keys as standard functions keys," the key combination changes to Command-Fn-F2.
    How do I exit TDM?
    To leave TDM, press Command-F2 on the keyboard of the iMac that is in TDM. You can also exit TDM if you shutdown or sleep either computer or detach the cable.
    Can I use a third-party keyboard or older Apple keyboard to enable TDM?
    Some older Apple keyboards and keyboards not made by Apple may not allow Command-F2 to toggle display modes. You should use an aluminum wired or wireless Apple keyboard to toggle TDM on and

  • HT1541 is there a way to use my itunes credit to send a gift card? i have credit from gift cards on my account and would like to gift some of it to someone else.

    Is there a way to use my itunes credit to send a gift card to someone else. I have credit on my account and would like to gift some of it but cannot figure out how to use the credit to do so. It appears I can only send a gift by charging to my credit card.

    You cannot use gift balance for gifts.
    Sorry

  • Is there a way to use iPhoto and *not* have it import photos?

    Hi there,
    I'm transitioning from a PC to a Mac and everything is going fairly well -- overall a better user experience. One question I have is, is there a way to use iPhoto without having it import photos? My main issue is that currently iPhoto imports all the photos that I want to view/edit in iPhoto and copies them to it's own folder structure. I like to manage my pictures in a folder structure that I define, so I already back up my photos to another location and now I'm finding that iPhoto is just duplicating the pictures that I already have where I want them, sucking up precious space on my SSD.
    So is there a way for me to just point iPhoto to a folder, make my edits on those photos, and have iPhoto automatically save those changes to the original folder I pointed it to, instead of duplicating the photos in it's own folder structure?
    It occasional things like this that makes me miss some Windows features. In this case, I miss Windows Photo Gallery.

    Hm, ok so if I edit my photos (adjust brightness etc) in iPhoto and then export it, does it export with the brightness changed, or does it just export the original?
    It exports whichever you choose - the edited version or the original.
    However, am I the only one with trust issues with importing all my photos into iPhoto? I'm scared the library will get corrupted, etc.
    NO you're not the only one. The protection against any data corruption is a good back up, and you need that for any data on any computer running any OS. But in the case of iPhoto, remember too that the original files are stored exactly as they are imported, in folders, in the filing system.
    that when I go to export the photos, there's a LOT of duplicate file names that the export chokes on, which makes it very tedious, no, painful, for me to export a large number of photos.
    Explore the options under File Name when you export from iPhoto using the File -> Export command
    Regards
    TD

  • Is there a way to use PM4.0 with Windows XPH?

    Is there a way to use PM4.0 with Windows XPH without purchasing the latest suite or upgrades?  I origionally purchased a suite with Pagemaker, Photostyler and Freehand just before Aldus went Adobe, and Win3.1 went Win95, then WinME and WinXP.  I miss PM and have several manyscripts saved on PM4.0 and can not export or import them to any current wordprocessing programs.  I was very far into one manuscript and am now in a position to finish it up but don't want to have to purchase a whole suite in order to do so.  Any suggestions for this old tightwad?  [email protected] 

    Jay Chevako wrote:
    Find an old computer and run win3.1.
    Jay
    Shouldn't that be Win3.0  c.1991?  And with a very early of version ATM (Ver 2?)  if you want to do anything with fonts?
    I think I have a WinME PC in the garage, which if you can re-format with DOS 5 and install Win3 instead (I may have the disks in the garage too), PM4 will positively scream along.
    I reckon it's non starter on a modern WinXP PC, as the OS is so different, but if you're willing to experiment, you never know!
    But if you want to open some old files to extract the text, you can open the PM4 files and save them with a d/l'ed trial copy of PM7, which will be OK on WinXP
    Iechyd da! John
    23:45 27/04/2009

  • Is there a way to use two macs to run one app? I want to use my two macbook pros processors in a shared capacity.

    I have two macbook pros a 2.4ghz and a 2.2ghz. Is there a way to use the other macbook pro to help with any cpu intensive apps like audio and video apps. I haven't had much luck on finding anything about sharing resources. It would be awesome if you could link up two macs and use both of them to power through processor intensive tasks.

    Yep here you go.
    http://www.youtube.com/watch?v=vLujLtgBJC0

  • Is there a way to use iCloud Photo Library WITHOUT syncing?

    The idea I had of iCloud Photo Library was that I could upload my pictures to it and access them from all my devices WITHOUT having to sync them.
    At the end of every month, I move all the photos from my phone to my computer. It helps me save space and keep things tidy. With iCloud Library, I want to access all my photos, but it looks like I must sync them through iCloud, and then to save space in my phone, I have to select "optimise space for iPhone". Is there any way to use iCloud Photo Library as a mere cloud storage? I don't want to keep photos on my phone, neither full resolution or "optimised" ones. I want to put them on iCloud, and when I need them, then I want my phone to download them.
    I realise I could use other cloud storage providers for this, but I have always liked Apple's integration with their own services, so if possible, I would like to use iCloud Photo Library without syncing to my devices. Just keep my stuff in iCloud, and when I tap it, download it.

    www.icloud.com.
    Doesn't work well in IE8 (9 I would think is ok), but is fine in the current version of Chrome.

  • Is there a way to use ipod with new computer without erasing entire library

    I'm not really tech-savvy, but I'm tossing my old computer and getting a new one - is there a way to use my ipod on my new computer without erasing my existing library? It won't let me make changes to my ipod and wants me to erase everything that is on there right now - HELP!

    Connect your iPod to your computer. When you get the message that it is linked to a different library and asking if you want to link to this one and replace all your songs etc, press "Cancel". Pressing "Erase and Sync" will irretrievably remove all the songs from your iPod. When your iPod appears in iTunes enable it for disk use, this is required for most if not all the utilities listed below so they can access the files: Using your iPod as a storage drive
    Once you are safely connected there are a few things you can do to restore your iTunes from the iPod. If you have any iTMS purchases the transfer of purchased content from the iPod to authorised computers was introduced with iTunes 7. A paragraph on it has been added to this article: Transfer iTunes Store purchases using iPod
    The transfer of non iTMS content such as songs imported from CD is designed by default to be one way from iTunes to iPod. However there are a number of third party utilities that you can use to retrieve the music files and playlists from your iPod. You'll find that they have varying degrees of functionality and some will transfer movies, videos, photos, podcasts and games as well. Have a look at the web pages and documentation, this is just a small selection of what's available, they are generally quite straightforward. You can also read reviews of some of them here: Wired News - Rescue Your Stranded Tunes
    TuneJack Windows Only
    iPod2PC Windows Only
    iGadget Windows Only
    iDump Windows Only
    iRepo Windows Only
    iPodRip Mac & Windows
    YamiPod Mac and Windows Versions
    Music Rescue Mac & Windows
    iPodCopy Mac and Windows Versions
    There is also a manual method of accessing the iPod's hard drive and copying songs back to iTunes on Windows or a Mac. The procedure is a bit involved and won't recover playlists but if you're interested it's available at this link: Two-way Street: Moving Music Off the iPod
    Whichever of these retrieval methods you choose, keep your iPod in manual mode until you have reloaded your iTunes and you are happy with your playlists etc then it will be safe to return it auto-sync. I would also advise that you get yourself an external hard drive and back your stuff up, relying on an iPod as your sole backup is not a good idea and external drives are comparatively inexpensive these days, you can get loads of storage for a reasonable outlay.

Maybe you are looking for

  • ABAP+J2EE Installtion problem

    Dear All,   We have installed netweaver 04 with ABAP engine and   it is running well.   Now when I am going to install ABAP+J2EE I have encountered   the problem against installtion CD .   It is aking for LABEL SAP:J2EE-CD:640SR1 ..   Would please te

  • DBCA stuck creating scripts

    I have a SLES9 (64) server with Oracle 10g 10.2.0.3 installed and trying to create a database using DBCA. After the interview questions are over and I click Finish, DBCA just sits there. I have the option to save database creation scripts checked. Wh

  • "could not be copied because you do not have permission to see its contents."

    Hi there, I'm having an issue with using my ipod or iphone with iTunes recently. If I have a third party app that supports carrying documents and files around on the device like a flash drive (such as Azul or Phone Drive) anytime I try to add a file

  • Noia 2.0 and personas issues

    Each time i try to use personas, my noia 2.0 (extreme) get disengaged. I can not used both theme at the same time.

  • Deleted Groups are visible in _layouts/groups.aspx

    Hi, I have a site collection which has around 30 groups created. These are visible when we navigate to sitecol/_layouts/user.aspx. I then deleted 15 groups using powershell (sitegroups.remove()). These disappeared from sitecol/_layouts/user.aspx, but