问题描述:在操作系统登录数据库时,由于忘记了sys密码,重新修改的sys密码包含@符号,登录时报错,

ORA-12154: TNS:could not resolve the connect identifier specified

要使用在线恢复恢复DG,所以要连接到主库测试tns的连通情况

备库上验证:

[2021/4/23 20:51:13] [oracle@PEKPBSDIHDBP02 dbs]$ sqlplus "sys/elcarO@321qwe"@ORCLDG1 as sysdba

[2021/4/23 20:51:14]

[2021/4/23 20:51:14] SQL*Plus: Release 11.2.0.4.0 Production on Fri Apr 23 20:44:06 2021

[2021/4/23 20:51:14]

[2021/4/23 20:51:14] Copyright (c) 1982, 2013, Oracle.  All rights reserved.

[2021/4/23 20:51:14]

[2021/4/23 20:52:34] ERROR:

[2021/4/23 20:52:34] ORA-12154: TNS:could not resolve the connect identifier specified

登录密码包含@,在界面登录需要转义

主库上验证:

[2021/4/23 20:55:11] [oracle@PEKPBSDIHDBP02 dbs]$ sqlplus sys/\"elcarO@321qwe\"@orcl_stb as sysdba

[2021/4/23 20:55:11]

[2021/4/23 20:55:11] SQL*Plus: Release 11.2.0.4.0 Production on Fri Apr 23 20:48:03 2021

[2021/4/23 20:55:11]

[2021/4/23 20:55:11] Copyright (c) 1982, 2013, Oracle.  All rights reserved.

[2021/4/23 20:55:11]

[2021/4/23 20:55:11]

[2021/4/23 20:55:11] Connected to:

[2021/4/23 20:55:11] Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

[2021/4/23 20:55:11] With the Partitioning, OLAP, Data Mining and Real Application Testing options

转义写法:sqlplus sys/\"密码\"@tnsname

ORA-12154: TNS:could not resolve the connect identifier specified--sys密码包含@符号的更多相关文章

  1. Oracle案例09——ORA-12154: TNS:could not resolve the connect identifier specified

    DG处理的问题还是蛮多的,但这次遇到一个比较奇葩的事情,表面配置.网络都没啥问题,但主备的同步始终有问题,经过多次调整参数.重新部署问题依旧,最终还是求助mos问题得以解决,现将处理过程记录如下: 一 ...

  2. EF:Oracle.DataAccess.Client.OracleException: ORA-12154: TNS:could not resolve the connect identifier specified

    报告错误:Oracle.DataAccess.Client.OracleException: ORA-12154: TNS:could not resolve the connect identifi ...

  3. PLSQL 错误问题:ora-12154:TNS:could not resolve the connect identifier

    错误问题: ORA-12154: TNS:could not resolve the connect identifier specified 即无法解析指定的连接,这说明缺少了一个环境变量,TNS_ ...

  4. PL/SQL- ora-12154 '' TNS:could not resolve the connect identifier specified'

    出现如上情况在使用pl/sql连接oracle服务器时很常见,问题出现的方式也很多 最终问题还是pl/sql在读取NETWORK\ADMIN\tnsnames.ora是配置的内容时解析错误 也就是说t ...

  5. PL/SQL Developer报错 ORA-12154:tns:could not resolve the connect identifier specified

    PL/SQL Developer使用预先配置数据库报错 ORA-12154:tns:could not resolve the connect identifier specified. 情况描述:我 ...

  6. 在linux上使用impdp命令时提示ORA-12154: TNS:could not resolve the connect identifier specified的问题

    今天在一台linux服务器上用impdp命令导入dmp文件时出现了错误: ORA: TNS:could not resolve the connect identifier specified 我使用 ...

  7. ORA-12154: TNS:could not resolve the connect identifier specified

    场景: .Net程序无法连接到数据库 现象: 2015/8/26 11:02:03 ORA-12154: TNS:could not resolve the connect identifier sp ...

  8. plsql developer连接Oracle报错ORA-12154: TNS:could not resolve the connect identifier specified

    今日更改Oracle网络配置文件后使用plsql developer 尝试连接到Oracle出现报错 ORA-12154: TNS:could not resolve the connect iden ...

  9. PL/SQL developer连接oracle出现“ORA-12154:TNS:could not resolve the connect identifier specified”问题的解决

    转载请注明出处:http://blog.csdn.net/dongdong9223/article/details/50728536 本文出自[我是干勾鱼的博客] 使用PL/SQL developer ...

  10. Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 我同事遇到的问题。 username/

    Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 我同事遇到的问题. userna ...

随机推荐

  1. openwrt扩容

    方法二.三记得先使用Linux系统打开 GParted -- Download 方法三偏移地址获取: 1. 运行的openwrt安装losetup 2. 安装完毕后执行:losetup 获取偏移地址. ...

  2. vue3 技术浏览 收藏

    Vue3教程:Vue3.0 + Vant3.0 搭建种子项目 链接:https://www.cnblogs.com/han-1034683568/p/13875663.html

  3. Redis工具类 单机+集群

    package com.irdstudio.basic.framework.redis.redisutil; import org.springframework.dao.DataAccessExce ...

  4. Manage your references to .Net assemblies Dynamics 365 for Operations VS projects

    (Dynamics 365 for Operations was previously known as the New Dynamics AX) Dynamics 365 for Operation ...

  5. linux 部署轻量级堡垒机Next Terminal

    对比 类似的开源堡垒机有 Teleport,Jumpserver,Next Terminal等等. Teleport 安全性最好,较轻量,但是对被管理资产不透明,纳管前需要双向认证,在资产设备上需额外 ...

  6. 使用Kong网关API接口配置

    一.Upstream1.创建Upstream: curl -i -X POST IPAddress:8001/upstreams -d 'name=upstream-test' -d 'slots=1 ...

  7. 虚拟机文件丢失,虚拟机无法启动,通过xx-flat.vmdk和xx-delta.vmdk恢复虚拟机

    突然掉电,导致虚拟机文件夹里面的文件丢失,只剩余-flat.vmdk和-delta.vmdk文件,其他文件全部丢失,文件格式原本为"文件"格式.新建虚拟机无法直接使用此文件夹里面的 ...

  8. 使用python来搭建一个简易的文件下载环境以及用droopy来实现一个文件上传环境

    ubuntu在安装的时候一般都是自带python环境的,大家可以查看一下查看demo如下 用于共享的命令很简单python2: python -m SimpleHTTPServer 8888pytho ...

  9. Linux centos7.6 安装 docker

    1.安装官网教程 https://docs.docker.com/engine/install/centos/ 2.卸载之前的 docker sudo yum remove docker \ dock ...

  10. bind、call、apply区别

    bind.call.apply都是用来改变函数内部this指向的方法,使用上仅有细微差别 一.代码 function person(p1, p2, p3) { console.log('this: ' ...