Managing Databases using Enterprise Manager (MOSC)

MOSC Banner

EM DBConsole: Create 'Host Command' Job

edited Jun 15, 2010 7:09AM in Managing Databases using Enterprise Manager (MOSC) 4 commentsAnswered ✓
I need some help creating a 'Host Command' job within Enterprise Manager 10g.  I am still learning Linux and I need some clarification on how the following should be setup.  The "Create 'Host Command' Job" screen has a single-line input box for "Command" (mandatory) and a multi-line input box for "OS Script" (not mandatory).
I'm trying to schedule the following commands to run, but I'm not sure if they need to go into the "Command" field, or the "OS Script" area.
lsnrctl set log_status off
mv listener_<hostname>.log listener_<hostname>.log.old
lsnrctl set log_status on
I tried putting them all in the "Command" area, but it will only accept one line.  They do fit in the "OS Script" area, but I have no clue what to put in the "Command" box then.  I'm guessing I can package the OS Commands into a script (not sure how) and then call the script from the Command box (again, not sure how)?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center