Use the &UC_JOBMD system variable with the
CMD parameter.
In the Linux job, use the Promptset. Then in the Process tab, the script will be something like this:
Example: &UC_JOBMD CMD="sqlplus uc4/&PASSWORD#@autodev @query.sql"
where query.sql will contain the SQL query:
select count (*) from user_tables;
Example (query.sql): select count(*) from oh where oh_client=100;
On the server, this can be tested like so:
sqlplus automic/<passwordhere>@pdbawa @sql.sql
Alternatively, a SQL agent and SQL job can be used instead. Use a CONN object to store the credentials or connect directly to the DB then put the query in the Process tab.