首頁 資料庫 mysql教程 【翻译自mos文章】改变数据库用户sysman(该用户是DBControlRepo

【翻译自mos文章】改变数据库用户sysman(该用户是DBControlRepo

Jun 07, 2016 pm 03:58 PM
改變 資料庫 文章 使用者

改变数据库用户sysman(该用户是DB Control Repository 的schema)密码的方法 参考原文: How To Change the Password of the Database User Sysman (DB Control Repository Schema) (Doc ID 259379.1) 适用于: Enterprise Manager for Oracle Database - V

改变数据库用户sysman(该用户是DB Control Repository 的schema)密码的方法

参考原文:
How To Change the Password of the Database User Sysman (DB Control Repository Schema) (Doc ID 259379.1)

适用于:
Enterprise Manager for Oracle Database - Version 10.1.0.2 to 11.2.0.3 [Release 10.1 to 11.2]
Enterprise Manager for Oracle Database - Version 11.2.0.4 to 11.2.0.4 [Release 11.2]
Information in this document applies to any platform.

目的:
sysman的口令被加密存放在多个地方,因此,the Database Control (OMS and Agent)可以在不需要sysman密码的情况下可以访问database。
所以,当修改sysman口令的时候,新口令必须提供给the Database Control OMS and Agent.

如果新口令没有更新给the Database Control OMS and Agent, oms将不能访问数据库,并且在trace file中,你会注意到下面的错误:
2012-05-31 13:50:13,513 [PAFStartupThread] ERROR conn.ConnectionService verifyRepositoryEx.891 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password;
logon denied2012-05-31 13:50:20,717 [HTTPThreadGroup-4] ERROR conn.ConnectionService verifyRepositoryEx.891 - Invalid Connection Pool. ERROR = ORA-28000: the account is locked
2012-05-31 13:50:20,764 [HTTPThreadGroup-2] ERROR eml.OMSHandshake processFailure.806 - OMSHandshake failed.
(AGENT URL = https://uk-sno1-m018.uk-paper.group.wan:3938/emd/main)(ERROR = INTERNAL_ERROR)(CAUSE =java.sql.SQLException: ORA-01017: invalid username/password; logon denied

本文解释了在不断开Database 与 Database Control的情况下,修改数据库用户sysman密码的方法。

注意:Enterprise Manager 10g 已经进入扩展支持。oracle强烈建议升级你的环境到Enterprise Manager 11g or 12c。
Enterprise Manager 11g or 12c 现在是处于premier Support(翻译成:首先支持?)

范围:
所有使用Enterprise Manager DB Control 10g or 11g的数据库管理员。

细节:
注意:安装在 Windows 2008 / Vista上的 DB Control Release 10.2.0.3 及其更高版本,emctl 命令可能会失败,错误是"Permission Denied".该错误的解决方法,请见下面的文章:
Document 1164293.1 - Executing Any EMCTL Command on Windows 2008 / Vista Returns "Permission denied" Error

第一种情况:Database Release prior 10.2.0.4

sysman 这个用户是 the standalone repository of the Enterprise Manager DB Control 的 schema

为了确保你是在正确的数据库中修改了sysman口令,请检查环境变量ORACLE_SID是否被设置,环境变量 ORACLE_HOME 是否被设置,PATH是否包括 正确的 $ORACLE_HOME/bin

请修改sysman口令时严格遵守如下的步骤,否则,你的DB Control 将会运行异常。
1.停止 DB Control
On Unix
$ emctl stop dbconsole

On Windows
Stop the Windows Service OracleDBConsole
Or
Open a Command Window and type
C> emctl stop dbconsole

2.确认DB Control 已经被停止:
On Unix
$ emctl status dbconsole

On Windows
Check the status of the Windows Service OracleDBConsole
Or
Open a DOS Command Window and type
C> emctl status dbconsole

3. 使用dba 权限登陆sqlplus,执行如下的语句:
SQL> alter user sysman identified by ;
例子:
SQL> alter user sysman identified by rainbow ;

4.检查新密码能否登陆到db中
SQL> connect sysman/[@database_alias]
Example:
SQL> connect sysman/rainbow@DBRH

5.到$ORACLE_HOME/host_sid/sysman/config中
5.1 将emoms.properties 文件做一个备份emoms.properties.orig
5.2 编辑emoms.properties文件:
5.2.1 查找以下面内容开头的行:
oracle.sysman.eml.mntr.emdRepPwd=
以新密码(额外注:明文不带;号)替换掉加密后的值。
例子:oracle.sysman.eml.mntr.emdRepPwd=rainbow
5.2.2 找下面的行:
oracle.sysman.eml.mntr.emdRepPwdEncrypted=TRUE
用FALSE替换TRUE
6.重启 DB Control
On Unix
$ emctl start dbconsole

On Windows
Start the Windows Service OracleDBConsole
Or
Open a DOS Command Window and type
C> emctl start dbconsole

7.检查密码已经被加密:
查看$ORACLE_HOME/host_sid/sysman/config/emoms.properties文件
7.1 搜索以下面开头的行:
oracle.sysman.eml.mntr.emdRepPwd=
确认密码已经被加密
7.2 搜索以下面开头的行:
oracle.sysman.eml.mntr.emdRepPwdEncrypted=
确认该值是 TRUE

第二种情况: Database Release beginning 10.2.0.4
sysman 这个用户是 the standalone repository of the Enterprise Manager DB Control 的 schema

为了确保你是在正确的数据库中修改了sysman口令,请检查环境变量ORACLE_SID是否被设置,

对于 DB Control Release 11.2 以及更高版本来说,你需要将环境变量ORACLE_UNQNAME设置为数据库参数DB_UNIQUE_NAME 的值
你必须检查环境变量 ORACLE_HOME 是否被设置,PATH是否包括 正确的 $ORACLE_HOME/bin

请修改sysman口令时严格遵守如下的步骤,否则,你的DB Control 将会运行异常。

1.1.Stop the DB Control
On Unix
$ emctl stop dbconsole

On Windows
Stop the Windows Service OracleDBConsole
Or
Open a Command Window and type
C> emctl stop dbconsole

2. 确认 DB Control 已经被停止
On Unix
$ emctl status dbconsole

On Windows
Check the status of the Windows Service OracleDBConsole
Or
Open a DOS Command Window and type
C> emctl status dbconsole

3. 使用dba 权限登陆sqlplus,执行如下的语句:
SQL> alter user sysman identified by ;
4. 确认新密码:
SQL> connect sysman/[@database_alias]
5. 在database directory $ORACLE_HOME/bin目录中,执行:
On Unix
$ emctl setpasswd dbconsole
Provide the new SYSMAN password

On Windows
C>: emctl setpasswd dbconsole
Provide the new SYSMAN password

6.重启DB Control
On Unix
$ emctl start dbconsole

On Windows
Start the Windows Service OracleDBConsole
Or
Open a DOS Command Window and type
C>: emctl start dbconsole

本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn

熱AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover

AI Clothes Remover

用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool

Undress AI Tool

免費脫衣圖片

Clothoff.io

Clothoff.io

AI脫衣器

Video Face Swap

Video Face Swap

使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱工具

記事本++7.3.1

記事本++7.3.1

好用且免費的程式碼編輯器

SublimeText3漢化版

SublimeText3漢化版

中文版,非常好用

禪工作室 13.0.1

禪工作室 13.0.1

強大的PHP整合開發環境

Dreamweaver CS6

Dreamweaver CS6

視覺化網頁開發工具

SublimeText3 Mac版

SublimeText3 Mac版

神級程式碼編輯軟體(SublimeText3)

iOS 18 新增「已復原」相簿功能 可找回遺失或損壞的照片 iOS 18 新增「已復原」相簿功能 可找回遺失或損壞的照片 Jul 18, 2024 am 05:48 AM

蘋果公司最新發布的iOS18、iPadOS18以及macOSSequoia系統為Photos應用程式增添了一項重要功能,旨在幫助用戶輕鬆恢復因各種原因遺失或損壞的照片和影片。這項新功能在Photos應用的"工具"部分引入了一個名為"已恢復"的相冊,當用戶設備中存在未納入其照片庫的圖片或影片時,該相冊將自動顯示。 "已恢復"相簿的出現為因資料庫損壞、相機應用未正確保存至照片庫或第三方應用管理照片庫時照片和視頻丟失提供了解決方案。使用者只需簡單幾步

Hibernate 如何實作多型映射? Hibernate 如何實作多型映射? Apr 17, 2024 pm 12:09 PM

Hibernate多態映射可映射繼承類別到資料庫,提供以下映射類型:joined-subclass:為子類別建立單獨表,包含父類別所有欄位。 table-per-class:為子類別建立單獨資料表,僅包含子類別特有列。 union-subclass:類似joined-subclass,但父類別表聯合所有子類別列。

在PHP中使用MySQLi建立資料庫連線的詳盡教學 在PHP中使用MySQLi建立資料庫連線的詳盡教學 Jun 04, 2024 pm 01:42 PM

如何在PHP中使用MySQLi建立資料庫連線:包含MySQLi擴充(require_once)建立連線函數(functionconnect_to_db)呼叫連線函數($conn=connect_to_db())執行查詢($result=$conn->query())關閉連線( $conn->close())

深入解析HTML如何讀取資料庫 深入解析HTML如何讀取資料庫 Apr 09, 2024 pm 12:36 PM

HTML無法直接讀取資料庫,但可以透過JavaScript和AJAX實作。其步驟包括建立資料庫連線、發送查詢、處理回應和更新頁面。本文提供了利用JavaScript、AJAX和PHP來從MySQL資料庫讀取資料的實戰範例,展示如何在HTML頁面中動態顯示查詢結果。此範例使用XMLHttpRequest建立資料庫連接,發送查詢並處理回應,從而將資料填入頁面元素中,實現了HTML讀取資料庫的功能。

如何在PHP中處理資料庫連線錯誤 如何在PHP中處理資料庫連線錯誤 Jun 05, 2024 pm 02:16 PM

PHP處理資料庫連線報錯,可以使用下列步驟:使用mysqli_connect_errno()取得錯誤代碼。使用mysqli_connect_error()取得錯誤訊息。透過擷取並記錄這些錯誤訊息,可以輕鬆識別並解決資料庫連接問題,確保應用程式的順暢運作。

如何用 Golang 連接遠端資料庫? 如何用 Golang 連接遠端資料庫? Jun 01, 2024 pm 08:31 PM

透過Go標準庫database/sql包,可以連接到MySQL、PostgreSQL或SQLite等遠端資料庫:建立包含資料庫連接資訊的連接字串。使用sql.Open()函數開啟資料庫連線。執行SQL查詢和插入操作等資料庫操作。使用defer關閉資料庫連線以釋放資源。

如何在 Golang 中使用資料庫回呼函數? 如何在 Golang 中使用資料庫回呼函數? Jun 03, 2024 pm 02:20 PM

在Golang中使用資料庫回呼函數可以實現:在指定資料庫操作完成後執行自訂程式碼。透過單獨的函數新增自訂行為,無需編寫額外程式碼。回調函數可用於插入、更新、刪除和查詢操作。必須使用sql.Exec、sql.QueryRow或sql.Query函數才能使用回呼函數。

谷歌管理器如何新增和管理用戶 谷歌管理器如何新增和管理用戶 Sep 02, 2024 pm 02:41 PM

谷歌管理器如何新增和管理使用者?谷歌瀏覽器是支援多個用戶登入使用的,這樣我們跨裝置登入也不用怕了,如果我們有許多用戶就需要對其進行添加管理。有些小夥伴可能不知道要如何操作。別擔心,小編今天為大家整理了詳細步驟教學說明,有興趣的夥伴快來和小編一起看看吧。詳細步驟教學說明1、開啟電腦後,在桌面上找到安裝好的Google瀏覽器圖示並雙擊打開,如下圖所示。 2.點擊Google瀏覽器右上角的三小點圖標,如下圖所示。 3.點選Google瀏覽器下拉選單裡的【設定】選項,如下圖所示。 4.在開啟的Google瀏覽器設定介面裡, 點選【管理ch

See all articles