Rafael Steil wrote:The dbname is "xe"
Rafael
Thanks for your comment. That is true, but actually my problem was that the "XE" instance was no properly set. For those with the same problem, look at this link:
http://www.davidpashley.com/articles/oracle-install.html
If still not working, check if the lsnrctl (utility that manages the Oracle listener processes) is up:
su - oracle
lsnrctl status
if doesn't find lsnrctl, or you get permission problems, or any other issue, you have to set up your oracle env:
su - oracle
export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
export ORACLE_SID=XE
export NLS_LANG=$ORACLE_HOME/bin/nls_lang.sh
PATH=$ORACLE_HOME/bin:$PATH
export PATH
if [ $?LD_LIBRARY_PATH ]
then
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
else
LD_LIBRARY_PATH=$ORACLE_HOME/lib
fi
export LD_LIBRARY_PATH
And now check it
lsnrctl stop
lsnrctl start
lsnrctl status
You should see now your Oracle instances, and connect easily with the resource USER/PASSWD@INSTANCE
sqlplus myuser/mypasswd@xe
Hope it saves someone time...
[originally posted on jforum.net by roberlamerma]