Issue installing Oracle SQL Developer on my MacBookPro - Am I missing a component? - oracle

I had to recently re-install OS X on my MBP and am in the process of re-installing all of my apps. One app that worked just fine in the past, but is now giving me errors is Oracle SQL Developer and I can't for the life of me figure out what I am missing.
Here's what I have tried:
Downloaded and installed SQL Developer on my machine.
Downloaded the Instant Client related files - http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html (I installed all of the 64 bit related stuff on this page - Im on a 64 bit machine), combined it into one folder and moved it my /usr folder using this guide: installing Oracle Instantclient on Mac OS/X without setting environment variables?
I also installed this the JDK: http://www.oracle.com/technetwork/java/javase/downloads/index.html
I also set up my TNSNames.ora file and copied it to my /etc folder (This is required on a mac)
Here's my problem - If I attempt to connect to my Oracle instance using the above, it throws this error:
An error was encountered performing the requested operation:
no ocijdbc11 in java.library.path
Vendor code 0
This occurs whether I use basic or the TNS connection type.
So my question to my fellow developers is - Am I missing something in terms of the install above? I have tried googling for that particular error message and not found anything useful. At first glance, it seems like SQL Developer is looking for some file.
Thanks in advance for your answers!
EDIT - The version of SQL Developer that I am trying to install is 3.1.07 and I am trying to connect to an 11G instance.

Go to Tools > Preferences > Database > Advanced, and make sure Use OCI/Thick driver is un-checked.
Once done, try creating a connection and test. I also think you might be running an in-compatible version of Java in your newly installed OS X, so try installing JDK 1.6.0_11 or above, if the solution doesn't work.

Related

Need help installing ODAC 122011x64 so I can connect ADW to Power BI

So I have successfully installed Oracle DB 19c and connected it to Oracle SQL Developer. I am able to create tables and run queries. Furthermore, I can connect to ADW with both python and SQL Developer and any changes that I commit are seen in all locations. I am trying to connect the ADW database to Power BI. I am running all this on a personal Windows 10 Pro laptop with plenty of SSD & RAM.
In a new window of Power BI I click Get Data and then Oracle Database followed by Connect. When I do this I get a pop up that says:
The recommended provider ('Oracle.DataAccess.Client') is not installed. You can continue with your current provider, however it has been deprecated and may not work correctly.
I clock OK. Enter my Server as the TNS Name that I have used for my python and SQL Developer instances. In my ADW database, I have a table called TEST. It's a simple table with 1 column with the years 2015 through 2020 in it. Been using this to test to see if things are working. So I click on the DirectQuery and run the SQL statement SELECT * FROM TEST under the Advanced options menu and select OK. A sign in window pops up and I select the Database table and enter my correct ADW username and password. The same one that I can use to access this table from SQL Developer and then select Connect. When I do, I get this error:
Details: "The provider being used is deprecated: 'System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.'. Please visit https://go.microsoft.com/fwlink/p/?LinkID=272376 to install the official provider."
So I go to the website and download the ODAC122011_x64 file from Oracle and unzip it. When I double click the setup.exe file inside the directory I get a yes/no user control account menu and I select yes and then a command prompt window flashes very quickly and then nothing happens. I ran a super slow motion capture from my phone to capture what the command window showed and below is what I see:
Starting Oracle Universal Starter...
Checking monitor: must be configured to display at least 256 color Higher than 256 . Actual 4294967290 Passed
Preparing to launch Oracle Universal Installer from C:\Users\<my username>\AppData\Local\Temp\OraInstall2020 09:20_09-04 {???}
Please wait .._
It does nothing after this I have tried running the oui.exe file under the install subdirectory and get nothing and I have tried running the install.exe file in Oracle Universal Installer that I acquired when installing Oracle DB 19c and I get the following error when I target the install.exe file for installation:
OUI-10118:C/Users/{my username}/Downloads/ODAC122011_x64/Setup.exe is either a directory or a corrupt file. Specify a valid filename.
This is a file that I just directly downloaded from Oracle's website and unzipped to a directory with no spaces in the directory location. I have the latest version of Java installed (JDK 15).
I am not sure the proper work around here. Why can't I get my Power BI to connect to my Oracle ADW table using the methods described in this article. Those are the instructions that I used. It appears that I need this ODAC application but I don't understand why it won't install.
Can anyone help me resolve this issue? Thanks!
Edit: I am using 64-bit on each application.
Update: Still having issues. I checked the log and this is what I am seeing:
Using paramFile:
C:\Oracle\Oracle_PowerBI_ODAC\ODAC122011_x64\install\oraparam.ini
Checking monitor: must be configured to display at least 256 colors. Actual 4294967296 Passed
The number of files bootstrapped for the jre is 0.
The number of files bootstrapped for the oui is 0.
the client version need not match the server version, Removing all other versions, and making sure that I had the x64 version,
You need the latest ODP.net library to use Oracle. Please download it here:http://www.oracle.com/technetwork/topics/dotnet/utilsoft-086879.html
I figured out the solution after reviewing this post. Apparently having over 2TB of free space on a hard drive causes this problem. You have to go into command prompt and create a temporary file to get your free space under 2TBs using something like this:
fsutil file createnew temp_1TB_file 1200000000000
Run the setup.exe again and then delete the temp file after.
Update: After doing all this I still was running into the same issues in Power BI. Then I read the troubleshooting notes from this page more closely and realized that I might have found the problem when it said:
If you downloaded Power BI Desktop from the Microsoft Store, you might be unable to connect to Oracle databases because of an Oracle driver issue.
I uninstalled the PowerBI Desktop that I had installed from Microsoft Store and installed it from the download from its website and tried connecting to Oracle ADW again through PowerBI and IT WORKED!!! So much troubleshooting but it finally works!

Unable to start application server of pgadmin 4

I have just installed postgresql-10.4-1-windows-x64. Didn't face any issue while installation, however, when trying to open pgAdmin4 receiving an error as attached.
Please help to get this started.
Did you have an earlier version of pgAdmin installed? The reason I ask is because the error message you received indicates you might be launching a different version than 4.3.
There was a rewrite so the old runtime as a tray-based server (v4.2 & older) is now launched a web browser (v 4.3 feature #3086).
I suspect your error not being able to connect to the "application server" means you are launching an older version but downloaded a newer one.
while mine is the 32 bit version, i encountered the same problem. but i solved mine by adding the postgresql bin folder path to the environment variable settings.

How to get MacOS Oracle ODBC client working with unixodbc?

I'm having a difficult time getting the Oracle 12.2.0.1.0-2 ODBC drivers and Instant Client (Basic Lite version) working with homebrew-installed unixODBC 2.3.5 under MacOS 10.12.6 (Sierra).
Extracting both of the Oracle ZIP files to /opt/ora12/instantclient_12_2, creating symlinks for libclntsh.dylib and libclntsh.dylib.12.1, then pointing odcb to the /opt/ora/12/instantclient_12_2/libsqora.lib gives a file not found error. While the path definitely exists and has good permissions, inspecting the dylib with otool -L shows that the #rpath directories are not finding the supporting libraries.
If I pull down the 12.2 sqlplus client, extract it to the same instantclient tree and run the binary, the CLI works fine. This seems to be some sort of dylib loading issue with odbc, but I'm not sure how to fix it. I've tried setting DYLIB_LIBRARY_PATH, copying all the libraries straight into /usr/local/lib, all to no effect.
I've not yet tried to pull out install_name_tool and hard coding search paths (getting further in the weeds than I've done before on MacOS) and I'm hoping something so drastic and non-portable isn't required. Is there a step to the install process I'm missing to get this working?
Thanks in advance!
After significant back and forth on the Oracle Community forums, the condensed solution is documented at this blog post: https://blogs.oracle.com/opal/installing-the-oracle-odbc-driver-on-macos?dd
In brief, the Oracle ODBC supplied odbc_update_ini.sh needs to be ran after first patching to change the reference from libsqora.so.12.1 to libsqora.dylib.12.1. Two libraries (libclntsh.dylib.12.1 and libclntshcore.dylib.12.1) then need to be symlinked into a library location on your PATH (I used /usr/local/lib).
With the above config (using the Basic client instead of Basic Lite, though Basic Lite should work) and the necessary tnsnames.ora black magic (TNS connection strings are covered in many other SO questions), I was able to connect both with command line isql and with my true goal, R's odbc and DBI using unixODBC.

Oracle 12 C Installation Error

I've downloaded oracle 12c on my personal laptop. Check system compatibility (alls good). However, towards the end Im getting an error stating "Oracle Services for microsoft transaction server" denied".
Please assist,
Googling the error message leads to this as the first result:
http://www.dba-oracle.com/t_ins_20802_oracle_services_for_microsoft_transaction_server_failed.htm
Which basically says to ignore the message and run the Database Configuration Assistant manually to finish configuring the database.
When an installation fails, you should check the installation log for more details.
In my case, the log file said "hostname too long", so I shortened the host name and was able to do a successful install.
I faced the same issue recently and it was regarding [INS-20802] Oracle Database Configuration Assistant failed error. I think the solution for it will of help in your issue too.
I tried several of the following methods for resolving the issue :-
Disabling Windows UAC
Disabling firewall
Disabling antivirus - mine was a fresh VM, so disabled Windows Defender
Adding localhost IP i.e., 127.0.0.1 to the hosts file etc.
but none of them helped.
At last I found this, which suggested installing Microsoft Visual C++ 2010 Redistributable Package (x86) and this solved the problem in a matter of seconds! I just had to click 'Retry' on the installation dialog.
Do you have local "Admininstrator" rights on the account that your are installing Oracle into?
The Oracle Universal Installer is trying to create the MTS service and access is being denied. This is why I usually don't take the default install, and use the "custom" install and select the components I want. OUI will then work out the dependencies and install the correct components.
With this type of failure, you should have had an option to "ignore/skip" the error and the installer should continue and install the database objects - you shouldn't need to re-install the database objects as the the MTS service component should install after the data objects are created and they are not reliant on each other. Unfortunately the installer status will still show "failed" because of that one component failing.

Cannot install Oracle 12c on Windows 8.1 - Error in Process ... perl.exe

When installing Oracle 12c personal edition on a freshly minted Windows8.1 box I get the following error:
Title: Database Configuration ...
Error in Process:
C:\app\<username>\product\12.1.0\dbhome_1\perl\bin\perl.exe
Clicking ok and skipping gives the following error
[INS-20802] Oracle Database Configuration Assistant failed.
Details: The plug-in failed in its perform method ...
Trying lots of things but still come up with same error. Googling shows some users with the same error, but all end in dead-ends without a solution.
Any help much appreciated.
I had the same problem with Oracle Database 12c on a fresh Windows 8.1.
For me the solutions was deactivating a preinstalled McAfee.
I used the Windows-builtin-User during the Oracle-Database Installation.
Think this may be it. The new Windows user for the account was oracle-user. When I tried this with a username OracleUser the installation worked.
I also switched off the AntiVirus - not sure which fixed the problem
A colleague pointed me to this blog which gave a little more info.
Hope this helps someone
The issue is because of the Anti-virus program most probably McAfee. If you want complete instructions check this out - It is an explanation of the step by step installation process specifically on windows 8.1 and the perl.exe error

Resources