can't start Oracle Database - oracle

I just install Oracle, but can't start it. i get error below:
root#coding:/u01/binaries# $ORACLE_HOME/bin/lsnrctl start
LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 15-NOV-2015 15:57:30
Copyright (c) 1991, 2014, Oracle. All rights reserved.
Starting /u01/app/oracle/product/12.1.0/dbhome_2/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 12.1.0.2.0 - Production
Log messages written to /u01/app/oracle/diag/tnslsnr/coding/listener/alert/log.xml
Error listening on: (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12542: TNS:address already in use
TNS-12560: TNS:protocol adapter error
TNS-00512: Address already in use
Linux Error: 98: Address already in use
Listener failed to start. See the error message(s) above...

Looks like something is already using port 1521
Try a netstat -a | grep 1521
And look what process is using this port
Johan

Related

Unable to connect to DB from Oracle SQL Developer

I am trying to configure a database in Oracle SQL Developer, database is Oracle 21c. Upon initial troubleshooting it seems to be an issue with the listeners. Below are some more details that will help for troubleshooting.
When I try to check status of listener in cmd (admin mode), I get below error:
C:\Windows\System32>lsnrctl status
LSNRCTL for 64-bit Windows: Version 21.0.0.0.0 - Production on 18-NOV-2022 20:24:49
Copyright (c) 1991, 2021, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.207)(PORT=1521)))
TNS-12535: TNS:operation timed out
TNS-12560: TNS:protocol adapter error
TNS-00505: Operation timed out
64-bit Windows Error: 60: Unknown error
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
64-bit Windows Error: 2: No such file or directory
and when I try to start listener, I get below error :
C:\Windows\System32>lsnrctl start
LSNRCTL for 64-bit Windows: Version 21.0.0.0.0 - Production on 18-NOV-2022 20:26:01
Copyright (c) 1991, 2021, Oracle. All rights reserved.
Starting tnslsnr: please wait...
TNSLSNR for 64-bit Windows: Version 21.0.0.0.0 - Production
System parameter file is C:\app\patil\product\21c\homes\OraDB21Home1\network\admin\listener.ora
Log messages written to C:\app\patil\product\21c\diag\tnslsnr\Nisarg\listener\alert\log.xml
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.207)(PORT=1521)))
TNS-12545: Connect failed because target host or object does not exist
TNS-12560: TNS:protocol adapter error
TNS-00515: Connect failed because target host or object does not exist
64-bit Windows Error: 49: Unknown error
Listener failed to start. See the error message(s) above...
Below is the error we get when we try to connect from Oracle SQL Developer :
There is no problem with the service, screenshot below :
Below thing also helps to confirm that there is no issue with the DB :
Microsoft Windows [Version 10.0.22621.819]
(c) Microsoft Corporation. All rights reserved.
C:\Users\patil>sqlplus / as sysdba
SQL*Plus: Release 21.0.0.0.0 - Production on Fri Nov 18 20:37:34 2022
Version 21.3.0.0.0
Copyright (c) 1982, 2021, Oracle. All rights reserved.
Connected to:
Oracle Database 21c Express Edition Release 21.0.0.0.0 - Production
Version 21.3.0.0.0
SQL> select name, open_mode from v$pdbs;
NAME
--------------------------------------------------------------------------------
OPEN_MODE
----------
PDB$SEED
READ ONLY
XEPDB1
READ WRITE
SQL>

Oracle Database Sql Developer

I have installed 18C. it was running fine. After a couple of weeks - when i re-started the client - Oracle SQL Devloper produced the following error:
"RA-12528: TNS:listener: all appropriate instances are blocking new connections".
What is the solution to this error? Re-install oracle? Re-install Oracle SQL developer on the client? Any alternative? Please help.
I have used google, but in vain.
Check the status of the listener by
[oracle#hostname ~]$ lsnrctl
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 24-APR-2017 15:33:49
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Welcome to LSNRCTL, type "help" for information.
LSNRCTL> status
One method that should resolve this problem is to restart (bounce) the LISTENER:
LSNRCTL> stop
LSNRCTL> start
Then restart your instance:
sqlplus with sysdba privileges
SQL> startup

404 not found error is being displayed after entering the credentials in Oracle Enterprise manager in Enterprise Manager

OS: Red Hat Linux.
Oracle: 10g
After entering the credentials in the Oracle Enterprise manager, the following error is displayed 404 Not Found
And after checking the listener status, the following result is shown:
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 13-DEC-2013 11:32:21
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 13-DEC-2013 11:32:12
Uptime 0 days 0 hr. 0 min. 8 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
The listener supports no services
The command completed successfully
How to resolve this problem so as to run Oracle Enterprise manager?

Oracle 11gR2 on Aix listner will not start

I have created a new Oracle instance on the Aix server. Database is running fine, but my listener would not start. I got the following errors in the listener log:
<msg time='2012-09-26T17:33:17.304-07:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='xxxxx111'
host_addr='000.00.0.111'>
<txt>TNS-12546: TNS:permission denied
TNS-12560: TNS:protocol adapter error
TNS-00516: Permission denied
IBM/AIX RISC System/6000 Error: 2: No such file or directory
</txt>
</msg>
When I tried to start the listener, i got the following error:
lsnrctl start
LSNRCTL for IBM/AIX RISC System/6000: Version 11.2.0.3.0 - Production on 26-SEP-2012 17:38:17
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Starting /oracle/QI1/112_64/bin/tnslsnr: please wait...
TNSLSNR for IBM/AIX RISC System/6000: Version 11.2.0.3.0 - Production
System parameter file is /oracle/QI1/112_64/network/admin/listener.ora
Log messages written to /oracle/QI1/saptrace/diag/tnslsnr/xxxxxx/listener/alert/log.xml
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxxxxxx.na.xxxxx.com)(PORT=1521)))
TNS-12542: TNS:address already in use
TNS-12560: TNS:protocol adapter error
TNS-00512: Address already in use
IBM/AIX RISC System/6000 Error: 67: Address already in use
Listener failed to start. See the error message(s) above...
Any help would be greatly appreciated!
Following #dave's answer, I checked the sqlnet.ora file, and the error was in the parameter:
TCP.VALIDNODE_CHECKING = YES
After commenting out the line, the listener starts
#TCP.VALIDNODE_CHECKING = YES
I found that the ip address SQLnet file was incorrect. After fixing the ip address,the listener was able to start.

when we try to connect our programme with oracle it is giving error

when i try to connect our programme with oracle with this command
sqlplus crbt/crbt#crbt_new here crbt is the username and crbt_new is the password.
it is giving error this
SQL*Plus: Release 9.2.0.4.0 - Production on Tue Jan 4 10:32:42 2011
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
ERROR:ORA-12541: TNS:no listener
So please tell me where this is wrong
Below are the possibilities for this:
1) Listener might be down
2) When database is not up, 'TNS: no listener' error appears
3) If the TNS entries are not correct.
Ex: The TNS entry of crbt_new database might have the port number mentioned as 1531, but in real the Database would be listening on port 1521

Resources