本文记录了自己使用他人方法连接Oracle数据库的全过程。
1、材料准备
操作系统:CentOS7
Oracle: 19C
远程连接工具:Xshell7
Oracle安装包:https://pan.baidu.com/s/1DWeeKgz7tObZ4FWkYnei6Q?pwd=aaaa
提取码:aaaa依赖包rpm:Oracle Linux 7 (x86_64) Latest | Oracle, Software. Hardware. Complete.
注:对此教程进行一系列的补全
2 、注意点
2.1绑定主机名和IP映射,这里的ip地址是自己的切勿无脑粘贴
xxx.xxx.xxx.xxx oracle
2.2配置环境变量时要切换Oracle用户,安装包等都在oracle用户
2.3linux系统最好使用英文,使用中文会报错,图形化界面也会出问题,方法路径:Linux中如何切换中文英文_linux怎么调成全英文_iEdHu的博客-CSDN博客
也可以安装图形化界面时,使用指令:
LANG=en_US ./runInstaller
2.4报错如下
版本问题,修改如下,到db_1下cv
[oracle@oracle db_1]$export CV_ASSUME_DISTID=RHEL7.6
2.5 图形界面需要输入两个脚本,不要点的太快了,还有记得是root下。
2.6 设置用户名和密码, 如果忘了后续连不上xshell7
解决方法,修改sys密码,或者进入数据库再创建一个新的用户,用这个用户登录,具体流程:oracle命令大全_oracle常用命令大全_运维@小兵的博客-CSDN博客
其中,没有表空间,创建之时就不需要再加入后面那段
#创建用户db_test,密码为123456 create user db_test identified by 123456 ;
2.7 rlwrap安装路径
rlwarp下载地址_lrwrap报下载_Cplusplus_hjz的博客-CSDN博客
Releases · hanslub42/rlwrap (github.com)
2.8 执行rlwrapl流程中的./configure报错
configure: WARNING: No termcap nor curses library found
checking for readline in -lreadline... no
configure: error:
You need the GNU readline library(ftp://ftp.gnu.org/gnu/readline/ ) to build
this program!
解决方案:安装rlwrap-0.37.tar.gz报错You need the GNU readline library to build_ITPUB博客
2.9防火墙报错FirewallD is not running
需要打开防火墙,设置完再关闭,解决方案报错“FirewallD is not running”怎么办,如何解决?_路遥叶子的博客-CSDN博客