41 lines
1.6 KiB
Plaintext
Executable File
41 lines
1.6 KiB
Plaintext
Executable File
-- verify software integrity
|
|
cluvfy comp software -n all -verbose
|
|
|
|
-- MGMTDB creation
|
|
------------------
|
|
$GRID_HOME/bin/dbca -silent -createDatabase -templateName MGMTSeed_Database.dbc -sid -MGMTDB -gdbName _mgmtdb -storageType ASM -diskGroupName +DATA -datafileJarLocation $GRID_HOME/assistants/dbca/templates -characterset AL32UTF8 -autoGeneratePasswords -oui_internal
|
|
|
|
|
|
-- Wallet creation for patching
|
|
-------------------------------
|
|
cd /app/grid/product/12cR2/grid_1/OPatch/auto/core/bin
|
|
./patchingWallet.sh -walletDir /home/grid -create grid:theron-db01:ssh grid:theron-db02:ssh root:theron-db01:ssh root:theron-db02:ssh -log /home/grid/wallet.log
|
|
|
|
|
|
cd /app/oracle/product/12cR2/db_1/OPatch/auto/core/bin
|
|
./patchingWallet.sh -walletDir /home/oracle -create oracle:theron-db01:ssh oracle:theron-db02:ssh root:theron-db01:ssh root:theron-db02:ssh -log /home/oracle/wallet.log
|
|
|
|
|
|
-- Patch apply with opatchauto
|
|
------------------------------
|
|
/app/grid/product/12cR2/grid_1/OPatch/opatchauto apply /home/grid/tmp/26610291 -oh /app/grid/product/12cR2/grid_1 -wallet /home/grid
|
|
|
|
-- Install the last version of OPach
|
|
------------------------------------
|
|
|
|
As root user, after uncompres the downloaded of the last OPatch under /mnt/yavin4/tmp/0/01/OPatch
|
|
|
|
cd /app/grid/product/12cR2/grid_1/
|
|
OPatch/opatchauto version
|
|
rm -rf OPatch/
|
|
cp -R /mnt/yavin4/tmp/0/01/OPatch .
|
|
chown -R grid:oinstall OPatch
|
|
OPatch/opatchauto version
|
|
|
|
cd /app/oracle/product/12cR2/db_1/
|
|
OPatch/opatchauto version
|
|
rm -rf OPatch/
|
|
cp -R /mnt/yavin4/tmp/0/01/OPatch .
|
|
chown -R oracle:oinstall OPatch
|
|
OPatch/opatchauto version
|