command not

Why command not found

[oracle@newmac db]$ lsnrctl status
bash: lsnrctl: command not found
[oracle@newmac db]$ cd network/
[oracle@newmac network]$ ls
admin  doc  install  jlib  lib  log  mesg  tools  trace
[oracle@newmac network]$ cd admin/
[oracle@newmac admin]$ ls
listener.ora  samples  shrept.lst  tnsnames.ora  tnsnames.ora~
[oracle@newmac admin]$ lsnrctl start
bash: lsnrctl: command not found
[oracle@newmac admin]$ lsnrctl
bash: lsnrctl: command not found
[oracle@newmac admin]$ cat listener.ora
# listener.ora Network Configuration File: /oracle/app/oracle/product/11.2.0/db/network/admin/listener.ora
# Generated by Oracle configuration tools.

LISTENER_DB =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = newmac)(PORT = 1521)
    )
  )

ADR_BASE_LISTENER_DB = /oracle/app/oracle

[oracle@newmac admin]$ cat tnsnames.ora
# tnsnames.ora Network Configuration File: /oracle/app/oracle/product/11.2.0/db/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.

LISTENER_POST =
  (ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.0.11)(PORT = 1521))


STAND =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.0.11)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = stand)
    )
  )

DEST =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.0.10)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = dest)
    )
  )

TEST =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = newmac)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = test)
    )
 )
POST =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = newmac)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = post)
    )
  )
[oracle@newmac admin]$ lsnrctl
bash: lsnrctl: command not found
[oracle@newmac admin]$
jcob_lAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

slightwv (䄆 Netminder) Commented:
Just like your last several questions on this topic:  $ORACLE_HOME/bin needs to be in your PATH.

I strongly suggest you add everything to your .profile so you don't keep forgetting.

export ORACLE_HOME=/oracle/app/oracle/product/11.2.0/db
export PATH=$ORACLE_HOME/bin:$PATH
lsnrctl
0
sventhanCommented:
Is your PATH set up properly?

is lsnrctl in $ORACLE_HOME/bin?

ls -al $ORACLE_HOME/bin/lsnrctl

Try locate

$locate lsnrctl to find its path
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jcob_lAuthor Commented:
[oracle@newmac db]$ ls -al $ORACLE_HOME/bin/lsnrctl
-rwxr-x--x 1 oracle oinstall 120664 Aug 11 21:40 /oracle/app/oracle/product/11.2.0/db/bin/lsnrctl
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

jcob_lAuthor Commented:
I started like this..

LSNRCTL> start
Starting /oracle/app/oracle/product/11.2.0/db/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /oracle/app/oracle/product/11.2.0/db/network/admin/listener.ora
Log messages written to /oracle/app/oracle/product/11.2.0/db/log/diag/tnslsnr/newmac/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=newmac)(PORT=1521)))

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date                30-SEP-2013 10:27:47
Uptime                    0 days 0 hr. 0 min. 2 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /oracle/app/oracle/product/11.2.0/db/network/admin/listener.ora
Listener Log File         /oracle/app/oracle/product/11.2.0/db/log/diag/tnslsnr/newmac/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=newmac)(PORT=1521)))
The listener supports no services
The command completed successfully
LSNRCTL>

Is this correct..
0
sventhanCommented:
yes. It is.
0
jcob_lAuthor Commented:
Thank you very much for the clue..

Great !!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.