000028146 - Solution   KB-1360 - Oracle home directory filled with "virt*" files

Document created by RSA Customer Support Employee on Jun 14, 2016Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000028146
Applies ToAffected Versions: 4.1; 4.0.1; 4.0; 3.6.X
Resolution

The "virt" files in /home/oracle are temporary files used by the Jasper reporting engine when creating large reports. The temporary or virtual files are used to store data that might have filled up the memory and cause the reporting engine to hang or crash the appliance (if temporary files were not used).



Once the files are no longer in use they can safely be removed.
To remove the files you can use either a cron script or place a script in /etc/cron.daily directory. The example code below will remove all the files that are older than 1 day.
 


/usr/bin/find /home/oracle -name virt\* -mtime +1 -exec rm {} \;


 


Sometimes, there are so many files, that a simple UNIX rm command cannot delete the files, In this case, use the following command to delete them:


/usr/bin/find /home/oracle/ -name \virt* -mtime +1 | xargs rm -f


 


 


 


This command can be added to the systems local crontab, so that these virt files are removed on a regularily scheduled basis. An example of this is shown below. For this example, virt files older than 1 day will be removed at 2:30 AM every day. Refer to your UNIX OS documentation for more information on the use of crontab.


 


30 2 * * * /usr/bin/find /home/oracle -name virt\* -mtime +1 -exec xargs rm {} \;


 


 


Note that in ACM Version 4.1.1 and higher, the virt files are now created in a seperate directory, not the 'home' directory of the ACM oracle UNIX user.

Attachments

    Outcomes