I'm trying to create a database using DBCA on Oracle 11g installation on Ubuntu Linux 12.04 64 bit.
I followed the instructions here, but I get
ORA-12547: TNS Lost Contact when running DBCA.
Below are the details. Can someone assist with the solution?
Instead of using
/opt/oracle
as the "oracle" user home, I used/home/oracle
I did not install the libstdc++5 in 32 bit version
I did everything else the same as the posting
Installation resulted in "missing packages". I tried to do an apt-get install for these packages from ubuntu, but ubuntu says that they don't exist. Then I saw in the instructions:
Once you will reach the "pre-reqs" screen, check "Ignore all" to continue the installation.
When running
./dbca
from$ORACLE_HOME/bin
, it fails with ORA-12547.I checked
$ORACLE_HOME/network/admin
and listener.ora , sqlnet.ora , and tnsnames.ora all look OK.However, I think that tnsnames.ora is not being read properly, because
./tnsping
fails and the error message states that "EZ Connect" was used. But in my sqlnet.ora , I havenames.directory_lookup = (TNSNAMES,EZCONNECT)
It should use EZ Connect only after tnsnames is tried.
Also, I sometimes get ORA-12541: No listener. I tried running
./netca
. Everything is OK until I perform a test on the listener, and it fails.I can't run
./lsnrctl
. Absolutely nothing happens for this, as well as lsnrctl start, stop, status.I can't go through sqlplus. If I run
./sqlplus
, it asks me for username/password directly.If I do
./sqlplus / as sysdba
, then this results in "ORA-12547: TNS lost contact".All environment variables are set correctly in
.bashrc
.I tried re-running root.sh , but the problem is not fixed.
/etc/oratab
is OK/etc/hosts
is OK, but I can't always ping the "localhost" or "127.0.0.1", or "ubuntu" or "127.0.1.1"The same TNS or Listener errors display.