NetBackup IT Analytics 安装和升级指南 (Linux)
步骤 4:安装 Oracle 数据库应用程序二进制文件 (Linux)
Oracle 安装程序要求具有 sydba 权限才能在其中创建数据库和用户。
本节将介绍:
安装的前提条件:
在 RHEL9 主机上安装二进制文件所需的 Oracle 修补程序
Oracle 数据库应用程序二进制文件的安装:
安装标准版 Oracle 数据库二进制文件:这是最常用的安装方式,您可以安装 Veritas 提供的 Oracle 数据库二进制文件,您拥有的是标准版许可证。该安装方法涉及嵌入 NetBackup IT Analytics 软件的单个 Oracle 标准版实例,通常将其安装在 NetBackup IT Analytics 门户服务器上。
安装服务共享版 Oracle 数据库二进制文件:您需要在此部署中自行提供 Oracle 许可证。
安装 Oracle 数据库应用程序二进制文件后安装 Oracle 数据库。
最新版本的 Oracle 19c 安装程序二进制文件
Oracle 安装位置的绝对路径
数据库安装位置的绝对路径
Oracle 服务 ID (SID)
数据库服务器 IP
注意:
NetBackup IT Analytics 门户服务器不能安装任何其他 Oracle 数据库实例。
如果您计划将 Veritas 提供的 Oracle 与 NetBackup IT Analytics 一起使用且拥有标准版许可证,请按照此安装说明操作。
要安装标准版 Oracle 数据库二进制文件,请执行以下操作:
- 验证是否具有最新版本的 Oracle 19c 安装程序二进制文件。
- 以 root 用户身份登录到将要安装 NetBackup IT Analytics 数据库的服务器。通常,这也是门户服务器。
- 将 ISO 映像置于
/mnt
目录中。 - 挂载您下载的 ISO 映像。
mkdir /mnt/diskd
mount -o loop <itanalytics_dbinstaller_XXXXX_XXX_linux.iso> /mnt/diskd
在上述命令中替换下载的 ISO 文件的相关名称。
- 输入以下命令以启动安装程序:
cd / /mnt/diskd/install_oracle.sh
- 按 Enter 阅读完整的 EULA,然后开始准备接受。
************************************************************************** * NetBackup IT Analytics ORACLE Installer Version 19.3.x.x () ************************************************************************** To use this software you must agree to the following terms and conditions. Press ENTER to continue: Enter "accept" to accept these Terms and Conditions
- 输入要安装 Oracle 的目录的绝对路径,然后按 Enter 键。
要在默认位置 (
/opt
) 安装 Oracle,只需按 Enter 键。Enter the absolute path to install the Oracle 19c database binaries. Ensure minimum 10.00 GB free space is available at the specified location. (Default install location: /opt):
- 输入要安装 Oracle 数据库的目录的绝对路径,然后按 Enter 键。
要在默认位置 (
/
) 安装数据库,只需按 Enter 键。Enter the absolute path of the directory where Oracle 19c can create its database files. This directory must have minimum 110 GB free space and must have the ability to expand as required. (Default database location: /):
- 输入 Oracle SID,然后按 Enter 键。
Enter the Oracle SID of the Oracle 19c database instance: (Default Oracle SID: scdb):
- 输入数据库服务器 IP,然后按 Enter 键。
Enter IP Address for your database server: (N.N.N.N):
- 验证为 Oracle 安装输入的详细信息,然后输入 y 继续安装。
The following details will be used for Oracle installation. Please verify: INSTALLATION PATH: /<install-path> DATABASE DIRECTORY PATH: / ORACLE SID: scdb DATABASE IP: N.N.N.N Continue? (y/n)
- 在此步骤中,可以选择随 Oracle 的安装创建数据库,也可以稍后创建。输入 y 以安装数据库,否则在显示以下消息时输入 n。
Oracle Database xx.x.x is installed. Refer to the Oracle documentation and apply the latest Critical Patch Updates from Oracle. You can create the database as a part of this installation or create it later using create_itanalytics_database.sh script. Do you want to create the database as a part of this installation (y/n)?
至此,Oracle 安装完成。如果在上述 Oracle 安装期间未创建门户数据库,请参见安装 Oracle 后创建数据库。数据库创建对于成功安装门户至关重要。
如果您拥有已获许可的 Oracle 数据库且计划将其用作 NetBackup IT Analytics 数据库,请按照本安装说明进行操作。
安装的前提条件:
从 Oracle 下载中心下载
LINUX.X64_193000_db_home.zip
。标准版或企业版 Oracle 许可证。
对于企业版许可证,必须将环境变量 ORACLE_LICENSE_OPTION 设置为 EE,并导出变量。
export ORACLE_LICENSE_OPTION=EE
要安装服务共享版 Oracle 数据库二进制文件,请执行以下操作:
- 验证是否具有最新版本的 Oracle 19c 安装程序二进制文件。
- 以 root 用户身份登录到将要安装 NetBackup IT Analytics 数据库的服务器。通常,这也是门户服务器。
- 将 ISO 映像置于
/mnt
目录中。 - 挂载您下载的 ISO 映像。
mkdir /mnt/diskd
mount -o loop <itanalytics_dbinstaller_shared-service_linux.iso> /mnt/diskd
在上述命令中替换下载的 ISO 文件的相关名称。
- 输入以下命令以启动安装程序:
cd / /mnt/diskd/install_oracle.sh
- 按 Enter 阅读完整的 EULA,然后开始准备接受。
************************************************************************** * NetBackup IT Analytics ORACLE Installer Version 19.3.x.x () ************************************************************************** To use this software you must agree to the following terms and conditions. Press ENTER to continue: Enter "accept" to accept these Terms and Conditions
- 输入要安装 Oracle 的目录的绝对路径,然后按 Enter 键。
要在默认位置 (
/opt
) 安装 Oracle,只需按 Enter 键。Enter the absolute path to install the Oracle 19c database binaries. Ensure minimum 10.00 GB free space is available at the specified location. (Default install location: /opt):
- 输入要安装 Oracle 数据库的目录的绝对路径,然后按 Enter 键。
要在默认位置 (
/
) 安装数据库,只需按 Enter 键。Enter the absolute path of the directory where Oracle 19c can create its database files. This directory must have minimum 110 GB free space and must have the ability to expand as required. (Default database location: /):
- 输入 Oracle SID,然后按 Enter 键。
Enter the Oracle SID of the Oracle 19c database instance: (Default Oracle SID: scdb):
- 输入数据库服务器 IP,然后按 Enter 键。
Enter IP Address for your database server: (N.N.N.N):
- 验证为 Oracle 安装输入的详细信息,然后输入 y 继续安装。
The following details will be used for Oracle installation. Please verify: INSTALLATION PATH: /<install-path> DATABASE DIRECTORY PATH: / ORACLE SID: scdb DATABASE IP: N.N.N.N Continue? (y/n)
- 仅当在 RHEL9 主机上安装二进制文件时,才需要执行此步骤。安装程序会提示下载所需的 Oracle 二进制文件并提供其位置的绝对路径,如下所述。由于此要求已包含在本部分的前提条件中,您必须下载这些修补程序。
安装数据库需要以下 Oracle 修补程序。(请从 Oracle 支持下载。)
修补程序 35775632 (
p35775632_190000_Linux-x86-64.zip
)修补程序 6880880(选择 19.0.0.0.0 版本)(
p6880880_190000_Linux-x86-64.zip
)19.20 DBRU 修补程序 35320081 (
p35320081_190000_Linux-x86-64.zip
)19.20 DB MLR 35904951 (
p35904951_1920000DBRU_Linux-x86-64.zip
)
aptare 用户必须对下载这些修补程序的目录具有写入访问权限。输入下载这些修补程序的绝对目录路径:
- 输入包含 Oracle Universal Installer zip 文件
LINUX.X64_193000_db_home.zip
的绝对目录路径,然后按 Enter 键。 - 在此步骤中,可以选择随 Oracle 的安装创建数据库,也可以稍后创建。输入 y 以安装数据库,否则在显示以下消息时输入 n。
Oracle Database xx.x.x is installed. Refer to the Oracle documentation and apply the latest Critical Patch Updates from Oracle. You can create the database as a part of this installation or create it later using create_itanalytics_database.sh script. Do you want to create the database as a part of this installation (y/n)?
这就完成了 Oracle 在共享环境中的安装。如果在上述 Oracle 安装期间未创建门户数据库,请参见下面的安装 Oracle 后创建数据库。数据库创建对于成功安装门户至关重要。
要在安装 Oracle 标准版或共享版后创建数据库,请执行以下操作:
- 使用 Oracle 凭据登录到 Oracle 服务器并运行以下命令:
su - <oracle-user>
示例:su - aptare
/mnt/diskd/create_itanalytics_database.sh
- 键入 continue,并在看到以下消息时按 Enter 键。
WARNING. WARNING. WARNING. WARNING. WARNING. WARNING. WARNING. WARNING. WARNING. By continuing this script you will be COMPLETELY ERASING YOUR ENTIRE IT Analytics database. ARE YOU ABSOLUTELY SURE that you wish to continue (type the word \continue\ to proceed) ?
已在 Oracle 服务器上创建数据库。