-bash-3.2$ 是oracle用户下的提示符
[[email protected] ~]# 是root用户下的提示符
#用root去修改oracle用户的密码123456
[[email protected] ~]# passwd oracle
Changing password for user oracle.
New UNIX password:
BAD PASSWORD: it is too simplistic/systematic
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[[email protected] ~]#
#redhat5关闭防火墙
[[email protected] yum.repos.d]# service iptables stop
===========================
遇到一些问题,如下。
监听原先是开的,我去关,关不了。后来Kill了,现在是开不动。
-bash-3.2$ ./lsnrctl stop
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 09-1月 -2020 03:10:56
Copyright (c) 1991, 2011, Oracle. All rights reserved.
正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
TNS-01190: 用户无权执行所请求的监听程序命令
-bash-3.2$
[[email protected] ~]# find / -name lsnrctl
/u01/app/oracle/product/11.2.0/xe/bin/lsnrctl
-bash-3.2$ ps -ef | grep -i listener
daemon 547 1 0 02:37 ? 00:00:00 /u01/app/oracle/product/11.2.0/xe/bin/tnslsnr LISTENER -inherit
oracle 1502 1158 0 03:09 pts/1 00:00:00 grep -i listener
用root去kill -9 547
-bash-3.2$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 09-1月 -2020 03:13:48
Copyright (c) 1991, 2011, Oracle. All rights reserved.
启动/u01/app/oracle/product/11.2.0/xe/bin/tnslsnr: 请稍候...
TNSLSNR for Linux: Version 11.2.0.2.0 - Production
System parameter file is /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
监听该对象时出错: (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
TNS-12555: TNS: 权限被拒绝
TNS-12560: TNS: 协议适配器错误
TNS-00525: 无足够权限以执行操作
Linux Error: 1: Operation not permitted
监听程序未能启动。请参阅上面的错误消息...
-bash-3.2$
启动listener遇TNS-12555/ TNS-12560 /TNS-00525错误处理
https://blog.csdn.net/ljunjie82/article/details/49404481
文章里说要
======================
现在看到是/var/tmp/.oracle文件夹或其下级文件夹的权限问题了。chmod -R 777 /var/tmp/.oracle
======================
[[email protected] ~]# ll /var/tmp/.oracle
total 12
srwxrwxrwx 1 daemon root 0 Jan 9 02:37 s#547.1
srwxrwxrwx 1 daemon root 0 Jan 9 02:37 s#547.2
srwxrwxrwx 1 daemon root 0 Jan 9 02:37 sEXTPROC_FOR_XE
[[email protected] ~]#
[[email protected] ~]#
[[email protected] ~]# chmod -R 777 /var/tmp/.oracle
[[email protected] ~]# ll /var/tmp/.oracle
total 12
srwxrwxrwx 1 daemon root 0 Jan 9 02:37 s#547.1
srwxrwxrwx 1 daemon root 0 Jan 9 02:37 s#547.2
srwxrwxrwx 1 daemon root 0 Jan 9 02:37 sEXTPROC_FOR_XE
[[email protected] ~]#
权限看上去没有改变啊,原来也是777,不知道为什么就解决了。
Oracle 监听器无法启动(TNS-12555,TNS-12560,TNS-00525)
https://www.cnblogs.com/xing901022/p/3895712.html
这篇文章好像有解释,但是我已经解决了,就没用到。
=============================================
#启动成功
-bash-3.2$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 09-1月 -2020 03:17:42
Copyright (c) 1991, 2011, Oracle. All rights reserved.
启动/u01/app/oracle/product/11.2.0/xe/bin/tnslsnr: 请稍候...
TNSLSNR for Linux: Version 11.2.0.2.0 - Production
System parameter file is /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
监听: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
监听: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
LISTENER 的 STATUS
------------------------
别名 LISTENER
版本 TNSLSNR for Linux: Version 11.2.0.2.0 - Production
启动日期 09-1月 -2020 03:17:43
正常运行时间 0 天 0 小时 0 分 0 秒
跟踪级别 off
安全性 ON: Local OS Authentication
SNMP OFF
默认服务 XE
监听程序参数文件 /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
监听程序日志文件 /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
监听端点概要...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
服务摘要..
服务 "PLSExtProc" 包含 1 个实例。
实例 "PLSExtProc", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
命令执行成功
-bash-3.2$
-bash-3.2$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 09-1月 -2020 03:18:59
Copyright (c) 1991, 2011, Oracle. All rights reserved.
正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
LISTENER 的 STATUS
------------------------
别名 LISTENER
版本 TNSLSNR for Linux: Version 11.2.0.2.0 - Production
启动日期 09-1月 -2020 03:17:43
正常运行时间 0 天 0 小时 1 分 15 秒
跟踪级别 off
安全性 ON: Local OS Authentication
SNMP OFF
默认服务 XE
监听程序参数文件 /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
监听程序日志文件 /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
监听端点概要...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=8080))(Presentation=HTTP)(Session=RAW))
服务摘要..
服务 "PLSExtProc" 包含 1 个实例。
实例 "PLSExtProc", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
服务 "XE" 包含 1 个实例。
实例 "XE", 状态 READY, 包含此服务的 1 个处理程序...
服务 "XEXDB" 包含 1 个实例。
实例 "XE", 状态 READY, 包含此服务的 1 个处理程序...
命令执行成功
-bash-3.2$
=============================================
监听开起来了。用plsql dev连接Oracle服务器时报错:
“ORA-12514监听程序当前无法识别连接描述符中请求的服务错误”
解决:数据库实例XE的实例描述,一定要XE!!!!
TEST_DB_146XE_yebl =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.241.146)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = XE)
)
)
原文地址:https://www.cnblogs.com/baofengc/p/12170620.html