OraclePoint.com BenchmarkSQL -2.3.2 Installation and User Guide Environment: Server: Oracle 9.2.0.6 and Solaris 9 Client: Windows XP SP2 (have oracle listener ready) Step 1 : install Sun JDK 1.6 (jdk-6u3-windows-i586-p.exe is available at https://sdlc3e.sun.com/ECom/EComActionServlet;jsessionid=45F28B6E93FBCA3CF8B7C6C838 A77669# ) Step 2 : install Eclipse IDE for Java Developers available at http://www.eclipse.org/downloads/ Step 3 : Load Project BenchmarkSQL-2.3.2 to Eclipse 1. Create new Java Project BenchmarkSQL-2.3.2
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
OraclePoint.com
BenchmarkSQL -2.3.2 Installation and User Guide
Environment: Server: Oracle 9.2.0.6 and Solaris 9Client: Windows XP SP2 (have oracle listener ready)
create table district (d_w_id integer not null,d_id integer not null,d_ytd decimal(12,2),d_tax decimal(4,4),d_next_o_id integer,d_name varchar(10),d_street_1 varchar(20),d_street_2 varchar(20),d_city varchar(20),d_state char(2),d_zip char(9));-- SQL Success: Runtime = 516 ms --
commit;-- SQL Success: Runtime = 1 ms --
create table customer (c_w_id integer not null,c_d_id integer not null,c_id integer not null,c_discount decimal(4,4),c_credit char(2),c_last varchar(16),c_first varchar(16),c_credit_lim decimal(12,2),c_balance decimal(12,2),c_ytd_payment float,c_payment_cnt integer,c_delivery_cnt integer,c_street_1 varchar(20),c_street_2 varchar(20),c_city varchar(20),c_state char(2),c_zip char(9),c_phone char(16),c_since timestamp,c_middle char(2),c_data varchar(500));-- SQL Success: Runtime = 533 ms --
commit;
OraclePoint.com
-- SQL Success: Runtime = 1 ms --
create table history (h_c_id integer,h_c_d_id integer,h_c_w_id integer,h_d_id integer,h_w_id integer,h_date timestamp,h_amount decimal(6,2),h_data varchar(24));-- SQL Success: Runtime = 563 ms --
commit;-- SQL Success: Runtime = 1 ms --
create table oorder (o_w_id integer not null,o_d_id integer not null,o_id integer not null,o_c_id integer,o_carrier_id integer,o_ol_cnt decimal(2,0),o_all_local decimal(1,0),o_entry_d timestamp);-- SQL Success: Runtime = 532 ms --
commit;-- SQL Success: Runtime = 1 ms --
create table new_order (no_w_id integer not null,no_d_id integer not null,no_o_id integer not null);-- SQL Success: Runtime = 516 ms --
commit;-- SQL Success: Runtime = 1 ms --
create table order_line (ol_w_id integer not null,ol_d_id integer not null,ol_o_id integer not null,ol_number integer not null,ol_i_id integer not null,
Elasped Time(ms): 0.171 Writing record 3359000 of 3400000Elasped Time(ms): 0.36 Writing record 3360000 of 3400000Elasped Time(ms): 0.109 Writing record 3361000 of 3400000Elasped Time(ms): 0.125 Writing record 3362000 of 3400000Elasped Time(ms): 0.125 Writing record 3363000 of 3400000Elasped Time(ms): 0.141 Writing record 3364000 of 3400000Elasped Time(ms): 0.109 Writing record 3365000 of 3400000Elasped Time(ms): 0.125 Writing record 3366000 of 3400000Elasped Time(ms): 0.141 Writing record 3367000 of 3400000Elasped Time(ms): 0.125 Writing record 3368000 of 3400000Elasped Time(ms): 0.125 Writing record 3369000 of 3400000Elasped Time(ms): 0.156 Writing record 3371000 of 3400000Elasped Time(ms): 0.234 Writing record 3372000 of 3400000Elasped Time(ms): 0.141 Writing record 3373000 of 3400000Elasped Time(ms): 0.141 Writing record 3374000 of 3400000Elasped Time(ms): 0.14 Writing record 3375000 of 3400000Elasped Time(ms): 0.125 Writing record 3376000 of 3400000Elasped Time(ms): 0.219 Writing record 3377000 of 3400000Elasped Time(ms): 0.125 Writing record 3378000 of 3400000Elasped Time(ms): 0.125 Writing record 3379000 of 3400000Elasped Time(ms): 0.141 Writing record 3380000 of 3400000Elasped Time(ms): 0.125 Writing record 3381000 of 3400000Elasped Time(ms): 0.156 Writing record 3382000 of 3400000Elasped Time(ms): 0.125 Writing record 3383000 of 3400000Elasped Time(ms): 0.141 Writing record 3384000 of 3400000Elasped Time(ms): 0.125 Writing record 3385000 of 3400000Elasped Time(ms): 0.14 Writing record 3386000 of 3400000Elasped Time(ms): 0.125 Writing record 3387000 of 3400000Elasped Time(ms): 0.141 Writing record 3388000 of 3400000Writing final records 3389440 of 3400000
------------- ExecJDBC End Date = Thu Jul 12 12:25:49 PDT 2007-------------
Among the output, you may experience ORA-00900 error as highlighted above in colorred. The command “vacuum analyze”is POSTGRESQL-specific command to analyzedatabase objects. In Oracle, we do as followings.
We run: analyze table customer compute statistics;
Make sure to analyze all of ten tables created above.
7. Run the "runBenchmark" command file to execute the swing GUIapplication to test the database
We run: runBenchmark oracle.properties as followings.
Based on that, you can freely setup the necessary parameters to got tpmC value on yoursystem.
For more information on tpmC, see http://www.tpc.org/information/benchmarks.asp
About Author
R. Wang currently works as Oracle DBA in Canada. He is responsible fordatabase performance tuning and high availability. With over 10 yearsexperience in architecting and building oracle systems, Rui is an evangelistfor oracle technology and products. Rui is OCP and received master degree incomputer science from Simon Fraser University in Canada.Visit Rui’s blog: www.oraclepoint.com/oralife and be member ofwww.oraclepoint.com for more resources.