透明閘道器一些特殊場景的配置
問題1:資料庫不方便安裝透明閘道器軟體怎麼辦?
解決方案:在其他資料庫伺服器上安裝透明閘道器軟體,再在本機上新增透明閘道器伺服器的tns別名即可
192.168.21.16不方便安裝透明閘道器伺服器,直接在一臺虛擬機器192.168.128.163上安裝透明閘道器(指向IP為172.16.50.162埠為1433的RPT資料庫),192.168.21.16新增指向192.168.128.163監聽的tns別名資訊即可
192.168.128.163安裝透明閘道器
透明閘道器配置如下
[oracle@localhost admin]$ pwd
/u01/app/oracle/product/11.2.0/db_1/dg4msql/admin
[oracle@localhost admin]$ cat initdg4msql.ora
HS_FDS_CONNECT_INFO=[172.16.50.162]:1433//RPT
HS_FDS_TRACE_LEVEL=OFF
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
靜態監聽配置如下
[oracle@localhost admin]$ pwd
/u01/app/oracle/product/11.2.0/db_1/network/admin
[oracle@localhost admin]$ cat listener.ora
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.128.163)(PORT = 1521))
)
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(ORACLE_HOME= /u01/app/oracle/product/11.2.0/db_1)
(SID_NAME = dg4msql)
(PROGRAM = dg4msql)
)
)
ADR_BASE_LISTENER = /u01/app/oracle
監聽資訊如下
[oracle@localhost admin]$ lsnrctl status|grep dg4
Service "dg4msql" has 1 instance(s).
Instance "dg4msql", status UNKNOWN, has 1 handler(s) for this service...
192.168.21.16新增如下tns資訊
sqlserver162 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.128.163)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = dg4msql)
)
(HS=OK)
)
問題2:$ORACLE_HOME和透明閘道器的安裝路徑不一樣,怎麼辦?
解決方案:透明閘道器的監聽配置裡面$ORACLE_HOME寫成實際安裝路徑
[oratst@hqerp1 TST_hqerp1]$ echo $ORACLE_HOME
/u01/TST/db/tech_st/11.2.0
[oratst@hqerp1 ~]$ ll /u01/TST/db/tech_st/gatways/dg4msql/admin/initdg4msql.ora
-rw-r--r-- 1 oratst dba 362 Apr 5 15:31 /u01/TST/db/tech_st/gatways/dg4msql/admin/initdg4msql.ora
靜態監聽的關鍵配置如下
TST =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.31)(PORT = 1571))
)
)
SID_LIST_TST =
(SID_LIST =
(SID_DESC =
(ORACLE_HOME= /u01/TST/db/tech_st/11.2.0)
(SID_NAME = TST)
)
(SID_DESC =
(ORACLE_HOME= /u01/TST/db/tech_st/gatways)
(SID_NAME = dg4msql)
(PROGRAM = dg4msql)
)
)
Lsnrctl status tst顯示如下資訊
Service "TST" has 1 instance(s).
Instance "TST", status UNKNOWN, has 1 handler(s) for this service...
Service "dg4msql" has 1 instance(s).
Instance "dg4msql", status UNKNOWN, has 1 handler(s) for this service...
解決方案:在其他資料庫伺服器上安裝透明閘道器軟體,再在本機上新增透明閘道器伺服器的tns別名即可
192.168.21.16不方便安裝透明閘道器伺服器,直接在一臺虛擬機器192.168.128.163上安裝透明閘道器(指向IP為172.16.50.162埠為1433的RPT資料庫),192.168.21.16新增指向192.168.128.163監聽的tns別名資訊即可
192.168.128.163安裝透明閘道器
透明閘道器配置如下
[oracle@localhost admin]$ pwd
/u01/app/oracle/product/11.2.0/db_1/dg4msql/admin
[oracle@localhost admin]$ cat initdg4msql.ora
HS_FDS_CONNECT_INFO=[172.16.50.162]:1433//RPT
HS_FDS_TRACE_LEVEL=OFF
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
靜態監聽配置如下
[oracle@localhost admin]$ pwd
/u01/app/oracle/product/11.2.0/db_1/network/admin
[oracle@localhost admin]$ cat listener.ora
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.128.163)(PORT = 1521))
)
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(ORACLE_HOME= /u01/app/oracle/product/11.2.0/db_1)
(SID_NAME = dg4msql)
(PROGRAM = dg4msql)
)
)
ADR_BASE_LISTENER = /u01/app/oracle
監聽資訊如下
[oracle@localhost admin]$ lsnrctl status|grep dg4
Service "dg4msql" has 1 instance(s).
Instance "dg4msql", status UNKNOWN, has 1 handler(s) for this service...
192.168.21.16新增如下tns資訊
sqlserver162 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.128.163)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = dg4msql)
)
(HS=OK)
)
問題2:$ORACLE_HOME和透明閘道器的安裝路徑不一樣,怎麼辦?
解決方案:透明閘道器的監聽配置裡面$ORACLE_HOME寫成實際安裝路徑
[oratst@hqerp1 TST_hqerp1]$ echo $ORACLE_HOME
/u01/TST/db/tech_st/11.2.0
[oratst@hqerp1 ~]$ ll /u01/TST/db/tech_st/gatways/dg4msql/admin/initdg4msql.ora
-rw-r--r-- 1 oratst dba 362 Apr 5 15:31 /u01/TST/db/tech_st/gatways/dg4msql/admin/initdg4msql.ora
靜態監聽的關鍵配置如下
TST =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.31)(PORT = 1571))
)
)
SID_LIST_TST =
(SID_LIST =
(SID_DESC =
(ORACLE_HOME= /u01/TST/db/tech_st/11.2.0)
(SID_NAME = TST)
)
(SID_DESC =
(ORACLE_HOME= /u01/TST/db/tech_st/gatways)
(SID_NAME = dg4msql)
(PROGRAM = dg4msql)
)
)
Lsnrctl status tst顯示如下資訊
Service "TST" has 1 instance(s).
Instance "TST", status UNKNOWN, has 1 handler(s) for this service...
Service "dg4msql" has 1 instance(s).
Instance "dg4msql", status UNKNOWN, has 1 handler(s) for this service...
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30126024/viewspace-2140333/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORACLE透明閘道器的配置Oracle
- transparent gateway 透明閘道器配置Gateway
- oracle連線teradata透明閘道器配置Oracle
- ORACLE9i 的透明閘道器的配置 (轉)Oracle
- oracle通過透明閘道器連線mysql的配置OracleMySql
- oracle9i透明閘道器到sqlserver的配置OracleSQLServer
- 透明閘道器 oracle 10g for sqlserver 和sybase的配置Oracle 10gSQLServer
- 透明閘道器的安裝配置及一般使用
- 安全閘道器 透明加解密解密
- Oracle 透明閘道器連線MySQLOracleMySql
- 企業API閘道器適用業務場景API
- Oracle配置透明閘道器訪問sql2000OracleSQL
- Oracle 通過透明閘道器訪問mysql配置步驟OracleMySql
- 工業智慧閘道器的功能和應用場景
- ORACLE 透明閘道器訪問 MYSQL 表OracleMySql
- Oracle透明閘道器訪問Mysql—luckyfriendsOracleMySql
- 美暢影片接入閘道器(VGate)的應用場景分析
- 配置Oracle Gateways透明閘道器連線多個MSSQL資料庫OracleGatewaySQL資料庫
- 10g透明閘道器訪問sqlserverSQLServer
- Oracle 通過透明閘道器訪問mysqlOracleMySql
- Oracle 透過透明閘道器 訪問 mysqlOracleMySql
- Oracle Gateways透明閘道器訪問SQL ServerOracleGatewaySQLServer
- LoRa閘道器是什麼?有什麼應用場景?
- SKYLAB:藍芽閘道器應用場景案例分析藍芽
- Oracle透明閘道器訪問SQLServer資料庫OracleSQLServer資料庫
- Oracle透明閘道器訪問MySQL資料庫OracleMySql資料庫
- oracle透過透明閘道器訪問sql serverOracleSQLServer
- ADSL+RH8.0透明閘道器指南(轉)
- ORACLE通過透明閘道器連線DB2OracleDB2
- 兩類常見場景下的雲原生閘道器遷移實踐
- 振動感測器資料採集閘道器的功能及應用場景
- oracle透明閘道器之異構資料庫的訪問Oracle資料庫
- 透明的閘道器:在Linux上執行IPchains(轉)LinuxAI
- 多網路卡 配置多閘道器
- 工業智慧閘道器在汙水治理有何智慧應用場景?
- 什麼是閘道器?閘道器的作用是什麼,閘道器的作用詳解
- Janusec應用安全閘道器(WAF閘道器)
- Ceph物件閘道器,多區域閘道器物件