Uncategorized

Freespace Scripts

select total.tablespace_name tsname, –count(free.bytes) nfrags, nvl(max(free.bytes)/1024/1024,0) “Total(gb)”, total.bytes/1024/1024/1024 “Used(gb)”, –nvl(sum(free.bytes)/1024,0) avasiz, nvl(max(free.bytes)/1024/1024,0)-total.bytes/1024/1024/1024 “Freespace(gb)”, (1-nvl(sum(free.bytes),0)/total.bytes)*100 “% used” from dba_data_files total, dba_free_space free where total.tablespace_name = free.tablespace_name(+) and total.file_id=free.file_id(+) group by total.tablespace_name,total.bytes   “Total Disk Used”  select sum(space_used_delta) / 1024 / 1024 “Space used (M)”, sum(c.bytes) / 1024 / 1024 “Total Schema Size (M)”, round(sum(space_used_delta) / sum(c.bytes) *…

Uncategorized

Obiee load testing

This is the main script that you can use to call individual load test  scripts, examples below. #!/bin/bash usage() { echo “Usage : Please supply TestDuration in secs,NoOfThreads,LogWriteFrequency in secs,RampUp in secs” exit 1 } #Set Local Parameters TestDuration=”$1″ NoOfThreads=”$2″ LogWriteFreq=”$3″ RampUp=”$4″ ScriptLocation=”/home/oraobi/TestScripts/runtime/nqcmd*.sh” #Call Usage if Parameters not passed [[ $# -eq 0 ]] &&…

Uncategorized

Oracle RDBMS – Data Pump

Some Oracle Data Pump examples… Data Pump Export ( list of tables, over a db link ) expdp system/manager parallel=1 logfile=exp_ntcv2_ams.log dumpfile=ntcv2ams_%u.dmp estimate=statistics network_link=ntcv2 directory=dp_ntut tables=’AMS.AMS_LIST_ENTRIES,\ AMS.AMS_OBJECT_ASSOCIATIONS,\’ The script below calls Data Pump to export a schema, containing the SALES and COSTS tables, but only where PROD_ID = 13. An example of passing a query…