• Post Reply Bookmark Topic Watch Topic
  • New Topic

Connect to a local Oracle database  RSS feed

 
Mike Yu
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Many posts in this forum discussed about connection to Oracle with url= jdbc:oracle:thin:@host:1521:sid.
If the Oracle databse is in the local machine, and I only know the dbname, can I write the url as jdbc:oracle:thin:@dbname ?
[ April 03, 2002: Message edited by: Mike Yu ]
[ Edited by Dave to fix ]
[ April 03, 2002: Message edited by: David O'Meara ]
 
Brent Worden
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm sure you can use 'localhost' or '127.0.0.1' for the host.
 
Julio Carlos
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The correct way is:
jdbc racle:thin:@localhost:1521:yourdb
You can use 127.0.0.1 or localhost in the connection string
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!