在Debian 上安装 Oracle 11gR2
今天总监要我帮忙安装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

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

The article discusses using MySQL's ALTER TABLE statement to modify tables, including adding/dropping columns, renaming tables/columns, and changing column data types.

Article discusses configuring SSL/TLS encryption for MySQL, including certificate generation and verification. Main issue is using self-signed certificates' security implications.[Character count: 159]

Article discusses popular MySQL GUI tools like MySQL Workbench and phpMyAdmin, comparing their features and suitability for beginners and advanced users.[159 characters]

Article discusses strategies for handling large datasets in MySQL, including partitioning, sharding, indexing, and query optimization.

The article discusses dropping tables in MySQL using the DROP TABLE statement, emphasizing precautions and risks. It highlights that the action is irreversible without backups, detailing recovery methods and potential production environment hazards.

The article discusses creating indexes on JSON columns in various databases like PostgreSQL, MySQL, and MongoDB to enhance query performance. It explains the syntax and benefits of indexing specific JSON paths, and lists supported database systems.

Article discusses securing MySQL against SQL injection and brute-force attacks using prepared statements, input validation, and strong password policies.(159 characters)

Article discusses using foreign keys to represent relationships in databases, focusing on best practices, data integrity, and common pitfalls to avoid.
