Wednesday, April 6, 2016

Tar, gzip and Untar in solaris

cd /opt/app/oracle/product/11.2.0
tar cEvf database.tar /opt/app/oracle/product/11.2.0/11.2.0.4

cd /opt/app/crs/11.2.0
tar cEvf grid.tar /opt/app/crs/11.2.0/11.2.0.4


To untar it

tar -xvf database.tar
tar -xvf grid.tar



To gzip the tar file
gzip database.tar
gzip grid.tar

To unzip and untar
tar xvfz database.tar.gz
tar xvfz grid.tar.gz


Also try if above doesnt work

gtar xzvf somefile.tar.gz
if that doesn't work:
gunzip -c somefile.tar.gz |tar xvf - 

No comments:

Post a Comment

Featured Post

Apply Patch 22191577 latest GI PSU to RAC and DB homes using Opatch auto or manual steps

Patch 22191577: GRID INFRASTRUCTURE PATCH SET UPDATE 11.2.0.4.160119 (JAN2016) Unzip the patch 22191577 Unzip latest Opatch Version in or...