How to specify Java Home/JDK in Oracle SQL Developer? - sql

With reference to the above-mentioned title, the path has been given at the time of opening SQL Developer for the first time. Now I need to change the path.
Can anyone help me or guide me to do this?

It depends on on your operating system.
Windows:
User, AppData, Roaming Profiles, sqldeveloper, VERSION, product.conf
Note for the Version value: if you're on version 4.0, you'll see 1.0 as the top level directory. After that you should see things like 17.3 or 18.2.
Linux & OS X
$home/.sqldeveloper, product.conf
Open file, update your Java Home.
Make sure you're pointing to an Oracle Java JDK - we don't support OpenJDK today.
Latest version of SQL Developer expects a Java 8 JDK.
Version 19.2 or higher will also work with 11 or Oracle JDK 12.

In the same folder, Roaming, delete all older SQL Developer folders. When you upgrade SQL Developer version, Java will first look in these folders.

In my case, I browse the java path as
C:\Program Files\Java\jdk-11.0.8
It worked for me, please try it out if you need

Related

How to install pentaho community edition Server on ubuntu 18.04?

I have followed the steps in http://wiki.joanillo.org/images/1/11/Community_user_guide.pdf but I am unable to run the server
That document refers to version 3.x of Pentaho. Current version is 8.2. The doc is out of date by several years.
There’s no folder biserver-ce anymore, it’s now called pentaho-server. The script’s name is still the same.
You will need a JDK installed (1.8 or above, and if you install Pentaho 8.2 you should use openJDK)
i hope you have started the server, if not run this file using terminal /pentaho-server/start-pentaho.sh ....
please provide the log it will be in the path pentahoserver->tomcat->logs->catalina.out

Error on running sql developer in ubuntu 16.04

I have looked up for this problem in stackoverflow.
I found the question raised in the following link similar to mine and i tried doing what was mentioned in it but that doesn't seem to be working for me.
The full pathname of a JDK installation for Oracle SQL Developer
I have tried adding the path in the product.conf file but this still gives error. this is what i am getting
./sqldeveloper.sh
Oracle SQL Developer
Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
Type the full pathname of a JDK installation (or Ctrl-C to quit), the path will be stored in /home/nithinchandranp/.sqldeveloper/18.3.0/product.conf
/usr/lib/jvm/java-11-openjdk-amd64
Error: Java home /usr/lib/jvm/java-11-openjdk-amd64 is not a JDK,
either jre/bin/java OR lib/tools.jar OR lib/dt.jar is missing.
Running SQL Developer under a JRE is not supported.
If this Java VM is actually a full JDK installation, add
'SetSkipJ2SDKCheck true' to one of the following files.
Otherwise specify a different Java JDK location with a
SetJavaHome directive in one of the following files:
/home/nithinchandranp/.sqldeveloper/18.3.0/product.conf
/home/nithinchandranp/SQL Developer/sqldeveloper/sqldeveloper/bin/sqldeveloper.conf
Can someone please help me with this issue.
thank you.
We require JDK 8, and only support Oracle Java.
Support for open JDK 11 is planned for later next year.

Error while running Jprofile8

I am getting following error while running /tmp/jprofiler8/bin/jpenable
No suitable Java Virtual Machine could be found on your system.
The version of the JVM must be at least 1.6 and at most 1.7.
Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.
You can also try to delete the JVM cache file
I have also set INSTALL4J_JAVA_HOME to point to suitable JVM.
Java version on my machine is 1.4.2.
Can anyone please suggest what might be wrong or missing?
Unfortunately you did not mention details about your environment, so I don't know which Linux distribution you use.
There are some options though:
install a current JRE alongside the installer for JProfiler
As you can't install or update Java, you could provide a JRE in a kind of "portable application" setup. Simply unzip the server jre Oracle provides or (if you are not on an x64 architecture) unzip the jdk you also can download from Oracle.
But if the code you want to profile is limited to your pre-installed Java 1.4 you will run into another problem, because as far as I know Java 1.5 is the minimum JProfiler expects
use a different machine for profiling
Unless your code depends heavily on the environment you run it in you can even take a Windows 8.1 machine and profile the code there. Code that is slow is slow on any operating system. Or make use of a different Linux computer.

ODP.NET version confusion

I need to download the same ODP.NET version as the one installed on our server. I took a look at the oracle.dataaccess assembly version in c:\windows\assembly.
The version number there is 2.11.2.1.2.
But none of the offered downloads matches this version.
http://www.oracle.com/technetwork/developer-tools/visual-studio/downloads/index.html
So which one is the right one ?
At a guess I would say version 11.2.0.1.2.

Connect to Oracle 11g using VS2010.net Drivers/Cleints

Hey all i am trying to redistribute my app that uses Oracle 11g:
Imports Oracle.DataAccess.Client
The problem i am having is that it will not run on a machine that doesnt seem to have the correct drivers that its looking for. When i install ODAC 11.2 Release 3 (11.2.0.2.1) with Oracle Developer Tools for Visual Studio on the test VM it works just fine but thats a 230+mb file to download and install! Not to mention that if the user already has Oracle 10/11g on their machine that it may mess up their current connections/etc by installing that setup file.
Is there another setup package that i can install that only has the Oracle Data Provider for .NET 2.0 11.2.0.2.0 or whatever its needing from that ODAC 11.2 Release 3 file.
So any help about what i need to go about fixing this problem would be great! :)
Thanks,
David
assuming you are on a 32bit environment you ought to be able to use the
ODAC112021Xcopy_32bit.zip 50.5 MB (53,019,552 bytes)
the corresponding 64-bit
ODAC112021Xcopy_x64.zip - 53.3 MB (55,955,853 bytes)
the files are smaller than the ODT tools but they work. Here is a dated (but it should get you on the correct track) how-to