i read the document of oracle database XE and then:
for view the listiner status work with command:
To view listener status:
- Do one of the following:
- On Linux: Start a terminal session and log in to the Oracle Database XE host
computer with the oracle user account. - On Windows: Log in to the Oracle Database XE host computer as the user who
installed Oracle Database XE, and then open a command window.
- On Linux: Start a terminal session and log in to the Oracle Database XE host
- On Linux, ensure that environment variables are set according to the instructions
in “Setting Environment Variables on the Linux Platform” on page 3-5. - Enter the following command:
LSNRCTL STATUS
and then i try to do the work in my oracle,the command dont work:
my command is in sql commadnd prompt :
CONNECT USERNAME/PASSWORD AS SYSDBA; LSNRCTL STATUS;
The top query doesn’t work. Please help me.
LSNRCTL STATUSis not a SQL statement.LSNRCTLis a program installed together with Oracle and the Listener. You therefor need to run it in a regular command prompt.