签到成功

知道了

CNDBA社区CNDBA社区

Read-Only Oracle Home

2022-09-04 09:06 1124 0 原创 oracle
作者: hbhe0316

从18c开始,如果选择了read-only的Oracle home,那么相关的数据库工具和进程将会存放到ORACLE_BASE下,而不是ORACLE_HOME下。http://www.cndba.cn/hbhe0316/article/108656

只读Oracle home将软件从数据库配置信息和日志文件中分离出来。这种分离能够轻松地跨不同的部署共享软件。只读Oracle home还简化了版本控制和标准化。http://www.cndba.cn/hbhe0316/article/108656

Enabling a Read-Only Oracle Home
Configure your Oracle home as a read-only Oracle home after you have performed a software-only Oracle Database installation.

To enable a read-only Oracle home:

Perform a software-only Oracle Database installation.

http://www.cndba.cn/hbhe0316/article/108656

Run the roohctl -enable script.

Run Oracle Database Configuration Assistant (Oracle DBCA) to create a database.

Software-Only Database Installation

Log in as the Oracle installation owner user account (oracle) that you want to own the software binaries.

http://www.cndba.cn/hbhe0316/article/108656

Download the Oracle Database installation image files (db_home.zip) to a directory of your choice. For example, you can download the image files to the /tmp directory.

Create the Oracle home directory and extract the image files that you have downloaded in to this Oracle home directory. For example:

$ mkdir -p /u01/app/oracle/product/19.0.0/dbhome_1
$ chown oracle:oinstall /u01/app/oracle/product/19.0.0/dbhome_1
$ cd /u01/app/oracle/product/19.0.0/dbhome_1
$ unzip -q /tmp/db_home.zip

Note:Ensure that the Oracle home directory path you create is in compliance with the Oracle Optimal Flexible Architecture recommendations. Also, unzip the installation image files only in this Oracle home directory that you created.
From the Oracle home directory, run the runInstaller command to start the Oracle Database installer.

In the Select Configuration Option screen, select Set Up Software Only.http://www.cndba.cn/hbhe0316/article/108656

Select your installation type. Installation screens vary depending on the installation option you select. Respond to the configuration prompts as needed.http://www.cndba.cn/hbhe0316/article/108656

Note:Click Help if you have any questions about the information you are asked to submit during installation.
Run the roohctl Scripthttp://www.cndba.cn/hbhe0316/article/108656

Go to the bin directory

$ cd /u01/app/oracle/product/19.0.0/dbhome_1/bin
Run the roohctl script to enable read-only Oracle home.
$ ./roohctl -enable

On Oracle Real Application Clusters (Oracle RAC) installations, run the preceding roohctl script on every node of the cluster. Alternatively, run the roohctl script with the nodelist option and provide the list of cluster nodes:

$ ./roohctl –enable –nodelist comma_separated_list_of_nodes

Run Oracle Database Configuration Assistant

Ensure that you are still in the bin directory and run Oracle DBCA.

http://www.cndba.cn/hbhe0316/article/108656

$ ./dbca

In the Select Database Operation screen, select Create a Database.http://www.cndba.cn/hbhe0316/article/108656

The configuration screens vary depending on the options you select. Respond to the prompts as needed.http://www.cndba.cn/hbhe0316/article/108656

Note:Click Help if you have any questions about the information you are asked to submit during database creation.

版权声明:本文为博主原创文章,未经博主允许不得转载。

oracle

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
hbhe0316

hbhe0316

关注

1.只有承认无知,才能装下新的东西; 2.进步来自一点点滴滴的积累; 3.广博让你更优秀,而专业让你无法替代; 4.挫折和失败能够转换为一种财富。

  • 889
    原创
  • 1
    翻译
  • 13
    转载
  • 24
    评论
  • 访问:1153142次
  • 积分:1523
  • 等级:核心会员
  • 排名:第6名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by CNDBA · 皖ICP备2022006297号-1·

        QQ交流群

        注册联系QQ