VMware Cloud Community
Hjadallah
Contributor
Contributor

Compacting a virtual disk that has an oracle database

Hi all;

i would like to ask if i have a vmware virtual machine with windows os and oracle software and that the oracle database being saved on a dynamic virtual disk , if i compact the virtual disk,will that affect the oracle database???

0 Kudos
3 Replies
HassanAlKak88
Expert
Expert

Hello,

Compacting a virtual hard disk reclaims unused space in the disk. If a disk has empty space, this process reduces the amount of space the virtual hard disk occupies on the host drive. You must power off a virtual machine before you compact its virtual hard disk.

You cannot compact a virtual hard disk if disk space is preallocated or if the virtual hard disk is mapped or mounted.

For similar tasks, it is highly recommended to take a valid backup before (for your VM and for your data), because in IT shit happens Smiley Wink

Please consider marking this answer "CORRECT" or "Helpful" if you think your question have been answered correctly.

Cheers,

VCIX6-NV|VCP-NV|VCP-DC|

@KakHassan

linkedin.com/in/hassanalkak


If my reply was helpful, I kindly ask you to like it and mark it as a solution

Regards,
Hassan Alkak
0 Kudos
Hjadallah
Contributor
Contributor

but what if i have an oracle database on the virtual disk.

what will happen???

will it affect the database?

0 Kudos
HassanAlKak88
Expert
Expert

compact reclaims unused space in the disk, so it is unaware from data.

But recommended to take a backup in case needed.


If my reply was helpful, I kindly ask you to like it and mark it as a solution

Regards,
Hassan Alkak
0 Kudos