How to install Universal Oracle Installer on Ubuntu? - oracle

I can't run Oracle Universal Installer to get tnsping.
I downloaded ouiosp220160.jar.
This jar cannot be launched using java -jar, so I unpacked it as described on Oracle site, but there description for Solaris and Windows, I unpacked it and there is folder for Solaris which contains executable that I can't launch.

I used this article when did installation:
Installing Oracle 11g R2 Express Edition on Ubuntu 64-bit
it was some manual changes in settings that we had to make, so just go step-by-step through the page
one more page
HOWTO install Oracle 11g on Ubuntu Linux 12.04

Related

How to install OpenJDK 11 on Windows?

In the past, Oracle used to publish an executable installers for Windows that would:
Unpack files
Add registry keys indicating the installed version and path
Add the JRE to the system PATH
Register an uninstaller with Windows.
As of Java 11, the Oracle's free version of Java (Oracle OpenJDK) doesn't seem to include an installer. It is just a zip file containing the binaries.
How are we supposed to install OpenJDK 11 on Windows seeing as the aforementioned integrations are no longer there? Aren't they necessary?
Extract the zip file into a folder, e.g. C:\Program Files\Java\ and it will create a jdk-11 folder (where the bin folder is a direct sub-folder). You may need Administrator privileges to extract the zip file to this location.
Set a PATH:
Select Control Panel and then System.
Click Advanced and then Environment Variables.
Add the location of the bin folder of the JDK installation to the PATH variable in System Variables.
The following is a typical value for the PATH variable: C:\WINDOWS\system32;C:\WINDOWS;"C:\Program Files\Java\jdk-11\bin"
Set JAVA_HOME:
Under System Variables, click New.
Enter the variable name as JAVA_HOME.
Enter the variable value as the installation path of the JDK (without the bin sub-folder).
Click OK.
Click Apply Changes.
Configure the JDK in your IDE (e.g. IntelliJ or Eclipse).
You are set.
To see if it worked, open up the Command Prompt and type java -version and see if it prints your newly installed JDK.
If you want to uninstall - just undo the above steps.
Note: You can also point JAVA_HOME to the folder of your JDK installations and then set the PATH variable to %JAVA_HOME%\bin. So when you want to change the JDK you change only the JAVA_HOME variable and leave PATH as it is.
Java 17 (LTS) and up
For Java 17 and up, you can use the Eclipse Adoptium website. According to their about section, the Eclipse Adoptium project is the continuation of the original AdoptOpenJDK mission.
Java 11 (LTS), Java 8 - 16
For Java 11 (8 through 16), you can use AdoptOpenJDK, a website hosted by the java community. You can find .msi installers for OpenJDK 8 through 16 there, which will perform all the things listed in the question (Unpacking, registry keys, PATH variable updating (and JAVA_HOME), uninstaller...).
Use the Chocolatey packet manager. It's a command-line tool similar to npm. Once you have installed it, use
choco install openjdk --version=11.0
in an elevated command prompt to install OpenJDK 11 (leave out the --version parameter to install the latest version).
To update an installed version to the latest version, type
choco upgrade openjdk
Pretty simple to use and especially helpful to upgrade to the latest version. No manual fiddling with path environment variables.
From the comment by #ZhekaKozlov: ojdkbuild has OpenJDK builds (currently 8 and 11) for Windows (zip and msi).
You can use Amazon Corretto. It is free to use multiplatform, production-ready distribution of the OpenJDK. It comes with long-term support that will include performance enhancements and security fixes. Check the installation instructions here.
You can also check Zulu from Azul.
One more thing I like to highlight here is both Amazon Corretto and Zulu are TCK Compliant. You can see the OpenJDK builds comparison here and here.
For Java 12 onwards, official General-Availability (GA) and Early-Access (EA) Windows 64-bit builds of the OpenJDK (GPL2 + Classpath Exception) from Oracle are available as tar.gz/zip from the JDK website.
If you prefer an installer, there are several distributions. There is a public Google Doc and Blog post by the Java Champions community which lists the best-supported OpenJDK distributions. Currently, these are:
AdoptOpenJDK has been superseded by Adoptium/Temurin (Hotspot) and IBM Semeru (OpenJ9)
Adoptium Temurin
Amazon Corretto
IBM Semeru (with OpenJ9 JVM)
Liberica from Bellsoft
Microsoft Build of OpenJDK
OpenLogic OpenJDK
Red Hat OpenJDK
SAPMachine (backed by SAP)
Zulu Community (backed by Azul Systems)
https://www.openlogic.com/openjdk-downloads allowed me to pick a 32-bit version of OpenJDK8 (don't ask - Arduino IDE doesn't compile with 11), I think they just wrap around AdoptOpenJDK MSIs but I couldn't find 32-bit distros on AdoptOpenJDK.
In addition to the above answers, it is worth noting that you have to move your JDK Path entry to the top of the Path
Here is the complete answer. first of all you have to install the Chocolatey. to install Chocolatey run powershell as administrator and run the following command
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
after this run open cmd as administrator and run this command
choco install -y openjdk11
it will install the openjdk to the following location
C:\Program Files\Eclipse Adoptium\jdk-11.0.16.101-hotspot
finllay set your JAVA_HOME TO
C:\Program Files\Eclipse Adoptium\jdk-11.0.16.101-hotspot
and cheers
WinGet is now available on Windows 10+ to install the Microsoft Build of OpenJDK on your machine. See details and access the downloads page at https://aka.ms/msopenjdk/ where Zip files and instructions.
Scoop installs programs you know and love, from the command line with a minimal amount of friction.
Install scoop
Add java scoop bucket add java
Install OpenJDK scoop.cmd install openjdk17

Run mongo 3.2.4 with --ssl parameter under Windows

I've downloaded MongoDB Community Edition for Windows from mongodb.org (Windows 64-bit 2008 R2+), and website says that this version has SSL support (there are alerts on other versions that say they haven't). I'm running Windows 10. From what I've understood, SSL is build in by default from version 3.0, and I'm running with an Ubuntu server a mongod Community Edition instance (64bit, 3.0.10) installed from repository that use SSL.
When I try to run mongo.exe on local Windows machine with --ssl parameter it says:
Error parsing command line: unrecognised option '--ssl'
and others tools say that it doesn't support ssl.
I'm sure that on a previous setup I was running a 3.0.x mongo instance with SSL support on windows, I've tried also to install older versions, but nothing works.
My questions: are 3.0 and 3.2 community edition branches (still) compiled with SSL support on Windows, and if yes, why they doesn't work on my current setup? I'm sure they worked on previous one, may be a configuration problem?
Not sure why the Downloads page links to the Non SSL bundle. The Official Help page indicates the installer file name is mongodb-win32-x86_64-2008plus-ssl-3.2.4-signed.msi which is not the same as the one downloaded via Downloads page (mongodb-win32-x86_64-3.2.4-signed.msi). Get the SSL enabled installer from https://www.mongodb.org/dl/win32/x86_64-2008plus-ssl

How to uninstall H2 Database from Ubuntu and windows machine?

How we can uninstall H2 Database from Ubuntu and windows machine? I search a lot but nothing worked for me. Please provide solution for both OS's.
Update: I've had followed http://interface101.blogspot.in/2013/12/3-steps-to-run-h2-database-in-ubuntu.html link for installation of H2 server on Unubtu 14.04, but unfortunate no one provides uninstall information.
The installation instruction you used was to just download the jar file of H2.
To uninstall, you just have to remove the jar file (rm ...).

db2 setup for Mac

I am trying to install db2 for my mac.
I downloaded the package. When I run the script db2setup I get a blank setup wizard.
It says
/Users/sanjanaagarwal/Downloads/expc/db2/macos/install/db2setup:
line 606: /tmp/db2.tmp.26264/db2/macos/install/../java/jre/bin/java: No such file or directory
When I check the log it shows
Operating system information: Darwin Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~.13.0.0
ERROR: The user name specified is invalid.
HELP.
DB2 Express-C 10.1 for Mac was released in 2012, well before Mavericks. It's doubtful that IBM has done any testing with Express-C on Mavericks. It does not appear that the JRE you can get from Apple for Mavericks works with the installer. I do not know if installing a JRE from Oracle will work better.
In brief testing I find that it appears to work, but you may find it easier to install using the text-based db2_install command rather than the java-based db2setup. This will require some additional steps to manually create a DB2 instance (create user, execute /opt/IBM/db2/V10.1/instance/db2icrt, etc.), but once you've done this you should be OK.

Oracle Lite 10g installer not detecting JDK on my mahine

I have a Windows 7 64-bit system, on which I have installed Java JDK 7 6-bit version ... Its installed in its default directory:
C:\Program Files\Java\jdk1.7.0\bin
I have also set the JAVA_HOME Environment variable to C:\Program Files\Java\jdk1.7.0 in System Settings .. But still even now, during installation of Oracle Lite 10g, I get the error:
JDK is not installed on machine
What could be the problem now ?!?
EDIT:
I have also now added C:\Program Files\Java\jdk1.7.0 to the end of the PATH variable, and still the same result !
EDIT 2:
Completely removed ALL traces of Java from my system .. Uninstalled all Java things ! Used JavaRa to confirm everything is removed ! Removed any folders which are Java related ! Restarted system ! Reinstalled JDK 7 x64 version with a fresh downloaded copy ! Tried installing Oracle 10g Lite now after setting the above environment variable (now set it as a system variable), and STILL THE DAMN ERROR IS STILL THERE ! :(
This is not a supported configuration. You need to switch to a more current oracle release.
Try the following:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Development Kit]
"CurrentVersion"="1.7"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Development Kit\1.7]
"JavaHome"="C:\\Program Files\\Java\\jdk1.7.0_67"
"MicroVersion"="0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Development Kit\1.7.0_67]
"JavaHome"="C:\\Program Files\\Java\\jdk1.7.0_67"
"MicroVersion"="0"
Of course this may vary depending on the version of the Java Development Kit. Copy what is located at HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit in your registry to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Development Kit.

Resources