首先找到你的oracle安裝目錄,在此目錄下找:
oracle\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
我們需要在此tnsnames.ora檔案中修改配置設定
listener_orcl =
(address = (protocol = tcp)(host = localhost)(port = 1521))
oraclr_connection_data =
(description =
(address_list =
(address = (protocol = ipc)(key = extproc1521))
)(connect_data =
(sid = clrextproc)
(presentation = ro)))
orcl =
(description =
(address_list =
(address = (protocol = tcp)(host = localhost)(port = 1521))
)(connect_data =
(service_name = orcl)))
orcl3 =
(description =
(address_list =
(address = (protocol = tcp)(host = 172.61.1.21)(port = 1521))
)(connect_data =
(service_name = matedb)
))
orcl3 是我所新增的配置,hos=」遠端位址鏈結「,port=」埠號「,預設1521
本地連線遠端資料庫
1.對所有使用者進行授權 grant all privileges on to myuser identified by mypassword with grant option flush privileges 如果你想允許使用者myuser從ip為192.168.1.6的主機連線到mysql伺服...
DateTime新增到資料庫失敗,出現溢位異常!
今天做乙個 在做乙個修改動作的時候,需要做到最新修改的日期,所以在修改的時候必須得傳入乙個日期引數,我傳入datetime.now,執行修改操作,出現異常,根據除錯找到錯誤資訊如下 sqldatetime 溢位。必須介於 1 1 1753 12 00 00 am 和 12 31 9999 11 59...
本地連線多個資料庫操作
create proc otherconnsql asbegin selectid u id,name u name,tel u tel from openrowset sqlncli server local trusted connection yes select u id,u name,u ...