Monday, 1 January 2024

HTTP Server wallet password error Application R12


 Error:

Executing service control script:

/u01/applmgr/prodappl/inst/apps/TEST_ebstest/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...

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

opmn id=ebstest.hinopak.com:6200

    0 of 1 processes started.

 

ias-instance id=TEST_ebstest.ebstest.hinopak.com

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

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

ias-component/process-type/process-set:

    HTTP_Server/HTTP_Server/HTTP_Server/

 

Error

--> Process (index=1,uid=692153092,pid=17246)

    failed to start a managed process after the maximum retry limit

    Log:

    /u01/applmgr/prodappl/inst/apps/TEST_ebstest/logs/ora/10.1.3/opmn/HTTP_Server~1.log

 

 

adapcctl.sh: exiting with status 0

 

adapcctl.sh: check the logfile /u01/applmgr/prodappl/inst/apps/TEST_ebstest/logs/appl/admin/log/adapcctl.txt for more information ...

 

 

Solution:

 

Error: Failed to open the wallet - Fix

During cloning activity in one of our EBS R12, the whole cloning process completed successfully without reporting any issues. But when we are trying to start application services all “opmn” services are started except HTTP_Server.

e.g.,

[applprod@app scripts]$ ./adopmnctl.sh status

You are running adopmnctl.sh version 120.6.12010000.5

Checking status of OPMN managed processes...

Processes in Instance: PRODHCM_app.app.testdomain.com
---------------------------------+--------------------+---------+---------
ias-component                    | process-type       |     pid | status 
---------------------------------+--------------------+---------+---------
OC4JGroup:default_group          | OC4J:oafm          |    2418 | Alive  
OC4JGroup:default_group          | OC4J:forms         |    2219 | Alive  
OC4JGroup:default_group          | OC4J:forms         |    2218 | Alive  
OC4JGroup:default_group          | OC4J:forms         |    2216 | Alive  
OC4JGroup:default_group          | OC4J:forms         |    2215 | Alive  
OC4JGroup:default_group          | OC4J:oacore       |    1889 | Alive  
OC4JGroup:default_group          | OC4J:oacore       |    1888 | Alive  
OC4JGroup:default_group          | OC4J:oacore       |    1887 | Alive  
OC4JGroup:default_group          | OC4J:oacore       |    1886 | Alive  
HTTP_Server                              | HTTP_Server       |     N/A | Down   


adopmnctl.sh: exiting with status 0

adopmnctl.sh: check the logfile /u01/applprod/inst/apps/PRODHCM_app/logs/appl/admin/log/adopmnctl.txt for more information ... 

[applprod@app scripts]$

In the opmn logfile below error messages are reported:

$ cat /u01/applprod/inst/apps/PRODHCM_app/logs/ora/10.1.3/opmn/HTTP_Server~1.log

--------

16/10/17 10:34:10 Start process
--------
/u01/applprod/inst/apps/PRODHCM_app/ora/10.1.3/Apache/Apache/bin/apachectl startssl: execing httpd
Error: Failed to open the wallet [Hint: incorrect password, bad wallet file, ...] (Server app.apollohospitals.com:8030, wallet file:/u01/applprod/inst/apps/PRODHCM_app/certs/Apache)

Then I tried to start the "apache"server only but issue not resolved. Restart of application serer also not resolved the issue. From the above error it seems there is a issue with Apache server certificate. So, Finally below workaround worked fine:

So, connected to App server and stopped the all application services.

$ cd $ADMIN_SCRIPTS_HOME
$ ./adstpall.sh

Then, go to Apache sertificate directory.

$ cd $INST_TOP/certs/Apache

 

Just rename exiting file in the folder:

$ mv cwallet.sso cwallet.sso_BAK

And, copy the same file from source ( prod) to this cloned environment and start the application. It worked for me.

 

OR

[applmgr@ebstest opmn]$cd $INST_TOP/certs/opmn

/u01/applmgr/prodappl/inst/apps/TEST_ebstest/certs/opmn

[applmgr@ebstest opmn]$ ls

cwallet.sso  ewallet.p12

 

[applmgr@ebstest opmn]$ cp cwallet.sso /u01/applmgr/prodappl/inst/apps/TEST_ebstest/certs/Apache

 

[applmgr@ebstest Apache]$ ls

cwallet.sso  cwallet.sso_old  cwallet.sso_prod  ewallet.p12

[applmgr@ebstest Apache]$

OR

[applmgr@ebstest default]$ cd /u01/applmgr/prodappl/apps/tech_st/10.1.3/opmn/conf/ssl.wlt/default

[applmgr@ebstest default]$ ls

cwallet.sso  ewallet.p12

[applmgr@ebstest default]$ cp cwallet.sso  /u01/applmgr/prodappl/inst/apps/TEST_ebstest/certs/Apache

 

[applmgr@ebstest Apache]$ ls

cwallet.sso  cwallet.sso_old  cwallet.sso_prod  ewallet.p12

[applmgr@ebstest Apache]$

Wednesday, 20 December 2023

Query For List of Scheduled Concurrent Programs in Apps R12 

 select r.request_id,  

       p.user_concurrent_program_name ||

       case 

          when p.user_concurrent_program_name = 'Report Set' then 

            (select ' - ' || s.user_request_set_name  

              from apps.fnd_request_sets_tl s  

             where s.application_id = r.argument1  

               and s.request_set_id = r.argument2  

               and language = 'US'

            )  

          when p.user_concurrent_program_name = 'Check Periodic Alert' then 

            (select ' - ' || a.alert_name  

              from apps.alr_alerts a  

             where a.application_id = r.argument1  

               and a.alert_id = r.argument2  

               and language = 'US'

            )  

       end concurrent_program_name,  

       decode(c.class_type,  

              'P', 'Periodic',  

              'S', 'On Specific Days',  

              'X', 'Advanced',  

              c.class_type

             ) schedule_type,   

       case 

          when c.class_type = 'P' then 

            'Repeat every ' ||  

            substr(c.class_info, 1, instr(c.class_info, ':') - 1) ||  

            decode(substr(c.class_info, instr(c.class_info, ':', 1, 1) + 1, 1),  

                   'N', ' minutes',  

                   'M', ' months',  

                   'H', ' hours',  

                   'D', ' days') ||  

            decode(substr(c.class_info, instr(c.class_info, ':', 1, 2) + 1, 1),  

                  'S', ' from the start of the prior run',  

                  'C', ' from the completion of the prior run')  

          when c.class_type = 'S' then 

             nvl2(dates.dates, 'Dates: ' || dates.dates || '. ', null) ||  

             decode(substr(c.class_info, 32, 1), '1', 'Last day of month ') ||  

             decode(sign(to_number(substr(c.class_info, 33))),  

                    '1',  'Days of week: ' ||  

                    decode(substr(c.class_info, 33, 1), '1', 'Su ') ||  

                    decode(substr(c.class_info, 34, 1), '1', 'Mo ') ||  

                    decode(substr(c.class_info, 35, 1), '1', 'Tu ') ||  

                    decode(substr(c.class_info, 36, 1), '1', 'We ') ||  

                    decode(substr(c.class_info, 37, 1), '1', 'Th ') ||  

                    decode(substr(c.class_info, 38, 1), '1', 'Fr ') ||  

                    decode(substr(c.class_info, 39, 1), '1', 'Sa '))  

       end schedule,  

    r.requested_start_date next_run,  

       case 

          when p.user_concurrent_program_name != 'Report Set' and 

               p.user_concurrent_program_name != 'Check Periodic Alert' then 

               r.argument_text  

       end argument_text,  

       r.hold_flag on_hold,  

       c.date1 start_date,  

       c.date2 end_date,  

       c.class_info, user_name

  from apps.fnd_concurrent_requests r,  

       applsys.fnd_conc_release_classes c,  

       apps.fnd_concurrent_programs_tl p,  

       apps.fnd_user                    usr,

       (SELECT release_class_id,  

               substr(max(SYS_CONNECT_BY_PATH(s, ' ')), 2) dates  ,a

          FROM (select release_class_id,  

                       rank() over(partition by release_class_id order by s) a,  

                       s  

                  from (select c.class_info,  

                               l,  

                               c.release_class_id,  

                               decode(substr(c.class_info, l, 1), '1', to_char(l)) s  

                          from (select level l

                                  from dual

                               connect by level <= 31),  

                               apps.fnd_conc_release_classes c  

                         where c.class_type = 'S')  

                  where s is not null)  

         CONNECT BY PRIOR 

                     (a || release_class_id) = (a - 1) || release_class_id  

        group by release_class_id,a) dates

  where r.phase_code = 'P' 

    and c.application_id = r.release_class_app_id  

    and c.release_class_id = r.release_class_id  

    and nvl(c.date2, sysdate + 1) > sysdate  

    and c.class_type is not null 

    and p.concurrent_program_id = r.concurrent_program_id  

    and p.application_id = r.program_application_id  

    and p.language = 'US' 

    and dates.release_class_id(+) = r.release_class_id  

    and usr.user_id = requested_by

  order by requested_by,on_hold, next_run;

Query For Currently Login Users List in Apps EBS R12

 

SELECT DISTINCT icx.session_id,icx.user_id,fu.user_name,fu.description FROM icx_sessions icx, fnd_user fu WHERE     

disabled_flag != 'Y'

AND icx.pseudo_flag = 'N' AND (last_connect + 

DECODE (fnd_profile.VALUE ('ICX_SESSION_TIMEOUT'),

NULL, limit_time,

0   , limit_time,

fnd_profile.VALUE ('ICX_SESSION_TIMEOUT')/60) / 24) > SYSDATE

AND icx.counter < limit_connects

AND icx.user_id = fu.user_id;

Query For Oracle Application EBS R12 Naming User List


select * from fnd_user c where c.end_date is null 

and c.user_name not in ('APPSMGR','AME_INVALID_APPROVER','ASGADM','ASGUEST','GUEST','IEXADMIN','INDUSTRY DATA','IRC_EMP_GUEST','IRC_EXT_GUEST','MOBADM','MOBDEV','MOBILEADM','OP_CUST_CARE_ADMIN','OP_SYSADMIN','ORACLE12.0.0',

'ORACLE12.1.0','ORACLE12.2.0','ORACLE12.3.0','ORACLE12.4.0','ORACLE12.5.0','ORACLE12.6.0','ORACLE12.7.0','ORACLE12.8.0','ORACLE12.9.0','PORTAL30',

'PORTAL30_SSO','XML_USER','WIZARD','AUTOINSTALL');

How to Identify & Kill Zombie Process in Linux


Zombie Process Definition in Linux

In conclusion, a zombie process in Linux is a terminated child process that remains in the system's process table while waiting for its parent process to collect its exit status. A zombie process is a type of process that has completed its execution but still has an entry in the process table.

What is zombie process in Linux?

In the world of Linux, a zombie process refers to any process that is essentially removed from the system as 'defunct', but still somehow resides in the processor's memory as a 'zombie'.

Step-01 Find Zombie Processes :-

 $ ps aux | egrep "Z|defunct"

 USER        PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND

linuxdb  309480  0.0  0.0 112720  2248 pts/0    S+   09:36   0:00 grep -E --color=auto Z|defuct

polkitd  396842  0.0  0.0      0     0 ?        Z    Dec18   0:00 [pkla-check-auth] <defunct>

Step-02 Kill Zombie Processes :-

We can kill above process with two deferent way 

$ kill –s SIGCHLD  Parent_PID

OR

$ kill -9 Parent_PID


Monday, 31 May 2021

During Delete Virtual Storage getting Error "CRS-2680: Clean of 'tats.kvm' on 'furoda' failed)." In Oracle Database Appliance (ODA)

Error:

DCS-10001:Internal error encountered: KvmCommandExecutor.KvmCommandResult(returnCode=1, output=PRCR-1065 : 

Failed to stop resource ora.data.ebsstorage.acfs CRS-2680: Clean of 'tats.kvm' on 'hpmloda' failed).

Solution:

[root@furoda ~]# odacli delete-vmstorage -n EBSSTORAGE

Job details

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

ID:  cc500af7-359d-4d0c-b823-dc30c0a5c0b0

Description:  VM storage ebsstorage deletion

Status:  Created

Created:  May 28, 2021 11:04:44 AM PKT

 Message:

Task Name                                Start Time                          End                                                                                                              Time                            Status

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

[root@furoda ~]# odacli describe-job -i cc500af7-359d-4d0c-b823-dc30c0a5c0b0

Job details

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

                     ID:  cc500af7-359d-4d0c-b823-dc30c0a5c0b0

            Description:  VM storage ebsstorage deletion

                 Status:  Failure

                Created:  May 28, 2021 11:04:44 AM PKT

                Message:  DCS-10001:Internal error encountered: KvmCommandExecutor.KvmCommandResult(returnCode=255, output=ASMCMD-9470: ASM proxy instance unavailable 

ASMCMD-9473: volume STATE will show as REMOTE

Diskgroup Name: DATA

         Volume Name: EBSSTORAGE

         Volume Device: /d

Task Name                                Start Time                          End Time                            Status

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

Validate Vm Storage exists               May 28, 2021 11:04:44 AM PKT        May 28, 2021 11:04:44 AM PKT        Success

Validate no resources associated         May 28, 2021 11:04:44 AM PKT        May 28, 2021 11:04:44 AM PKT        Success

Remove ACFS filesystem from Clusterware  May 28, 2021 11:04:44 AM PKT        May 28, 2021 11:04:45 AM PKT        InternalError

[root@furoda ~]# su - grid

[grid@furoda ~]$ export ORACLE_SID=+ASM1

[grid@furoda ~]$ export ORACLE_HOME=/u01/app/19.0.0.0/grid

[grid@furoda ~]$ export PATH=/u01/app/19.0.0.0/grid/bin:$PATH

[grid@furoda ~]$ crsctl stat res -t

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

Name           Target  State        Server                   State details

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

Local Resources

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

ora.DATA.COMMONSTORE.advm

               ONLINE  ONLINE       furoda                  STABLE

ora.DATA.DIR_FS.advm

               ONLINE  ONLINE       furoda                  STABLE

ora.DATA.EBSSTORAGE.advm

               ONLINE  ONLINE       furoda                  STABLE

ora.LISTENER.lsnr

               ONLINE  ONLINE       furoda                  STABLE

ora.chad

               ONLINE  ONLINE       furoda                  STABLE

ora.data.commonstore.acfs

               ONLINE  ONLINE       furoda                  mounted on /opt/orac

                                                             le/dcs/commonstore,S

                                                             TABLE

ora.data.dir_fs.acfs

               ONLINE  ONLINE       furoda                  mounted on /dir_fs,S

                                                             TABLE

ora.data.ebsstorage.acfs

               OFFLINE ONLINE       furoda                  mounted on /u05/app/

                                                             sharedrepo/ebsstorag

                                                             e,STABLE

ora.net1.network

               ONLINE  ONLINE       furoda                  STABLE

ora.ons

               ONLINE  ONLINE       furoda                  STABLE

ora.proxy_advm

               ONLINE  ONLINE       furoda                  STABLE

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

Cluster Resources

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

ora.ASMNET1LSNR_ASM.lsnr(ora.asmgroup)

      1        ONLINE  ONLINE       furoda                  STABLE

ora.DATA.dg(ora.asmgroup)

      1        ONLINE  ONLINE       furoda                  STABLE

ora.LISTENER_SCAN1.lsnr

      1        OFFLINE OFFLINE                               STABLE

ora.RECO.dg(ora.asmgroup)

      1        ONLINE  ONLINE       furoda                  STABLE

ora.asm(ora.asmgroup)

      1        ONLINE  ONLINE       furoda                  Started,STABLE

ora.asmnet1.asmnetwork(ora.asmgroup)

      1        ONLINE  ONLINE       furoda                  STABLE

ora.cvu

      1        ONLINE  ONLINE       furoda                  STABLE

ora.fur.db

      1        ONLINE  ONLINE       furoda                  Open,HOME=/u01/app/o

                                                             racle/product/12.1.0

                                                             .2/dbhome_2,STABLE

ora.furoda.vip

      1        ONLINE  ONLINE       furoda                  STABLE

ora.qosmserver

      1        ONLINE  ONLINE       furoda                  STABLE

ora.scan1.vip

      1        OFFLINE OFFLINE                               STABLE

tats.kvm

      1        ONLINE  UNKNOWN      furoda                  STABLE

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


[grid@furoda ~] exit

root@furoda ~]# export PATH=/u01/app/19.0.0.0/grid/bin:$PATH

root@furoda ~]# cd /u01/app/19.0.0./grid/bin

root@furoda ~]# ./crsctl delete res tats.kvm

[root@furoda bin]# ./crsctl stat res -t

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

Name           Target  State        Server                   State details

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

Local Resources

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

ora.DATA.COMMONSTORE.advm

               ONLINE  ONLINE       furoda                  STABLE

ora.DATA.DIR_FS.advm

               ONLINE  ONLINE       furoda                  STABLE

ora.DATA.EBSSTORAGE.advm

               ONLINE  ONLINE       furoda                  STABLE

ora.LISTENER.lsnr

               ONLINE  ONLINE       furoda                  STABLE

ora.chad

               ONLINE  ONLINE       furoda                  STABLE

ora.data.commonstore.acfs

               ONLINE  ONLINE       furoda                  mounted on /opt/orac

                                                             le/dcs/commonstore,S

                                                             TABLE

ora.data.dir_fs.acfs

               ONLINE  ONLINE       furoda                  mounted on /dir_fs,S

                                                             TABLE

ora.data.ebsstorage.acfs

               OFFLINE ONLINE       furoda                  mounted on /u05/app/

                                                             sharedrepo/ebsstorag

                                                             e,STABLE

ora.net1.network

               ONLINE  ONLINE       furoda                  STABLE

ora.ons

               ONLINE  ONLINE       furoda                  STABLE

ora.proxy_advm

               ONLINE  ONLINE       furoda                  STABLE

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

Cluster Resources

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

ora.ASMNET1LSNR_ASM.lsnr(ora.asmgroup)

      1        ONLINE  ONLINE       furoda                  STABLE

ora.DATA.dg(ora.asmgroup)

      1        ONLINE  ONLINE       furoda                  STABLE

ora.LISTENER_SCAN1.lsnr

      1        OFFLINE OFFLINE                               STABLE

ora.RECO.dg(ora.asmgroup)

      1        ONLINE  ONLINE       furoda                  STABLE

ora.asm(ora.asmgroup)

      1        ONLINE  ONLINE       furoda                  Started,STABLE

ora.asmnet1.asmnetwork(ora.asmgroup)

      1        ONLINE  ONLINE       furoda                  STABLE

ora.cvu

      1        ONLINE  ONLINE       furoda                  STABLE

ora.fur.db

      1        ONLINE  ONLINE       furoda                  Open,HOME=/u01/app/o

                                                             racle/product/12.1.0

                                                             .2/dbhome_2,STABLE

ora.furoda.vip

      1        ONLINE  ONLINE       furoda                  STABLE

ora.qosmserver

      1        ONLINE  ONLINE       furoda                  STABLE

ora.scan1.vip

      1        OFFLINE OFFLINE                               STABLE

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

[root@furoda bin]#

[root@furoda bin]# odacli delete-vmstorage -n EBSSTORAGE

Job details

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

                     ID:  04f53ebb-233e-4040-adc8-61c135524ae8

            Description:  VM storage ebsstorage deletion

                 Status:  Created

                Created:  May 28, 2021 11:23:47 AM PKT

                Message:

Task Name                                Start Time                          End Time                            Status

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

[root@furoda bin]# odacli describe-job -i 04f53ebb-233e-4040-adc8-61c135524ae8

Job details

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

                     ID:  04f53ebb-233e-4040-adc8-61c135524ae8

            Description:  VM storage ebsstorage deletion

                 Status:  Success

                Created:  May 28, 2021 11:23:47 AM PKT

                Message:

Task Name                                Start Time                          End Time                            Status

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

Validate Vm Storage exists               May 28, 2021 11:23:47 AM PKT        May 28, 2021 11:23:47 AM PKT        Success

Validate no resources associated         May 28, 2021 11:23:47 AM PKT        May 28, 2021 11:23:47 AM PKT        Success

Remove ACFS filesystem from Clusterware  May 28, 2021 11:23:47 AM PKT   May 28, 2021 11:23:51 AM PKT        Success

Delete ACFS mount point                  May 28, 2021 11:23:51 AM PKT        May 28, 2021 11:23:51 AM PKT        Success

Remove ACFS filesystem                   May 28, 2021 11:23:51 AM PKT        May 28, 2021 11:23:51 AM PKT        Success

Delete ASM volume                        May 28, 2021 11:23:51 AM PKT        May 28, 2021 11:23:56 AM PKT        Success

Delete metadata                          May 28, 2021 11:23:56 AM PKT        May 28, 2021 11:23:56 AM PKT        Success


Friday, 20 November 2020

Oracle Database Migration from Linux file System to ASM file System in12CR1

 1- Write Non-ASM DBS Environment in .bash_file and Source

[oracle@oda12 ~]$ vi .bash_profile

# .bash_profile

# Get the aliases and functions

if [ -f ~/.bashrc ]; then

        . ~/.bashrc

fi

# User specific environment and startup programs

PATH=$PATH:$HOME/.local/bin:$HOME/bin

# for oracle

TMP=/tmp;

TMPDIR=/tmp;

ORACLE_BASE=/u01/app/oracle;

ORACLE_HOME=/u01/app/oracle/product/12.1.0/db_1;

ORACLE_SID=orcl;

ORACLE_HOSTNAME=oda12.oracle.com;

ORACLE_UNQNAME=orcl;

TZ=Etc/GMT-5;

LD_LIBRARY_PATH=$ORACLE_PATH/lib:/lib:/usr/lib;

PATH=$ORACLE_HOME/bin:$PATH;

EDITOR=vi;

CLASS_PATH=$ORACLE_HOME/Jre;

TNS_ADMIN=/u01/app/oracle/product/12.1.0/db_1/network/admin;

alias hmdb='source /home/oracle/hmdb.env'

export TNS_ADMIN TMP TMPDIR ORACLE_BASE ORACLE_HOME ORACLE_SID ORACLE_HOSTNAME ORACLE_UNQNAME TZ PATH EDITOR LD_LIBRARY_PATH CLASS_PATH

export PATH

:wq!

[oracle@oda12 ~]$ source .bash_profile

 [oracle@oda12 ~]$ hmdb

2- Check Achivelog Mode is Enable in Database

 [oracle@oda12 ~]$ sqlplus / as sysdba

SQL*Plus: Release 12.1.0.2.0 Production on Thu Oct 15 01:41:41 2020

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

Connected to:

Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production

With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

SQL> set lines 250 pages 250

SQL> select INSTANCE_NAME,HOST_NAME,ARCHIVER,DATABASE_STATUS ,VERSION from v$instance;

INSTANCE_NAME    HOST_NAME                                                        ARCHIVE DATABASE_STATUS   VERSION

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

hmdb             oda12.oracle.com                                                 STOPPED ACTIVE            12.1.0.2.0

SQL> archive log list

Database log mode             No Archive Mode

Automatic archival             Disabled

Archive destination            USE_DB_RECOVERY_FILE_DEST

Oldest online log sequence     22

Current log sequence           24

SQL> show parameter db_recovery

NAME                                 TYPE        VALUE

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

db_recovery_file_dest                string      /u01/app/oracle/fast_recovery_area

db_recovery_file_dest_size           big integer 4560M

3- Enable Achivelog Mode in Database

SQL> shut immediate;

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> startup mount;

ORACLE instance started.

Total System Global Area 1308622848 bytes

Fixed Size                  2924064 bytes

Variable Size             452985312 bytes

Database Buffers          838860800 bytes

Redo Buffers               13852672 bytes

Database mounted.

SQL>  alter database archivelog;

Database altered.

SQL> alter database open;

Database altered.

SQL> archive log list

Database log mode              Archive Mode

Automatic archival             Enabled

Archive destination            USE_DB_RECOVERY_FILE_DEST

Oldest online log sequence     22

Next log sequence to archive   24

Current log sequence           24

SQL>

SQL> alter system switch logfile;

System altered.

SQL> archive log list

Database log mode                     Archive Mode

Automatic archival                      Enabled

Archive destination                     USE_DB_RECOVERY_FILE_DEST

Oldest online log sequence       23

Next log sequence to archive    25

Current log sequence                 25

4- Check and verify All Datafiles, redolog file,controlfile,tempfile with ASM Disk Groups etc..

SQL> select name from v$database;

NAME

---------

HMDB

SQL> col NAME format a30

SQL> col PATH format a30

SQL> select NAME,STATE,TOTAL_MB,PATH from v$asm_disk;

NAME                           STATE      TOTAL_MB PATH

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

DISK1                          NORMAL        10239 ORCL:DISK1

DISK2                          NORMAL        10239 ORCL:DISK2

DISK3                          NORMAL        10239 ORCL:DISK3

DISK4                          NORMAL        10239 ORCL:DISK4

DISK5                          NORMAL        20479 ORCL:DISK5

DISK6                          NORMAL        20479 ORCL:DISK6

6 rows selected.

[root@oda12 ~]# su - grid

Last login: Thu Oct 15 01:31:56 PKT 2020

[grid@oda12 ~]$ asmcmd

ASMCMD> lsdg

State    Type    Rebal  Sector  Block       AU  Total_MB  Free_MB  Req_mir_free_MB  Usable_file_MB  Offline_disks  Voting_files  Name

MOUNTED  NORMAL  N         512   4096  1048576     20478    20352                0           10176              0             N  CRS/

MOUNTED  NORMAL  N         512   4096  1048576     40958    36698                0           18349              0             N  DATA/

MOUNTED  NORMAL  N         512   4096  1048576     20478    20012                0           10006              0             N  FRA/

ASMCMD> exit

[grid@oda12 ~]$ exit

logout

[root@oda12 ~]# su - oracle

[oracle@oda12 ~]$ hmdb

[oracle@oda12 ~]$

[oracle@oda12 ~]$ sqlplus / as sysdb 

SQL*Plus: Release 12.1.0.2.0 Production on Thu Oct 15 01:41:41 2020

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

Connected to:

Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production

With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

SQL>  col NAME format a70

SQL>  select name from v$datafile;

NAME

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

/u01/app/oracle/oradata/HMDB/datafile/o1_mf_system_hqh83991_.dbf

/u01/app/oracle/oradata/HMDB/datafile/o1_mf_sysaux_hqh81kwf_.dbf

/u01/app/oracle/oradata/HMDB/datafile/o1_mf_undotbs1_hqh85f2m_.dbf

/u01/app/oracle/oradata/HMDB/datafile/o1_mf_users_hqh85cxr_.dbf

SQL> col NAME format a75

SQL> select name from v$controlfile;

NAME

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

/u01/app/oracle/oradata/HMDB/controlfile/o1_mf_hqh86fch_.ctl

/u01/app/oracle/fast_recovery_area/HMDB/controlfile/o1_mf_hqh86fd7_.ctl

SQL> col member format a75

SQL> select member from v$logfile;

MEMBER

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

/u01/app/oracle/oradata/HMDB/onlinelog/o1_mf_3_hqh86jjz_.log

/u01/app/oracle/fast_recovery_area/HMDB/onlinelog/o1_mf_3_hqh86jpb_.log

/u01/app/oracle/oradata/HMDB/onlinelog/o1_mf_2_hqh86j0q_.log

/u01/app/oracle/fast_recovery_area/HMDB/onlinelog/o1_mf_2_hqh86j7j_.log

/u01/app/oracle/oradata/HMDB/onlinelog/o1_mf_1_hqh86hkv_.log

/u01/app/oracle/fast_recovery_area/HMDB/onlinelog/o1_mf_1_hqh86hms_.log

6 rows selected.

SQL> show parameter control_files

NAME                   TYPE       VALUE

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

control_files         string     /u01/app/oracle/oradata/HMDB/controlfile/o1_mf_hqh86fch_.ctl

                  , /u01/app/oracle/fast_recovery_area/HMDB/controlfile/o1_mf_hqh86fd7_.ctl

5- Define Disk group for controlfile, datafile, redologfile, tempfile with archivelog in Spfile from Sqlplus Prompt

SQL> ALTER SYSTEM SET control_files='+DATA' scope=spfile;

System altered.

SQL> show parameter db_create_file_dest

NAME                                 TYPE        VALUE

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

db_create_file_dest                  string      /u01/app/oracle/oradata

SQL> ALTER SYSTEM SET db_create_file_dest='+DATA' scope=spfile;

System altered.

SQL>  show parameter db_recovery_file_dest

NAME                                 TYPE        VALUE

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

db_recovery_file_dest                string      /u01/app/oracle/fast_recovery_area

db_recovery_file_dest_size           big integer 4560M

SQL> ALTER SYSTEM SET db_recovery_file_dest='+FRA' scope=spfile;

System altered.

Here We Start Migration through RMAN Utility

6- Shutdown Database and Startup No-Mount Mode

SQL> shut immediate;

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL>

SQL> startup nomount;

ORACLE instance started.

Total System Global Area 1308622848 bytes

Fixed Size                  2924064 bytes

Variable Size             452985312 bytes

Database Buffers          838860800 bytes

Redo Buffers               13852672 bytes

SQL> exit

Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production

With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

7- Restore Controlfile in ASM through RMAN Utility and Startup Database in Mount Mode

[oracle@oda12 ~]$ rman target /

Recovery Manager: Release 12.1.0.2.0 - Production on Thu Oct 15 03:12:19 2020

Copyright (c) 1982, 2014, Oracle and/or its affiliates.  All rights reserved.

connected to target database: HMDB (not mounted)

RMAN> restore controlfile from '/u01/app/oracle/oradata/HMDB/controlfile/o1_mf_hqh86fch_.ctl';

Starting restore at 15-OCT-20

using target database control file instead of recovery catalog

allocated channel: ORA_DISK_1

channel ORA_DISK_1: SID=14 device type=DISK

channel ORA_DISK_1: copied control file copy

output file name=+DATA/HMDB/CONTROLFILE/current.266.1053832453

Finished restore at 15-OCT-20

RMAN> exit

Recovery Manager complete.

 [oracle@oda12 ~]$ sqlplus / as sysdba

SQL*Plus: Release 12.1.0.2.0 Production on Thu Oct 15 03:14:54 2020

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

Connected to:

Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production

With the Partitioning, Automatic Storage Management, OLAP, Advanced Analytics

and Real Application Testing options

SQL> select status from v$instance;

STATUS

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

STARTED

SQL> alter database mount;

Database altered.

SQL> select status from v$instance;

STATUS

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

MOUNTED

SQL>exit

8- Taking Backup as Copy in ASM Disk Group and Switch Database to Copy

[oracle@oda12 ~]$ rman target /

Recovery Manager: Release 12.1.0.2.0 - Production on Thu Oct 15 03:12:19 2020

Copyright (c) 1982, 2014, Oracle and/or its affiliates.  All rights reserved.

connected to target database: HMDB (not mounted)

RMAN> BACKUP AS COPY DATABASE FORMAT '+DATA';

Starting backup at 15-OCT-20

using target database control file instead of recovery catalog

allocated channel: ORA_DISK_1

channel ORA_DISK_1: SID=250 device type=DISK

channel ORA_DISK_1: starting datafile copy

input datafile file number=00001 name=/u01/app/oracle/oradata/HMDB/datafile/o1_mf_system_hqh83991_.dbf

output file name=+DATA/HMDB/DATAFILE/system.267.1053832677 tag=TAG20201015T031757 RECID=1 STAMP=1053832766

channel ORA_DISK_1: datafile copy complete, elapsed time: 00:01:37

channel ORA_DISK_1: starting datafile copy

input datafile file number=00003 name=/u01/app/oracle/oradata/HMDB/datafile/o1_mf_sysaux_hqh81kwf_.dbf

output file name=+DATA/HMDB/DATAFILE/sysaux.268.1053832775 tag=TAG20201015T031757 RECID=2 STAMP=1053832849

channel ORA_DISK_1: datafile copy complete, elapsed time: 00:01:16

channel ORA_DISK_1: starting datafile copy

input datafile file number=00004 name=/u01/app/oracle/oradata/HMDB/datafile/o1_mf_undotbs1_hqh85f2m_.dbf

output file name=+DATA/HMDB/DATAFILE/undotbs1.269.1053832851 tag=TAG20201015T031757 RECID=3 STAMP=1053832865

channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:16

channel ORA_DISK_1: starting datafile copy

copying current control file

output file name=+DATA/HMDB/CONTROLFILE/backup.270.1053832869 tag=TAG20201015T031757 RECID=4 STAMP=1053832871

channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03

channel ORA_DISK_1: starting datafile copy

input datafile file number=00006 name=/u01/app/oracle/oradata/HMDB/datafile/o1_mf_users_hqh85cxr_.dbf

output file name=+DATA/HMDB/DATAFILE/users.271.1053832873 tag=TAG20201015T031757 RECID=5 STAMP=1053832873

channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:01

channel ORA_DISK_1: starting full datafile backup set

channel ORA_DISK_1: specifying datafile(s) in backup set

including current SPFILE in backup set

channel ORA_DISK_1: starting piece 1 at 15-OCT-20

channel ORA_DISK_1: finished piece 1 at 15-OCT-20

piece handle=+DATA/HMDB/BACKUPSET/2020_10_15/nnsnf0_tag20201015t031757_0.272.1053832875 tag=TAG20201015T031757 comment=NONE

channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01

Finished backup at 15-OCT-20

RMAN> SWITCH DATABASE TO COPY;

datafile 1 switched to datafile copy "+DATA/HMDB/DATAFILE/system.267.1053832677"

datafile 3 switched to datafile copy "+DATA/HMDB/DATAFILE/sysaux.268.1053832775"

datafile 4 switched to datafile copy "+DATA/HMDB/DATAFILE/undotbs1.269.1053832851"

datafile 6 switched to datafile copy "+DATA/HMDB/DATAFILE/users.271.1053832873"

9- Verify Datafiles and Controlfiles

[root@oda12 ~]# su - grid

Last login: Thu Oct 15 03:04:43 PKT 2020 on pts/0

[grid@oda12 ~]$ asmcmd

ASMCMD> ls

CRS/

DATA/

FRA/

ASMCMD> cd DATA

ASMCMD> ls

HMDB/

ORCL/

ASMCMD> cd DATA/HMDB/DATAFILE

ASMCMD> ls

SYSAUX.268.1053832775

SYSTEM.267.1053832677

UNDOTBS1.269.1053832851

USERS.271.1053832873

ASMCMD> cd DATA/HMDB/CONTROLFILE/

ASMCMD> ls

Backup.270.1053832869

current.266.1053832453

ASMCMD>

ASMCMD> cd ..

ASMCMD> cd ..

ASMCMD> ls

HMDB/

ORCL/

ASMCMD> cd HMDB

ASMCMD> ls

BACKUPSET/

CONTROLFILE/

DATAFILE/

ASMCMD> cd BACKUPSET/

ASMCMD> ls

2020_10_15/

ASMCMD> cd 2020_10_15/

ASMCMD> ls

nnsnf0_TAG20201015T031757_0.272.1053832875

ASMCMD> ls --permission

User  Group  Permission  Name

              rw-rw-rw-  nnsnf0_TAG20201015T031757_0.272.1053832875

ASMCMD> exit

[oracle@oda12 ~]$ sqlplus / as sysdba 

SQL*Plus: Release 12.1.0.2.0 Production on Thu Oct 15 03:41:31 2020

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

Connected to:

Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production

With the Partitioning, Automatic Storage Management, OLAP, Advanced Analytics

and Real Application Testing options

SQL> select name from v$datafile;

NAME

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

+DATA/HMDB/DATAFILE/system.267.1053832677

+DATA/HMDB/DATAFILE/sysaux.268.1053832775

+DATA/HMDB/DATAFILE/undotbs1.269.1053832851

+DATA/HMDB/DATAFILE/users.271.1053832873

10- Migrate Tempfile in ASM Through RMAN Utility and Startup database in Open Mode

SQL> select name from v$tempfile;

NAME

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

/u01/app/oracle/oradata/HMDB/datafile/o1_mf_temp_hqh86ypn_.tmp

SQL> exit

Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production

With the Partitioning, Automatic Storage Management, OLAP, Advanced Analytics

and Real Application Testing options

[oracle@oda12 ~]$

[oracle@oda12 ~]$ rman target /

Recovery Manager: Release 12.1.0.2.0 - Production on Thu Oct 15 03:46:11 2020

Copyright (c) 1982, 2014, Oracle and/or its affiliates.  All rights reserved.

connected to target database: HMDB (DBID=719363102, not open)

RMAN> run

{

set newname for tempfile '/u01/app/oracle/oradata/HMDB/datafile/o1_mf_temp_hqh86ypn_.tmp' to '+DATA';

switch tempfile all;

}

executing command: SET NEWNAME

using target database control file instead of recovery catalog

renamed tempfile 1 to +DATA in control file

RMAN> exit

[oracle@oda12 ~]$ sqlplus / as sysdba

SQL*Plus: Release 12.1.0.2.0 Production on Thu Oct 15 10:13:49 2020

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

Connected to:

Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production

With the Partitioning, Automatic Storage Management, OLAP, Advanced Analytics

and Real Application Testing options

SQL> alter database open;

Database altered.

SQL> select status from v$instance;

STATUS

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

OPEN

SQL> select name from v$tempfile;

NAME

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

+DATA/HMDB/TEMPFILE/temp.273.1053857497

11- Migrate Redolog File in ASM Disk Group

SQL>  select group#, status from v$log;

    GROUP# STATUS

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

         1 CURRENT

         2 INACTIVE

         3 INACTIVE

SQL> select member from V$logfile;

MEMBER

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

/u01/app/oracle/oradata/HMDB/onlinelog/o1_mf_3_hqh86jjz_.log

/u01/app/oracle/fast_recovery_area/HMDB/onlinelog/o1_mf_3_hqh86jpb_.log

/u01/app/oracle/oradata/HMDB/onlinelog/o1_mf_2_hqh86j0q_.log

/u01/app/oracle/fast_recovery_area/HMDB/onlinelog/o1_mf_2_hqh86j7j_.log

/u01/app/oracle/oradata/HMDB/onlinelog/o1_mf_1_hqh86hkv_.log

/u01/app/oracle/fast_recovery_area/HMDB/onlinelog/o1_mf_1_hqh86hms_.log

6 rows selected.

SQL>

SQL> desc V$logfile

 Name                                      Null?    Type

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

 GROUP#                                              NUMBER

 STATUS                                               VARCHAR2(7)

 TYPE                                                    VARCHAR2(7)

 MEMBER                                             VARCHAR2(513)

 IS_RECOVERY_DEST_FILE                 VARCHAR2(3)

 CON_ID                                               NUMBER

SQL> desc v$log;

 Name                                      Null?    Type

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

 GROUP#                                              NUMBER

 THREAD#                                             NUMBER

 SEQUENCE#                                        NUMBER

 BYTES                                                   NUMBER

 BLOCKSIZE                                          NUMBER

 MEMBERS                                           NUMBER

 ARCHIVED                                        VARCHAR2(3)

 STATUS                                             VARCHAR2(16)

 FIRST_CHANGE#                             NUMBER

 FIRST_TIME                                      DATE

 NEXT_CHANGE#                              NUMBER

 NEXT_TIME                                       DATE

 CON_ID                                             NUMBER

SQL> select  GROUP#,MEMBERS, STATUS,BYTES/1024/1024 "MB" from v$log;

GROUP#    MEMBERS STATUS     MB

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

         1          2 CURRENT                 50

         2          2 INACTIVE                 50

         3          2 INACTIVE                 50

SQL> alter database drop logfile group 3;

Database altered.

SQL> alter database add logfile group 4 size 50m;

Database altered.

SQL> alter database add logfile group 5 size 50m;

Database altered.

SQL> alter database add logfile group 6 size 50m;

Database altered.

SQL> alter database drop logfile group 2;

Database altered.

SQL> select GROUP#,MEMBERS, STATUS,BYTES/1024/1024 "MB" from v$log;

GROUP#    MEMBERS STATUS      MB

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

         1          2 CURRENT                  50

         4          2 UNUSED                   50

         5          2 UNUSED                   50

         6          2 UNUSED                   50

SQL> alter system switch logfile;

System altered.

SQL> select  GROUP#,MEMBERS, STATUS,BYTES/1024/1024 "MB" from v$log;

    GROUP#    MEMBERS STATUS        MB

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

         1          2 ACTIVE                      50

         4          2 CURRENT                  50

         5          2 UNUSED                   50

         6          2 UNUSED                   50

SQL> alter system switch logfile;

System altered.

SQL> select  GROUP#,MEMBERS, STATUS,BYTES/1024/1024 "MB" from v$log;

    GROUP#    MEMBERS STATUS                   MB

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

         1          2 ACTIVE                   50

         4          2 ACTIVE                   50

         5          2 CURRENT                  50

         6          2 UNUSED                   50

SQL> alter system checkpoint;

System altered.

SQL>  select  GROUP#,MEMBERS, STATUS,BYTES/1024/1024 "MB" from v$log;

    GROUP#    MEMBERS STATUS                   MB

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

         1          2 INACTIVE                 50

         4          2 INACTIVE                 50

         5          2 CURRENT                  50

         6          2 UNUSED                   50

SQL> alter database drop logfile group 1;

Database altered.

12- Verify Redolog file location

SQL> select member from V$logfile;

MEMBER

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

+DATA/HMDB/ONLINELOG/group_4.274.1053858807

+FRA/HMDB/ONLINELOG/group_4.260.1053858811

+DATA/HMDB/ONLINELOG/group_5.275.1053858831

+FRA/HMDB/ONLINELOG/group_5.261.1053858855

+DATA/HMDB/ONLINELOG/group_6.276.1053858907

+FRA/HMDB/ONLINELOG/group_6.262.1053858937

6 rows selected.

SQL> exit

[root@oda12 ~]# su - grid

Last login: Thu Oct 15 10:10:14 PKT 2020

[grid@oda12 ~]$ asmcmd

ASMCMD> ls

CRS/

DATA/

FRA/

ASMCMD> cd +DATA/HMDB/ONLINELOG

ASMCMD> ls

group_4.274.1053858807

group_5.275.1053858831

group_6.276.1053858907

ASMCMD> cd +FRA/HMDB/ONLINELOG

ASMCMD> ls

group_4.260.1053858811

group_5.261.1053858855

group_6.262.1053858937

ASMCMD>

 

Note:

Your Oracle Database Migration Linux File System to ASM has been Completed. 

My Future Post Will Linked with this Post