This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JForum and the fly likes Oracle 10g Express Edition problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Oracle 10g Express Edition problem" Watch "Oracle 10g Express Edition problem" New topic
Author

Oracle 10g Express Edition problem

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I hope someone can help me on this.

I've installed Oracle 10g Express Edition on a Linux box, for development and testing purposes, but still cannot make jForum work with it.

It seems Oracle 10g EE uses a single database, and you must use one schema for each application. The thing is I haven't been able to install jForum using this approach.

The installer shows this:

java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=169869568)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))


Obviously Im doing something wrong. I created the username/passwd jforum/jforum, but Im not sure what to put in the dbname, because of the schema approach.

Any ideas?
[originally posted on jforum.net by roberlamerma]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
The dbname is "xe"

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
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]
 
wood burning stoves
 
subject: Oracle 10g Express Edition problem
 
Similar Threads
accept command in .sql file not working from ant
"oracle 9i Client" and "Oracle 9i personal edition"
Insert or Update (Hibernate JPA + Jboss 5.0.0GA)
Oracle XML SQL Utility Liabrary
How to connect jdk1.7 and oracle 10g express edition in eclipse