Running and Managing Oracle Databases
- n OpenVMS
Running and Managing Oracle Databases on OpenVMS (Apr 2016) - - PowerPoint PPT Presentation
Running and Managing Oracle Databases on OpenVMS (Apr 2016) Maklee Engineering Christian Moser Chief Technology Officer cmos@maklee.com Agenda Oracle 11g on OpenVMS Configuration and Tuning Performance monitoring tools Oracle
Transactions Committed Per Minute (More is better)
Latency Per New Order (Less is better)
net:
inet: pmtu_enabled = 0 tcbhashsize = 16384 tcbhashnum = 16 socket: somaxconn = 65535 sominconn = 65535
$ iot /count=50000 /op=read /pat=rand /size=512 /que=64 - $1$DGA8950 $1$dga8951 $1$dga8952 $1$dga8953 _$1$DGA8950: (DGX00 DG "3PARdata VV") 49632 xfer, 33.440 sec,1484.2 xfer/sec, 379958 Kb/sec _$1$DGA8951: (DGX00 DG "3PARdata VV") 49928 xfer, 33.440 sec,1493.1 xfer/sec, 382224 Kb/sec _$1$DGA8952: (DGX00 DG "3PARdata VV") 49743 xfer, 33.440 sec,1487.5 xfer/sec, 380808 Kb/sec _$1$DGA8953: (DGX00 DG "3PARdata VV") 50000 xfer, 33.440 sec,1495.2 xfer/sec, 382775 Kb/sec Total (p < 0.001)199303 xfer, 33.440 sec,5960.0 xfer/sec,1525765 Kb/sec $ iot /count=100000 /op=read /pat=rand /size=16 /que=64 - $1$DGA8950 $1$dga8951 $1$dga8952 $1$dga8953 _$1$DGA8950: (DGX00 DG "3PARdata VV") 98002 xfer, 13.150 sec,7452.6 xfer/sec, 59621 Kb/sec _$1$DGA8951: (DGX00 DG "3PARdata VV")100000 xfer, 13.150 sec,7604.6 xfer/sec, 60837 Kb/sec _$1$DGA8952: (DGX00 DG "3PARdata VV") 98276 xfer, 13.150 sec,7473.5 xfer/sec, 59788 Kb/sec _$1$DGA8953: (DGX00 DG "3PARdata VV") 99892 xfer, 13.150 sec,7596.3 xfer/sec, 60771 Kb/sec Total (p < 0.001)396170 xfer, 13.160 sec,30104.1 xfer/sec, 240833 Kb/sec
$ show mem/res System Memory Resources on 15-SEP-2015 04:39:23.49 Memory Reservations (pages): Group Reserved In Use Type ORA_ORA11_SGA SYSGBL 3840 0 Page Table ORA_ORA11_SGA SYSGBL 3670016 0 Allocated ORA_ORA11_SGA SYSGBL 262144 0 Allocated Total (30.02 GBytes reserved) 3936000 0
$ mc sysman res show %SYSMAN-I-OUTPUT, command execution on node UEHARA Reservation Name Group RAD Size (MB) Pages Pg In Use Attributes ORA_ORA11_SGA SYSGBL ANY 2875 2875 Allocated PageTables ORA_ORA11_SGA SYSGBL ANY 20480 2621440 2621440 Allocated ORA_ORA11_SGA SYSGBL ANY 2048 262144 2568 Allocated ORA_ORA11_SGA SYSGBL ANY 256 32768 2184 Allocated ORA_ORA11_SGA SYSGBL ANY 192 24576 2081 Allocated ORA_ORA11_SGA SYSGBL ANY 16 2048 545 Allocated ORA_ORA11_SGA SYSGBL ANY 8 1024 545 Allocated $ mc sysman res list %SYSMAN-I-OUTPUT, command execution on node UEHARA Reservation Name Group RAD Size (MB) Pages Attributes ORA_ORA11_SGA SYSGBL ANY 30720 3932160 Allocated Zeroed ORA_ORA11_SGA SYSGBL 3840 PageTables Allocated $ mc sysman res show %SYSMAN-I-OUTPUT, command execution on node UEHARA Reservation Name Group RAD Size (MB) Pages Pg In Use Attributes ORA_ORA11_SGA SYSGBL ANY 3840 3840 Allocated PageTables ORA_ORA11_SGA SYSGBL ANY 28672 3670016 3670016 Allocated ORA_ORA11_SGA SYSGBL ANY 2048 262144 245491 Allocated
$ mc sysgen sh load_sys Parameter Name Current Default Min. Max. Unit Dynamic
$ mc sysgen sh gh Parameter Name Current Default Min. Max. Unit Dynamic
GH_EXEC_DATA 2048 2048 1024 65536 Pages GH_RES_CODE 65536 5120 0 1048576 Pages GH_RES_DATA 65536 512 0 65536 Pages GH_RSRVPGCNT 0 0 0 -1 Pages GH_RES_CODE_S2 65536 0 0 1048576 Pages
$ define/nolog ora_olb ora_root:[rdbms.lib], ora_root:[lib], ora_root:[dbjava.lib] $ link – /exe=ora_root:[rdbms.bin]oracle.exe – /dsf=ora_root:[rdbms.bin]oracle.dsf – /map=ora_root:[rdbms.bin]oracle.map – /cross – /full – /sysexe – /section_binding=code – /segment=(short=write,code=p2) –
$ install repl/open/head/share=addr/resi libcorenls11_4dc23418 $ install repl/open/head/share=addr/resi libskgxn2_4dc23418 $ install repl/open/head/share=addr/resi libskgxp11_4dc23418 $ install repl/open/head/share=addr/resi liborashr11_4dc23418 $ install repl/open/head/share=addr/resi ora_root:[bin]oracle.exe
SDA> sh proc/image/ind=51 Process index: 0051 Name: ORA_ORA11_PMON Extended PID: 00000451
ORACLE MAIN SHR 7FE28010 00000000.02000000 TCPIP$IPC_SHR MRGD SHR 7FE2C4D0 00000000.0254A000 TCPIP$ACCESS_SHR GLBL SHR 7FE2BC70 00000000.025C2000 DISMNTSHR GLBL PRT SHR 7FE296C0 00000000.7B21E000 MAILSHRP GLBL PRT SHR 7FE2BDA0 00000000.7B304000 SECURESHRP GLBL PRT SHR 7FE29590 00000000.7B43E000 RMISHR GLBL PRT SHR 7FE297F0 00000000.7B49E000 LIBRTL GLBL SHR 7FE2A570 00000000.7B4CC000 LIBOTS GLBL SHR 7FE2A6A0 00000000.7B4E6000 MAILSHR GLBL SHR 7FE29B80 00000000.7B5AE000 SECURESHR GLBL SHR 7FE29460 00000000.7B662000 CMA$TIS_SHR GLBL SHR 7FE2BED0 00000000.7B698000 DPML$SHR GLBL SHR 7FE2BB40 00000000.7B852000 PTHREAD$RTL GLBL SHR 7FE29920 00000000.7B884000 DECC$SHR GLBL SHR 7FE29DE0 00000000.7BA20000 TRACE GLBL SHR 7FE29CB0 00000000.7BA82000 LIBCORENLS11 GLBL SHR 7FE2BA10 00000000.7C6DE000 LIBSKGXN2 GLBL SHR 7FE28AE0 00000000.7C708000 LIBSKGXP11 GLBL SHR 7FE28C10 00000000.7C728000 LIBORASHR11 GLBL SHR 7FE28D40 00000000.7CBDE000 SYS$BASE_IMAGE GLBL 7FE2A7D0 FFFFFFFF.D0225200 SYS$PUBLIC_VECTORS GLBL 7FE2A900 FFFFFFFF.D0200400 Total images = 22 Pages allocated = 5666 SDA>
SDA> show proc/image=all Process index: 0051 Name: ORA_ORA11_PMON Extended PID: 00000451
Image Name/Link Time/Section Type Type/File Id IMCB Base End Image Offset
ORACLE MAIN SHR 7FE28010 2FD2,868EE0E9,01 00000000.02000000 14-SEP-2015 15:00:28.89 (21134,3,0) Data (read/write) 00000000.00010000 00000000.00066ECC 00000000.00010000 Demand zero 00000000.00070000 00000000.0008175B 00000000.00070000 Data (read only) 00000000.00090000 00000000.01DF7963 00000000.00090000 Code FFFFF802.30000000 FFFFF802.46E16AAF 00000000.80000000 Data (read only) FFFFFFFF.B02EBA00 FFFFFFFF.B08C3067 00000000.96E20000 Short data (read/write) 00000000.01E00000 00000000.021759A7 00000000.01E00000 Fixup FFFFFFFF.D727E890 FFFFFFFF.D8CA8CF7 00000000.97400000
SDA> clue mem/gh Granularity Hint Regions - Huge Pages
Base/End VA FFFFFFFF.90000000 FFFFFFFF.B0000000 Cur Size 65536/ 65536 Base/End PA 00000000.10000000 00000000.30000000 Free / 44915 Total Size 00000000.20000000 512.0 MB In Use / 20621 Bitmap VA/Size FFFFFFFF.D12BE190 00000000.00002000 Init Size 65536/ 65536 Slice Size 00000000.00002000 Released 0/ 0 Next free Slice 00000000.00003D05 S0S1 Resident Image Data Region Pages/Slices Base/End VA FFFFFFFF.B0000000 FFFFFFFF.D0000000 Cur Size 65536/****** Base/End PA 00000010.00000000 00000010.20000000 Free /****** Total Size 00000000.20000000 512.0 MB In Use / 17945 Bitmap VA/Size FFFFFFFF.D12C0190 00000000.00020000 Init Size 65536/****** Slice Size 00000000.00000200 Released 0/ 0 Next free Slice 00000000.00004619 S2 Resident Image Code Region Pages/Slices Base/End VA FFFFF802.30000000 FFFFF802.50000000 Cur Size 65536/ 65536 Base/End PA 00000010.20000000 00000010.40000000 Free / 18676 Total Size 00000000.20000000 512.0 MB In Use / 46860 Bitmap VA/Size FFFFFFFF.D12E0190 00000000.00002000 Init Size 65536/ 65536 Slice Size 00000000.00002000 Released 0/ 0 Next free Slice 00000000.0000B70C
$ mc authorize add/id/val=uic=[20,*] dba $ mc authorize cop system oracle/uic=[20,1]/pass=maklee/nopwdexp/dev=$1$dga20/dir=oracle $ mc authorize mod oracle/ast=1024/byt=1000000/fil=3000/pgflq=2000000/jtquota=16384 $ def/sys/nolog/tran=conc ora_11g $1$dga20: $ set def ora_11g:[temp] $ mc unzip vms_11204_db.zip $ mc unzip "-Vqo" db11204.zip $ cre/dir/owner=oracle ora_11g:[app.oracle.product.11g] $ cre/dir/owner=oracle ora_11g:[app.orainventory] $ cre ora_11g:[app.orainventory]oraInst.loc inst_group=dba inventory_loc=/ora_11g/app/orainventory <ctrl/Z> $ set process/parse_style=traditional $ @ora_11g:[temp.disk1.install.java$150.com]java$150_setup $ @ora_11g:[temp.disk1.install]efs.com $ unzip == "$ora_11g:[temp.disk1.install]unzip.exe" $ run_installer == "$ora_11g:[temp.disk1.install]runInstaller.exe" $ set protect=(s:rwed,o:rwed,g:re,w:re) /default $ def/nolog oracle_base "/ora_11g/app/oracle/product" $ def/nolog oracle_home "/ora_11g/app/oracle/product/11g" $ def/nolog tmp "/ora_11g/scratch" $ set default ora_11g:[temp.disk1.install] $ define/nolog ora_auto_insoracle "true" $ run_installer "-silent" "-responsefile" "/ora_11g/oracle/vms_11g.rsp" "-invptrloc" "/ora_11g/app/orainventory/oraInst.loc"
$ cre/owner=oracle ora_11g:[oracle]dbca.rsp
$ copy ora_11g:[oracle]dbca.rsp sys$scratch:dbca.args $ dbca –silent -responsefile ora_11g:[oracle]dbca.rsp