Database Reference
In-Depth Information
A template property file for the job_type can be obtained using EMCLI verb "describe_job_type".
Another job of the same job type could also be used to generate the property file using EMCLI verb
"describe_job".
Please make sure that the property file is accessible to the EMCLI client for reading.
Sample:
Create and schedule a job with name MYJOB1 and of job type MyJobType1 with property file present at
location /tmp/myjob1_prop.txt
emcli create_job -name=MYJOB1 -job_type=MyJobType1 -
input_file="property_file:/tmp/myjob1_prop.txt"
Create a Job
The following steps must be performed to create a job. In our example, we will first perform upgrades to six existing
agents' hosts and then remove those previous agents.
To upgrade:
1.
Check to see what agents are available for upgrades.
2.
Input and use file to list those agents and use said file as part of our job.
3.
Upgrade the agents.
4.
Check the status of the process once upgrade is completed.
To remove previous agents:
1.
Check on what existing agents' installations can be cleaned up after the upgrade.
2.
Use EM CLI to uninstall the old agent installation.
3.
Use an EM CLI host command to remove each of the old agent home directories.
Step 1: Upgrade Agents
List out the agents that we'll be upgrading as part of the EM job:
>emcli get_upgradable_agents > /u01/app/scripts/upg_agents.txt
orcl2:3872 12.1.0.2.0 12.1.0.3.0 Linux x86-64
/u01/app/oracle/Agent12c/core/12.1.0.2.0
orcl1:3872 12.1.0.2.0 12.1.0.3.0 Linux x86-64 /u01/app/oracle/Agent12c/core/12.1.0.2.0
>vi /u01/app/scripts/upg_agents.txt
Remove the version information and the platform. You should be left with is the agent host and port:
orcl2:3872
orcl1:3872
...
 
Search WWH ::




Custom Search