Configuring an Oracle RAC database


This topic was generated by a BMC Contributor and has not been approved. More information.

Before you begin

  1. Set up Oracle RAC 11g R2  or later (OCFS or ASM.)
  2. Configure the Oracle database (RAC) instance; for example, "BMCRAC".
  3. Configure Listeners and the EM console and make sure they are up and running.
  4. Make sure you have sys, portal schema owner, user, and access details available.
  5. After everything is running, check to see whether you can log in to the EM console with sys user and sysdba role. 

worddav27944017b7c056cf72b03c467e92d56b.png
---------------------------
Login with user : sys
Connect As : Sysdba provide password and login.
---------------------------

To configure an Oracle RAC database

Click Database and click the Server tab.

worddav56383da2843126891882541538d73ea0.png

 

Click Tablespaces.

worddavddbc4c89ad8c2353b9917ed9f096114c.png

Click the Create button.

The tablespace creation process starts.
worddavb0dfb9c91a32cf31e44f88c2b79a7cdd.png
Provide the following details:
Name: PORTAL_TB
Extent Management: Locally Managed
Type: Permanent
Status: Read Write
Select the Use bigfile tablespace check box.
Click Add.
worddav541bcfa88d4784dfd0e605129638b6db.png

Click Continue.

SQL is returned that looks similar to the following example:

CREATE BIGFILE TABLESPACE "PORTAL_TB" DATAFILE '+DATA(DATAFILE)' SIZE 100M AUTOEXTEND ON NEXT 100M MAXSIZE UNLIMITED LOGGING EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO


worddav822fef9db2ca8db336605229118ad91c.png

Click OK.
The tablespace is created.

Repeat the steps above to create the tablespace index, PORTAL_TB_INDEX. 

Creating users (schema owners)


Click users.
worddavf780798b7f39bdd95cb3b936834897da.png








Click Create.
worddav3370e55ca45a71c35d658b72ada60f5d.png

Verify the results.

worddava2706cb8565c1f97fddcf481bd595a95.png
Click Roles and select ConnectMGMT_USERDBA.
worddav38304467f6e73491a476a2376bfc6cff.png
Click System Privileges.
worddav96cfebdd04543354c8bf4d1432cfa905.png

Create this schema owner user.
The SQL command will look similar to the following example:
CREATE USER "PORTAL" PROFILE "DEFAULT" IDENTIFIED BY "*******" DEFAULT TABLESPACE "PORTAL_TB" TEMPORARY TABLESPACE "TEMP" ACCOUNT UNLOCK GRANT SYSDBA TO "PORTAL" GRANT UNLIMITED TABLESPACE TO "PORTAL" GRANT "CONNECT" TO "PORTAL" GRANT "DBA" TO "PORTAL" GRANT "MGMT_USER" TO "PORTAL"

Create one more operational user by selecting Users > Create.
worddav94f119efd3ccb68e2a58e538be73d9ce.png
Click Roles.

Role

Admin Option

Default

CONNECT

N

Y

MGMT_USER

N

Y

worddav0e5d78956bdee021dbfa01e5bf131b93.png

 

Click on "System Privileges"

 

 

 

 

 

System Privilege

Admin Option

DELETE ANY TABLE

N

EXECUTE ANY PROCEDURE

N

INSERT ANY TABLE

N

SELECT ANY TABLE

N

UPDATE ANY TABLE

N

 

worddavd85fddd6f1cf013f2987725cbec33031.png

Complete the creation of user.

CREATE USER "PORTAL_OP" PROFILE "DEFAULT" IDENTIFIED BY "*******" DEFAULT TABLESPACE "PORTAL_TB" TEMPORARY TABLESPACE "TEMP" ACCOUNT UNLOCK GRANT DELETE ANY TABLE TO "PORTAL_OP" GRANT EXECUTE ANY PROCEDURE TO "PORTAL_OP" GRANT INSERT ANY TABLE TO "PORTAL_OP" GRANT SELECT ANY TABLE TO "PORTAL_OP" GRANT UPDATE ANY TABLE TO "PORTAL_OP" GRANT "CONNECT" TO "PORTAL_OP" GRANT "MGMT_USER" TO "PORTAL_OP"SQL will look like :-

Log in as root to any one node, for example, bladerac1.bmc.com and do following steps:

  1. Create a folder called: /portalDB
  2. Copy the setup folder to this machine and extract the contents.

cd /portalDB
unzip BMCAUTOPORTAL10_Lin64.zip cd /portalDB/Disk1/utility/oracle
chmod -R +777 /portalDB

Open oracle_master.sql and search and replace: @@./schema with: @@/portalDB/Disk1/utility/oracle/schema

  1. Promptaccept user_owner_name char prompt 'SCHEMA OWNER USER NAME [FOUNDATION]: ' default FOUNDATIONaccept user_oper_name char prompt 'OPERATION USER NAME [FOUNDATION_OPER]: ' default FOUNDATION_OPERpromptChange : /portalDB/Disk1/utility/oracle/utils/configuration/grantperms.sql For :-OLD :




DEFINE user_owner_name = 'PORTAL'
DEFINE user_oper_name = 'PORTAL_OP'
--prompt
--accept user_owner_name char prompt 'SCHEMA OWNER USER NAME [FOUNDATION]: ' default FOUNDATION
--accept user_oper_name char prompt 'OPERATION USER NAME [FOUNDATION_OPER]: ' default FOUNDATION_OPER
_-prompt_to New :




Save utils/configuration/grantperms.sql
=====================
Log in  to EM console as the Portal user with anormal role.
https://bladerac1.bmc.com:1158/em/console/logon/logon
=====================

Create JOBS: Select Database > Server > Jobs.
From this page, click Job Library. Select SQL Script from the list and click Go.
worddav3b756add4c2b1d95250614734569f7a9.png

Click the Parameters tab.
worddave0c4fd0e9f100cc54b11a2e8190cfaf1.png
WHENEVER SQLERROR EXIT FAILURE;CONN PORTAL/<PORTAL_PASSWORD>;@/portalDB/Disk1/utility/oracle/oracle_master.sql PORTAL_TB PORTAL_TB_INDEX


Click Credentials tab.
worddav282178858b32cfa06077f15ff2e22ed4.png

Click Save to Library.
worddav1a8d72ab55360a51327961927a26c729.png
Select EXECUTE ORACLE_MASTER.SQL and click Submit.
Verify the execution status:

worddav2891d9224ac0cdbc7e318eacca303a01.png
Grant permission to the Portal Operator user:
Log in to the EM console as the Portal user with a normal role.
https://bladerac1.bmc.com:1158/em/console/logon/logon
=====================

Create JOBS: Select Database > Server > Jobs.
From this page, click Job Library. Select SQL Script from the list and click Go.
worddav7940a5a7e730df052feb9d713e630459.png
Click the Parameters tab.
Enter:
WHENEVER SQLERROR EXIT FAILURE;
CONN PORTAL/<PORTAL_PASSWORD>;
@/portalDB/Disk1/utility/oracle/utils/configuration/grantperms.sql
worddav305e39cadfe2d3ea8d8c4e51eef6f37b.png



Click the Credentials tab.
worddav282178858b32cfa06077f15ff2e22ed4.png
Click Save to Library.
worddav690b6622a6248308cf848ebd50a4a1b2.png

Select Setup Portal Permissions and click Submit.
worddavfb812ff9741945450e54bf2a9a50e9c2.png

Portal RAC database confiugration is complete and can be consumed by the Portal installer to set up the server.

 

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*