jcob_l
asked on
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/a dmin/liste ner.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/a dmin/tnsna mes.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]$
[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
# 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
# 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]$
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
[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/lsnrc tl
-rwxr-x--x 1 oracle oinstall 120664 Aug 11 21:40 /oracle/app/oracle/product
ASKER
I started like this..
LSNRCTL> start
Starting /oracle/app/oracle/product /11.2.0/db /bin/tnsls nr: 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/a dmin/liste ner.ora
Log messages written to /oracle/app/oracle/product /11.2.0/db /log/diag/ tnslsnr/ne wmac/liste ner/alert/ log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PRO TOCOL=tcp) (HOST=newm ac)(PORT=1 521)))
Connecting to (ADDRESS=(PROTOCOL=tcp)(HO ST=)(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/a dmin/liste ner.ora
Listener Log File /oracle/app/oracle/product /11.2.0/db /log/diag/ tnslsnr/ne wmac/liste ner/alert/ log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PRO TOCOL=tcp) (HOST=newm ac)(PORT=1 521)))
The listener supports no services
The command completed successfully
LSNRCTL>
Is this correct..
LSNRCTL> start
Starting /oracle/app/oracle/product
TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /oracle/app/oracle/product
Log messages written to /oracle/app/oracle/product
Listening on: (DESCRIPTION=(ADDRESS=(PRO
Connecting to (ADDRESS=(PROTOCOL=tcp)(HO
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
Listener Log File /oracle/app/oracle/product
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PRO
The listener supports no services
The command completed successfully
LSNRCTL>
Is this correct..
yes. It is.
ASKER
Thank you very much for the clue..
Great !!
Great !!
I strongly suggest you add everything to your .profile so you don't keep forgetting.
export ORACLE_HOME=/oracle/app/or
export PATH=$ORACLE_HOME/bin:$PAT
lsnrctl