# listener.ora network configuration file: c:\oracle\product\10.2.0\db_1\network\admin\listener.ora
# generated by oracle configuration tools.
sid_list_listener =
(sid_list =
(sid_desc =
(sid_name = pl***tproc)
(oracle_home = c:\oracle\product\10.2.0\db_1)
(program = extproc)
))listener =
(description_list =
(description =
(address = (protocol = ipc)(key = extproc1))
(address = (protocol = tcp)(host = ip位址 )(port = 1521))
)) # ip位址 => 此處填寫你的oracle所在的主機的ip,如果實在虛擬機器則是虛擬機器的ip
# tnsnames.ora network configuration file: c:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
# generated by oracle configuration tools.
#下面的ip位址與上面的listener.ora中ip一樣
orcl =
(description =
(address = (protocol = tcp)(host = ip位址)(port = 1521))
(connect_data =
(server = dedicated)
(service_name = orcl)
))extproc_connection_data =
(description =
(address_list =
(address = (protocol = ipc)(key = extproc1))
)(connect_data =
(sid = pl***tproc)
(presentation = ro)
))
此處就不談如何放開1521埠,可以直接將防火牆直接關閉
# 使用ctrl + r
# 輸入cmd開啟命令列視窗
# 連oracle接資料庫輸入
sqlplus sys/密碼 as sysdba;
# 連線成功後輸入
startup
完成以上操作再次遠端連線就可以再次連線成功 PLSQL連線Oracle報錯 ORA 12154
plsql連線oracle報錯 ora 12154 tns 無法解析指定的連線識別符號 解決步驟 1 cmd開啟windows命令視窗,輸入tnsping orcl 看是否連線成功,連線不成功則檢查tnsnames.ora的配置 2 win r開啟執行,輸入services.msc開啟服務,檢查or...
C 連線oracle出現ORA 12514 TNS
我看了網上的關於listen配置等方法,後來被我亂弄弄好了,總結一下,分享給大家。其實,我的問題主要是連線語句的問題。我本來的連線語句為 data source 121.248.203.210 user id sa password 111 後來根據網上提示的方式改listener.ora,但是還是...
oracle列轉行出現ORA 01722
在列轉行的sql 中,執行出現ora 01722 錯誤,例如 select id,sum decode col name,name col val,null as name,sum decode col name,age col val,null as age,from student group ...