I am trying to create a job using OEM that will use SQL*Plus. I am running a simple script (select sysdate from dual; ), but I keep getting the same error:
It seems that OEM is not able to logon and issue the select statement. Any ideas?
I have OEM on windows2000, management server on the same machine, and connecting to a unix(DYNIX/PTX) database. The intelligent agent on the unix server is running fine. Thanks.
I just tried to run your sql through OEM jobs and it worked.
Here are the steps:
1. Create a job > (jobname)
2. select Destination Type i.e. (Database)
3. select Destination i.e. (Database Name)
4. In Tasks window select "Run SQL*Plus Script"
5. In Parameter window type "select sysdate from dual;" in Script Text
6. In Schedule window check radio button "Immediately"
7. Click submit & save to library
When the job completed, view job in Job History window, check Progress, highlight Completed and click Show Output.
I believe that you have validated the user login and password from both oem console and sql*plus application. How did you create that sql*plus job which failed?
I create the job exactly as FARRUKH described. The output generated lists the error I stated. It seems that I am creating the job correctly. The preferred credentials are for a valid database user and not and OS user, right?
I have changed all accounts to the same username and password (win2k, oracle, oem, unix). Now the job is submitted and hangs in the active state. I cannot remove the job.
Bookmarks