zoukankan      html  css  js  c++  java
  • Linux下Oracle多个实例之间的操作

    ---恢复内容开始---

    Last login: Tue May  7 14:26:48 2013 from 128.8.28.124

    [root@enfo212 ~]# su - oracle

    [oracle@enfo212 ~]$ pwd

    /home/oracle

    [oracle@enfo212 ~]$ cd $ORACLE_HOME/network/admin

    [oracle@enfo212 admin]$ ll

    total 20

    -rw-r--r-- 1 oracle oinstall 1484 Jan 30 16:25 listener.ora

    drwxr-xr-x 2 oracle oinstall 4096 Dec 11 10:07 samples

    -rw-r--r-- 1 oracle oinstall  187 May  9  2007 shrept.lst

    -rw-r--r-- 1 oracle oinstall  218 Dec 11 10:10 sqlnet.ora

    -rw-r--r-- 1 oracle oinstall 1058 Jan 30 16:26 tnsnames.ora

    [oracle@enfo212 admin]$ cat tnsnames.ora

    # tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0/db1/network/admin/tnsnames.ora

    # Generated by Oracle configuration tools.

    ENFORC =

      (DESCRIPTION =

        (ADDRESS_LIST =

          (ADDRESS = (PROTOCOL = TCP)(HOST = 128.8.28.212)(PORT = 1523))

        )

        (CONNECT_DATA =

          (SERVICE_NAME = enforc)

        )

      )

    ENFODW =

      (DESCRIPTION =

        (ADDRESS_LIST =

          (ADDRESS = (PROTOCOL = TCP)(HOST = 128.8.28.212)(PORT = 1522))

        )

        (CONNECT_DATA =

          (SERVICE_NAME = enfodw)

        )

      )

    ENFOCOG =

      (DESCRIPTION =

        (ADDRESS_LIST =

          (ADDRESS = (PROTOCOL = TCP)(HOST = 128.8.28.212)(PORT = 1524))

        )

        (CONNECT_DATA =

          (SERVICE_NAME = cognos)

        )

      )

    XINTUO =

      (DESCRIPTION =

        (ADDRESS_LIST =

          (ADDRESS = (PROTOCOL = TCP)(HOST = 128.8.28.212)(PORT = 1525))

        )

        (CONNECT_DATA =

          (SERVICE_NAME = xintuo)

        )

      )

    ENFO_orcl =

      (DESCRIPTION =

        (ADDRESS_LIST =

          (ADDRESS = (PROTOCOL = TCP)(HOST =128.8.28.41)(PORT = 1521))

        )

        (CONNECT_DATA =

          (SERVICE_NAME = orcl)

        )

      )

    [oracle@enfo212 admin]$ sqlplus /nolog

    SQL*Plus: Release 11.2.0.1.0 Production on Tue May 7 14:37:17 2013

    Copyright (c) 1982, 2009, Oracle.  All rights reserved.

    SQL> conn enfo_ods/enfo_ods@enfodw;

    Connected.

    SQL> select  count(*) from tsubject;

      COUNT(*)

    ----------

         39495

    SQL> conn kingdee/kingdee@xintuo;

    Connected.

    SQL> exit;

    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production

    With the Partitioning, OLAP, Data Mining and Real Application Testing options

    [oracle@enfo212 admin]$ echo $ORACLE_SID;

    xintuo

    [oracle@enfo212 admin]$ export ORACLE_SID=enfodw;

    [oracle@enfo212 admin]$ sqlplus /nolog;

    SQL*Plus: Release 11.2.0.1.0 Production on Tue May 7 14:40:26 2013

    Copyright (c) 1982, 2009, Oracle.  All rights reserved.

    SQL> conn enfo_ods/enfo_ods;

    Connected.

    SQL> select  count(*) from tsubject;

      COUNT(*)

    ----------

         39495

    SQL>

    ---恢复内容结束---

    英文名:kingwang & Email :kingstudy@vip.qq.com
  • 相关阅读:
    css--display详解
    关于overflow:hidden的作用
    float 应用
    flex 布局
    CSS+DIV布局中absolute和relative的区别
    线程和进程的区别是什么?
    .NET中读写SQL Server数据库需要用到哪些类?作用是什么?
    C# CookieHelper
    git pull/push代码 每次都要输入账户名和密码的解决方法
    git拉取远程分支到本地
  • 原文地址:https://www.cnblogs.com/wxjnew/p/3065108.html
Copyright © 2011-2022 走看看