Is there a way to invoke DBMS_CRYPTO directly from SQL?

When I try to do this:-
INSERT INTO MyTable ( MyName ) VALUES
DBMS_CRYPTO.ENCRYPT(UTL_I18N.STRING_TO_RAW ('Graeme', 'AL32UTF8'),
DBMS_CRYPTO.ENCRYPT_AES128 + DBMS_CRYPTO.CHAIN_CBC + DBMS_CRYPTO.PAD_PKCS5,
UTL_I18N.STRING_TO_RAW('0123456789ABCDEF', 'AL32UTF8')
I get
ORA-06553: PLS-221: 'ENCRYPT_AES128' is not a procedure or is undefined.
However if I create a PL/SQL function MyEncrypt to do the same thing
INSERT INTO MyTable Name VALUES ( MyEncrypt('Graeme') );
it works fine. Hmm.
Is there a way to invoke the DBMS_CRYPTO package's functions directly from SQL?
Edited by: sparky62 on Nov 23, 2008 7:46 PM

You cannot reference packaged constants from pure SQL. You could replace the argument
DBMS_CRYPTO.ENCRYPT_AES128 + DBMS_CRYPTO.CHAIN_CBC + DBMS_CRYPTO.PAD_PKCS5,with the equivalent constants, i.e.
6 + 256 + 4096Of course, that isn't likely to be nearly as readable and/or maintainable as the first approach.
Justin

Similar Messages

  • Is there a way to move photos directly from one iPhoto library to another iPhoto library?

    Is there a way to move photos directly from one iPhoto library to another iPhoto library?

    Not using iPhoto - Aperture can or iPhoto Library Manager can
    LN

  • Is there any way to read XML directly from a Web Page ??

    i have a url, which on sending request, shows XML in browser.
    Now i need to read this XML in browser and then manipulate it according to my need and display it on another page.
    actually the process is. :
    1) i have to first retrieve an xml from other site. (XML will only be shown in browser)
    2.)then i have to read the Xml and show it in according to my requirements.
    Is there any way to read XML directly from a Web Page ??
    is their logic to accomplish this.
    e.g in Servlet i can do somewhat like this :
    String wholeXml=Somemethod(url);
    Please Advice

    the average Java XML parser will accept an InputStream, so just open an URLConnection to the webpage, get the inputstream from it and feed that inputstream to the XML parser. If the URL has valid XML data, it will get parsed without problems.

  • Is there a way to download photos directly from camera to iPad?

    Is there a way to download photos directly from camera to iPad 2?

    Yes,  you need to buy the Camera Connection Kit from Apple.  It has two dongles that plug into the iPad, an SD card reader and a USB that you can connect your camera to.  (This USB port is for cameras, and I believe, for keyboards - not for attaching other devices to, like a hard drive.)

  • Is there any way to delete songs directly from my iPhone without using iTunes?

    I'm trying to delete music directly from an iPhone 4 in iTunes on the device rather than using my laptop to delete and then sync it. Is there any way to delete music completely from my phone without using my latop?

    I tried this, firstly de-clicked the title in iTunes and syned with my iPhone4 but the title is still there on the phone. so deleted the title from iTunes and re-syned but alas the title is still there.
    any ideas?

  • Is there any way to import photos directly from Blackberry bold smart phone

    Is there any way to import photos from my blackberry bold to the my ipad 2?

    Not directly, no, not that I've seen. You need to get the photos from your Blackberry into your computer. From there you can sync them to your iPad.
    Regards.

  • Is there a way to access OSX directly from Parallel Desktop - without a password?

    Hi guys.
    My dear late brother had left his Mac Mini when he chose to exit this world.
    All the while - his Mac Mini was still on and running.
    After a while when having to pack his belongings, I noticed this and tried to login - but all the passwords I've tried were wrong.
    Meanwhile I had to shut his Mac off - and when later on turned it on again - it went straight to Parellel Desktop (running Windows)..
    I noticed there were some files on it - through My Computer :// ...
    But all those files which are found on the above folder etc. - is that all files available on the Mac including files on OSX??
    So my question goes: The files found on My Computer :// (running Windows) - are they the exact files which can be seen on OSX or is it possible that there's more files available when running OSX??
    One more question : Is it possible to access OSX directly from Parallel Desktop - without having to type any password on OSX?

    Thanks for the info.
    So that must mean - there may be more files available on the OSX partition then..?
    But seeing that it requires a password (login) in order for me to access the OSX system - is there any chance of getting access to all the data, without losing them?

  • Is there a way to access images directly from the PSD

    when i create images for my game i created
    i usually build my PSD file like so via the groups and layers
    G1
    L1
    L2
    L3
    G2
    L1
    L2
    L3
    G1 = GAME1
    L# = Levels
    each level there are 12 images within usually numbered 1-12
    Level1
    i would then setup my server the same way
    domain.com/game/name of game/G1/L1/1.jpg
    domain.com/game/name of game/G1/L1/2.jpg
    domain.com/game/name of game/G1/L1/3.jpg
    domain.com/game/name of game/G1/L1/4.jpg
    domain.com/game/name of game/G1/L1/5.jpg
    domain.com/game/name of game/G1/L1/6.jpg
    domain.com/game/name of game/G1/L1/7.jpg
    domain.com/game/name of game/G1/L1/8.jpg
    domain.com/game/name of game/G1/L1/9.jpg
    domain.com/game/name of game/G1/L1/10.jpg
    domain.com/game/name of game/G1/L1/11.jpg
    domain.com/game/name of game/G1/L1/12.jpg
    Level2
    domain.com/game/name of game/G1/L2/1.jpg
    domain.com/game/name of game/G1/L2/2.jpg
    domain.com/game/name of game/G1/L2/3.jpg
    domain.com/game/name of game/G1/L2/4.jpg
    domain.com/game/name of game/G1/L2/5.jpg
    domain.com/game/name of game/G1/L2/6.jpg
    domain.com/game/name of game/G1/L2/7.jpg
    domain.com/game/name of game/G1/L2/8.jpg
    domain.com/game/name of game/G1/L2/9.jpg
    domain.com/game/name of game/G1/L2/10.jpg
    domain.com/game/name of game/G1/L2/11.jpg
    domain.com/game/name of game/G1/L2/12.jpg
    Level3
    you get the idea...
    and so forth for
    Game 2
    Level1
    Level2
    Level3
    can i just use some kind of code?
    java or
    another
    to just access the PSD Layers directly without having to save and create all these folders on my server?

    Remember, you are not addressing Adobe here in the user forums.  You are requesting help from volunteers users just like you who give their time free of charge. No one has any obligation to answer your questions.
    You might have better luck posting in the Adobe Developer's Forum or the Adobe Photoshop Scripting forum.
    Please don't ask me for links for those, as I'm sure you can google as fast or much faster than I can.

  • Is there a way to download photos directly from camera

    I know you can connect the camera to IPad to download file from camera and view in IPad. I don't know if it is possible with tablet z. Or if there is a way of connect a card reader to the tablet.

    I don't quite understand
    do you want to download the pictures that you've taken with the tablet z? or pictures taken with another camera?
    "I'd rather be hated for who I am, than loved for who I am not." Kurt Cobain (1967-1994)

  • Is there a way to transfer music directly from my iPod nano to my iPad 2?

    I just recieved the iPod nano for Christmas and set up my iTunes account on an older computer, which is now out of commission.  I want to transfer all of the songs I recently bought to a new iTunes account on my new iPad2 is this possible without having the original iTunes with all of my songs available?

    No.

  • Is there any way to call OCX components from forms 10g..?

    Dear All,
    I heard that OCX are deprecated features for Forms 9i (9.0.2) and higher. Is there anyother way to invoke the same from forms9i and higher versions.
    We need to do this one of our customer. In forms10g oracle completely removed that option from the tool bar.
    Any help would be greatly appreciated.
    Thanks in advance
    Thangaraj.S

    then it was a "bug" in 9i and they removed it a little bit to late from the toolbar.
    Because Active X can't run in a standard-java-environment like the Forms-Service in your client-browsers generic applet, you have to search for new widgets that do the same in Java and not in OCX.
    use google to search for such components

  • Is there a way to start a sync from the appletv?

    I am constantly having to go back to the study where the computer is and manually sync both appletv's because I know new podcasts are there but my ATV's haven't sync'ed yet. or if I'm watching a movie in the living room and want to pickup where i left off in the bedroom, I have to manually sync. is there a way to invoke a sync from the TV with a apple remote?

    no there isn't

  • I cannot create a catalog because everywhere I try on my computer, it comes up with cannot Lightroom cannot create a catalog on network volumes.  And is there any way to contact Adobe directly?  Would you be able to give me a phone number and/or email add

    I cannot create a catalog because everywhere I try on my computer, it comes up with cannot Lightroom cannot create a catalog on network volumes.  And is there any way to contact Adobe directly?  Would you be able to give me a phone number and/or email address?@@

    The short and direct answer to your question about catalogs on a network drive is that you can't do that. The catalog must reside on a local drive.
    Here is a link to a list of telephone numbers. Choose one that is appropriate:
    Adobe Connect Support phone numbers

  • Is there any way to get in direct contact with apple about a problem I am having?

    When I create text boxes in Preview and then save and close the file, they will be rotated 90 degrees when I reopen the file. This makes them virtually unreadable. It happens with some pdfs but not others. I am sure it must be a bug with preview and would really like to tell Apple about it so they can fix it. I posted this problem a few weeks ago and it seems a lot of people viewed it but I only got one reply (the person said they are not having the same problem).
    Is there any way to email apple directly about it? Or a better way to go about this?
    Thanks!

    If you believe it's a bug and you wish to just let them know about it, use the Feedback page Network 23 provided below. You will not get an answer to any feedback you send.
    If you want direct assistance from an Apple support technician, then you will have to call them and pay the support fee unless your system is within the one-year original warranty in which case you could purchase an AppleCare extended warranty plan under which you would get free phone support.
    You may also get suggests from people here, at least confirmation that the problem is a bug or a refutation of it being a problem across all 10.7.4 systems. You might also update to 10.7.5, if you haven't already, and see if the problem persists. Try the Combo updater; even though it's not necessary for a .1 incremental update, often use of the Combo updater fixes problems that the incremental update does not.
    Regards.

  • Is there a way to use EJBs directly inside WDJ without Model generation?

    Hello,
    Is there a way to use EJBs directly inside WDJ without Model generation, to avoid producing tonnes of code and reuse the JPA Entities?
    Thanks
    Sebastian
    Edited by: Sebastian Lenk on Nov 3, 2010 7:01 PM

    of course, you can.
    it's pure java programming.
    Context ctx = new InitialContext();
       Object o = ctx.lookup(
    "sap.com/HelloWorldEAR/REMOTE/HelloWorldBean/com.sap.sdn.ejb.HelloWorldRemote");
       HelloWorldRemote helloRef = (HelloWorldRemote) 
        PortableRemoteObject.narrow(o, HelloWorldRemote.class);

Maybe you are looking for

  • Problem with Printing through Deskjet F4288 on Network

    Need suggestion to sortout the problem with HP Deskjet F4288 All in one Printer. This printer is installed on Windows XP OS System and when we try to give print on the network through other WinXp OS system then the spooler stopes working on the main

  • Email links in Firefox 5.0 will not auto open my Outlook program. Firefox is set as my default browser

    I am currently using Mozilla/5.0 Firefox/3.6.12. After having upgraded to this version I find that email links to my Outlook client will not automatically open a new email page pre-populated with the recipient's address. All other links on the page h

  • Inconsistent results from "Create an iMix"

    Hi, I'm trying to create an iMix. I have about 2 dozen iMixes currently published, but I haven't done it in awhile. Today I tried to publish a large playlist and I was stunned when the iTunes store showed only two hits in the resulting iMix. I tried

  • Question to Ravi sankar venna

    Dear Ravi we customized to check the dulication invoice check . but some time some duplication invoices accounted. Can you provide steps for customization level and master data level. Tamil Selvan

  • Inserting application in to mobile

    Hi, I gust started learning J2ME and created a small application. Is there a way of inserting the application to my mobile? (I am using NOKIA 3510i)