##########################################################################
Create a Soft or link between the
Directories
##########################################################################
Situation :We have
2 databases with the Wallet Directory and files
We are going to move wallet to a Common location /deploy/database_wallet/
We are going to move wallet to a Common location /deploy/database_wallet/
==========================================================================
/apps/oracle/product/11.2.0/db/admin/DB1/wallet/
-- a.txt
-- b.txt
/apps/oracle/product/11.2.0/db/admin/DB2/wallet/
--
c.txt
-- d.txt
Desired(Complete
Directory and Contents should mapped to /deploy location
============================================================================
It should look like this
/apps/oracle/product/11.2.0/db/admin/DB1/wallet ->
/deploy/database_wallet/DB1/wallet
/apps/oracle/product/11.2.0/db/admin/DB2/wallet ->
/deploy/database_wallet/DB2/wallet
Work
=============================================================================
1) Create directories to the New Location which is
/deploy & Change the Permissions
mkdir -p
/deploy/database_wallet/DB1/wallet
mkdir -p
/deploy/database_wallet/DB2/wallet
2) Copy original files which to the new Location
copy a.txt, b.txt to
/deploy/database_wallet/DB1/wallet
copy c.txt, d.txt to
/deploy/database_wallet/DB2/wallet
3) Now we have this
/deploy/database_wallet/DB1/wallet/
-- a.txt
-- b.txt
/deploy/database_wallet/DB2/wallet/
-- c.txt
-- d.txt
4) Now time to remove the Old Location (ONLY WALLET) and
Map it to the New one
rm -rd
/apps/oracle/product/11.2.0/db/admin/DB1/wallet
rm -rd
/apps/oracle/product/11.2.0/db/admin/DB2/wallet
Now the Old
Location do not have wallet Directory at all
Time to create a Directory with the Link
ln -s
/deploy/database_wallet/DB1/wallet
/apps/oracle/product/11.2.0/db/admin/DB1/wallet
ln -s
/deploy/database_wallet/DB2/wallet
/apps/oracle/product/11.2.0/db/admin/DB2/wallet
Now Checking
ls -l
/apps/oracle/product/11.2.0/db/admin/DB1
lxxx xxx xxx
/apps/oracle/product/11.2.0/db/admin/DB1/wallet ->
/deploy/database_wallet/DB1/wallet