Encrypting data and using a funtion

I am using dbms_obfuscation_toolkit.DESEncrypt
This is a procedure. so if i need to encrypt data, I have to do it row by row. I actually need to update records to make them encrypted so its
cursor
run encrypt procedure
update
this is really slow.
anything that is a function so I can use it directly in an update clause? anything faster?

With a row by row approach there is no other way, you will have to encrypt one by one if this isn't already encrypted. Since you are on 10gR2, you could consider using TDE (Transparent Data Encryption).
Now you said you want to pull it from production, does it mean that the data will live unencrypted, then in order for you to transport it, do you have to encrypt and then decrypt it? TDE could be a solution, using it along with backup techniques too.
~ Madrid
http://hrivera99.blogspot.com/

Similar Messages

  • Can I use ICloud to store all my data and use it seamlessly with my devices and Mac?

    Can I use ICloud to store all my data and use it seamlessly with my devices and Mac.  I.E. I want to use it as I use my time capsule and get rid of all this stuff I have in my office.

    Yes.
    Apple - iCloud - Learn how to set up iCloud on all your devices

  • Transpose Distinct Date and Use as Column name

    All,
    I am trying to transpose a distinct date and use it as a column name and list the data below it. My version of Oracle does not have the pivot function. Plus I am having trouble with figuring out how to alter the table name to the distinct date. Can someone provide me with logic that will dynamically take the current format (see below) and transpose it to the needed format (see below)?
    Current format:
    WEEK_END_DATE     RD     STORE_NUMBER     RANK
    09-19-2009     R0011     00505     6
    09-19-2009     R0028     00097     97
    09-19-2009     R0057     01801     72
    09-19-2009     R0061     04775     72
    09-19-2009     R0068     03920     66
    09-26-2009     R0011     00505     8
    09-26-2009     R0028     00097     50
    09-26-2009     R0057     01801     120
    09-26-2009     R0061     04775     30
    09-26-2009     R0068     03920     1
    nth date
    The format I need:
    RD     STORE_NUMBER     09-19-2009 09-26-2009 nth date....
    R0011     00505     6 8
    R0028     00097     97 50
    R0057     01801     72 120
    R0061     04775     72 30
    R0068     03920     66 1

    I apprreciate your help. I have tried to implement the dynamic pivot logic. I can create the correct case statement and change the column name to the name I need.
    However, when I try to use @@dynamic_pivot.sql I get the following error:
    ORA-04054: database link ORAEDW@DYNAMIC_PIVOT_SUBSCRIPT does not exist
    I have tried it three ways...
    @@dynamic_pivot
    and @@dynamic_pivot.sql
    and @@c:\dynamic_pivot_subscript.sql
    I don't have direct access to the database. I have to run my queries from toad. When I cut and paste the generated case statements, It works. I am just not able to dynamiclly insert those case statements into a select. Do you have any suggestion?
    -- ***** Start of dynamic_pivot.sql *****
    -- Suppress SQL*Plus features that interfere with raw output
    set feedback off;
    set heading off;
    SPOOL     c:\dynamic_pivot_subscript.sql
    SELECT
    DISTINCT',max(CASE WHEN week_end_date = '''|| week_end_date || ''' THEN rank END) AS '|| 'DATE_AS_OF_' ||
    to_char(week_end_date,'MM_DD_YYYY') AS case
    FROM
    test_ptw_bottom_10;
    SPOOL OFF
    -- Restore SQL*Plus features suppressed earlier
    What I need:
    SELECT     
    rd,
    store_number
    @@c:\dynamic_pivot_subscript.sql
    FROM     
    test_ptw_bottom_10
    where
    week_end_date in ('19-SEP-09','26-sep09')
    group by
    rd,store_number
    ORDER BY     
    rd;
    What works:
    SELECT     
    rd,
    store_number
    ,max(CASE WHEN week_end_date = '26-SEP-09' THEN rank END) AS DATE_AS_OF_09_26_2009
    ,max(CASE WHEN week_end_date = '19-SEP-09' THEN rank END) AS DATE_AS_OF_09_19_2009
    FROM     
    test_ptw_bottom_10
    where
    week_end_date in ('19-SEP-09','26-sep09')
    group by
    rd,store_number
    ORDER BY     
    rd;
    Edited by: user10609947 on Oct 5, 2009 2:36 PM
    Edited by: user10609947 on Oct 5, 2009 2:38 PM

  • Is there any way to turn off data and use only wi fi

    is there any way to turn off data and use only wi fi, going to a foreign country and do not want to use data but wi fi will be available. I want to be sure to use only wi fi

    Yes there is!
    Simply go into Settings, General, Mobile Data, Turn this off and make sure Data Roaming is also switched off! You can have wifi on and this will no charge your account for the data you use via Wi-Fi!

  • Oracle Replication - Encrypted Data and Oracle Data Guard

    We are working on a high availability architecture for one of our new projects. The preliminary architecture has Oracle 10g Release 2(10.2.0.2) production database (primary database) running on Solaris10 server for OLTP operations. And a production replicated database (standby database) is running on another node running on Solaris10 server for reporting, ETL data extractions etc. The plan is to implement Oracle data guard (DG) to replicate data between primary database and standby database (logical standby database). As a side note, there is going to be one to two minute time log for data synchronization between primary and standby databases.
    We need to encrypt sensitive data (like SSN, Credit Card No. etc) in the primary production database. Initially we thought this can be achieved by using Oracle Transparent Data Encryption (TDE), this is a new encryption method Oracle came up with their 10g version. But the issue here is Oracle TDE doesn’t support setting up the logical standby database (using Oracle data Guard) for reporting on the second node. I have confirmed with Oracle on this, so we are kind of stuck in the middle on this new requirement. So our next option is to look out for any third party vendors who can resolve this puzzle, and looking for your help for any suggestions.
    · Do you know any vendor who can support both data encryption and data replication for Oracle databases?
    · Do you know any vendor who can support just data encryption for Oracle databases?
    (I am thinking if we can find a vendor, we would like to ask them if they have any technical issues working with Oracle data guard for data replication and use some kind of technique to decrypt the data on the standby/reporting database.)

    You can always use the DBMS_CRYPTO or DBMS_OBFUSCATION_TOOLKIT to encrypt the data rather than using TDE. You may have to do some work on the key management side, though, but it shouldn't be too painful.
    Justin

  • How to insert encrypted data by using blowfish into mysql database

    Hi
    I have encrypted data using blowfish algorithm . And i tried to insert that encrypted data into mysql. it was stored but i dont know that it stores in the same encrypted formate
    When i am trying to get the encrypted data from the mysql database and decrypting that data i am getting errors.
    Exception are like
    input length should be multiple of 8 bits
    or Given block are not properly padded
    and when i am displaying the data using system.out.println ();
    the string is not similar to the string which is in database.
    what is the problem how can i solve my problem
    thank you

    It sounds like your column is a VARCHAR so you need to Base64 or Hex encode the cipertext bytes before putting them in the database.

  • I can no longer pick up an app on my Ipad 2. I am up to date and using the correct password.

    Sorry if this is a duplicate. I can not pick up apps any more on my IPad2. I am up to date in Itunes and using correct password.

    What do you mean by "pick an app"? Do you mean the apps don't launch when you tap on them? Download a free app from the App Store. Once it downloads, your other apps should work properly again.

  • Getting Current Date and using it in SQL

    How do you get a current time and store it in a variable..
    I am trying to make an a SQL query using it to search for all previous days appart from today.
    ex:
    currentDate = // store current  date as a ShortDate into a variable
    query = "SELECT * FROM Table WHERE < DATES "+currentDate+" ORDER BY Id"";

    Regarding prepared statement .
    I am trying to insert the date into a variablelike
    below.
    String date = newjava.sql.Date(myDate.getTime());
    I want allow me .... there really has to be a wayto
    get a current System Date within java.That is because you have a lot of errors in that
    line..
    java.sql.Date now = new
    java.sql.Date(System.currentTimeMillis());If you want it as a sql date object (date object in
    sql doesn't have a time field, you need to use
    Timestamp if you want date and time)
    /Kajjava.sql.Date now = new java.sql.Date(new java.util.Date().getTime());

  • Can I copy time capsule data and use new external HD

    Hi All-
    I've been scouring the net and cant seem to find an answer. Hopefully someone here can help.
    I have a Time Capsule that is nearly filled. It is giving me error messages each night it tries to backup saying that there is too much on my computer to backup.
    So, I went out and bought a 4TB Western Digital external drive. I want to copy all the data from the time capsule onto the new hard drive (so I dont loose any of my older backups) and then have the time capsule use that same WD drive as my new backup.
    I have seen there are ways to copy from time machine drives to new drives, but I was under the impression time machine uses a different kind of backup method than a time capsule. Is that true? Can someone point me to a place that explains how exactly I would copy the drive in the time capsule... (I understand I need to use Disk Util, but I cant get the TC drive to show up in that program)...
    Also, is there a way to instruct time capsule to stop using its own internal drive and use the drive connected to its USB for the backups? I think Apple's answer is no, but I dont know if thats really the case or not...
    Thanks much-
    Daber

    David Bertman wrote:
    The backup was via an ethernet cable from the mac to the TC. (I also have it set up to run via wifi. Would that affect things?) Would there be different symptoms if the backup had stalled midway through?
    Just trying to rule out a bad WIFI connection, and it will be much faster via Ethernet.
    I didnt repair the backups first (I'm not really sure how to do that --- is it through disk utils and repair permissions like a normal drive?) I get nervous messing around with the "Backups.backupdb" files so I generally leave them alone.
    Close. It's +*repair disk+*, not permissions. See #A5 in Time Machine - Troubleshooting (or use the link in *User Tips* at the top of this forum), for a brief explanation and instructions.
    If the backups on the TC were corrupted, that would have been copied to the external HD, potentially causing Time Machine to start a new set.
    But, I did enter time machine and saw that the old backups were there (and when I did your other suggestion of going to the browse option, it now shows two identically named backups -- one from the original TV and one from the new 4tb drive. But when I enter each they are separate backups -- the original one with the older backups and the new one with the single 1 day backup.
    That confirms it -- for whatever reason, Time Machine started a new set.
    You asked if there were two sparce bundles... I dont see any sparce bundles. I'm ONLY seeing the "backup.backups" folders when I mount the drives... Should I be seeing sparce bundles? Could that be an issue?
    The Backups.backupdb folder should be inside a sparse bundle named the same as your computer. All backups done over a network (via Ethernet or WIFI) are done that way; those done to a locally-connected drive have that folder at the top level of the drive.
    If you look at the external HD via the Finder, you'll see them; if you then double-click either, it will mount, and you can see the Backups.backupdb folder inside it. And you're right; be +*very careful+* not to move, change, or delete anything there.
    I'd suggest this: Turn Time Machine off, and use Airport Utility to disconnect the external from the TC (start Airport Utility, click +Manual Setup,+ then Disks in the toolbar, then +Disconnect all Users.+ Each user will then get a message).
    Then connect the external directly to your Mac. Repair the old sparse bundle, per #A5 (it will take a long time, but be much faster this way). If it has errors that Disk Utility can't fix, see the pink box in #A5.
    If there are no problems, or they're fixed, delete the new sparse bundle via the Finder. That may take a while. Then eject the disk, reconnect it to the Time Capsule, and do a "full reset" per #A4 in Troubleshooting. Then re-select the external as your TM volume, and start a backup. Open the external disk via the Finder; if Time Machine again creates a new sparse bundle, you're pretty much stuck with it making a separate set of backups.

  • How to read internal table data and use to retrive from other table.

    Hi all,
        I am trying to generate a report using ooabap.
    In this scenario, I retrieved data from one standard table (zcust) and successfully displayed using structure 'i_zcust_final' ( i_zcust_final is similar structure of zcust).  
        Now I want to get some other data from other standard table  (zpurch) using the data in i_zcust_final. How....???? I am unable to read data from i_zcust_final even i kept in loop.
        I am attaching the code here.. even it too long, please look at the code and suggest me what to do.
    code  **************************
    REPORT  ZBAT_OOPS_REPORT1.
    TABLES: ZCUST.
        D E F I N I T I O N     *****
    CLASS BATLANKI_CLS DEFINITION.
      PUBLIC SECTION.
      DATA : ITAB_ZCUST TYPE STANDARD TABLE OF ZCUST,
             I_ZCUST_FINAL LIKE LINE OF ITAB_ZCUST,
             ITAB_ZCUST1 TYPE STANDARD TABLE OF ZCUST.
      TYPES: BEGIN OF IT_ZPURCH,
              CUSTNUM   TYPE ZPURCH-CUSTNUM,
              PURC_DOC  TYPE ZPURCH-PURC_DOC,
              VENDOR    TYPE ZPURCH-VENDOR,
              STATUS    TYPE ZPURCH-STATUS,
              PURC_ORG  TYPE ZPURCH-PURC_ORG,
            END OF IT_ZPURCH.
      DATA : ITAB_ZPURCH TYPE TABLE OF IT_ZPURCH,
             I_ZPURCH_FINAL LIKE LINE OF ITAB_ZPURCH.
      METHODS: GET_ZCUST,
               PRINT_ZCUST,
               GET_ZPURCH.
    ENDCLASS.
    I N I T I A L I Z T I O N   *****
        SELECT-OPTIONS:S_CUSNUM FOR ZCUST-CUSTNUM.
    INITIALIZATION.
    S_CUSNUM-LOW = '0100'.
    S_CUSNUM-HIGH = '9999'.
    S_CUSNUM-OPTION = 'BT'.
    S_CUSNUM-SIGN   = 'I'.
    APPEND S_CUSNUM.
    CLEAR S_CUSNUM.
    I M P L E M E N T A T I O N *****
    CLASS BATLANKI_CLS IMPLEMENTATION.
      METHOD GET_ZCUST.
      SELECT * FROM ZCUST
        INTO TABLE ITAB_ZCUST
       WHERE CUSTNUM IN S_CUSNUM.
    ENDMETHOD.
      METHOD PRINT_ZCUST.
       LOOP AT ITAB_ZCUST INTO I_ZCUST_FINAL.
       WRITE:/ I_ZCUST_FINAL-CUSTNUM,
               I_ZCUST_FINAL-CUSTNAME,
               I_ZCUST_FINAL-CITY,
               I_ZCUST_FINAL-EMAIL.
       ENDLOOP.
      ENDMETHOD.
       METHOD GET_ZPURCH.
    LOOP AT ITAB_ZCUST INTO ITAB_ZCUST1.
      SELECT CUSTNUM
             PURC_DOC
             VENDOR
             STATUS
             PURC_ORG
        FROM ZPURCH
        INTO CORRESPONDING FIELDS OF TABLE ITAB_ZPURCH
        WHERE CUSTNUM EQ I_ZCUST_FINAL-CUSTNUM.
    ENDLOOP.
         LOOP AT ITAB_ZPURCH INTO I_ZPURCH_FINAL.
         WRITE:/ I_ZPURCH_FINAL-CUSTNUM,
                 I_ZPURCH_FINAL-PURC_DOC,
                 I_ZPURCH_FINAL-VENDOR,
                 I_ZPURCH_FINAL-STATUS,
                 I_ZPURCH_FINAL-PURC_ORG.
         ENDLOOP.
    ENDMETHOD.
    ENDCLASS.
      O B J E C T   *****
    DATA: BATLANKI_OBJ TYPE REF TO BATLANKI_CLS.
    START-OF-SELECTION.
    CREATE OBJECT BATLANKI_OBJ.
    CALL METHOD:
                 BATLANKI_OBJ->GET_ZCUST,
                 BATLANKI_OBJ->PRINT_ZCUST,
                 BATLANKI_OBJ->GET_ZPURCH.
    Can anyone suggest me..
      Thanks in advance,
      Surender.

    Hi Surendar..
    There is mistake in the Work area specification in this method.
    METHOD GET_ZPURCH.
    LOOP AT ITAB_ZCUST INTO ITAB_ZCUST1.
    SELECT CUSTNUM
    PURC_DOC
    VENDOR
    STATUS
    PURC_ORG
    FROM ZPURCH
    INTO CORRESPONDING FIELDS OF TABLE ITAB_ZPURCH
    <b>WHERE CUSTNUM EQ      ITAB_ZCUST1-CUSTNUM.</b>           
                                   "Instead of  I_ZCUST_FINAL-CUSTNUM.
    ENDLOOP.
    LOOP AT ITAB_ZPURCH INTO I_ZPURCH_FINAL.
    WRITE:/ I_ZPURCH_FINAL-CUSTNUM,
    I_ZPURCH_FINAL-PURC_DOC,
    I_ZPURCH_FINAL-VENDOR,
    I_ZPURCH_FINAL-STATUS,
    I_ZPURCH_FINAL-PURC_ORG.
    ENDLOOP.
    ENDMETHOD.
    Now it should work..
    One more thing : From performance point of view you have to Replace that loop using FOR ALL ENTRIES . And avoid CORRESPONDING FIELDS. it will be slow.
    This is the code.
    LOOP AT ITAB_ZCUST INTO ITAB_ZCUST1.
    if ITAB_ZCUST[] IS NOT INITIAL.
    SELECT CUSTNUM
    PURC_DOC
    VENDOR
    STATUS
    PURC_ORG
    FROM ZPURCH
    INTO TABLE ITAB_ZPURCH
    <b>for all entries in ITAB_ZCUST1</b>
    <b>WHERE CUSTNUM EQ      ITAB_ZCUST1-CUSTNUM.</b>           
                                   "Instead of  I_ZCUST_FINAL-CUSTNUM.
    ENDIF.
    ENDLOOP.
    <b>Reward if Helpful.</b>

  • If my daughter calls me on face time from her iPad and she doesn't have wifi, will it be used as data and use a lot?

    If my daughter doesn't have wifi and we face time, will she use data on her end?

    Note that not all carriers allow FaceTime over a cell connection, and some that do require you to sign up for specific service plans. As to data usage, a report on The Unofficial Apple Weblog indicated that a  47-minute FaceTime call over 3G used about 65 megabytes of data. You can estimate your usage from there.
    Regards.

  • When you turn off cellular data and use wifi, do you still pay monthly?

    Hi

    If you use wifi, you are not using your cellular data, but your monthly plan would still be charged even if you don't use it.  That's why its a monthly plan rather than a prepaid contract, where you pay upfront, and when your balance runs out you stop getting service.
    In that case Using Wifi would keep you from using your prepaid balance.
    But again a Monthly contract is charged wether you use it or not for the specified amount of time. Usually for a Year sometimes more.

  • How do I reset responses (and summary report data) and use my online form for a new application?

    I created my online form, distributed it and captured the responses - worked well.  Now I want to use the same form and start over (track the responses separately from the first time). How do I reset the results / responses? Thanks for any help you provide. 

    Go to the My Forms tab on the main dashboard (were all of your forms are listed). Select your form and hit the duplicate button. This will make a copy of your form and you have the option to include or not include the responses in the copy.
    Randy

  • A black see through screen slides down from the top of the Mac and tells me to switch off using power button. Nothing works other than just that. I run sophos up to date and use Safari. Everything is up to date. My Mac is a 21" and is three years old.

    As per title. Twice in a few hours. Happened each time when my BT router defaulted to plain public wi-fi and while I waited for airport to locate my router hub I just ticked my hub and boom this dark almost black see through screen slid down and instructed me to switch off using power button. It is a 3 year old desktop 21" and has been faultless until this. I get the default report an unexpected shutdown form and when I fire up it is fine as indeed it is now.
    Any help or ideas how to deal with?

    That is a kernel panic.
    What is a Kernel Panic?
    http://support.apple.com/kb/TS3742
    and  http://support.apple.com/kb/TS1892?viewlocale=en_US
    http://developer.apple.com/mac/library/technotes/tn2002/tn2063.html
    More details here:
    http://www.thexlab.com/faqs/kernelpanics.html
    Useful articles on how to avoid and eliminate kernel panics here:
    http://reviews.cnet.com/8301-13727_7-10344626-263.html?tag=mfiredir
    http://www.macworld.com/article/2027201/how-to-troubleshoot-a-kernel-panic.html# tk.nl_mwhelp

  • I use a SpeedPort W700V as WiFi Router. SpeedPort encrypt the WiFi data and iPAD doesn't deencrypt the WiFi data. How to initialize the Encrypt / Deencrypt function of iPAD ? (including shared keys)

    I use SpeedPort W700V from German Telekom as router for my WiFi and DSL access. DSL connection to Internet is proper running, WiFi with iPAS does only work if I switch of the Encryption mode of SpeedPort (Standard parameter in SpeedPort is WPA2 with shared key PSK).  Who can give a hint how to switch on the encryption / deencryption mode of iPAD 2. 3G Sim Card is currently not installed.

    Thanks for the quick response. No, I did not get any error messages or any terms-of-usage screen. The employee I told my problem to was not computer savvy either. She just suggested I move to different spots w/in the library to see if that would make a difference. It didn't. When I connected to the library WiFi it did change the Verizon 3G that is usually in the upper left corner to iPad with two to three emanating arcs. I may have to go to the library in the next town. I was able to connect to theirs in the past when I had to download something greater than 20 MB. Unless I really want it, I will probably not even try to download something more than 20 MB due to the hassle. Yeah, I may have been better off getting a normal desktop or laptop and getting WiFi at home. To do that now would mean having my iPad 2 and a desktop computer, which I feel is extravagant. (I know there are a lot of big spenders out there who got the iPad as additional gadget for fun. This is a rich country.) A Verizon rep told me I couldn't set up a WiFi router at home just using an iPad. So it seems like a person who just uses 3G is limited to surfing the net (not even much YouTube because it eats a lot of data) and using email. I read about an app that helps print wirelessly using 3G, but a reviewer said you had to be an engineer to get it done right. BTW, I like the Steelers. I'm old enough to remember Franco Harris and that blond guy whose name escapes me back in the '70s. Since I live in North Jersey I feel I have to support the Giants. But I know football about as well as computers.

Maybe you are looking for

  • No Daily Sales/Trend Report for today?

    Has anyone received your iTunes Connect Daily Sales/Trend Report for today (1/25/10)? I have not received mine yet. First time it hasn't been up at this hour. It usually arrives at 2:30am (it's 9:30am here now) or if it's delayed, usually in another

  • Are Acrobat 7.0 Standard and Windows 8.1 compatible?

    Trying to install Acrobat 7 from cd onto new pc windows 8.1 Gets to the point where it says installing acrobat but installation never progresses Retired and only really need to use it occasionally now so don't want to buy newer version if can be avoi

  • How to covert JPEG files (OS 8-9) that show as Text Docs

    I have some old 3.5 mini floppy (1.44mb) disks that I managed to save picture data on (JPEG) but the files show as Text Documents. I have an old PB G4 17" with Tiger and classic (OS 9.1.x) but cannot figure out how or what to use to convert these fil

  • Blackberry Storm - Address Book Corrupt?

    Contacts are either starting to disappear or can't be editted.  Why is that?  If I can find the contact, but want to make an update...  I get the following error message. Error Message: Contact updated externally.  Changes will be lost and viewer clo

  • Oracle Applications Development

    Hello Oracle folks: I am looking for a sharp Oracle Applications Developer. Please put your feelers out there---great opportunity for an exceptional candidate. Please contact: Gina 617-426-9700 ext. 24