---恢复内容开始---
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>
---恢复内容结束---