You must be an ArcSDE database server administrator or a geodatabase administrator to compress a geodatabase. The Compress Database function will be deactivated if you are not in one of these two roles.
While the compress operation is running, a progress bar will appear, which will advance until compress is complete.