
更多数据库资源请访问 美河学习在线 www.eimhe.com
Centos7.6 下有界面化安装
Linux 常用命令:
Find / -name ‘xxx’ #查找文件
Vi 编辑器里查找关键词: 按 / 键,小写 n 向下查找,N 向上查找;
1、下载 Oracle 安装包:
linux.x64_11gR2_database_1of2.zip 和 linux.x64_11gR2_database_2of2.zip ,可以下载到本地,
通过 ftp 服务上传到 Linux 系统(参考 CentOS7 FTP 服务器搭建),也可以使用 Linux 系统的
wget 命令,下载文件包;
或者到我个人百度网盘永久分享上下载:
链接:https://pan.baidu.com/s/1jiwk3gCqTODxQY06cMrwYQ
提取码:dmh4
2、创建运行 oracle 数据库的系统用户和用户组:
用 Root 账号登录,运行下面指令,创建所需要用户和用户组;
groupadd oinstall #创建用户组 oinstall
groupadd dba #创建用户组 dba
useradd -g oinstall -g dba -m oracle #创建 oracle 用户,并加入到 oinstall 和 dba 用户组
groups oracle #查询用户组是否授权成功
passwd oracle #设置用户 oracle 的登陆密码,不设置密码,
在 CentOS 的图形登陆界面没法登陆
id oracle #查看新建的 oracle 用户
[oracle@centos7 ~]$ su
Password:
[root@centos7 oracle]# groupadd oinstall
[root@centos7 oracle]# groupadd dba
[root@centos7 oracle]# groups oracle
oracle : oracle
[root@centos7 oracle]# passwd oracle
Changing password for user oracle.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
[root@centos7 oracle]# id oracle
uid=1000(oracle) gid=1000(oracle) groups=1000(oracle)
[root@centos7 oracle]#
评论