Install Oracle 11gR2 On Debian

Source: Internet
Author: User

Hello everyone!

Today, the director asked me to help install the Oracle database. When I log on to the system, I found that it was not the same as the original debian system. I did not install oracle. Please go to the official documentation to find the installation manual, no. You can only install it on linux!

1. Install vncserver

Root @ db100:/etc/apt # apt-get install vnc4server

If the error "E: Unable to locate package vnc4server" is reported,

Run root @ db100:/etc/apt # apt-get update,

Run the "root @ db100:/etc/apt # apt-get install vnc4server" command again.

Enter the vnc password: Enter the vncpasswd on the terminal and enter the password.

Configure vncserver to start automatically:

Vi/etc/init. d/vncserver

#! /Bin/sh
Export USER = "root"
Export PATH = "/usr/local/bin:/usr/bin/X11"
NAME = vncstart
Start ()
{
Su-$ USER-c "vncserver: 5"
}
Stop ()
{
Su-$ USER-c "vncserver-clean-kill: 1"
}
Case "$1" in
Start)
Echo-n "Starting Xvnc :"
Start
;;
Stop)
Echo-n "Stopping Xvnc"
Stop
;;
Restart)
Echo-n "Restarting Xvnc"
Stop
Start
;;
****)
Echo "Usage:/etc/init. d/$ NAME {start | stop | restart }"
Exit 1
;;
Esac
Exit 0

 

Save, set to executable, and add to service list

Chmod + x/etc/init. d/vncserver
Update-rc.d vncserver ults 98

 

2. Install the packages required by oracle, such as rpm and unzip.

Root @ db100:/etc/apt # apt-get install unzip rpm gawk

 

3. Create oracle users and groups

Addgroup oinstall
Addgroup dba
Addgroup nobody
Useradd-g oinstall-G dba-p oracle-s/bin/bash-d/home/oracle-m oracle
Usermod-g nobody

  • 1
  • 2
  • 3
  • Next Page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.