Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Oracle Database in Ubuntu 12.10 system

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces how to install Oracle database in Ubuntu 12.10 system, the content is very detailed, interested friends can refer to, hope to be helpful to you.

Common commands, whether you are a 32-bit system or a 64-bit system, are the same:

Sudo apt-get purge openjdk-\ *

Sudo mkdir-p / usr/local/java

Cd / home/ "your_user_name" / Downloads

If you are a 32-bit system, type the following command later:

Sudo-s cp-r jdk-7u9-linux-i586.tar.gz / usr/local/java

Sudo-s cp-r jre-7u9-linux-i586.tar.gz / usr/local/java

Cd / usr/local/java

Sudo-s chmod axix jdk-7u9-linux-i586.tar.gz

Sudo-s chmod axix jre-7u9-linux-i586.tar.gz

Sudo-s tar xvzf jdk-7u9-linux-i586.tar.gz

Sudo-s tar xvzf jre-7u9-linux-i586.tar.gz

If you are a 64-bit system, type the following command later:

Sudo-s cp-r jdk-7u9-linux-x64.tar.gz / usr/local/java

Sudo-s cp-r jre-7u9-linux-x64.tar.gz / usr/local/java

Cd / usr/local/java

Sudo-s chmod axix jdk-7u9-linux-x64.tar.gz

Sudo-s chmod axix jre-7u9-linux-x64.tar.gz

Sudo-s tar xvzf jdk-7u9-linux-x64.tar.gz

Sudo-s tar xvzf jre-7u9-linux-x64.tar.gz

All right, next, whether it's a 32-bit Ubuntu or a 64-bit Ubuntu, execute the following command to edit the profile file:

Sudo gedit / etc/profile

Paste the following code into the editor:

JAVA_HOME=/usr/local/java/jdk1.7.0_09

PATH=$PATH:$HOME/bin:$JAVA_HOME/bin

JRE_HOME=/usr/local/java/jre1.7.0_09

PATH=$PATH:$HOME/bin:$JRE_HOME/bin

Export JAVA_HOME

Export JRE_HOME

Export PATH

Save and close gedit, and then continue entering the following command:

Sudo update-alternatives-install "/ usr/bin/java"java" / usr/local/java/jre1.7.0_09/bin/java "1

Sudo update-alternatives-install "/ usr/bin/javac"javac" / usr/local/java/jdk1.7.0_09/bin/javac "1

Sudo update-alternatives-install "/ usr/bin/javaws"javaws" / usr/local/java/jre1.7.0_09/bin/javaws "1

Sudo update-alternatives-set java/ usr/local/java/jre1.7.0_09/bin/java

Sudo update-alternatives-set javac / usr/local/java/jdk1.7.0_09/bin/javac

Sudo update-alternatives-set javaws / usr/local/java/jre1.7.0_09/bin/javaws

. / etc/profile

On how to install the Oracle database in the Ubuntu 12.10 system to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report