December 2, 2020

How to start and stop EBS R12 database and application

In this topic I would show simple steps of starting & stopping of EBS R12 database and application.

 

Environment details :-

Application Version

R12.1.3

Database Version

11.2.0.4

OS

RHEL 7.7

DB SID

PRODTEST

Application OS User

Prodtestappl

Database OS  User

prodtestdb

R12 install base

/backup/prodtest

 

Important facts to remember: -

To start up R12 instance, first start the database services i.e database and listener and then start the application.

To shutdown R12 instance, first shutdown the application then shutdown the listener and database.

While starting the application, the database and listener must be running. Because the during the start up process of application it logs into the database and starts up other components/services related to application.

Also, during the shutdown of application the database and listener must be up and running for the same above reason.

 

Start Database Tier


First login to Database os user.(prodtestdb)

Now set environment file from the following path

 

cd /backup/prodtest/db/tech_st/11.2.0.4 [Here /backup/prodtest is the install base of R12 instance]

[prodtestdb@ccuine23 11.2.0.4]$ . PRODTEST_ccuine23.env  


[prodtestdb@ccuine23 PRODTEST_ccuine23]$ sqlplus / as sysdba

SQL>startup

The database can be started in another way..

cd $ORACLE_HOME/appsutil/scripts/PRODTEST_ccuine23

[prodtestdb@ccuine23 PRODTEST_ccuine23]$ ./addbctl.sh start

 

You are running addbctl.sh version 120.1

Starting the database PRODTEST ...

SQL*Plus: Release 11.2.0.4.0 Production on Wed Dec 2 09:44:40 2020

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

Connected to an idle instance.

ORACLE instance started.

Total System Global Area 6.4137E+10 bytes

Fixed Size                  2269072 bytes

Variable Size            1.2080E+10 bytes

Database Buffers         5.1942E+10 bytes

Redo Buffers              112762880 bytes

Database mounted.

Database opened.

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

 

addbctl.sh: exiting with status 0

 

Now start the listener

[prodtestdb@ccuine23 PRODTEST_ccuine23]$ lsnrctl start PRODTEST

 Or

[prodtestdb@ccuine23 PRODTEST_ccuine23]$ ./addlnctl.sh start prodtest

 

Now lets verify if the database is running

SQL> select name,open_mode,database_role from v$database,v$instance;

NAME      OPEN_MODE            DATABASE_ROLE

---------           --------------------       ----------------

PRODTEST  READ WRITE           PRIMARY

 

 

Start Application  Tier


First login to Application OS user.(prodtestappl)

Now set environment file from the following path

[prodtestappl@ccuine23 appl]$ cd /backup/prodtest/apps/apps_st/appl4 [Here /backup/prodtest is the install base of R12 instance]

[prodtestappl@ccuine23 11.2.0.4]$ . APPSPRODTEST_ccuine23.env



[prodtestappl@ccuine23 appl]$ cd $ADMIN_SCRIPTS_HOME

[prodtestappl@ccuine23 scripts]$ adstrtal.sh

You are running adstrtal.sh version 120.15.12010000.3

Enter the APPS username: apps

Enter the APPS password:

The logfile for this session is located at /backup/prodtest/inst/apps/PRODTEST_ccuine23/logs/appl/admin/log/adstrtal.log

Executing service control script:

/backup/prodtest/inst/apps/PRODTEST_ccuine23/admin/scripts/adopmnctl.sh start

script returned:

****************************************************

You are running adopmnctl.sh version 120.6.12010000.5

Starting Oracle Process Manager (OPMN) ...

opmnctl: opmn started.

adopmnctl.sh: exiting with status 0

adopmnctl.sh: check the logfile /backup/prodtest/inst/apps/PRODTEST_ccuine23/logs/appl/admin/log/adopmnctl.txt for more information ...

.end std out.

.end err out.

****************************************************

Executing service control script:

/backup/prodtest/inst/apps/PRODTEST_ccuine23/admin/scripts/adalnctl.sh start

script returned:

****************************************************

adalnctl.sh version 120.3

Checking for FNDFS executable.

Starting listener process APPS_PRODTEST.

adalnctl.sh: exiting with status 0

adalnctl.sh: check the logfile /backup/prodtest/inst/apps/PRODTEST_ccuine23/logs/appl/admin/log/adalnctl.txt for more information ...

.end std out.

.end err out.

****************************************************

Executing service control script:

/backup/prodtest/inst/apps/PRODTEST_ccuine23/admin/scripts/adapcctl.sh start

script returned:

****************************************************

You are running adapcctl.sh version 120.7.12010000.2

Starting OPMN managed Oracle HTTP Server (OHS) instance ...

opmnctl: opmn is already running.

opmnctl: starting opmn managed processes...

adapcctl.sh: exiting with status 0

adapcctl.sh: check the logfile /backup/prodtest/inst/apps/PRODTEST_ccuine23/logs/appl/admin/log/adapcctl.txt for more information ...

.end std out.

.end err out.

****************************************************

Executing service control script:

/backup/prodtest/inst/apps/PRODTEST_ccuine23/admin/scripts/adoacorectl.sh start

script returned:

****************************************************

You are running adoacorectl.sh version 120.13

Starting OPMN managed OACORE OC4J instance  ...

adoacorectl.sh: exiting with status 0

adoacorectl.sh: check the logfile /backup/prodtest/inst/apps/PRODTEST_ccuine23/logs/appl/admin/log/adoacorectl.txt for more information ...

.end std out.

.end err out.

****************************************************

Executing service control script:

/backup/prodtest/inst/apps/PRODTEST_ccuine23/admin/scripts/adformsctl.sh start

script returned:

****************************************************

You are running adformsctl.sh  version 120.16.12010000.3

 

Starting OPMN managed FORMS OC4J instance  ...

Calling txkChkFormsDeployment.pl to check whether latest FORMSAPP.EAR is deployed...

Program : /backup/prodtest/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkChkFormsDeployment.pl started @ Wed Dec  2 10:23:47 2020

*** Log File = /backup/prodtest/inst/apps/PRODTEST_ccuine23/logs/appl/rgf/TXK/txkChkFormsDeployment_Wed_Dec_2_10_23_47_2020/txkChkFormsDeployment_Wed_Dec_2_10_23_47_2020.log

File "/backup/prodtest/apps/tech_st/10.1.3/j2ee/forms/applications/forms/formsweb/WEB-INF/lib/frmsrv.jar" exists. Proceeding to check the size...

=============================================

*** Latest formsapp.ear has been deployed ***

=============================================

Program : /backup/prodtest/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkChkFormsDeployment.pl completed @ Wed Dec  2 10:23:47 2020

Perl script txkChkFormsDeployment.pl got executed successfully

adformsctl.sh: exiting with status 0

adformsctl.sh: check the logfile /backup/prodtest/inst/apps/PRODTEST_ccuine23/logs/appl/admin/log/adformsctl.txt for more information ...

.end std out.

*** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS

*** Log File = /backup/prodtest/inst/apps/PRODTEST_ccuine23/logs/appl/rgf/TXK/txkChkFormsDeployment_Wed_Dec_2_10_23_47_2020/txkChkFormsDeployment_Wed_Dec_2_10_23_47_2020.log

.end err out.

****************************************************

Executing service control script:

/backup/prodtest/inst/apps/PRODTEST_ccuine23/admin/scripts/adoafmctl.sh start

script returned:

****************************************************

You are running adoafmctl.sh version 120.8

Starting OPMN managed OAFM OC4J instance  ...

adoafmctl.sh: exiting with status 0

adoafmctl.sh: check the logfile /backup/prodtest/inst/apps/PRODTEST_ccuine23/logs/appl/admin/log/adoafmctl.txt for more information ...

.end std out.

.end err out.

****************************************************

Executing service control script:

/backup/prodtest/inst/apps/PRODTEST_ccuine23/admin/scripts/adcmctl.sh start

script returned:

****************************************************

You are running adcmctl.sh version 120.17.12010000.5

Starting concurrent manager for PRODTEST ...

Starting PRODTEST_1202@PRODTEST Internal Concurrent Manager

Default printer is noprint

adcmctl.sh: exiting with status 0

adcmctl.sh: check the logfile /backup/prodtest/inst/apps/PRODTEST_ccuine23/logs/appl/admin/log/adcmctl.txt for more information ...

.end std out.

.end err out.

****************************************************

Executing service control script:

/backup/prodtest/inst/apps/PRODTEST_ccuine23/admin/scripts/jtffmctl.sh start

script returned:

****************************************************

You are running jtffmctl.sh version 120.3

Validating Fulfillment patch level via /backup/prodtest/apps/apps_st/comn/java/classes

Fulfillment patch level validated.

Starting Fulfillment Server for PRODTEST on port 9321 ...

jtffmctl.sh: exiting with status 0

.end std out.

.end err out.

****************************************************

All enabled services for this node are started.

adstrtal.sh: Exiting with status 0

adstrtal.sh: check the logfile /backup/prodtest/inst/apps/PRODTEST_ccuine23/logs/appl/admin/log/adstrtal.log for more information ...

 

 

Note: It is important to make sure that all sciprts are executed with status 0. Generally, the status 0 ensures the services are started properly.


Shutdown Application  Tier


Login to Application OS User.(prodtestappl)

Now set environment file from the following path

[prodtestappl@ccuine23 appl]$ cd /backup/prodtest/apps/apps_st/appl4 [Here /backup/prodtest is the install base of R12 instance]

[prodtestappl@ccuine23 11.2.0.4]$ . APPSPRODTEST_ccuine23.env


[prodtestappl@ccuine23 appl]$ cd $ADMIN_SCRIPTS_HOME

[prodtestappl@ccuine23 scripts]$ adstpal.sh

 

Note: It is important to make sure all processes related to application are down.

To make sure no process is alive from application end

ps –ef | grep FND | grep prodtestappl

Make sure no output  is shown from the above command

Once no process are shown we can go ahead with the database shutdown process.

 

Shutdown Database  Tier

 Login to Database os user.(prodtestdb)

Now set environment file from the following path

 

cd /backup/prodtest/db/tech_st/11.2.0.4 [Here /backup/prodtest is the install base of R12 instance]

[prodtestdb@ccuine23 11.2.0.4]$ . PRODTEST_ccuine23.env  


[prodtestdb@ccuine23 PRODTEST_ccuine23]$ sqlplus / as sysdba

SQL> shut immediate

Or

cd $ORACLE_HOME/appsutil/scripts/PRODTEST_ccuine23

[prodtestdb@ccuine23 PRODTEST_ccuine23]$ ./addbctl.sh stop immediate

Now stop the listener service

[prodtestdb@ccuine23 PRODTEST_ccuine23]$ lsnrctl stop PRODTEST

Or

[prodtestdb@ccuine23 PRODTEST_ccuine23]$ ./addbctl.sh stop immediate

[prodtestdb@ccuine23 PRODTEST_ccuine23]$ ./addlnctl.sh stop PRODTEST


So this concludes the overall process of startup and shutdown of EBS R12 instance!

November 27, 2020

How to mount OCI object storage as a file system

 

In this topic I will show how to easily mount an object storage as a file system in any linux system.

In this case I am using a machine that is running on OEL 7

Step 1. Firstly, we will need to create a bucket in OCI. The steps of bucket creation is given in this post.

Step 2. Install s3fs-fuse rpm

[root@bastionhost opc]# yum install s3fs-fuse

.....

.....

Installed:

  s3fs-fuse.x86_64 0:1.86-2.el7

Dependency Installed:

  mailcap.noarch 0:2.1.41-2.el7

Complete!

[root@bastionhst opc]#



Step 3. Generate secret keys

Login to OCI console 

Click on User Settings




















Under Resources section click on Customer Secret Keys











Click on Generate Secret key to generate secret keys









Provide a name for the key.










This will generate key , it’s important to save the key as it won’t be shown again.












The S3 credentials are created by using an access key and the secret key. The access key is displayed in the Customer Secret Keys area of the Console.

 

Step 4. Enter your credentials in a ${HOME}/.passwd-s3fs file and set owner-only permissions:

Run this from root user. 
echo ACCESS_KEY_ID:SECRET_ACCESS_KEY > ${HOME}/.passwd-s3fs

Here for  ACCESS_KEY you can get it from Generate secret key page.
For SECRET_ACCESS_KEY , we already saved it while generating it in previous step

Example:-
echo xxxxxxxxxxxxxxxxxxx:yyyyyyyyyyyyyyyyyyyyyyy > ${HOME}/.passwd-s3fs

in this example xxxxxxxxxxxxxxxxx is access key and yyyyyyyyyyyyyyyyy is secret key.

Once password file is created assign proper permission to it 
chmod 600 ${HOME}/.passwd-s3fs

Step 5. Create a directory to mount the storage and mount the object storage
mkdir /s3bucket

To mount the object storage use the following command:-

s3fs [bucket_name] [destination directory] -o endpoint=[region] -o passwd_file=${HOME}/.passwd-s3fs -o url=https://[namespace of object storage].compat.objectstorage.[region].oraclecloud.com/ -onomultipart -o use_path_request_style

example:-
s3fs test_bucket /s3bucket -o endpoint=ap-mumbai-1 -o passwd_file=${HOME}/.passwd-s3fs -o url=https://bm626z56fa0a.compat.objectstorage.ap-mumbai-1.oraclecloud.com/  -onomultipart -o use_path_request_style


Here test_bucket is our bucket name
/s3bucket denotes the local mount point where the object storage is mounted
bm626z56fa0a – this denotes the namespace of the object storage.

Step 6. Verify the mount point

[root@s3bucket]# df -h /s3bucket/
Filesystem      Size  Used Avail Use% Mounted on
s3fs            256T     0  256T   0% /s3bucket
[root@ s3bucket]#

To mount the object storage when system reboots, add the following line in /etc/fstab file.

s3fs#test_bucket /s3bucket fuse _netdev,allow_other,use_path_request_style,passwd_file=/root/.passwd-s3fs,url=https://bm626z56fa0a.compat.objectstorage.ap-mumbai-1.oraclecloud.com 0 0

November 24, 2020

How to create object storage in OCI

In this topic I will show how to create an object storage in OCI 


In OCI there are two kind of object storage available.

  • Standard Object storage : The standard object storage is used where we need access the data very fast and in a frequent manner.

  • Archive Object Storage:  As the name suggests, this type of storage is used for archiving process , where the data is accessed rarely and kept for long time.   

To create an object storage in OCI





Click on Create bucket


 

Provide details for bucket creation.






 

Take a note of namespace value.

 







So the bucket is now created, we can now upload the files into bucket.



We can also upload files directly to bucket from server level using CLI . I have shared the steps in this post.



Oracle Database 26ai Installation Using RPM on Oracle Linux 9 (OEL 9) – Step-by-Step Guide

  In this post I will describe the installation of Oracle Database 26ai 64-bit on Oracle Linux 9 (OL8) 64-bit. The installation requires a m...