Some additional configuration directives.
To increase the idle time for the OMS frontend sessions edit the ‘oracle.sysman.eml.maxInactiveTime’ configuration parameter your Oracle Management Server’s emoms.properties file. The parameter value unit is in minutes and the default is 15 minutes which is a bit short I suppose. I have set it to 4 hours as you can see in the example below.
$ cat $ORACLE_HOME/sysman/config/emoms.properties | grep maxInactiveTime
oracle.sysman.eml.maxInactiveTime=240
$
For more info see the ‘Enterprise Manager Advanced Configuration‘ book
Read more →
PL/SQL quickie; generate RMAN set newname script to different mountpoints
Script below generates RMAN newname file where database A is copied to database B AND database B has ‘conflicting’ mountpoints set up. Mountpoints setup on database A is like /m001/, /m002/, /m003/, /m004/ but mountpoints on database B side is just /m001/ and /m002. /m001 has only 800 G free space so I place everything in /m001 until i_num_bytes reaches 800G then all the reset goes to /m002.
declare i_num_bytes number := 0; v_mount varchar2(100); v_file varchar2(100); begin for i in (select file_id, file_name, bytes from dba_data_files order by file_id) loop i_num_bytes := i_num_bytes + i.bytes ; -- 800g if i_num_bytes < 858993459200 then v_mount := '/m001/oradata/********/' ; else
Read more →