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