Tables's data scrambled (randomized) for testing purposes

Dear Oracle People,
I need to scramble (randomize) the date for testing purposes
How I can do that within Oracle
Source:
CODE          FIRST_NAME     LAST_NAME
1          FN_1               LN_1
2          FN_2               LN_2
3          FN_3               LN_3
Target after scrambling:
CODE          FIRST_NAME     LAST_NAME
1          FN_2               LN_3
2          FN_3               LN_1
3          FN_1               LN_2

Source table: t1
Target table: t2 (create table t2 as select * from t1)
Something like this would do:
DECLARE
rc NUMBER;
BEGIN
SELECT COUNT (*) INTO rc FROM t1;
FOR i IN (SELECT last_name FROM t1)
LOOP
UPDATE t2
SET last_name = i.last_name
WHERE code = ROUND (DBMS_RANDOM.VALUE (1, rc));
END LOOP;
END;

Similar Messages

  • How to generate 2 TB database for testing purpose

    Hi All,
    I need to generate 2 TB of database. This is for test purpose, so please provide me with any information that could achieve this in simple steps.
    If you could provide script that will be the best. I have 10.2.0.4 database on HPUX 11.31 PA-RISC server.
    Regards,
    MS

    user13414195 wrote:
    I need to generate 2 TB of database. This is for test purpose, so please provide me with any information that could achieve this in simple steps. Scripts for what exactly? Single table? Multiple tables? Generate raw (meaningless) row data? Generate data for tables that include foreign key constraints and so on? Data for selecting via full table scans or index scans? Or is this simply to test row inserts? What about update and deletes?
    You need to be a lot more specific about what you mean with testing purposes.
    I have 10.2.0.4 database on HPUX 11.31 PA-RISC server.Note that premiere support for 10.2 has been terminated in July 2010 - whereas it only terminates in January 2015 for 11.2. So it makes a lot more sense to be on a newer version of Oracle.

  • Creating ASM for test purpose

    hi all,
    I am trying to setup ASM for test purpose on winxp with oracle 10g release 1.
    I have created asm instance with
    oradim -NEW -ASMSID +ASM -STARTMODE auto
    and my pfile located in E:\oracle\product\10.1.0\Db_1\database looks like.
    INSTANCE_TYPE=ASM
    ASMALLOW_ONLY_RAW_DISKS = FALSE
    DB_UNIQUE_NAME = +ASM
    ASM_DISKSTRING ='E:\asmdisks\*'
    LARGE_POOL_SIZE = 16M
    BACKGROUND_DUMP_DEST ='E:\oracle\product\10.1.0\admin\+ASM\bdump'
    USER_DUMP_DEST = 'E:\oracle\product\10.1.0\admin\+ASM\udump'
    CORE_DUMP_DEST = 'E:\oracle\product\10.1.0\admin\+ASM\cdump'
    I have created 3 disks with following commands
    asmtool -create e:\asmdisks\disk1 512
    asmtool -create e:\asmdisks\disk2 512
    asmtool -create e:\asmdisks\disk3 512
    now when i do
    SET ORACLE_SID=+ASM
    and
    sqlplus / as sysdba
    I get
    SQL> select path, mount_status from v$asm_disk;
    no row selected.
    and for obvious reasons I get following message
    SQL> create diskgroup data external redundancy disk
    2 'E:\asmdisks\disk1';
    create diskgroup data external redundancy disk
    ERROR at line 1:
    ORA-15018: diskgroup cannot be created
    ORA-15031: disk specification 'E:\asmdisks\disk1' matches no disks
    ORA-15025: could not open disk 'E:\ASMDISKS\DISK1'
    ORA-15059: invalid device type for ASM disk
    OSD-04018: Unable to access the specified directory or device.
    O/S-Error: (OS 1200) The specified device name is invalid.
    Please guide me..I am very new to ASM .

    Hi all,
    my problem got resolved.
    I have created same fake disks by asmtool and the created diskgroups by "create diskgroup.. " then I was able to see the diks in v$asm_disk view..
    I have successfully migrated my database to ASM if u have any questions do mail me @ [email protected].

  • How to transport/move a table with data from development to Test to Production

    Hi,
    How to transport/move a table with data from development to Test to Production..? Export-Import a Delivery Unit does only the structure and not the data
    Reg
    Sri

    Hi Sri,
    You cannot transport Data via Transport route in HANA, you can only transport code changes/Structure via DU. For Data movement, you either have a do a export/import from a flat file or replication from a Source System to HANA.
    Thanks Much,
    Abhishek

  • Copy a company for test purposes

    I'd like to copy a company, data and its settings 100% to another company for testing purposes.  What is the easiest way to do this?  And is there a procedure, document or expert session on this topic somewhere?
    Thanks.

    its very easy:
    1. backup your database via SQL Studio
    2. restore the same database via SQL with another name
    Login in B1 client, refresh your displayed db. Login your copy.

  • ChaRM- Is data scrambling required for Implementing ChaRm in SM?

    Hello
    Is data scrambling required for the implementation of ChaRM in Solution Manager?  Iu2019ve heard that data scrambling is a requirement for CHaRm and if so is there documentation from SAP with the specifics.  I do not understand why data needs to be scrambled for transport management.
    Thanks!

    We are using CHaRM since 2007, and there is no data scrambling for CHaRM itself required. CHaRm is jsut taking control over TMS. It is a process to ensure some quality and to facilitate audit.
    Regards,
    Holger

  • Have a test version in use for testing purposes and want to buy it now without loosung the files. How to do so?

    I've a test version in use for testing purposes and want to buy it now without loosung the files.

    Just buy it and enter your serial key.

  • Default contexts onn FW module 6500 for TESTING purposes?

    "2 Virtual Firewalls and 1 administrative context are provided for testing
    purposes"
    THE ABOVE STATEMENT IS COMING FROM THE DATASHEET OF FW MODUTE FOR 6500.
    DOES THIS MEAN THAT THE 2 CONTEXT WILL NOT WORK IN PRODUCTION?
    THANKS

    Hi
    No, as far as i am aware you can use them in production if you like. There is no license expiration. Basically you get 2 contexts + 1 admin context with the FWSM and you can use these any way you like.
    HTH
    Jon

  • Get a test credit card for testing purposes?

    Hi everyone,
    this is Robin from Germany. I work for HUGO BOSS and I currently evaluate Apple Pay for our company-owned stores. We are thinking of upgrading our stores with NFC POS Terminals in order to accept Apple Pay.
    Unfortunately, since our departement is located in Germany we were not able to get a credit card which is working with Apple Pay.
    Is there any possibility to get one for testing purposes?
    Would help a lot.
    Best regards,
    Robin

    As Apple Pay is only in the U.S. right now, why not deal with the Hugo Boss folks in the U.S. to do the testing?  I found this on the hugoboss.com site:

  • O365 federation for testing purposes

    hello,
    could i set up federated trust from my on premisse infrastructure to o365 (using adfs and dyrsync and localy issuated certificate) just for testing purposes , and after test period i would just brake the trust. Could that have any circumstances, because
    in a month or two i would like to migrate to o365?
    regards,
    Mario

    You can absolutely set up Exchange Online and treat it as a separate organization, create a federated trust and run through testing.  It is important to remember that "separate organization" means not using your existing SMTP domain, so you'll likely
    want to avoid ADFS/DirSync for the test period in this scenario.
    An alternative to consider would be setting up Office 365 in a hybrid coexistence configuration, requiring ADFS and DirSync, but putting Exchange Online in a scenario where it operates in tandem with your local Exchange organization.  This coexistence
    would allow you to test with your existing, production SMTP domain and a single GAL view, while still allow you to break off permanently without impact to your production Exchange environment if you chose to do so.

  • Is there any Ironport Virtual Appliance for Testing Purpose ?

    Hi Everyone,
    Advance Thanks to Every One.
    Is there any Ironport Virtual Appliance for Testing Purpose ?
    Regards,
    Bala Krishna G

    Looks like there are a couple of vendors who have virtual options. Here's one.
    http://www.ironportstore.com/VirtualEvalRequest.asp
    Also, IronPort has a 30-day free trial of their product.
    http://pages.ironport.com/evalrequest.html?source=eval_req
    Hope this helps.
    Brandon

  • How create data block corruption for test DBMS_REPAIR

    Hello to all
    I wanna create data block corruption in a table for testing Dbms_repair
    is it possible ? if yes please say to me how I can do it ,by example please
    thanks

    thank you so much that link was helpful (specially it's last respond)
    I could create data block corruption and I tested DBMS_REPAIR and RMAN for data block recovery
    but now I got head spin that if we have rman backup from database so using dbms_repair is what for?
    while we can recover corrupted data blocks
    please guide me
    thanks

  • Blackberrys for testing purposes?

    I'm going to buy two used Blackberrys (touch and non) to test an app my company has hired a another company to develop.
    I just need wifi to get the app on to the BB and test how it looks - it's a news media app so I just want to see it can show the stories.  I don't need email or to actually make calls.
    Is a SIM card and/or data plan required for the BB to actually call up the wifi? I'm getting mixed answers.
    I was considering worst case trying to get a pay as you go SIM card deal but I was hoping to avoid the BB data plan.
    (We did look at device anywhere but long term, this seems like it might be cheaper).
    Any suggestions?
    thanks!

    Hey mdhillison,
    Welcome to the forums.
    Your best bet is to contact the service provider you are going to purchase the devices frrom and ask them how the WiFi works. Some service providers require you to have a data plan to get the WiFi to work. 
    -SR
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • Topic posted for testing purpose

    This topic is created for test whether
    (1) the topic appears without moderator approves
    (2) the moderator sees this unapproved topic in his / her list of messages to be approved / rejected
    (3) the message appears after it is approved by the moderator
    [Edited by: hhsubram on Aug 19, 2005 7:41 AM]
    Approved

    Hi Goutam,
    Please check the delta que in source system ,if u have delta records 0, detla records will post as zero.
    Case1:
    If we are able to see records in delta que.
    Extract the data to bw via delta process.
    Case2:
    Validate the data against PSA request.
    If data is not comming to PSA it self , check the detals tab why data is not able to extrct into bw..some time we may have source system issue @ that scenaria we have to  activate trsnafer structure and data source inbw.
    Case3:
    If data is available in PSA ,check the PSa data agINST dAta target data.
    Please check the where exactly we are getting issue while upadting into data target.
    Hope this helps you.
    Best Regards,
    Maruthi

  • For testing purposes...

    Hello masters!!!
    here i'am again...i need a testdata for my program. i need a run-on date(REGUH-LAUFD) and an identification w/c is numeric only. the transaction that i used and will be use to
    get these data is in F110(AUTOMATIC PAYMENT TRANSACTIONS). the problem is i dunno how to generate a payment. basically the program that i need to test will display all the payment that has been cleared in the transaction f110 w/c right now dont have an identification(REGUH-LAUFI)  that is numeric only.
    could you advise me guys on how to generate a payment. simple step-by-step procedure like w/c and what first shud I need to click.
    many thanks.
    points will be given if answer found.

    Hi salma,
    why don't you try to put this thread if the ERP-Forum?
    Why don't you ask the members of your FI-department to
    insert some Payments?
    Why don't you use the SAP-Docu?
    Do you have the customizing of payment complete or is it new in your compony?
    Regards, Dieter

Maybe you are looking for