Oracle 单实例 2个service的问题

[oracle@PD admin]$ ps -ef | grep smon
oracle    1917     1  0 Aug21 ?        00:33:51 ora_smon_podinndb
oracle   22659 22448  0 08:03 pts/2    00:00:00 grep smon
[oracle@PD admin]$ lsnrctl status

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 18-NOV-2016 08:03:43

copyright (c) 1991,2009,Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.2.25)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date                21-AUG-2016 19:34:44
Uptime                    88 days 12 hr. 28 min. 59 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/PD/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.2.25)(PORT=1521)))
Services Summary...
Service "NCDB" has 2 instance(s).
  Instance "podinndb",status UNKNowN,has 1 handler(s) for this service...
  Instance "podinndb",status READY,has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
  Instance "podinndb",has 1 handler(s) for this service...
Service "podinndb" has 1 instance(s).
  Instance "podinndb",has 1 handler(s) for this service...
The command completed successfully
[oracle@PD admin]$ sqlplus / as sysdba

sql*Plus: Release 11.2.0.1.0 Production on Fri Nov 18 08:03:44 2016

copyright (c) 1982,Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning,Oracle Label Security,OLAP,Data Mining,Oracle Database Vault and Real Application Testing options

sql> show parameter service;

NAME				     TYPE	 VALUE
------------------------------------ ----------- ------------------------------
service_names			     string	 ncdb,podinndb


*.audit_file_dest='/u01/app/oracle/admin/NCDB/adump'
*.audit_trail='db'
*.compatible='11.2.0.0.0'
*.control_files='/u01/app/oracle/oradata/NCDB/controlfile/o1_mf_9z8tkd80_.ctl','/u01/app/oracle/flash_recovery_area/NCDB/controlfile/o1_mf_9z8tkd99_.ctl'
*.db_block_size=8192
b_create_file_dest='/u01/app/oracle/oradata'
*.db_domain=''
*.db_name='NCDB'
*.db_recovery_file_dest='/u01/app/oracle/flash_recovery_area'
*.db_recovery_file_dest_size=5218762752
*.diagnostic_dest='/u01/app/oracle'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
*.job_queue_processes=1000
*.log_archive_dest_1='location=/archive'
*.log_archive_dest_state_1='ENABLE'
*.log_archive_format='arch_%t_%s_%r.arc'
*.memory_target=15458472960
*.open_cursors=1000
*.processes=1000
*.remote_login
_passwordfile='EXCLUSIVE'
*.service_names='ncdb,podinndb'
*.undo_tablespace='UNDOTBS1'

nc2012/xxxxxxxxx 


2个服务名,不同业务可以连接不同的业务名这种


sqlplus  nc2012/xxxxxxxxx @192.168.2.25:1521/ncdb



sqlplus 直接带service连接:
[oracle@PD dbs]$ sqlplus  nc2012/xxxxxxxxx@192.168.2.25:1521/ncdb



sql> show parameter service;

NAME				     TYPE	 VALUE
------------------------------------ ----------- ------------------------------
service_names			     string	 ncdb,podinndb
sql> exit

相关文章

Java Oracle 结果集是Java语言中处理数据库查询结果的一种方...
Java AES和Oracle AES是现代加密技术中最常使用的两种AES加密...
Java是一种广泛应用的编程语言,具备可靠性、安全性、跨平台...
随着移动互联网的发展,抽奖活动成为了营销活动中不可或缺的...
Java和Oracle都是在计算机领域应用非常广泛的技术,他们经常...
Java 是一门非常流行的编程语言,它可以运行于各种操作系统上...