Presentation is loading. Please wait.

Presentation is loading. Please wait.

Performance Testing Progress and Oracle. Environment Variables and Installation PUG Challenge Americas 2012 Performance Testing Progress and Oracle ProgressOracle.

Similar presentations


Presentation on theme: "Performance Testing Progress and Oracle. Environment Variables and Installation PUG Challenge Americas 2012 Performance Testing Progress and Oracle ProgressOracle."— Presentation transcript:

1 Performance Testing Progress and Oracle

2 Environment Variables and Installation PUG Challenge Americas 2012 Performance Testing Progress and Oracle ProgressOracle DLC/usr/dlc102BORACLE_HOME/app/oracle/product/11.2.0 ORACLE_BASE/app/oracle PATH$DLC/binPATH$ORACLE_HOME/bin To installproinstTo installrunInstaller Location/etc/oraInst.loc

3 Physical Structure (data files) PUG Challenge Americas 2012 Performance Testing Progress and Oracle Database Filesports.dbControl File(s)control01.ctl System Areasports.d1System Tablespacesystem.dbf D Filesarea.dDatafilestablespace.dbf Before-Image File + After-Image File sports.b1 + sports.a1 Undo tablespace + Redo Log undotbs.dbf + redo01.log Copy of After- Image File sports.date _time_etc Archive Logsports.date_time_ etc Structure filesports.stBackup of control file to trace file Log Filesports.lgAlert Logalert_sports.log Parameter Filesports.pfpfile (or spfile)initsports.ora

4 PUG Challenge Americas 2012 Performance Testing Progress and Oracle sports.db sports.d1 sports.lic sports.b1 sports.st sports_7.d1 sports_8.d1 sports_9.d1 sports.lg sports.pf control01.ctl cre_controlfile.sql redo01.log redo02.log redo03.log system01.dbf sysaux01.dbf temp01.dbf undotbs01.dbf users01.dbf.srt,.DBI ORACLE_HOME Physical Structure

5 Logical Structure PUG Challenge Americas 2012 Performance Testing Progress and Oracle AreaSchema AreaTablespaceSystem Tablespace Area consists of objects Objects are Tables or Indexes Tablespace consists of segments Segments: Tables, Indexes, Undo, etc Each Object has one or more Clusters Clusters size could be 8,64 or 512 blocks Each Segment has one or more Extents An extent is a series of blocks that are consecutively numbered within a datafile Clusters consist of blocks blocks 1,2,4 or 8KExtents consist of blocks blocks 2,4,8,16,32 or 64K

6 Background Processes PUG Challenge Americas 2012 Performance Testing Progress and Oracle Asynchronous Page WriterAPWDatabase WriterDBWn Before/After Image WriterBIW, AIWLog WriterLGWR AI ManagementAIMGTArchive ProcessARCn Watch DogWDOGProcess MonitorPMON Database Broker_mproservSystem MonitorSMON Checkpoint processCKPT Many other …. 20 at least Login Broker_mproservListenerlsnrctl

7 PUG Challenge Americas 2012 Performance Testing Progress and Oracle Client Server -db db_name -H host -S service Listener Shared memory -db /full_path/db-name N/A Login Brokerlsnrctl [start/stop/status] Connecting to a database $ORACLE_HOME/bin

8 PUG Challenge Americas 2012 Performance Testing Progress and Oracle -H host –S service1 -H host –S service2 S Host:port:SID SID Listener Port 1521 SID2 Connecting to a database Host:port:SID2

9 Meta-schema and VST PUG Challenge Americas 2012 Performance Testing Progress and Oracle Progress TableFieldOracle ViewColumn _Area_Area-nameDBA_TABLESPACESTABLESPACE_NAME _AreaExtent_Extent-PathDBA_DATA_FILESFILE_NAME _StorageObject_Object-type (1,2 or 3)DBA_OBJECTSobject_type (38 types) _File_File-nameDBA_TABLESTABLE_NAME _Field_Field-nameDBA_TAB_COLUMNSCOLUMN_NAME _Index_Index-nameDBA_INDEXESINDEX_NAME _Sequence_Seq-nameDBA_SEQUENCESSEQUENCE_NAME Progress Meta-schema tables -80 < _file-number < 0 Progress VST _file-number < -16384

10 Meta-schema and VST PUG Challenge Americas 2012 Performance Testing Progress and Oracle Virtual System TablesV$ (Vee dollar) Views _Connectv$session, v$process _DbStatusv$instance, v$sysstat _Transv$transaction _Lockv$lock _Latchv$latch _AreaStatusv$tablespace _Filelistv$datafile _Startup (some)v$parameter

11 Data Types PUG Challenge Americas 2012 Performance Testing Progress and Oracle characterformat "x(100)"varchar2varchar2(100) decimalformat ">>>>9.99"numbernumber(7,2) integerformat ">>>>9"numbernumber(5) dateformat 99/99/9999date'MMDDYY HH24:MI:SS' logicalformat yes/noN/A datetimeHH:MM:SS.SSS+HH:MMtimestamp'HH24:MI:SS.FF5' int64format ">>>>9"numbernumber(38)

12 Create Database PUG Challenge Americas 2012 Performance Testing Progress and Oracle

13

14

15 Create Database prodb mydb procopy empty8 mydb Min size 5 MB Min memory 160KB Time to create 1 second A set of.sql scripts create database mydb; Min size 512 MB Min memory 512MB Time from 20 min to 1.5 hr PUG Challenge Americas 2012 Performance Testing Progress and Oracle

16 Shutdown Unconditional Shutdown Emergency Shutdown Shutdown Normal Shutdown Transactional Shutdown Immediate Shutdown Abort PUG Challenge Americas 2012 Performance Testing Progress and Oracle Progress 10.2B patch 06 -shutdownTimeout [ immed, 10m, 1h, maximum ]

17 Startup PUG Challenge Americas 2012 Performance Testing Progress and Oracle Closed Nomount mode Mount mode Open  Prorest  Restoreinit*.ora.ctl Shared Memory Background Proc

18 Backup PUG Challenge Americas 2012 Performance Testing Progress and Oracle Progress backup – simpleOracle RMAN – More complicated probkup db_name file_name Progress and Oracle : Online and Offline (Hot and Cold) Progress and Oracle : Complete and Incremental Oracle: could be Full and Partial

19 Compressed Backup PUG Challenge Americas 2012 Performance Testing Progress and Oracle 700 GB Progress DB makes about 600 GB probkup 1.4 TB Oracle DB makes either 1.2 TB regular backup or 250 GB RMAN compressed backup (BZIP2 is default).

20 Dump and Load PUG Challenge Americas 2012 Performance Testing Progress and Oracle Dictionary Dump and Load in ASCII format (.d) or 4GL export/import SQL select/insert “SQL Loader” or External Tables 10g Binary Dump (proutil –C dump)Oracle export (exp tables=tbl_name) Binary Load (proutil –C load)Oracle import (imp file=file_name) Binary Dump multithreaded V10Oracle Data Pump Export (expdp) 10g Oracle Data Pump Import (impdp) 10g Dump/Load.dfExport/Import (exp full=y rows=n)

21 ATM Database Tests PUG Challenge Americas 2012 Performance Testing Progress and Oracle Hardware: IBM POWER 6 p570, RAM 24GB, 2 CPUs 4704 MHz Software: AIX 6.1, OpenEdge 11.0, Oracle 11gR2 Database: ATM database = 7GB Tables# records Branches5,000 Tellers50,000 Accounts50,000,000

22 Database Size PUG Challenge Americas 2012 Performance Testing Progress and Oracle Progress DB/area size 7,442,137,088 Oracle DB/tablespace size7,688,953,856 Oracle db appear to be 3% more in bytes

23 Backup Size and Speed PUG Challenge Americas 2012 Performance Testing Progress and Oracle ProgressOracleOracle ( compressed ) time94 sec140 sec240 seconds size7GB7.8GB735MB

24 ASCII Dump (in seconds) PUG Challenge Americas 2012 Performance Testing Progress and Oracle # recordsProgressOracle 10,0000.310.43 100,0001.563.32 1,000,00015 32 8,000,000115 259 for each account where account.id < "condition“ no-lock: export account. select * from account where account.id < "condition"

25 ASCII Load (in seconds) PUG Challenge Americas 2012 Performance Testing Progress and Oracle # recordsProgressOracle 100,0003.750.8 1,000,0005312 10,000,000413139 repeat: create account. import account. insert into account select * from stg_account; -- External table

26 Binary Dump (in seconds) PUG Challenge Americas 2012 Performance Testing Progress and Oracle # recordsProgress Oracle 50,000,00080.3855.46 proutil atm -C dump PUB.account /dir -index 0 –RO expdp user/passwd TABLES=ACCOUNT directory=DATA_DIR dumpfile=expdp.dmp parallel=2 -- Data Pump

27 Binary Load with integrity PUG Challenge Americas 2012 Performance Testing Progress and Oracle # recordsProgress Oracle 50,000,000920.38 60.43 proutil atm -C load account.bd -B 50000 -TB 31 -TM 32 -T /tmp impdp user/passwd directory=DATA_DIR dumpfile=expdp.dmp -- Data Pump

28 Binary Load no integrity (-i) PUG Challenge Americas 2012 Performance Testing Progress and Oracle # recordsProgress Oracle 50,000,000 216.28 60.43 proutil atm -C load account.bd -i -B 50000 -TB 31 -TM 32 -T /tmp impdp user/passwd directory=DATA_DIR dumpfile=expdp.dmp -- Data Pump

29 Binary Load PUG Challenge Americas 2012 Performance Testing Progress and Oracle Empty RM Block Free RM Block Full RM Block HWM

30 Binary Load PUG Challenge Americas 2012 Performance Testing Progress and Oracle Empty RM Block Full RM Block Full RM Block HWM

31 Binary Load PUG Challenge Americas 2012 Performance Testing Progress and Oracle Empty Full RM Block Full RM Block Full RM Block HWM

32 Oracle Load PUG Challenge Americas 2012 Performance Testing Progress and Oracle Empty RM Block Full RM Block Full RM Block HWM

33 Oracle Load PUG Challenge Americas 2012 Performance Testing Progress and Oracle Full RM Block Full RM Block Full RM Block HWM

34 Oracle Load PUG Challenge Americas 2012 Performance Testing Progress and Oracle Full RM Block Full RM Block Full RM Block HWM

35 Build a brand new index PUG Challenge Americas 2012 Performance Testing Progress and Oracle # recordsProgress Oracle 50,000,000148.96118.31 proutil atm -C idxbuild area "Account Index" -thread 1 -threadnum 2 -TF 80 -TB 64 -TM 32 -B 256 -T /tmp -SG 64 CREATE UNIQUE INDEX account_pk ON account (id);

36 Rebuild existing index PUG Challenge Americas 2012 Performance Testing Progress and Oracle # recordsProgress Oracle 50,000,000153.9581.88 proutil atm -C idxbuild area "Account Index" -thread 1 -threadnum 2 -TF 80 -TB 64 -TM 32 -B 256 -T /tmp -SG 64 ALTER INDEX account_pk REBUILD PARALLEL 2;

37 ATM Test PUG Challenge Americas 2012 Performance Testing Progress and Oracle

38 atm1.sql PUG Challenge Americas 2012 Performance Testing Progress and Oracle

39 CLTransTPSConcAvgRMinR50%R90%R95%RMaxRProg 13299611100.00.80.000.0 99.1atm1.p 53410901137.03.90.000.0 93.0atm1.p 153583551194.513.90.000.0 95.0atm1.p 253603961201.322.40.020.0 97.6atm1.p 503670931223.649.80.040.0 0.188.4atm1.p 1003484671161.699.60.090.0 0.288.2atm1.p 2503416531138.8248.90.230.0 0.10.698.6atm1.p 5003151421050.5495.60.470.0 0.31.282.8atm1.p 10003107931036.0872.20.950.0 1.02.3117.6atm1.p Progress ATM Results All tests run for 300 seconds

40 PUG Challenge Americas 2012 Performance Testing Progress and Oracle CLTimeTransTPSConcAvgRProg 1300 35589118.61.00.01atm1.sql 5300160492535.04.80.01atm1.sql 153004808981603.014.40.01atm1.sql 253008032632677.523.70.01atm1.sql 503009539623179.947.40.01atm1.sql 10030010239483413.269.40.01atm1.sql 25030010634543544.9226.40.02atm1.sql 50030010924043641.4472.30.06atm1.sql 100030011134543711.5861.30.13atm1.sql Oracle ATM Results All tests run for 300 seconds

41 PUG Challenge Americas 2012 Performance Testing Progress and Oracle

42 IBM Power 7 Model p750 16 3.4 GHz CPUs x 4 SMTs RAM 124 GB SAN V7000 Big box Test

43 PUG Challenge Americas 2012 Performance Testing Progress and Oracle

44 Type: DBS and CCOnly DBS Any -pf file anywhereinit*ora In $ORACLE_HOME/dbs Promon R&D / 1 / 12 or _Startupselect * from V$PARAMETER Startup parameters

45 PUG Challenge Americas 2012 Performance Testing Progress and Oracle

46 OEM parameters

47 PUG Challenge Americas 2012 Performance Testing Progress and Oracle -dbdb_name -Bmemory_target -bibufslog_buffer -nprocesses -spinspin_count -Ldml_locks -Ma 1Dedicated connections -Ma 2 or moreShared connections -cp* (I18N)NLS* National Language Support Startup parameters

48 Cluster Environment PUG Challenge Americas 2012 Performance Testing Progress and Oracle Progress in a ClusterReal Application Cluster (RAC)

49 Server 1 Memory Apw, Biw, Aiw, Wdog Server 2Server 1 Memory DBWn, LGWR ARCn, SMON Server 2 Memory DBWn, LGWR ARCn, SMON Active - PassiveActive – Active DB PUG Challenge Americas 2012 Performance Testing Progress and Oracle Cluster db

50 Server 1 Server 2 Memory Apw, Biw, Aiw, Wdog Server 1Server 2 Memory DBWn, LGWR ARCn, SMON PUG Challenge Americas 2012 Performance Testing Progress and Oracle Cluster db 2

51 PUG Challenge Americas 2012 Performance Testing Progress and Oracle Questions Web pagewww.proora.com Emaild_levin@hotmail.com Otherwww.peg.com


Download ppt "Performance Testing Progress and Oracle. Environment Variables and Installation PUG Challenge Americas 2012 Performance Testing Progress and Oracle ProgressOracle."

Similar presentations


Ads by Google