linux下監聽的配置

來源:互聯網
上載者:User
 採用netca命令調用圖形介面進行配置

[oracle@localhost bin]$ netca

Oracle Net Services 配置:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Error: null
有關詳細資料, 請查看追蹤檔案: /oradata/oracle/cfgtoollogs/netca/trace_OraDb11g_home1-1204115下午2740.log
Oracle Net Services 配置失敗。結束代碼是1

 無法執行該命令,解決方案如下:

[oracle@localhost bin]$ su - root
口令:
[root@localhost ~]# xhost local:oracle
non-network local connections being added to access control list
[root@localhost ~]# su - oracle
[oracle@localhost ~]$ netca

 

到此就可以彈出圖形介面,對監聽進行重新設定。

Oracle Net Services 配置:
正在配置監聽程式:LISTENER
監聽程式配置完成。
Oracle Net 監聽程式啟動:
    正在運行監聽程式控制:
      /oradata/oracle/112/bin/lsnrctl start LISTENER
    監聽程式控制完成。
    監聽程式已成功啟動。
成功完成 Oracle Net Services 配置。結束代碼是0

 

監聽啟動停止:

lsnrctl start --啟動

lsnrctl stop  --停止

lsnrctl status --查看狀態

 

註:必須在oracle使用者下執行。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.