Install and configure Oracle 12c XE/Enterprise on Centos 7 - database

Oracle provided descriptive documentation to deploy Oracle database/Manager/Clients. So, we have followed the link which summarise the things: https://www.howtoforge.com/tutorial/how-to-install-oracle-database-12c-on-centos-7/
There are a few pain points we are facing:
Remote connection to oracle not happening
Remote oracle manager link access on port 5500
Details on Remote JDBC connections to Oracle 12c is not in one place and how to build the connection from JBDC

Related

Oracle Client + ORA-12557: TNS:protocol adapter not loadable

Deat experts, We migrated from Oracle 12c to Oracle 19c in the windows server 2016 last week.
The DBA did not remove the previous version of oracle client - 12c and in addition installed the latest version of Oracle 19c.
Also I can see the environment variable has below 2 entry in addition to both the client installation
C:\Oracle\product\19.0.0\client_32\bin;
C:\Oracle\product\12.1.0\client_1\bin;
When we connect to the database using external connection, we get the below error. The DB was working fine prior to the oracle 19c installation.
The program has ended abnormally due to an unhandled exception.
Exception Code (OCI[DBConnectOCI.cpp[192]]
ORA-12557:TNS:protocol adapter not loadable)
Clarification:
I am not a DBA person but technically oracle has what it needs, why does it not getting connected to the DB using oracle client 19c?
Is it 100% true that we need to remove the previous version of the DB Client and always have only one client version?
Is the environment variable creating the issue ? or both env variable and oracle client ?

Oracle DB - Connection Issue

I am not a Oracle DB expert.
I need to connect to a REMOTE Oracle 19c database server from VDI through Oracle Client or SQL*PLUS.
I only have the Database Name "Orcl" and the TNS Connect string "dev1".
Please advise what are all the pre-requisites that I need to have in my VDI, so I can connect to the remote DB.
What are the environmental variable I need to set in my VDI ?
Do I need to have Oracle client installed in my machine ? which version of Oracle client ?
If I have Oracle 12c client in my machine, will I be able to connect to Oracle 19C DB.
I don't think the vdi plays into it at all. You will be making a connection across a network interface (even if the client and database are on the same machine). Yes you will need an oracle client. I think a 12c client is the oldest client that is still certified for connection to 19c database. To be sure Refer to Oracle Support Document 207303.1. For the client, using a network connection, I believe the only environment variable required is ORACLE_HOME.

Is there any way for Netsuite to connect to SQL Server?

I want to connect to a SQL Server database from Netsuite and then sync data to Netsuite.
Is there any way I can do it?
Here is how you can do the ODBC connection between NetSuite and your SQL server.You can do it similarly with any other SQL Server. However,Syncing the data back would require a web-service.
A linked server needs to be setup using the MS Management Studio. Below are the steps:
(MSDASQL has to be downloaded and installed piror to following the steps below if not yet preinstalled with Microsoft SQL Server Management Studio.)
Open MS SQL Management Studio and go to Server Objects > Linked Servers > Providers menu tree. Right click the MSDASQL and set these options:
Dynamic parameter
Nested Queries
Allow inprocess
Supports 'Like' operator
Right click on Linked Servers, select New Linked Server and on the General tab, set the following:
Linked Server: NETSUITE
Provider: Microsoft OLE DB Provider for ODBC Drivers
Product Name: NetSuite.com
Data Source: NetSuite.com //Copy the DSN name from ODBC Data Source
Provider String: DSN=NetSuite.com
On the Security tab, select *be made using this security context, and enter Login email and password
Try to execute SQL to test the connection
Select * from [Linked Server].[Company Name].Administrator.Accounts
Note:
This procedure is also applicable to MS SQL Server 2008.
[Company Name] is the one found at Setup > Company > Company Information > Company Name
The following table lists tasks for an ODBC driver to connect to Connect Service; however, some of these tasks are optional to complete(refer suite Answer Id: 38942)
Task
Description
Set up an environment and verify installation prerequisites.
For both Windows and Linux, see Prerequisites to verify the installation prerequisites.
Download and install the driver.
For Windows, see Downloading and Installing the ODBC Driver for Windows.For Linux, see Downloading and Installing the ODBC Driver for Linux.
Set up the ODBC connection.
For Windows, see Configuring the ODBC Data Source on Windows.For Linux, see Configuring the ODBC Data Source on Linux.
Optionally, upgrade from a previous version.
For both Windows and Linux, see Upgrading an ODBC Driver to upgrade a previous installation.
Optionally, enable authentication with server certificates.
For both Windows and Linux, see Authentication Using Server Certificates for ODBC to add increased encryption to secure the data connection.

Is DB2 Server Discovery possible over a network?

I need to discover the running db2 servers in a network.
I tried to connect to all servers in the network using the JDBC connection. But the problem is while using JDBC, we need to specify the database name in the URL. As of now, I tried to connect to the SAMPLE database. But if a db2 instance does not have the SAMPLE database, the connection will fail.
So I want to know the other possibilities to discover db2 servers in a network and also Is there any way to connect to the instance of the db2 server unlike connecting to a particular database(Similar to SQL - Connecting to an instance using port only)
Db2 administration server (DAS) has the corresponding functionality. Refer to the following link:
Discovery of administration servers, instances, and databases.
Note, that DAS is deprecated and may be removed in future Db2 releases.

Unknown error while configuring Oracle 11g Express Edition on Ubuntu 14.04

I have installed Oracle 11g on Ubuntu as per this link: Oracle 11g installation steps on Ubuntu 14.04
I reached to the step where it says to configure Oracle. I am able to execute the command successfully. First it asks to enter HTTP Port, which I entered successfully. Then it asks to enter database listener port, which I entered successfully. Then I entered the password successfully for database account. And finally I said yes for Oracle to be started on boot.
It showed be an error Database Configuration failed. Look into /u01/app/oracle/product/11.2.0/xe/config/log for details. Here I am stuck. I don't really know what error could be. I am sharing the steps and message here. Here is the command:
rakshit#user:/home/rakshitbhatt/Disk1$ sudo /etc/init.d/oracle-xe configure
Here is the internal message:
Oracle Database 11g Express Edition Configuration
This will configure on-boot properties of Oracle Database 11g Express
Edition. The following questions will determine whether the database should
be starting upon system boot, the ports it will use, and the passwords that
will be used for database accounts. Press to accept the defaults.
Ctrl-C will abort.
Specify the HTTP port that will be used for Oracle Application Express [8080]:8080
Specify a port that will be used for the database listener [1521]:1521
Specify a password to be used for database accounts. Note that the same
password will be used for SYS and SYSTEM. Oracle recommends the use of
different passwords for each database account. This can be done after
initial configuration:
Confirm the password:
Do you want Oracle Database 11g Express Edition to be started on boot (y/n) [y]:y
Starting Oracle Net Listener...Done
Configuring database...
Database Configuration failed. Look into /u01/app/oracle/product/11.2.0/xe/config/log for details
Could you help me with it? I am not a technical guy. Thanks!

Resources