您的位置:首页 > 数据库 > Oracle

Linux使用记录(虚拟机中安装redhat并且安装Oracle数据库)

2017-04-27 15:22 531 查看
虚拟机安装

 

虚拟机系统安装
http://jingyan.baidu.com/article/48a42057bc8dd3a92425049f.html
 

虚拟机系统删除:
http://jingyan.baidu.com/article/27fa7326e64c8846f8271f8b.html
 

Linux系统下载:
https://linux.cn/article-4130-1.html
 

获取root权限:
http://jingyan.baidu.com/article/11c17a2c438f5ef446e39d89.html
方法:输入sudo passwd root并设置密码。

 

Putty连接虚拟机:

1.获取IP地址:命令ifconfig,如:192.168.247.131

2.开启ssh服务:

a) 检查ssh是否安装:rpm -qa |grep openssh

b) 如果没安装,使用命令安装:sudo apt-get install openssh-server

c) 确认sshserver是否启动:ps -e |grep ssh

有ssh-agent和sshd,说明启动了,如果只有ssh-agent,那么ssh-server还没启动,
需要/etc/init.d/ssh start,如果看到sshd那说明ssh-server已经启动了。

ssh-server配置文件位于/ etc/ssh/sshd_config,在这里可以定义SSH的服务端口,
默认端口是22,你可以自己定义成其他端口号,如222。然后重启SSH服务:sudo
/etc/init.d/ssh resart。

d) 使用putty工具,输入ip地址连接即可,第一次连接需要信任虚拟机秘钥。

 

设置主机与虚拟机共享文件:
http://jingyan.baidu.com/article/fb48e8be3a8e7e6e622e14e3.html
 

安装jdk:
https://jingyan.baidu.com/article/91f5db1bdb7ee41c7e05e373.html
 

安装Oracle数据库:
http://www.linuxidc.com/Linux/2015-03/115264.htm
 

安装tomcat:
http://blog.csdn.net/zhuying_linux/article/details/6583096/
  

 相关问题:

 

问题1:虚拟机中安装Ubuntu时报错:



解决方案:虚拟机中点击菜单“虚拟机”--设置--硬件--显示器--3D图形,将加速3D图形选项去除。

 

问题2:系统启动时提示,此问题暂时无需处理。

 


 

问题3:putty无法连接虚拟机。

解决方案:http://www.linuxdown.net/install/config/2015/1227/4205.html

 

问题4:使用sudo命令报错:oracle is not in the sudoers file.This incident will be
reported

解决方案:http://www.2cto.com/database/201302/189645.html

 

问题5:chown命令报错:

chown: cannot access ‘/data/downloads/database’: No such file or directory

解决方案:切换到root用户执行命令

或参考: http://askubuntu.com/questions/729998/chown-cannot-access-no-such-file-or-directory
 

问题6:xhost命令报错:

No protocol specified

xhost:  unable to open display ":0"

解决方案:切换至当前登录用户执行命令
http://blog.csdn.net/indexman/article/details/37738795
 

问题7:Oracle安装时报错:[INS-08109] Unexpected error occurred while validating
input at state 'getOOCMDetails'

  

问题8:Oracle安装检测缺失包

解决方案:apt-get install
包名

新问题:安装时,找不到源

解决方案:http://blog.csdn.net/rchm8519/article/details/48358249

  

Redhat

问题1.安装VMware tools时,报错,后使用yum安装perl继续报错

 


 

解决方案:http://blog.chinaunix.net/uid-27629443-id-5034262.html

   
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息