[grid@rac1 bin]$ ./patchingWallet.sh -help Usage: run patchingWallet.cmd or patchingWallet.sh with the following parameters: [ options ] { -create | -delete | -list } alias ... Supported alias format :: >userName>:>hostName>{:}{/}>protocol> Examples : abc:xyz:ssh abc:xyz/ssh
-walletDir - >Path to wallet directory.> [-password - If you should be prompted for the wallet password.] [-useStdin - >Read passwords from stdin rather than attempting to use Console.>] [-map - >Map name within wallet.>] [-force - >Force overwrite of existing aliases.>] [-list - List wallet] [-listmap - List maps available in wallet] [-create - Create alias] [-delete - Delete alias] [-log_priority - >Log priority. Supported values: OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL.>] [-log - >Log file. The value can be a filename or one of the special values STDOUT, STDERR, or DISABLE.>] [-help - >Displays usage.>]
使用grid用户:
1 2 3 4 5 6
[grid@rac1 bin]$ ./patchingWallet.sh -walletDir /u01/app/grid/wallet -create grid:rac1:ssh grid:rac2:ssh -log /u01/app/grid/wallet/wallet.log Session log file is /u01/app/grid/wallet/wallet.log Enter Password for grid:rac1:ssh: Confirm Password for grid:rac1:ssh: Enter Password for grid:rac2:ssh: Confirm Password for grid:rac2:ssh:
OPatchauto session is initiated at Wed Sep 26 15:28:29 2018
System initialization log file is /u01/app/12.2.0/grid/cfgtoollogs/opatchautodb/systemconfig2018-09-26_03-28-38PM.log.
Session log file is /u01/app/12.2.0/grid/cfgtoollogs/opatchauto/opatchauto2018-09-26_03-29-24PM.log The id for this session is SQGY [sudo] password for grid: grid is not in the sudoers file. This incident will be reported.
OPatchAuto failed.
OPatchauto session completed at Wed Sep 26 15:29:28 2018 Time taken to complete the session 0 minute, 59 seconds