[oracle@localhost admin]$ tnsping 192.168.18.201:1521/testTNS Ping Utility for Linux: Version 11.2.0.4.0 - Production on 14-JUN-2025 02:01:16Copyright (c) 1997, 2013, Oracle. All rights reserved.Used parameter files:
/u01/app/oracle/product/11.2.0/db/network/admin/sqlnet.oraUsed EZCONNECT adapter to resolve the alias
Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=test))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.18.201)(PORT=1521)))
OK (0 msec)
[oracle@localhost admin]$ tnsping 192.168.16.137:1521/testTNS Ping Utility for Linux: Version 11.2.0.4.0 - Production on 14-JUN-2025 02:01:24Copyright (c) 1997, 2013, Oracle. All rights reserved.Used parameter files:
/u01/app/oracle/product/11.2.0/db/network/admin/sqlnet.oraUsed EZCONNECT adapter to resolve the alias
Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=test))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.16.137)(PORT=1521)))
OK (10 msec)
远程连接测试
[oracle@localhost admin]$ sqlplus system/123@192.168.16.137:1521/testSQL*Plus: Release 11.2.0.4.0 Production on Sat Jun 14 02:02:08 2025Copyright (c) 1982, 2013, Oracle. All rights reserved.Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing optionsSQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@localhost admin]$ sqlplus system/123@192.168.18.201:1521/testSQL*Plus: Release 11.2.0.4.0 Production on Sat Jun 14 02:02:17 2025Copyright (c) 1982, 2013, Oracle. All rights reserved.Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing optionsSQL>