Linux
Nginx,MySQL,PHP/Python

Centos7安装Oracle19c

下载地址如下:

https://edelivery.oracle.com

创建用户

[root@test ~]# groupadd -g 54321 oinstall
[root@test ~]# groupadd -g 54322 dba
[root@test ~]# groupadd -g 54323 oper
[root@test ~]# groupadd -g 54324 backupdba
[root@test ~]# groupadd -g 54325 dgdba
[root@test ~]# groupadd -g 54327 asmdba
[root@test ~]# groupadd -g 54326 kmdba
[root@test ~]# groupadd -g 54330 racdba
[root@test ~]# useradd -g oinstall -G dba,asmdba,backupdba,dgdba,kmdba,racdba,oper oracle19
[root@test ~]# passwd oracle19
Changing password for user oracle19.
New password: oracle
BAD PASSWORD: The password is shorter than 8 characters
Retype new password: oracle
passwd: all authentication tokens updated successfully.

创建目录

[root@test ~]# mkdir -p /u01/app/oracle19/product/19.3.0/db_1
[root@test ~]# chown -R oracle19:oinstall /u01/app/oracle19/

修改环境变量

[root@test ~]# su - oracle19
Last login: Fri Mar 13 12:16:34 CST 2020 on pts/0
[oracle19@test ~]$ vi .bash_profile
export ORACLE_BASE=/u01/app/oracle19
export ORACLE_HOME=//u01/app/oracle19/product/19.3.0/db_1
export ORACLE_SID=test
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
[oracle19@test ~]$ source .bash_profile

解压安装包

[oracle19@test db_1]$ cd /u01/app/oracle19/product/19.3.0/db_1/
[oracle19@test db_1]$ unzip V982063-01.zip

vnc打开图形化

[oracle19@test ~]$ vncserver

You will require a password to access your desktops.

Password:
Verify:
Would you like to enter a view-only password (y/n)? n
A view-only password is not used
xauth: file /home/oracle19/.Xauthority does not exist

New 'test:2 (oracle19)' desktop is test:2

Creating default startup script /home/oracle19/.vnc/xstartup
Creating default config /home/oracle19/.vnc/config
Starting applications specified in /home/oracle19/.vnc/xstartup
Log file is /home/oracle19/.vnc/test:2.log

第一个窗口,只安装数据库软件,点击下一步

单实例数据库安装,下一步

企业版,下一步

下一步

自动运行配置脚本

赞(0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

LNMP社群 不仅仅是技术

关于我们联系我们