Home > Database > Mysql Tutorial > body text

在Debian 上安装 Oracle 11gR2

WBOY
Release: 2016-06-07 17:26:34
Original
1062 people have browsed it

今天总监要我帮忙安装oracle数据库,当我登录上去发现和平时的不太一样,原来是debian系统,这个还真没安装过oracle,赶快去官方

大家好!

今天总监要我帮忙安装Oracle数据库,当我登录上去发现和平时的不太一样,原来是debian系统,这个还真没安装过oracle,赶快去官方文档查找安装手册,居然没有,只能按照linux的安装啦!

1.安装vncserver

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

如果报:E: Unable to locate package  vnc4server 错误,

则执行root@db100:/etc/apt#apt-get update后,

重新执行root@db100:/etc/apt#apt-get install vnc4server

输入vnc密码:终端输入  vncpasswd  ,提示输入密码即可

配置vncserver自动启动:

vi /etc/init.d/vncserver

#! /bin/sh
export USER="root"
export PATH="/usr/local/bin:/usr/bin:/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

 

保存,设置为可执行,并加入到服务列表

chmod +x /etc/init.d/vncserver
update-rc.d vncserver defaults 98

 

2.安装rpm,unzip等oracle需要的包

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

 

3.建立oracle用户和组

 addgroup oinstall
 addgroup dba
 addgroup nobody
 useradd -g oinstall -G dba -p oracle -s /bin/bash -d /home/oracle -m oracle
 usermod -g nobody nobody

linux

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template