In a script, I'm trying to su to a user and execute a command that requires a parameter
su - $ORA_OWNER -c "lsnrctl start"
It never finds the lsnrctl command, i get a not found message on lsnrctl.
It works in Solaris, but not the Linux.
What do I need to do to have the lsnrctl command found?
Hmm... I take it that lsnrctl should be in /u01/app/oracle/product/22.214.171.124.0/bin ?
I don't use su myself, but I still think it's path-related
su - $ORA_OWNER -c "/u01/app/oracle/product/126.96.36.199.0/bin/lsnrctl
This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g. Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink.
Disclaimer: I hav…
As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system.
The idea is that you insta…
Learn how to get help with Linux/Unix bash shell commands.
Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell.
Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…