wsus 2.0
WSUS 2.0の入ったサーバをアップグレードしたら, エラーが出るようになった.
管理画面を見ても....
error connecting to the windows server update service database
と表示されるだけ.
同僚も同じことを経験したことがあるようで, WSUS 2.0の再インストールを
して, なおしたとのこと.
再インストールはしたくないので, いろいろと試した結果, 解決策を見つけた.
エラーメッセージからして, NETWORK SERVICEアカウントが
MSDEのosqlコマンドをつかう.
> osql -S ホスト名\wsus -E
1> EXEC sp_grantlogin 'NT AUTHORITY\NETWORK SERVICE'
1> go
あとは, リブートする. (関連するサービスの再起動でOKだと思う)
エラーメッセージ
applicationログより
Event Type: Error
Event Source: Windows Server Update Services
Event Category: Update Services Service
Event ID: 421
Date: 1/14/2008
Time: 12:41:45 PM
User: N/A
Computer: コンピュータ名
Description:
Connection to database failed. Reason=Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.. Connection string: Data Source=コンピュータ名\WSUS;Initial Catalog=SUSDB;Connection Timeout=60;Application Name=WSUS SQL Connection;Trusted_Connection=Yes;Pooling='true'; Max Pool Size = 100
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7034
Date: 1/14/2008
Time: 11:07:02 AM
User: N/A
Computer: コンピュータ名
Description:
The Update Services service terminated unexpectedly. It has done this 3 time(s).
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
systemログより
Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7031
Date: 1/14/2008
Time: 11:37:35 AM
User: N/A
Computer: コンピュータ名
Description:
The Update Services service terminated unexpectedly. It has done this 2 time(s). The following corrective action will be taken in 300000 milliseconds: Restart the service.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7032
Date: 1/14/2008
Time: 11:00:19 AM
User: N/A
Computer: コンピュータ名
Description:
The Service Control Manager tried to take a corrective action (Restart the service) after the unexpected termination of the Update Services service, but this action failed with the following error:
An instance of the service is already running.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
ちなみに, osqlのその他のコマンド例(コマンドの後, goを入力して実行)
使用するDBを指定
use SUSDB
接続中のDBにCorporate\BobJというWindows NTアカウントを, アカウント名Bobで登録
EXEC sp_grantdbaccess 'Corporate\BobJ', 'Bob'
ユーザ一覧
EXEC sp_helplogins
EXEC sp_helpuser
とか
SELECT * FROM syslogins
SELECT * FROM sysuser
テーブル一覧
EXEC sp_tables
SELECT * FROM INFORMATION_SCHEMA.TABLES
テーブル詳細
select name from sysobjects where xtype = 'U' or xtype = 'S' order by name
select o.name "テーブル名", u.name "所有者" from sysobjects o join sysusers u on o.uid = u.uid where o.type = 'U' order by
テーブルのカラム一覧
SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'tablename'


コメントする