zoukankan      html  css  js  c++  java
  • 052-132

    The tnsnames.ora file has an entry for the service alias ORCL as follows:
    ORCL =
    ( DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.156.24.216)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl.oracle.com)
    ) )
    The TNSPING command executes successfully when tested with ORCL, but you are not able to connect to the database instance with the following command:
    SQL> CONNECT scott/tiger@orcl
    What could be the reason for this?
    A.The listener is not running on the database node.
    B.The TNS_ADMIN environmental variable is set to a wrong value.
    C.The orcl.oracle.com database service is not registered with the listener.
    D.The DEFAULT_DOMAIN parameter is set to a wrong value in the sqlnet.ora file.

    如果 listener 没有启动,则 tnsping 不会成功,所以 A 错
    TNS_ADMIN 主要应用于一台主机上有多个版本的数据库,指定文件的路径,所以 B 错
    当 SERVICE_NAME 填写不正确时,你可以 tnsping 通数据库实例,但是却无法连接到数据库实例,因为你填写错的SERVICE_NAME 并没有注册到 LISTENER 当中,C 正确
    DEFAULT_DOMAIN 主要是设定客户端解析名字的域 ,D 错误

  • 相关阅读:
    天气查看
    省市区三级联动
    AJAX动态加载评论
    jquery插件实现分页
    obj-fit
    js使用正则表达式验证身份证格式
    弹性图片
    浏览器兼容问题
    Python3基础 __getattr__ 访问不存在的属性时,新增提示功能
    Python3基础 __delattr__ 在一个属性被删除时的行为
  • 原文地址:https://www.cnblogs.com/Babylon/p/8032993.html
Copyright © 2011-2022 走看看