天天看點

資料庫伺服器改名導緻Reporting Service不可用的案例

<b>案例環境:</b>

    作業系統版本    :    windows server 2012 r2 standard

    資料庫版本      :   sql server 2012 standard edition sp2

<b></b> 

<b>案例介紹:</b>

<b></b>

其實已經是第二次碰到這種情況,還是決定将這個案例記錄一下。第一次是做資料庫遷移時碰到,沒有時間整理記錄,第二次準備一個測試環境,從虛拟機一個服務

器克隆了一個測試伺服器getestnt30, 伺服器名稱變了,但是sql server裡面@@servername 與

serverproperty('servername')不一緻。

資料庫伺服器改名導緻Reporting Service不可用的案例

現象如下所示:

資料庫伺服器改名導緻Reporting Service不可用的案例

the

report server cannot open a connection to the report server database. a

connection to the database is required for all requests and processing.

login failed for user 'xxxx\gettestnt30$'.

資料庫伺服器改名導緻Reporting Service不可用的案例

(rsreportserverdatabaseunavailable)

果要檢視更詳細的錯誤資訊,可以去sql server的安裝目錄,例如這台測試伺服器c:\program files\microsoft sql

server\msrs11.mssqlserver\reporting services\logfiles下檢視詳細日志記錄。

下所示,在reporting services configuration manager裡面,在資料庫選項(database)裡面顯示的sql

server name為原伺服器getnt59,而report manager url裡面則為gettestnt30

資料庫伺服器改名導緻Reporting Service不可用的案例
資料庫伺服器改名導緻Reporting Service不可用的案例

解決方法:

    打開reporting service的配置管理器,進行資料庫伺服器更名操作。

資料庫伺服器改名導緻Reporting Service不可用的案例
資料庫伺服器改名導緻Reporting Service不可用的案例
資料庫伺服器改名導緻Reporting Service不可用的案例
資料庫伺服器改名導緻Reporting Service不可用的案例

完成之後,還必須删除加密内容(delete enrypted content),才能正常通路reporting service對應的url位址。

資料庫伺服器改名導緻Reporting Service不可用的案例