January 12, 2021

Steps to change password for APPS in EBS R 12.2

 Environment Details

 

 

Hostname

ebstest.wizer.com

Database Version

12.1.0.2

E Business Suite Version

R 12.2

OS

OEL 7.7

R12 install base

/u01/oracle/VIS

 

Important:- Before changing the password for APPS, APPLSYS and APPS_NE the following tables should be backed up .

1. FND_USER

2. FND_ORACLE_USERID


 Step 1.

Take backup

SQL> create table FND_USER_291220 as select * from FND_USER ;

 Table created. 

SQL> create table FND_ORACLE_USERID_291220 as select * from FND_ORACLE_USERID ;

 Table created.

 

 

Step 2. Shutdown apps tier

Invoke application environment file of fs1

[oracle@ebstest VIS]$ cd /u01/oracle/VIS/fs1/EBSapps/appl

[oracle@ebstest VIS]$ . APPSVIS_ebstest.env

[oracle@ebstest sql]$ cd $ADMIN_SCRIPTS_HOME

[oracle@ebstest scripts]$ adstpall.sh

 



Step 3. Change APPLSYS password. We can use two methods for changing password.

1.       FNDCPASS

2.       AFPASSWD

Here I will be using AFPASSWD utility to change the password.

syntax:- AFPASSWD [-c <APPSUSER>[@<TWO_TASK>]] -s <APPLSYS>

[oracle@ebstest appl]$ AFPASSWD -c apps@VIS -s APPLSYS

Enter the ORACLE password of Application Object Library 'APPSUSER':

Connected successfully to APPS.

Enter the password for your 'SYSTEM' ORACLE schema:

Connected successfully to SYSTEM.

Log file: AFPWD_VIS_239350.log

Enter new password for user:

Verify new password for user:

AFPASSWD completed successfully.

 



Step 4. Run autoconfig on AppsTier with  newly changed apps password

[oracle@ebstest VIS]$ cd /u01/oracle/VIS/fs1/EBSapps/appl

[oracle@ebstest VIS]$ . APPSVIS_ebstest.env

[oracle@ebstest scripts]$ cd $ADMIN_SCRIPTS_HOME

[oracle@ebstest scripts]$ adautocfg.sh

……

……

AutoConfig completed successfully.

 

Step 5. Now start weblogic admin server using following script

[oracle@ebstest scripts]$ pwd

/u01/oracle/VIS/fs1/inst/apps/VIS_ebstest/admin/scripts 

[oracle@ebstest scripts]$ sh adadminsrvctl.sh start

You are running adadminsrvctl.sh version 120.10.12020000.2

 Enter the WebLogic Admin password:

Enter the APPS Schema password:

 

 

Step 6. Confirm the admin server running status

[oracle@ebstest scripts]$ sh adadminsrvctl.sh status 

You are running adadminsrvctl.sh version 120.10.12020000.2

 Enter the WebLogic Admin password:

Enter the APPS Schema password:

  The AdminServer is running 

adadminsrvctl.sh: exiting with status 0

 adadminsrvctl.sh: check the logfile /u01/oracle/VIS/fs1/inst/apps/VIS_ebstest/logs/appl/admin/log/adadminsrvctl.txt for more information ...

 



Step 7 .  Now login to weblogic console from browser


Click on Lock and Edit button




Now under Domain structure, click on services - > Data Sources























Now click on “EBSDataSource”



Now on the page of “Settings of EBSDataSoure” click on connection pool and  provide the changed apps password and save it.



Click on Activate changes.























Step 8 . Start the application services.

[oracle@ebstest appl]$ pwd

/u01/oracle/VIS/fs1/EBSapps/appl

 [oracle@ebstest appl]$ adstrtal.sh

 You are running adstrtal.sh version 120.24.12020000.6

 Enter the APPS username: apps 

Enter the APPS password:

Enter the WebLogic Server password:

….

….

All enabled services for this node are started.

 adstrtal.sh: Exiting with status 0

 

 

Step 9. Verify the WLS Datastore changes by doing followings

Ø  Log in to WLS Administration Console.

Ø  In the Domain Structure tree, expand Services, then select Data Sources.

Ø  On the "Summary of JDBC Data Sources" page, select EBSDataSource.

  OIn the "Settings for EBSDataSource" page, select Monitoring > Testing.











Ø  Select "oacore_server1".

Ø  Click Test DataSource

Ø  Look for the message "Test of EBSDataSource on server oacore_server1 was successful".

 






So this concludes the process of changing password for APPS in EBS R12.2

Ø


January 8, 2021

How to get weblogic url in EBS R 12.2

 

Sometimes we land in a situation where we don’t have the weblogic url handly. So in this post I will show to find it just by extracting some parameters from the application  context file

 

Go to application tier and invoke application run file system environment file

[oracle@ebstest ]$cd /u01/oracle/VIS/fs1/EBSapps/appl

[oracle@ebstest appl]$ . APPSVIS_ebstest.env

 

[oracle@ebstest appl]$ grep -i "wls_admin" $CONTEXT_FILE

         <wls_admin_host oa_var="s_wls_admin_host">ebstest</wls_admin_host>

         <wls_admin_domain oa_var="s_wls_admin_domain">wizer.com</wls_admin_domain>

         <wls_admin_user oa_var="s_wls_admin_user">weblogic</wls_admin_user>

         <wls_adminport oa_var="s_wls_adminport" oa_type="PORT" base="7001" step="1" range="-1" label="WLS Admin Server Port">7001< wls_adminport>

 

So from the above output the url should look like this

http://ebstest.wizer.com:7001/console

 

We can also find out the url using command

[oracle@ebstest appl]$ echo "http://"$(cat $CONTEXT_FILE | grep s_webhost | cut -d '>' -f2 | cut -d '<' -f1)"."$(cat $CONTEXT_FILE | grep s_wls_admin_domain | cut -d '>' -f2 | cut -d '<' -f1)":"$(cat $CONTEXT_FILE | grep s_wls_adminport | cut -d '>' -f2 | cut -d '<' -f1)"/console"

http://ebstest.wizer.com:7001/console

 

 

January 4, 2021

Sample listener.ora and tnsnames.ora entries for CDB and PDB for oracle 19c

 

 Environment details:-

Hostname

gg1.soumya.com

Server IP

192.168.0.110

DB Version

19.3.0

Container DB SID

TESTCDB

PDB1 SID

TESTPDB1

PDB2 SID

TESTPDB2

ORACLE_HOME

/u01/app/oracle/product/19.0.0/dbhome_1

 

vi $ORACLE_HOME/network/admin/listener.ora

 

LISTENER =

  (DESCRIPTION_LIST =

    (DESCRIPTION =

      (ADDRESS = (PROTOCOL = TCP)(HOST = gg1.soumya.com)(PORT = 1521))

      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))

    )

  )

 

SID_LIST_LISTENER =

  (SID_LIST =

    (SID_DESC =

      (GLOBAL_DBNAME = TESTDB)

      (SID_NAME = TESTDB)

    )

    (SID_DESC =

      (GLOBAL_DBNAME = TESTPDB1)

      (SID_NAME = TESTPDB1)

    )

    (SID_DESC =

      (GLOBAL_DBNAME = TESTPDB2)

      (SID_NAME = TESTPDB2)

  )

 )

 

 

 

 

vi $ORACLE_HOME/network/admin/tnsnames.ora

 

TESTCDB =

  (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = gg1.soumya.com)(PORT = 1521))

    (CONNECT_DATA =

      (SERVER = DEDICATED)

      (SERVICE_NAME = TESTCDB)

    )

  )

TESTPDB1 =

  (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = gg1.soumya.com)(PORT = 1521))

    (CONNECT_DATA =

      (SERVER = DEDICATED)

      (SERVICE_NAME = TESTPDB1)

    )

  )

TESTPDB2 =

  (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = gg1.soumya.com)(PORT = 1521))

    (CONNECT_DATA =

      (SERVER = DEDICATED)

      (SERVICE_NAME = TESTPDB2)

    )

  )

 

 

 

Verify Listener status

[oracle@gg1 admin]$ lsnrctl status LISTENER

 

LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 26-DEC-2020 20:19:14

 

Copyright (c) 1991, 2019, Oracle.  All rights reserved.

 

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=gg1.soumya.com)(PORT=1521)))

STATUS of the LISTENER

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

Alias                     LISTENER

Version                   TNSLSNR for Linux: Version 19.0.0.0.0 - Production

Start Date                26-DEC-2020 19:57:29

Uptime                    0 days 0 hr. 21 min. 45 sec

Trace Level               off

Security                  ON: Local OS Authentication

SNMP                      OFF

Listener Parameter File   /u01/app/oracle/product/19.0.0/dbhome_1/network/admin/listener.ora

Listener Log File         /u01/app/oracle/diag/tnslsnr/gg1/listener/alert/log.xml

Listening Endpoints Summary...

  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=gg1.soumya.com)(PORT=1521)))

Services Summary...

Service "86b637b62fdf7a65e053f706e80a27ca" has 1 instance(s).

  Instance "testdb", status READY, has 1 handler(s) for this service...

Service "TESTDB" has 2 instance(s).

  Instance "TESTDB", status UNKNOWN, has 1 handler(s) for this service...

  Instance "testdb", status READY, has 1 handler(s) for this service...

Service "TESTPDB1" has 2 instance(s).

  Instance "TESTPDB1", status UNKNOWN, has 1 handler(s) for this service...

  Instance "testdb", status READY, has 1 handler(s) for this service...

Service "TESTPDB2" has 2 instance(s).

  Instance "TESTPDB2", status UNKNOWN, has 1 handler(s) for this service...

  Instance "testdb", status READY, has 1 handler(s) for this service...

Service "b74ddd0efa7a8c6ae0536e00a8c0a6b5" has 1 instance(s).

  Instance "testdb", status READY, has 1 handler(s) for this service...

Service "b74de34fad898e5fe0536e00a8c0203a" has 1 instance(s).

  Instance "testdb", status READY, has 1 handler(s) for this service...

Service "testdbXDB" has 1 instance(s).

  Instance "testdb", status READY, has 1 handler(s) for this service...

The command completed successfully

 

Verify tns entries

[oracle@gg1 admin]$ tnsping testcdb

 

TNS Ping Utility for Linux: Version 19.0.0.0.0 - Production on 26-DEC-2020 20:20:44

 Copyright (c) 1997, 2019, Oracle.  All rights reserved.

 Used parameter files: 

Used TNSNAMES adapter to resolve the alias

Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = gg1.soumya.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = TESTCDB)))

OK (0 msec)

 

[oracle@gg1 admin]$ tnsping testpdb1

 TNS Ping Utility for Linux: Version 19.0.0.0.0 - Production on 26-DEC-2020 20:20:49

 Copyright (c) 1997, 2019, Oracle.  All rights reserved.

 Used parameter files:

  

Used TNSNAMES adapter to resolve the alias

Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = gg1.soumya.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = TESTPDB1)))

OK (0 msec)

 

 

December 31, 2020

Oracle 19c Database creation using in Silent Mode on Linux 7

In this post I will show how to create database in oracle 19c using silent mode.

Usually we create database graphically by calling database creation utility known as DBCA.
But due to different reasons you may not have the possibility to install it graphically. So I will show how to create a database using DBCA in silent mode.

Before creating a database, the database binary should be installed.

Using the following link you can learn how to install oracle 19c database.

how to install Oracle 19c Software using Silent mode on Linux 7

To create database graphically you can follow the following link

Oracle Database 19c Installation On Oracle Linux 7 in graphical mode.

 

Step 1.

To create a database in silent mode, we will use a response file, however its not mandatory as we can pass all the arguments in command line to create database. A response file consists of different values which are basically required for database installation. The location of response file is $ORACLE_HOME/assistants/dbca

 

Add the following arguments response file . The arguments I have passed here as based on my requirement.

[oracle@gg1 bin]$ vi  $ORACLE_HOME/assistants/dbca/dbca.rsp

responseFileVersion=/oracle/assistants/rspfmt_dbca_response_schema_v19.0.0

 gdbName=testdb ---> This defines global db name

 sid=testdb    --->  This defines the oracle SID 

 databaseConfigType=SI ---- > This defines the instance type i.e single instance or Rac instance

 createAsContainerDatabase=true ---> Choose true if you want to create a container database

 numberOfPDBs=2 --- > Defines no of pdbs would be created

 pdbName=testpdb --- > Defines pdb name

pdbAdminPassword=redhat ---> Defines password for pdb admininstrator user

templateName=/u01/app/oracle/product/19.0.0/dbhome_1/assistants/dbca/templates/General_Purpose.dbc --- > Defines the template name would be used for database creation

 sysPassword=redhat --- > password for sys user

 systemPassword=redhat --- > password for system user

 datafileDestination=/u01/app/oracle/oradata ---- > Defines datafile location

  storageType=FS --- > Defines the storage type i.e. file system or ASM

 characterSet=AL32UTF8 --- > Defines character set

 nationalCharacterSet=AL16UTF16 --- > Defines national character set

 sampleSchema=TRUE --- > Defines if sample schemas would be created

 

 databaseType=MULTIPURPOSE --- >Defines database type whether   

  MULTIPURPOSE|DATA_WAREHOUSING|OLTP

 automaticMemoryManagement=TRUE --- > Defines if AMM is enabled

 totalMemory=1024 ---- > Defines total memory allocated for database

 


Step 2.

Begin installation

 

[oracle@gg1 bin]$ export ORACLE_HOME=/u01/app/oracle/product/19.0.0/dbhome_1

[oracle@gg1 bin]$ export PATH=$ORACLE_HOME/bin:$PATH

[oracle@gg1 bin cd $ORACLE_HOME/bin

 

[oracle@gg1 bin]$ dbca -silent -createDatabase -responseFile /u01/app/oracle/product/19.0.0/dbhome_1/assistants/dbca/dbca.rsp

Prepare for db operation

8% complete

Copying database files

31% complete

Creating and starting Oracle instance

32% complete

36% complete

40% complete

43% complete

46% complete

Completing Database Creation

51% complete

53% complete

54% complete

Creating Pluggable Databases

58% complete

63% complete

77% complete

Executing Post Configuration Actions

100% complete

Database creation complete. For details check the logfiles at:

 /u01/app/oracle/cfgtoollogs/dbca/testdb.

Database Information:

Global Database Name:testdb

System Identifier(SID):testdb

Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/testdb/testdb0.log" for further details.

 

 

Step 3.

Verify Installation

 

[oracle@gg1 bin]$ export ORACLE_SID=testdb

[oracle@gg1 bin]$ sqlplus / as sysdba

 

SQL> show con_name

 

CON_NAME

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

CDB$ROOT

 

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

 

INSTANCE_NAME    OPEN_MODE            DATABASE_ROLE

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

testdb           READ WRITE           PRIMARY

 

SQL> show pdbs

 

    CON_ID CON_NAME             OPEN MODE  RESTRICTED

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

         2 PDB$SEED                       READ ONLY  NO

         3 TESTPDB1                       READ WRITE NO

         4 TESTPDB2                       READ WRITE NO



So this concludes the database creation using silent mode in oracle 19c

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...