注意:以下步骤仅适用于将OpManager从版本12.4升级到12.5和从12.5升级到任何以上版本(PgSQL 10.21到10.x)
在升级到较新版本(通过PPM)时,OpManager服务器将对安装的当前版本的PgSQL进行检查。OpManager 12.5以上版本仅支持PostgreSQL 10.21至10.x版本。如果您的 PgSQL 版本与支持的版本不兼容,则 PPM 安装将停止。如果您希望绕过此检查并稍后执行 PgSQL 迁移,
allow.remote.pgsql.migration = true
一旦OpManager升级,就必须将远程PgSQL迁移到其最新版本。按照以下步骤将远程 postgreSQL 从版本 9.2.4 迁移到 10.x。
Create database <databasename>
CREATE USER rouser with password '<ROPASSWORD>';

迁移完成后,通过执行以下命令将数据从旧的 PgSQL 数据库转储到新的数据库:
"<OldPgSQLHome>\bin\pg_dump.exe" -U postgres -p <OldPgSQLPort> -h <OldPgSQLHost> -x -W OpManagerDB | "<NewPgSQLHome>\bin\psql.exe" -U postgres -p <NewPgSQLPort> -h <NewPgSQLHost> -W OpManagerDB
例如: "C:\Program Files\PostgreSQL\9.2.4\bin\pg_dump.exe" -U postgres -p 5431 -h 127.0.0.1 -x -W OpManagerDB | "C:\Program Files\PostgreSQL\10.21\bin\psql.exe" -U postgres -p 5432 -h 127.0.0.1 -W OpManagerDB
url jdbc:postgresql://<NewPgSQLHost>:<NewPgSQLPort>/<NewlyMigratedDBName>?dontTrackOpenResources=true&useUnicode=true&characterEncoding=utf8
例如: url jdbc:postgresql://remote-pgsql-host:5432/OpManagerDB?dontTrackOpenResources=true&useUnicode=true&characterEncoding=utf8


启动服务后,为了进行健全性测试,请在提交查询页面中执行查询,并尝试在产品中添加设备或任何其他基本功能。 [查询示例 - Select * from BuildDetails;]