This discussion is archived
7 Replies Latest reply: Feb 6, 2011 8:50 AM by EricvdS RSS

Run emca commande in linux shell script

Ouazir Newbie
Currently Being Moderated
Hello every one,
I would like to run emca for creating dbconsole in my Production database, so i have to execute this command in the script because this command causes the database to be in passive mode.
my script look like :
#/bin/sh
su - oraprod -c "sh /oraprod/db/tech_st/10.2.0/bin/emca -config dbcontrol db -repos create">>/backora/log.log

but the problem is how to interacte with this command (provide those parameter Database SID,Database Port, sys password .... )

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points