當前位置:
首頁 > 最新 > 測試oracle是否安裝成功

測試oracle是否安裝成功

前面文章介紹了資料庫服務oracle的安裝,接下來就要測試一下

要測試oracle數據安裝是否成功,可按順序執行以下兩個步驟:

測試步驟 1:請執行操作系統級的命令:tnsping orcl

上述命令假定全局資料庫名是 orcl。以下是命令執行後的示例(請在cmd命令窗口手工輸入綠色部分文字):

C:UsersAdministrator>tnsping orcl

TNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 03-3月 -2018 11:09:07

Copyright (c) 1997, 2010, Oracle. All rights reserved.

已使用的參數文件:

D:appAdministratorproduct11.2.0dbhome_1
etworkadminsqlnet.ora

已使用 TNSNAMES 適配器來解析別名

嘗試連接 (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl.168.0.11)))

OK (0 毫秒)

其中,結果OK至關重要。 上述結果如果正確,表明偵聽器配置無誤。

如果沒有看到此結果,不要繼續進行下一步。請檢查:

使用 Oracle Net Configuration Assistant 檢查網路配置(netca 命令) 使用 Database Configuration Assistant 檢查資料庫配置(dbca 命令)測試步驟 2:請執行操作系統級的命令:sqlplus system/password@orcl

上述命令假定 SYSTEM 用戶對應的口令是 password,此處輸入的password為你實際安裝oracle時設置的口令密碼。假定全局資料庫名是 orcl。

以下是命令執行後的示例(請手工輸入綠色部分文字):

C:UsersAdministrator>sqlplus system/password@orcl

SQL*Plus: Release 11.2.0.1.0 Production on 星期六 3月 3 11:19:53 2018

Copyright (c) 1982, 2010, Oracle. All rights reserved.

連接到:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

如果密碼不想被別人看到,也可以這樣登錄:

C:UsersAdministrator>sqlplus

SQL*Plus: Release 11.2.0.1.0 Production on 星期六 3月 3 11:22:13 2018

Copyright (c) 1982, 2010, Oracle. All rights reserved.

請輸入用戶名:zsc

輸入口令:

(口令一欄密碼不顯示,輸完直接回車即可)

連接到:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options


喜歡這篇文章嗎?立刻分享出去讓更多人知道吧!

本站內容充實豐富,博大精深,小編精選每日熱門資訊,隨時更新,點擊「搶先收到最新資訊」瀏覽吧!


請您繼續閱讀更多來自 Java有貨 的精彩文章:

TAG:Java有貨 |