作業系統:windows7x64
安裝軟體:oracle 11g
開始->程式->net manager
檢視本地ip
修改主機為ip位址(否則區域網其他電腦不能訪問)
開啟services.msc啟動監聽服務
增加配置tnsnames.ora檔案
test =
(description =
(address_list =
(address = (protocol = tcp)(host =172.27.35.8)(port = 1521))
)(connect_data =
(service_name = orcl)))
常見錯誤:ora-12514: tns:listener does not currently know of service requested in connect
解決方案:
修改listener.ora檔案為
sid_list_listener =
(sid_list =
(sid_desc =
(global_dbname = orcl)
(sid_name = orcl)
) (sid_desc =
(program = extproc)
(sid_name = pl***tproc)
))listener =
(description_list =
(description =
(address = (protocol = ipc)(key = extproc1521))
)(description =
(address = (protocol = tcp)(host = 172.27.35.8)(port = 1521))))
至此,同一區域網的其他電腦就可以訪問本地oracle伺服器了 MySQL 設定遠端訪問
mysql遠端訪問,也就是通過ip訪問mysql服務,mysql對於安全的要求是非常嚴格的,需要授權。1.本地訪問 sql grantallprivilegeson toadmin localhost identifiedby admin withgrantoption flushprivilege...
mysql設定遠端訪問
1.使用命令 mysql u 使用者名稱 p密碼,登入mysql 2.執行命令 grant all privileges on to root identified by zmp 123456 with grant option 3.執行命令 flush privileges 4.執行命令 exit...
MariaDB遠端訪問設定
mariadb是mysql的乙個分支,這是mysql的創始人在mysql被oracle收購後fork出的乙個版本,這個版本國內用的比較少,最近自己使用到這個但是在建立遠端連線的過程中遇到乙個很奇怪的問題就是按基本的mysql的方式 skip grant tables繞過預設登陸,在資料庫修改了roo...