zoukankan      html  css  js  c++  java
  • oracle的一些常用命令

    一、tnsping:

      oracle客户端,用来检查监听器连接状态的命令。格式:tnsping  <address> [ <count> ]  示例如下:

    1 C:\Documents and Settings\Administrator>tnsping orcl
    2 TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 28-3月 -2012 12:17:55
     3 已使用的参数文件:
    4 D:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
    7 已使用 TNSNAMES 适配器来解析别名
    8 Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = pc-wc)(P
    9 ORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl)))
    10 OK (20 毫秒)
    11
    12 C:\Documents and Settings\Administrator>tnsping xxxx
    14 TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 28-3月 -
    15 2012 12:18:04
    19 已使用的参数文件:
    20 D:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
    22 TNS-03505: 无法解析名称

    二、lsnrctl :

        Oracle Server端监听器启动、停止、查看状态命令。

      利用:lsnrctl status 查看,有如下主要内容

     1   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=pc-wc)(PORT=1521)))
    2 服务摘要..
    3 服务 "PLSExtProc" 包含 1 个例程。
    4 例程 "PLSExtProc", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
    5 服务 "a_b" 包含 1 个例程。
    6 例程 "ab", 状态 READY, 包含此服务的 1 个处理程序...
    7 服务 "a_b_XPT" 包含 1 个例程。
    8 例程 "ab", 状态 READY, 包含此服务的 1 个处理程序...
    9 服务 "abXDB" 包含 1 个例程。
    10 例程 "ab", 状态 READY, 包含此服务的 1 个处理程序...
    11 服务 "abcd_efgh" 包含 1 个例程。
    12 例程 "abcdefgh", 状态 READY, 包含此服务的 1 个处理程序...
    13 服务 "abcd_efgh_XPT" 包含 1 个例程。
    14 例程 "abcdefgh", 状态 READY, 包含此服务的 1 个处理程序...
    15 服务 "abcdefghXDB" 包含 1 个例程。
    16 例程 "abcdefgh", 状态 READY, 包含此服务的 1 个处理程序...
    17 服务 "orcl" 包含 1 个例程。
    18 例程 "orcl", 状态 READY, 包含此服务的 1 个处理程序...
    19 服务 "orclXDB" 包含 1 个例程。
    20 例程 "orcl", 状态 READY, 包含此服务的 1 个处理程序...
    21 服务 "orcl_XPT" 包含 1 个例程。
    22 例程 "orcl", 状态 READY, 包含此服务的 1 个处理程序...
    23 命令执行成功
    24 //标红色的,代表自己所建立的数据库,其他的为系统添加
    25 C:\Documents and Settings\Administrator>





  • 相关阅读:
    上传——断点续传之实践篇(1)
    上传——断点续传之实践篇
    上传——断点续传之理论篇
    overrides报错:TypeError: Highway.forward: `input` must be present
    InvalidVersionSpecError: Invalid version spec: =2.7
    qt.qpa.plugin: Could not find the Qt platform plugin "windows" in "" This application failed to start because no Qt platform plugin could be initialized.
    匈牙利算法解决两个坐标列表匹配的问题
    pytorch-summary 针对DenseNet生成摘要报错: AttributeError: 'list' object has no attribute 'size'
    使用sklearn的pca模块fit数据报错“ValueError: array must not contain infs or NaNs”
    Nginx+rtmp构建时,localhost/stat显示为空白
  • 原文地址:https://www.cnblogs.com/haore147/p/2421040.html
Copyright © 2011-2022 走看看