Oracle Easy Connect Naming method
在Oracle 10g中,Oracle還提供了一種稱為“Oracle Easy Connect Naming method"
的連線方式。這種方法是對hostnaming method的一種改進,因為hostnaming method
只能使用預設的1521 port,而Oracle Easy Connect Naming method則可以指定自己的
port.
配置Oracle Easy Connect Naming method基本要求:
1)Oracle 10g Net Serrices必須安裝在client端
2)在服務端和客戶端必須同時支援TCP/IP協議
3)使用這種連線方式,不支援比較高階的連線符,比如連線池和外部過程
呼叫(external procedure calls)
語法比較簡單:只需要按照如下的格式指定HOST:PORT/SERVICE_NAME就可以了。
但如果通過url連線的話,
需要在@後面增加2個反斜槓"//"
比如:
sqlplus study/study@localhost:1522/study
sqlplus study/study@//10.10.10.1/study
備註:
1)如果使用預設port,可以不指定:PORT部分,直接HOST/SERVICE_NAME
2)在10g中當安裝了Oracle Net後,這種連線方式被自動配置
3)對應sqlnet.ora中names.diretory_path中的方法EZCONNECT
NAMES.DIRECTORY_PATH= (TNSNAMES,EZCONNECT,HOSTNAME)
下面測試一下看看。
C:sqlplus study/study@127.0.0.1:1521/study
SQL*Plus: Release 10.2.0.1.0 - Production on 星期一 6月 11 16:52:44 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
連線到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> exit
從 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options 斷開
C:sqlplus study/study@127.0.0.1/study
SQL*Plus: Release 10.2.0.1.0 - Production on 星期一 6月 11 16:52:51 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
連線到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> exit
從 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options 斷開
C:
注:STUDY是Service_name
http://tomszrp.itpub.net/post/11835/294062
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12361284/viewspace-620303/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【EZCONNECT】 sqlnet.ora檔案中EZCONNECT引數與Easy Connect Naming Method方法SQL
- oracle 11.2.0.4 使用easy connect naming定義db link淺析之一Oracle
- JNDI naming exception: Naming exception trying to connect to: t3://localhosException
- Oracle connect byOracle
- Laravel connect oracleLaravelOracle
- Oracle “CONNECT BY” 使用Oracle
- oracle connect by用法Oracle
- Oracle Start with ....Connect ByOracle
- Naming Database ObjectsDatabaseObject
- START WITH and CONNECT BY in Oracle SQLOracleSQL
- oracle中start with connect by priorOracle
- oracle的connect by語句Oracle
- 【函式】Oracle “CONNECT BY” 使用函式Oracle
- Oracle Connect By Prior 詳解Oracle
- oracle學習方法learn method系列一Oracle
- Linux Use ODBC Connect OracleLinuxOracle
- Oracle start with connect by PostgreSQL recursive cteOracleSQL
- Oracle Connect by 單行變多行Oracle
- PostgreSQL Oracle 相容性 - connect by 2SQLOracle
- WebMethod connect to Oracle10g RACWebOracle
- Oracle Transparent GateWay connect to MYSQL fix BUGOracleGatewayMySql
- Oracle禁止connect / as sysdba方式登入Oracle
- Unable to Connect to Database with Oracle Client Software for WindowsDatabaseOracleclientWindows
- Talk about the naming of spring bean namesSpringBean
- SQL Server Service Pack Model and Naming RuleSQLServer
- Oracle的SYS_CONNECT_BY_PATH函式Oracle函式
- Oracle 樹操作(select…start with…connect by…prior)Oracle
- ORACLE 內建函式和connect by使用Oracle函式
- Oracle 9201下connect by的bugOracle
- 【PL/SQL】Oracle--樹的使用(Connect By)SQLOracle
- HP-UX Naming guidelinesUXGUIIDE
- [轉載] Oracle:start with...connect by子句的用法Oracle
- Oracle中 connect by prior 遞迴演算法Oracle遞迴演算法
- Oracle中start with...connect by prior子句用法.docOracle
- Oracle ADG Heartbeat failed to connect to standby故障案例OracleAI
- Oracle中的Connect、session、process的區別OracleSession
- oracle 10.2.0.3對USER收回CONNECT及RESOURCEOracle
- Oracle 資料庫優化的R方法(Method R)(zt)Oracle資料庫優化