Connect to remote Oracle Database - database

I needed to make an application connect with a oracle database located in the same network (ping the host works fine), but not in the same machine (i.e. an remote server). I developed then a software using Qt and I was able to connect it successfully with that database from my machine, but I'm not being able to do it from the machine my software is supposed to be located during its functioning. I've tried to understand what is so special about my machine that on it my software is able to connect with the Oracle database while it's not able to do the same in the right machine, and it seems that the only different thing is that I've installed the Oracle database here, while I'm not allowed to do the same there.
The error returned by Qt is that I'm simply unable to logon, while the QOCIDriver returns that it wasn't possible to create the environment. Interestingly enough, the same problem was occurring with me on my machine during the time I didn't have the Oracle database installed and neither the Oracle Client something. And this Oracle Client something is already installed in the official machine with no positive results.
So I'ld like to know exactly what I need to do to make my software works. Install the database after all in the official machine? Not viable. Install the Oracle Client? I've already done it. Add the ORACLE_HOME registry/environment variable? Did both. ^^ Copied the dbhome_1/BIN folder with lots of dlls and .exe to the official machine? Did it already, and that only made it began to crash while trying to connect to the database. And now I'm out of solutions...
I'm glad for any help!
Momergil

After some days of trying, finally I was able to solve my problem.
Essentially I had to copy the Oracle database installer to the official computer and active the Oracle Universal Installer choosing the option "Install only the database softwares", i.e., not the database itself. After that, it run fine.

Related

Giving SQL Sever access to connect to a a network share - no domain

I have a QNAP nas and I want to give my SQL Server 2019 access to a share on the server. The NAS is linux based and not part of a domain.
I simply want to give my SQL server credentials to use when connecting to that share.
How can I do this?
I'm thinking it might be a proxy but I've never set one up before.
Background: My stored procedures retrieves file details on the server.
(this should be comment, not answer, but don't have enough points) Can you access the OS on the NAS? If so this wouldn't be set up with SQL Server Proxy but as a windows folder linked to the linux share (setup with samba or similar). Then ensure the service account that SQL Server is running under has access to the windows folder (that's really linked to your linux nas). Your NAS provider might already have this functionality built in, might want to check with them.
What is the goal of the SQL Server 2019 accessing the linux folder? for backups? You probably already know but SQL Server 2019 installs on linux quite easily. I've installed on debian, centOS and amazon linux without issue.

How do I install Oracle Enterprise Repository 12c on Macbook?

I am trying to install the Oracle SOA stack of products on my MacBook but I am stuck at one very crucial point. Need a database on my machine for OER but cannot figure out what to do?
Here is what I have already done:
Successfully installed Oracle SOA Suite 12c
I have downloaded OER
I have tried installing Oracle Database 12c, with Linux version even though as there is no download choice for Mac. I faced following error : ./runInstaller: line 252: /Users/madhu/Oracle/product/18.0.0/dbhome_1/install/.oui: cannot execute binary file
I checked supported database for OER but did not find MySQL or SQLlite or any other product than Oracle and Microsoft SQL server.
Microsoft SQL server is obviously not supported in MacOS
So at the as for OER a database is essential and I cannot install any supported database on MacBook.
Can you please help me?
Even if the installer script doesn't instantly fail, that doesn't mean that the Linux version of ODB 12c will magically work on OS X.
Install ODB or SQL Server on something else and configure OER to connect to it. That "something else" can be a virtual machine running on your Mac.
Install VirtualBox (or your preferred hypervisor);
Install Linux or Windows on a virtual machine;
Install and configure Oracle Database or SQL Server on that VM;
Consult the manual to configure networking for your virtual machine so the database is accessible from your host machine.
WebLogic will run on the Mac but FMW/SOA will not - at least not stable. Neither will the database.
& I know I teach/install/admin these products and am a certified Oracle trainer. I’ve tried...my time was worth more than it took to try and get it to work outside a vm-natively. I assume yours is too.
Unless you are actively trying to learn how to install them, then yes #backgammon is right, install them in a VM.
BUT, if you just want to use them and are not as interested in installation, then use one of the prebuilt -preconfigured FMW virtual box images here that will run on the Mac under virtual box.
Then Install OER in that image.
But, be advised OER is no longer sold by Oracle, even though it’s available for download.
It has been replaced by the API cloud service product.

what is oracle universal installer in oracle database products

I am new to oracle database products. I am planning to install oracle 11g express edition in my PC,it looks like a standard installer.But in many of the oracle database installation tutorial mentions oracle universal installer.oracle universal installer provides more open options,but those options and features not available in downloaded oracle 11g express edition.
difference between two https://docs.oracle.com/cd/E17781_01/install.112/e18803/toc.htm#XEINW151 and http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r1/prod/install/dbinst/windbinst2.htm
so anyone explain me exactly what is oracle universal installer??Thx in advance.
As the name suggests oracle universal installer is a utility which can be used to install or uninstall multiple oracle products.
The utility can also check pre-requisites before installing a new software.
Only thing you need to do is to provide path to products.xml file inside oraparam.ini file. This can be location for the file on your physical machine or remote location may be hosted on oracle site.
The products.xml file actually have the information about the product being installed for example it is Oracle Client or DB.
For more information please check this link
FYI, this question would have been better asked on the DBA site since it has nothing to do with programming.
XE is a minimal installation for test/dev work so I guess they decided not to clutter it up with OUI, which I have never liked anyway. OUI is simply Oracle's Java-based installer that installs and keeps track of the majority of Oracle software you have installed on your system. There's nothing special about it, and you have no need to worry about missing out on something. If you were installing the standard database, it would try to start the network config tool that creates the TNSNames.ora file, for example. It's been a while since I used XE but I think it's install just creates a generic one for connecting to the XE instance.

Advantage of Oracle Client and Server being separated

When writing an application that'll work with MS SQL database all we do is just we specify the connection parameters (either hard coded or dynamically). And when we install that application on a machine, we don't care if that machine has the proper tool to make the connection to the MS SQL Server database available.
However, in Oracle things are different. We have to make sure that all the machines that we want to install the app has Oracle Client set up. It will not work otherwise. Now my first question is what advantage does this provide? And the second one is if there's some way to achieve the similar in SQL Server?
Realistically, if Oracle owned Windows, the Oracle client would be installed with Windows and the SQL Server client would be a separate install. It's not a matter of advantages and disadvantages, it's a matter of who owns the stack and can bundle their software with the operating system.
Depending on exactly how you are building your Oracle application, there is a good chance that you can use the Oracle Instant Client or the Oracle thin (type 4) JDBC driver to provide connectivity to the database. Either of these can be installed by your application without requiring a separate Oracle client install.

What is Microsoft SQL server and why do I need to install it?

All I want to install is visual web developer (but I've had this issue with other things like visual C# to), so when I choose to install just that from microsoft web platform, it wants to download that, under 3mb, and SQL server (dependency it says,) 100mb. I've seen lots of computers with SQL server installed, does it come with all windows distributions? Do many other applications use it to work? Should I just install it if part of visual studio wants me to? When it asks me to make an administrator account and password for it, should I just type in whatever to get it to install as I won't be using it directly?
What is it?
It is a database system.
does it come with all windows
distributions?
No.
Do many other applications use it to
work?
Yes.
Should I just install it if part of
visual studio wants me to?
Yes. It will hook everything up for you to a copy of SQL Server Express, so no further configuration will be required to make it work.
When it asks me to make an
administrator account and password for
it, should I just type in whatever to
get it to install as I won't be using
it directly?
Yes. Remember the user name and password for later use, but you will probably be using Windows Authentication to access SQL Server on your own machine, so you won't need this user name and password on a regular basis.
The reason it is installed along with Visual Studio is because SQL Server is a database system for storing data, and many developers these days are writing applications that work with databases, so the developer often needs a SQL Server installed so that he has a database system to develop and test against. So in a nutshell, if you were writing such an application, you would already know what it is, and would know that you need it. Which is why OrbMan said "If you don't know what it is, you don't need it."
If you get in the mood to learn something new though, I would highly recommend reading about SQL and SQL Server. It is used alot in the real world.

Resources