Agent deploy is totally managed by enterprise manager console where, after the installation of patch #13503844 for bug #10044087, you will find the Upgrade Console under deployments tab.
A long job will:
- Copy agent
- Copy dependent plugins
- Deploy agent
- Configure agent
I have discovered a bug (Oracle support said it's internal bug 12911215 ... obviously not published) where if agent installation is done without sudo or powerbroker may fail.
The behaviour is that during job phase unzipAndDeploySoftware the command agentDeploy.sh fails signaling a mismatch between installation user and the owner of agent12g directory. This is a false alarm and the only workaround is to trick the agent installation making it to use the argument -ignoreDirPrereq.
To do it you have to connect to the enterprise manager database and issue the statement:
update PRE_UPGC_MASTER_INFO set PROPERTY_VALUE='-ignoreDirPrereq' where PROPERTY_NAME='deploy_param';