Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: OT: If you need to rough up some bulk test data in a hurry

Re: OT: If you need to rough up some bulk test data in a hurry

From: <bruce.taneja_at_mcd.com>
Date: Fri, 19 Jan 2001 14:41:16 -0600
Message-Id: <10746.127186@fatcity.com>


create table a (a1 number, a2 varchar2(50)); insert into a values (555,'I am a unique and extraordinary individual');

insert into a select * from a;  -- insert 1 row
insert into a select * from a;  -- insert 2 rows
insert into a select * from a;  -- insert 4 rows
insert into a select * from a;  -- insert 8 rows
insert into a select * from a;  -- insert 16 rows
insert into a select * from a;  -- insert 32 rows
insert into a select * from a;  -- insert 64 rows
insert into a select * from a;  -- insert 128 rows
insert into a select * from a;  -- insert 256 rows
insert into a select * from a;  -- insert 512 rows
insert into a select * from a;  -- insert 1024 rows
insert into a select * from a;  -- insert 2048 rows
update a set a1 = mod(rownum*1551,4096); commit;
alter table a add constraint pk_a primary key (a1); select count(*) from a; -- 4096 rows Source: Bob Jenkins (http://ourworld.compuserve.com/homepages/bob_jenkins/sql.htm)

-bruce

"Kevin Tsay" <ktsay_at_sitesmith.com>@fatcity.com on 01/19/2001 01:46:22 PM

Please respond to ORACLE-L_at_fatcity.com

Sent by: root_at_fatcity.com

To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> cc:
Subject: OT: If you need to rough up some bulk test data in a hurry

Does anyone have a good way or resource to generate/rough up some bulk test data ?
Any SQL scripts or URL or existing public data that can be downloaded from the web.

Thanks for your help

Kevin Tsay

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Kevin Tsay
  INET: ktsay_at_sitesmith.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists

--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Fri Jan 19 2001 - 14:41:16 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US