Datasource name for a local Oracle Docker Instance

Datasource name for a local Oracle Docker Instance

I am trying to connect to an oracle docker instance through a framework. The framework requires the table name and logical host name to be passed in.

I am trying to connect to an oracle docker instance through a framework. The framework requires the table name and logical host name to be passed in.

I am able to connect to the docker instance using jdbc connection in java.

My question is how do i set the logical host name to this docker instance that i can use.

Things I have tried:

  • I tried by adding a logical host in /etc/hosts file in the image using docker run command.
  • I tried passing in the docker name as the logical host
  • I tried giving the host name mentioned in tnsnames.ora file in the image

I am using Docker version 18.09.1, build 4c52b90 and Oracle v12.2.0.1. Any pointers would be helpful.

Thanks in advance!!

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

WordPress in Docker. Part 1: Dockerization

This entry-level guide will tell you why and how to Dockerize your WordPress projects.

List all containers in Docker(Docker command)

We can get a list of all containers in docker using `docker container list` or `docker ps` commands.

Docker Tutorial for Beginners 5 - Docker Search, Docker Images, Docker Pull

In this Docker tutorial for beginners provides an Introduction on Working with Docker Images, Docker Search, Docker List, Docker Push, Docker Pull. We will learn How to Write Dockerfiles, Working with the Docker Toolbox, How to Work with the Docker Machine, How to Use Docker Compose to fire up multiple containers, How to Work with Docker Kinematic, Push images to Docker Hub, Pull images from a Docker Registery, Push stacks of servers to Docker Hub