0

I'm using oracle web logic server. How can I find out the database name and port number?

5
  • As I understand from your comment below, you know the place where you can provide the DB name and port in WLS but you don't know the DB name:port to use, then this is something you need to check with your DBA, this can't be answered in this forum. Commented Jun 29, 2015 at 13:24
  • Do you mean that you want to get the name of the Database at runtime? for Example from within a EJB.. or CID Bean? Commented Jun 29, 2015 at 14:16
  • @ SridharS ⇒ yes,how can check my DBA, As I didn't have experience in using WLS. So please! Commented Jun 30, 2015 at 3:30
  • @StefanHeimberg ⇒ yes, yes, I want to get the name of the Database at runtime. How can know? Commented Jun 30, 2015 at 4:07
  • i will try it myself... but i think it could be possible to get the the information somewhere on a jdbc connection or some where else... but i think that all this would be proprietary to weblogic / jdbc driver etc.. Commented Jun 30, 2015 at 5:48

2 Answers 2

1

You can use nslookup or tnsping to know the host name and port of the database.

nslookup DATABASE_SID

tnsping DATABASE_SID
Sign up to request clarification or add additional context in comments.

Comments

0

1) You can login to the console and navigate to Data Sources (for WLS10 and above) and click the available data source and click the tab Connection Pool. You would need to navigate to the tab Connection Pool if WLS 8 is being used.

enter image description here

2) Alternatively you can go to the weblogic domain of your instance and check in the config directory , $WLS_DOMAIN/config/jdbc and view the contents of the datasource's xml file.

1 Comment

⇒no no, I know that place to give database name. Now, i don't know database name. eg. Database Name: SampleName I want to know really database name instead of SampleName.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.