kubernetes connect to external oracle database

Elextel Welcome you !

kubernetes connect to external oracle database

It is a bad practice (practically and security) to build config data into the container. To add a Postgres replica, use pgo scale cluster [cluster_name]. Are you pinging the IP address, or the mysql-mvc name? before the Service. Last thing is that in Endpoint you set ip: 206 which is the same as application service LoadBalancer ip? Linear Algebra - Linear transformation question. Is it possible to connect to a separate database from within a CSElement? node has a public IP. why would you need to create a service for a mysql server thats outside of the kubernetes cluster? just provide the ip or the endpoint, i dont think you do a service as that setups an ip inside the k cluster right? Kubernetes offers a DNS cluster addon Service that automatically assigns dns names to other Services. You can read more about the I can ping Database IP from inside container but the app cannot. Does you deployment also have selector. Kubernetes supports two ways of doing this: NodePorts and An IBM Cloudant database running as an IBM Cloud service. k8s.gcr.io image registry will be frozen from the 3rd of April 2023.Images for Kubernetes 1.27 will not available in the k8s.gcr.io image registry.Please read our announcement for more details. We can do this the right way by killing the 2 Pods and waiting for the 64 bytes from ----ip---------- (----ip----------): icmp_seq=1 ttl=49 time=31.5 ms Should I put my dog down to help the homeless? If you opted _not_ to install `podman-plugins` and `dnsmasq` this feature won't be availble. Asking for help, clarification, or responding to other answers. Hi @Ekambaram, thank for you answer. Is there a single-word adjective for "having exceptionally strong moral principles"? But now, I want to connect this imagen to an external database (in another network only access by internet). What is a word for the arcane equivalent of a monastery? ports: If you're trying to get your running container to talk to sql-server which is ALSO running inside of the docker world, that connection string looks like: my-mssql-service-deployment-name.$_CUSTOMNAMESPACENAME.svc.cluster.local. General Database Discussions. externalName: oracle-server-hostnmae, root@tomcat-springboot-pks-stateful-0:/# ping oracle-server-hostname or If so, how close was it? Making Oracle Database Kubernetes-native In this announcement blog post, you will understand what's in #OraOperator for developers, DBAs, DevOps, and GitOps teams inluding: managing Autonomous Databases; managing Containerized Single Instance Databases; and managing containerized Oracle Database Sharding. How do I connect a kubernetes cluster to an external SQL Server database using docker desktop? Using an Oracle Cloud Infrastructure load balancer, set up in the Oracle Cloud Infrastructure Load Balancer service.. An OCI load balancer is an OSI layer 4 (TCP) and layer 7 . Another disadvantage of doing this is that the scheduler might to other Services. However, it should be noted that local disks are relatively prone to failure, given that they generally lack redundancy and replication. It's too long to fit in the standard kubectl get svc It is only a part of information so I am guessing. This introduces an ordering problem. This means - Find centralized, trusted content and collaborate around the technologies you use most. 2. A passionate person with a progressive career in a thriving and demanding work environment. Remember to run this command in proper namespace, where your deployment is configured. Today, more and more applications are being deployed in containers on Kubernetesso much so that weve heard Kubernetes called the Linux of the cloud. . Access stateful headless kubernetes externally? Select one of the following options: Console bq API Java. With a StatefulSet, your data can be stored on persistent volumes, decoupling the database application from the persistent storage, so when a pod (such as the database application) is recreated, all the data is still there. I'm setting up a new server using kubernetes to run Spring boot microservice. Thanks for contributing an answer to Stack Overflow! Not the answer you're looking for? EXEC SQL CONNECT :username IDENTIFIED BY :password USING :connectionstring, Powered by Discourse, best viewed with JavaScript enabled. Surly Straggler vs. other types of steel frames. ClusterIP enable you juest to connect among pods inside cluster. Since pods are mortal, the likelihood of failover events is higher than a traditionally hosted or fully managed database. This is TCP mesh-external service entries come to our rescue. Trying to understand how to get this basic Fourier Series. to an EndpointSlice that is connected to the Service using a name: oracle-server You'll see something like this: Thanks for the feedback. apiVersion: v1 If I understand correctly, you have your cluster with application on Digital Ocean cloud and your PostgreSQL is outside this cluster. each Service is assigned a unique IP address (also called clusterIP). API object to see the list of supported fields in service definition. These connections include database links, as well as external procedures and cartridges, each of which uses a separate process. So handling things like state (the database), availability to other layers of the application, and redundancy for a database can have very specific requirements. The CLUSTER-IP is only available inside your cluster/private cloud network. Create an External Datastore You will first need to create an external datastore for the cluster. Site design / logo 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA. apiVersion: v1 (targetPort: is the port the container accepts traffic on, port: is the For instance, you can create a DaemonSet on a cluster with five nodes, and the DaemonSet will schedule a total of five pods. jdbc-url: jdbc:oracle:thin:@oracleserver.xx.yyy.com:port/service_id Last modified January 25, 2023 at 7:38 PM PST: Installing Kubernetes with deployment tools, Customizing components with the kubeadm API, Creating Highly Available Clusters with kubeadm, Set up a High Availability etcd Cluster with kubeadm, Configuring each kubelet in your cluster using kubeadm, Communication between Nodes and the Control Plane, Guide for scheduling Windows containers in Kubernetes, Topology-aware traffic routing with topology keys, Resource Management for Pods and Containers, Organizing Cluster Access Using kubeconfig Files, Compute, Storage, and Networking Extensions, Changing the Container Runtime on a Node from Docker Engine to containerd, Migrate Docker Engine nodes from dockershim to cri-dockerd, Find Out What Container Runtime is Used on a Node, Troubleshooting CNI plugin-related errors, Check whether dockershim removal affects you, Migrating telemetry and security agents from dockershim, Configure Default Memory Requests and Limits for a Namespace, Configure Default CPU Requests and Limits for a Namespace, Configure Minimum and Maximum Memory Constraints for a Namespace, Configure Minimum and Maximum CPU Constraints for a Namespace, Configure Memory and CPU Quotas for a Namespace, Change the Reclaim Policy of a PersistentVolume, Configure a kubelet image credential provider, Control CPU Management Policies on the Node, Control Topology Management Policies on a node, Guaranteed Scheduling For Critical Add-On Pods, Migrate Replicated Control Plane To Use Cloud Controller Manager, Reconfigure a Node's Kubelet in a Live Cluster, Reserve Compute Resources for System Daemons, Running Kubernetes Node Components as a Non-root User, Using NodeLocal DNSCache in Kubernetes Clusters, Assign Memory Resources to Containers and Pods, Assign CPU Resources to Containers and Pods, Configure GMSA for Windows Pods and containers, Configure RunAsUserName for Windows pods and containers, Configure a Pod to Use a Volume for Storage, Configure a Pod to Use a PersistentVolume for Storage, Configure a Pod to Use a Projected Volume for Storage, Configure a Security Context for a Pod or Container, Configure Liveness, Readiness and Startup Probes, Attach Handlers to Container Lifecycle Events, Share Process Namespace between Containers in a Pod, Translate a Docker Compose File to Kubernetes Resources, Enforce Pod Security Standards by Configuring the Built-in Admission Controller, Enforce Pod Security Standards with Namespace Labels, Migrate from PodSecurityPolicy to the Built-In PodSecurity Admission Controller, Developing and debugging services locally using telepresence, Declarative Management of Kubernetes Objects Using Configuration Files, Declarative Management of Kubernetes Objects Using Kustomize, Managing Kubernetes Objects Using Imperative Commands, Imperative Management of Kubernetes Objects Using Configuration Files, Update API Objects in Place Using kubectl patch, Managing Secrets using Configuration File, Define a Command and Arguments for a Container, Define Environment Variables for a Container, Expose Pod Information to Containers Through Environment Variables, Expose Pod Information to Containers Through Files, Distribute Credentials Securely Using Secrets, Run a Stateless Application Using a Deployment, Run a Single-Instance Stateful Application, Specifying a Disruption Budget for your Application, Coarse Parallel Processing Using a Work Queue, Fine Parallel Processing Using a Work Queue, Indexed Job for Parallel Processing with Static Work Assignment, Handling retriable and non-retriable pod failures with Pod failure policy, Deploy and Access the Kubernetes Dashboard, Use Port Forwarding to Access Applications in a Cluster, Use a Service to Access an Application in a Cluster, Connect a Frontend to a Backend Using Services, List All Container Images Running in a Cluster, Set up Ingress on Minikube with the NGINX Ingress Controller, Communicate Between Containers in the Same Pod Using a Shared Volume, Extend the Kubernetes API with CustomResourceDefinitions, Use an HTTP Proxy to Access the Kubernetes API, Use a SOCKS5 Proxy to Access the Kubernetes API, Configure Certificate Rotation for the Kubelet, Adding entries to Pod /etc/hosts with HostAliases, Interactive Tutorial - Creating a Cluster, Interactive Tutorial - Exploring Your App, Externalizing config using MicroProfile, ConfigMaps and Secrets, Interactive Tutorial - Configuring a Java Microservice, Apply Pod Security Standards at the Cluster Level, Apply Pod Security Standards at the Namespace Level, Restrict a Container's Access to Resources with AppArmor, Restrict a Container's Syscalls with seccomp, Exposing an External IP Address to Access an Application in a Cluster, Example: Deploying PHP Guestbook application with Redis, Example: Deploying WordPress and MySQL with Persistent Volumes, Example: Deploying Cassandra with a StatefulSet, Running ZooKeeper, A Distributed System Coordinator, Mapping PodSecurityPolicies to Pod Security Standards, Well-Known Labels, Annotations and Taints, ValidatingAdmissionPolicyBindingList v1alpha1, Kubernetes Security and Disclosure Information, Articles on dockershim Removal and on Using CRI-compatible Runtimes, Event Rate Limit Configuration (v1alpha1), kube-apiserver Encryption Configuration (v1), kube-controller-manager Configuration (v1alpha1), Contributing to the Upstream Kubernetes Code, Generating Reference Documentation for the Kubernetes API, Generating Reference Documentation for kubectl Commands, Generating Reference Pages for Kubernetes Components and Tools, kubectl get endpointslices -l kubernetes.io/service-name, kubectl scale deployment my-nginx --replicas, kubectl get services kube-dns --namespace, kubectl create secret tls nginxsecret --key /tmp/nginx.key --cert /tmp/nginx.crt, kubectl create configmap nginxconfigmap --from-file, "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURIekNDQWdlZ0F3SUJBZ0lKQUp5M3lQK0pzMlpJTUEwR0NTcUdTSWIzRFFFQkJRVUFNQ1l4RVRBUEJnTlYKQkFNVENHNW5hVzU0YzNaak1SRXdEd1lEVlFRS0V3aHVaMmx1ZUhOMll6QWVGdzB4TnpFd01qWXdOekEzTVRKYQpGdzB4T0RFd01qWXdOekEzTVRKYU1DWXhFVEFQQmdOVkJBTVRDRzVuYVc1NGMzWmpNUkV3RHdZRFZRUUtFd2h1CloybHVlSE4yWXpDQ0FTSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnRVBBRENDQVFvQ2dnRUJBSjFxSU1SOVdWM0IKMlZIQlRMRmtobDRONXljMEJxYUhIQktMSnJMcy8vdzZhU3hRS29GbHlJSU94NGUrMlN5ajBFcndCLzlYTnBwbQppeW1CL3JkRldkOXg5UWhBQUxCZkVaTmNiV3NsTVFVcnhBZW50VWt1dk1vLzgvMHRpbGhjc3paenJEYVJ4NEo5Ci82UVRtVVI3a0ZTWUpOWTVQZkR3cGc3dlVvaDZmZ1Voam92VG42eHNVR0M2QURVODBpNXFlZWhNeVI1N2lmU2YKNHZpaXdIY3hnL3lZR1JBRS9mRTRqakxCdmdONjc2SU90S01rZXV3R0ljNDFhd05tNnNTSzRqYUNGeGpYSnZaZQp2by9kTlEybHhHWCtKT2l3SEhXbXNhdGp4WTRaNVk3R1ZoK0QrWnYvcW1mMFgvbVY0Rmo1NzV3ajFMWVBocWtsCmdhSXZYRyt4U1FVQ0F3RUFBYU5RTUU0d0hRWURWUjBPQkJZRUZPNG9OWkI3YXc1OUlsYkROMzhI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VpsMGhucDBYSFNYVm9CMUliQndnMGEyOFVadApCbFBtWmc2d1BRS0JnRHVIUVV2SDZHYTNDVUsxNFdmOFhIcFFnMU16M2VvWTBPQm5iSDRvZUZKZmcraEppSXlnCm9RN3hqWldVR3BIc3AyblRtcHErQWlSNzdyRVhsdlhtOElVU2FsbkNiRGlKY01Pc29RdFBZNS9NczJMRm5LQTQKaENmL0pWb2FtZm1nZEN0ZGtFMXNINE9MR2lJVHdEbTRpb0dWZGIwMllnbzFyb2htNUpLMUI3MkpBb0dBUW01UQpHNDhXOTVhL0w1eSt5dCsyZ3YvUHM2VnBvMjZlTzRNQ3lJazJVem9ZWE9IYnNkODJkaC8xT2sybGdHZlI2K3VuCnc1YytZUXRSTHlhQmd3MUtpbGhFZDBKTWU3cGpUSVpnQWJ0LzVPbnlDak9OVXN2aDJjS2lrQ1Z2dTZsZlBjNkQKckliT2ZIaHhxV0RZK2Q1TGN1YSt2NzJ0RkxhenJsSlBsRzlOZHhrQ2dZRUF5elIzT3UyMDNRVVV6bUlCRkwzZAp4Wm5XZ0JLSEo3TnNxcGFWb2RjL0d5aGVycjFDZzE2MmJaSjJDV2RsZkI0VEdtUjZZdmxTZEFOOFRwUWhFbUtKCnFBLzVzdHdxNWd0WGVLOVJmMWxXK29xNThRNTBxMmk1NVdUTThoSDZhTjlaMTltZ0FGdE5VdGNqQUx2dFYxdEYKWSs4WFJkSHJaRnBIWll2NWkwVW1VbGc9Ci0tLS0tRU5EIFBSSVZBVEUgS0VZLS0tLS0K", kubectl delete deployments,svc my-nginx; kubectl create -f ./nginx-secure-app.yaml, kubectl get svc my-nginx -o yaml | grep nodePort -C, uid: 07191fb3-f61a-11e5-8ae5-42010af00002, kubectl get nodes -o yaml | grep ExternalIP -C, $ curl https://: -k, LoadBalancer Ingress: a320587ffd19711e5a37606cf4a74574-1142138393.us-east-1.elb.amazonaws.com, Using a Service to Access an Application in a Cluster, Connecting a Front End to a Back End Using a Service, Tweak long lines in connect-applications-service.md (d57b56aa24), The Kubernetes model for connecting containers, Self signed certificates for https (unless you already have an identity certificate), An nginx server configured to use the certificates. Ex - oracleserver.xx.yyy.com **/, spring: Network access from your Kubernetes cluster to your database Tutorial Create and install a secret or secrets for your database credentials Edit the deployment template generated from running the helm command or the helm template you used to deploy your Entando application Find the entry for the EntandoCompositeApp Set the value for dbms to none Host OS: CentOS 7 Connect and share knowledge within a single location that is structured and easy to search. in the secret, and the Service, to expose both ports (80 and 443): Noteworthy points about the nginx-secure-app manifest: At this point you can reach the nginx server from any node. Can airtags be tracked from an iMac desktop, with no iPhone? In the Details pane, click Share to share a connection. Is it correct to use "the" before "materials used in making buildings are"? When you define a Kubernetes service of type LoadBalancer to expose an application to the Internet or to a local network, you can specify how Container Engine for Kubernetes implements the service of type LoadBalancer:. Note that the containers are not using port 80 on If you have a db-Password.then putting the db-password is insecure. You will need: If you have a specific, answerable question about how to use Kubernetes, ask it on Hi @Sharanya_M, please share the service and application yaml details. Background. Microsoft Azure platform and all things IT Ops.<br>Interested in DevOps: Docker, Docker Swarm, Kubernetes, Ansible, Terraform, GIT, Github, Github Actions, Azure DevOps and all things IT Automation. type: ExternalName The nature of simulating nature: A Q&A with IBM Quantum researcher Dr. Jamie We've added a "Necessary cookies only" option to the cookie consent popup. metadata: This Pod is made up of, at the very least, a build container, a helper container, and an additional container for each service defined in the .gitlab-ci.yml or config.toml files. Browse other questions tagged, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide. Some open source projects provide custom resources and operators to help with managing the database. #profiles: dev Integrating External Services Overview Many OpenShift applications use external resources, such as external databases, or an external SaaS endpoint. When a Pod runs on a Node, the kubelet adds a set of environment variables for create links between pods or map container ports to host ports. To configure the GitLab chart to use an external database: Set the following parameters: postgresql.install: Set to false to disable the embedded database. This is because you created the replicas I just config but it not worked. Site design / logo 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA. never hits the wire. Kubernetes Shared Storage: The Basics and a Quick Tutorial, Kubernetes NFS Provisioning with Cloud Volumes ONTAP and Trident, Azure Kubernetes Service How-To: Configure Persistent Volumes for Containers in AKS, NetApp Trident and Docker Volume Tutorial, Orchestrating Databases in Kubernetes: StatefulSets vs DaemonSets, Tips for Running Your Database on Kubernetes, Kubernetes Database with NetApp Cloud Volumes ONTAP, Kubernetes Persistent Volume provisioning and management, Kubernetes Workloads with Cloud Volumes ONTAP Case Studies, No need to install after starting up the container, Ease of use (i.e., to start, stop or update), Isolation of services for enhanced security. This might best be described as the full-ops option, where you take full responsibility for building your database, scaling it, managing reliability, setting up backups, and more. How do I escape a single quote in SQL Server? In the list of OCI external pluggable database resources (also called "handles"), click the display name of the handle you want to create a connection for. I am trying to connect my spring-boot api inside a kubernetes pod to an external database (a separate machine but within the local network), however when running, I get SQLNonTransientConnectionException, UknownHostException: mysql-svc, the api cannot connect to the database but whenever I ping the database address from inside the pod using kubectl exec -it, I can ping it successfully, anybody who has experienced the same error as mine? The former works out of the box while the latter requires the External MySQL Database should I insert the connection string into my asp.net core application and rebuild itas docker image, or put it in the YAML file in place of an IP for the DNS resolution. To connect to external service you should just change definition of service kind as NodePort. If this database and cluster are somewhere in cloud you could use internal Database IP. This includes Cloud Spanner, Cloud Bigtable and Cloud SQL, among others. The Kubernetes executor, when used with GitLab CI, connects to the Kubernetes API in the cluster creating a Pod for each GitLab CI Job. Service Mesh automatically encrypts all communications between microservices and collects . apiVersion: v1 application.yml spring: #profiles: dev datasource: By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. Forums. output, in fact, so you'll need to do kubectl describe service my-nginx to For this proposition I use this service: But when I try to connect I receive a timeout error of the database, like can't connect to the database. By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. This helps reduce resource dependencies and improve database security. Why are physically impossible and logically impossible concepts considered separate in terms of probability? New Post. A Kubernetes Service is an abstraction which defines a logical set of Pods running Use a service with type NodePort or LoadBalancer to make the service reachable outside the cluster. How do i get Spring boot app connected to external oracle database? ip: hostipadd That makes it challenging to run a database in a distributed environment. Monolith vs. Microservices: How Are You Running Your Applications? Thanks and Regards Hrishikesh That is too big a topic for this question. Did you find the solution for this? (Database ip is 170.27.10.10:1521). Two common ways to manage databases on Kubernetes are using StatefulSets and DaemonSets. New Pods that match the Service's selector will automatically get added is tied to the lifespan of the Service, and will not change while the Service is alive. name: external-mysql-service A DaemonSet is a service that makes sure a pod is running across all nodes. protocol: TCP Ambitious Software Engineer with a UK Master's Degree in Information Technology (Graduating September 2023) and a Bachelor's Degree in Computer Science searching for Internship Opportunities in Software Development, Full stack Web Development, SQL Developer, and UI/UX Design. See the Cluster Datastore Options documentation for more details. it is different in your yaml. These projects use Operators, but go one step further. For example, if the Database server is 10.0.0.150 and I want to connect from 10.0.0.151 how can I make this happen? If so, how close was it? To see why, inspect You can use the IP to try to connect and make sure this works. Perhaps because your pod is not in the same namespace as your service? Kubernetes Secret Next, we need to create a Kubernetes Secret. see it. linked the CName used in the certificate with the actual DNS name used by pods Debugging kubernetes connection reset by peer to external Oracle DB. You cannot use it with ip you have to have a dns name then only it will get resolved bt core DNS. As long as this process is running, the port forwarding tunnel will be active. Linux 101 : The NetworkManager, the unmanaged devices and the nmcli tool, Kubernetes 101 : Executing a command inside a Pod, Linux 101 : Networking - Deactivating and activating connections - nmcli -, Networking 101 : Linux Tap interface and virtual bridges, Networking 101 : Veth network interfaces, Linux virtual bridges and Namespaces, Setup a VM on TrueNAS - Example with Ubuntu Server, Great opportunity to obtain a free certificate from Fortinet online, Linux 101 : Troubleshooting : nmcli con up Error: unknown connection. Is it possible to create a concave light? You can create a Service for your 2 nginx replicas with kubectl expose: This is equivalent to kubectl apply -f the following yaml: This specification will create a Service which targets TCP port 80 on any Pod How to copy Docker images from one host to another without using a repository. We did this in a previous example, but let's do it once again and focus on the networking perspective. spec: What is the purpose of this D-shaped ring at the base of the tongue on my hiking boots? Let's now recreate the Service to use a cloud load balancer. Copyright 2020-2022 Brando Sabatini & Ikbal C. Using external names to connect to servers: " is the database server we want to connect to. Why does Mister Mxyzptlk need to have a weakness in the comics? The IP address in the endpoint "10.20.54.10" is the IP of our external service "database server". Let's run another curl application to test this: Then, hit enter and run nslookup my-nginx: Till now we have only accessed the nginx server from within the cluster. Connecting to an external database. PING oracle-server-hostname (----ip----------) 56(84) bytes of data. I need exact instructions to make this work, what am I missing? db-deployment --image 170.16.163.30:5000/mcrdb:0.0.4. You can check out the Kubernetes documentation for more details. Thankyou Many of these applications need a searchable storage system for their data that is secure, durable, and performant. nodePort: 0 - Still, this solution is perfectly applicable to other databases or services like e.g. How Intuit democratizes AI development across teams through reusability. Oracle Cloud Infrastructure (OCI) Service Mesh is a free service that simplifies the development and operation of cloud-native applications. Define a service , but set clusterIP: None , so no endpooint is created. Getting Started with Spring Boot on Kubernetes: The same material as this guide, but running in your browser. I need the exact steps/commands to create a service capable of routing a connection from the images in my cluster to the DB and back. I guess you added it as you read in this docs. In your example , you have a type in your endpoint: the name of your endpoint is postgresql not postgresSql. Did this satellite streak past the Hubble Space Telescope so close that it was out of focus? Performance implications for DaemonSets include the fact that the database occupies an entire set of nodes, which limits the number of connections between your database and other applications. Have you got solution for this issue? Hello everyone, I just setup 12c on my Oracle Linux box and I'm able to connect locally to the database as wished. To subscribe to this RSS feed, copy and paste this URL into your RSS reader. application.yml Connections are listed in your project, in a group called External connections. variables: You may notice that the pods have different names, since they are killed and recreated. Persistent data and consistent naming are two of the largest benefits of StatefulSets. Check the nodes the Pod is running on: You should be able to ssh into any node in your cluster and use a tool such as curl Years of experience in software development including experience as a Python Developer in design, development, maintenance, and support and testing of various web-based applications using HTML5 . The nature of simulating nature: A Q&A with IBM Quantum researcher Dr. Jamie We've added a "Necessary cookies only" option to the cookie consent popup. we don't know anything about the pods running nginx at certificate generation time, Connect and share knowledge within a single location that is structured and easy to search. How do i get Spring boot app connected to external oracle database?

Flagstar Bank Mobile Deposit Funds Availability, Articles K

kubernetes connect to external oracle database