Wednesday, October 21, 2020

Migration Database from Non ASM to ASM

 

 

 

Migration Database from Non ASM to ASM  

 

 

To take advantage of Automatic Storage Management with an existing database you must migrate that database into ASM. This migration is performed using Recovery Manager (RMAN) even if you are not using RMAN for your primary backup and recovery strategy.

A database can be moved from non-ASM disk storage directly into ASM, assuming you have enough disk space to hold the entire database both in non-ASM storage and in ASM storage.

Note:

·        During the migration process all flashback logs are discarded. As a result, any guaranteed restore points in the database become unusable. You should drop all guaranteed restore points before performing the migration.

·       Flashback logs cannot be migrated. All data in the flashback logs is lost.

·       Because the actual flashback logs cannot be migrated, the only step required to move the location of flashback logs to the new ASM flash recovery area is to disable and then enable flashback logging. After a clean shutdown, mount the database and run the following commands in SQL*Plus

·       Future flashback logs will be created in the new flash recovery area. The old flashback logs are automatically deleted from non-ASM storage.


SQL> ALTER DATABASE FLASHBACK OFF;

SQL> ALTER DATABASE FLASHBACK ON;


·      There are several methods is there to move database from filesystem to Asm diskgroup like RMAN,DBMS_FILE_TRANSFER,ASMCMD and 12c online Move datafile but here we are going to migrate the database from normal Filesystem to ASM

 

 

Validate the ASM instance running on server

 

 

[oracle@vm217 ~]$ crsctl stat res -t

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

Name           Target  State        Server                   State details

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

Local Resources

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

ora.CRS_DISK.dg

               ONLINE  ONLINE       vm217                    STABLE

ora.LISTENER.lsnr

               ONLINE  ONLINE       vm217                    STABLE

ora.asm

               ONLINE  ONLINE       vm217                    Started,STABLE

ora.ons

               OFFLINE OFFLINE      vm217                    STABLE

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

Cluster Resources

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

ora.cssd

      1        ONLINE  ONLINE       vm217                    STABLE

ora.diskmon

      1        OFFLINE OFFLINE                               STABLE

ora.evmd

      1        ONLINE  ONLINE       vm217                    STABLE

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

 

SQL> @open

 

DB_NAME    INSTANCE_NAME    VERSION     HOST_NAME      OPEN_MODE 

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

PROD       prod             19.0.0.0.0  vm217.ora.com  READ WRITE

 

PDBS CHECKING

 

no rows selected

 

 

Validate the parameter, datafile,logfile before migration

 

SQL> show parameter pfile

 

NAME                                 TYPE        VALUE

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

spfile                               string      /u01/app/oracle/product/19.3/D

                                                 B_1/dbs/spfileprod.ora

SQL> show parameter control

 

NAME                                 TYPE        VALUE

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

control_file_record_keep_time        integer     7

control_files                        string      /u01/app/oracle/oradata/PROD/c

                                                 ontrol01.ctl, /u01/app/oracle/

                                                 oradata/PROD/control02.ctl

control_management_pack_access       string      DIAGNOSTIC+TUNING

SQL>

SQL> sho parameter db_create

 

NAME                                 TYPE        VALUE

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

db_create_file_dest                  string      /u01/app/oracle/oradata

db_create_online_log_dest_1          string

db_create_online_log_dest_2          string

db_create_online_log_dest_3          string

db_create_online_log_dest_4          string

db_create_online_log_dest_5          string

 

 

SQL> col path for a80

SQL> col name for a25

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

 

NAME            STATE      TOTAL_MB PATH

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

CRS_DISK_0000   NORMAL        10239 /dev/oracleasm/disks/ASMDISK01

CRS_DISK_0001   NORMAL        10239 /dev/oracleasm/disks/ASMDISK02

DATA_0000       NORMAL        10239 /dev/oracleasm/disks/ASMDISK03

DATA_0001       NORMAL        10239 /dev/oracleasm/disks/ASMDISK04

DATA_0002       NORMAL        10239 /dev/oracleasm/disks/ASMDISK05

DATA_0003       NORMAL        10239 /dev/oracleasm/disks/ASMDISK06

DATA_0004       NORMAL        10239 /dev/oracleasm/disks/ASMDISK07

 

7 rows selected.

 

SQL> select member from v$logfile;

 

MEMBER

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

/u01/app/oracle/oradata/PROD/redo03.log

/u01/app/oracle/oradata/PROD/redo02.log

/u01/app/oracle/oradata/PROD/redo01.log

 

 

Setting the location for Control file , datafile and shutdown the database.

 

 

SQL> alter system set DB_CREATE_FILE_DEST='+DATA' ;

 

System altered.

 

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

 

System altered.

 

SQL> shut immediate ;

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> startup nomount ;

ORACLE instance started.

 

Total System Global Area 1191181696 bytes

Fixed Size                  8895872 bytes

Variable Size             436207616 bytes

Database Buffers          738197504 bytes

Redo Buffers                7880704 bytes

 

Mount the database and restore current structure to ASM diskgorup

 

 

[oracle@vm217 ~]$ rman target /

 

Recovery Manager: Release 19.0.0.0.0 - Production on Wed Oct 21 12:42:47 2020

Version 19.3.0.0.0

 

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

 

resconnected to target database: PROD (not mounted)

 

RMAN> restore controlfile from '/u01/app/oracle/oradata/PROD/control01.ctl' ;

 

Starting restore at 21-OCT-20

using target database control file instead of recovery catalog

allocated channel: ORA_DISK_1

channel ORA_DISK_1: SID=173 device type=DISK

 

channel ORA_DISK_1: copied control file copy

output file name=+DATA/PROD/CONTROLFILE/current.256.1054384981

Finished restore at 21-OCT-20

 

RMAN> sql "alter database mount ";

 

sql statement: alter database mount

released channel: ORA_DISK_1

 

RMAN> backup as copy database format '+DATA' ;

 

Starting backup at 21-OCT-20

allocated channel: ORA_DISK_1

channel ORA_DISK_1: SID=173 device type=DISK

channel ORA_DISK_1: starting datafile copy

input datafile file number=00010 name=/u01/app/oracle/oradata/PROD/datafile/o1_mf_soe_tbs_hq3k4psb_.dbf

output file name=+DATA/PROD/DATAFILE/soe_tbs.257.1054385061 tag=TAG20201021T124420 RECID=1 STAMP=1054386434

channel ORA_DISK_1: datafile copy complete, elapsed time: 00:22:57

channel ORA_DISK_1: starting datafile copy

input datafile file number=00007 name=/u01/app/oracle/oradata/PROD/users01.dbf

output file name=+DATA/PROD/DATAFILE/users.258.1054386439 tag=TAG20201021T124420 RECID=2 STAMP=1054386567

channel ORA_DISK_1: datafile copy complete, elapsed time: 00:02:15

channel ORA_DISK_1: starting datafile copy

input datafile file number=00003 name=/u01/app/oracle/oradata/PROD/sysaux01.dbf

output file name=+DATA/PROD/DATAFILE/sysaux.259.1054386573 tag=TAG20201021T124420 RECID=3 STAMP=1054386659

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

channel ORA_DISK_1: starting datafile copy

input datafile file number=00002 name=/u01/app/oracle/oradata/PROD/datafile/o1_mf_example_hps8s5vm_.dbf

output file name=+DATA/PROD/DATAFILE/example.260.1054386669 tag=TAG20201021T124420 RECID=4 STAMP=1054386746

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

channel ORA_DISK_1: starting datafile copy

input datafile file number=00001 name=/u01/app/oracle/oradata/PROD/system01.dbf

output file name=+DATA/PROD/DATAFILE/system.261.1054386755 tag=TAG20201021T124420 RECID=5 STAMP=1054386808

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

channel ORA_DISK_1: starting datafile copy

input datafile file number=00004 name=/u01/app/oracle/oradata/PROD/undotbs01.dbf

output file name=+DATA/PROD/DATAFILE/undotbs1.262.1054386809 tag=TAG20201021T124420 RECID=6 STAMP=1054386863

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

channel ORA_DISK_1: starting datafile copy

input datafile file number=00005 name=/u01/app/oracle/oradata/PROD/datafile/o1_mf_local_un_hps8s2pk_.dbf

output file name=+DATA/PROD/DATAFILE/local_uniform1m.263.1054386865 tag=TAG20201021T124420 RECID=7 STAMP=1054386871

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

channel ORA_DISK_1: starting datafile copy

input datafile file number=00008 name=/u01/app/oracle/oradata/PROD/datafile/o1_mf_tracetbs_hps8zgfo_.dbf

output file name=+DATA/PROD/DATAFILE/tracetbs.264.1054386873 tag=TAG20201021T124420 RECID=8 STAMP=1054386878

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

channel ORA_DISK_1: starting datafile copy

input datafile file number=00009 name=/u01/app/oracle/oradata/PROD/datafile/o1_mf_tracetbs_hps8zkdl_.dbf

output file name=+DATA/PROD/DATAFILE/tracetbs3.265.1054386879 tag=TAG20201021T124420 RECID=9 STAMP=1054386885

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

Finished backup at 21-OCT-20

 

Starting Control File and SPFILE Autobackup at 21-OCT-20

piece handle=/u01/app/oracle/product/19.3/DB_1/dbs/c-463823052-20201021-00 comment=NONE

Finished Control File and SPFILE Autobackup at 21-OCT-20

 

 

 

Switch the datafiles/tempfile/redologs and validate before and after

 

RMAN> host ;

 

[oracle@vm217 ~]$ sqlplus / as sysdba

 

SQL*Plus: Release 19.0.0.0.0 - Production on Wed Oct 21 13:17:04 2020

Version 19.3.0.0.0

 

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

 

 

Connected to:

Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production

Version 19.3.0.0.0

 

SQL>  select name from v$datafile ;

 

NAME

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

/u01/app/oracle/oradata/PROD/system01.dbf

/u01/app/oracle/oradata/PROD/datafile/o1_mf_example_hps8s5vm_.dbf

/u01/app/oracle/oradata/PROD/sysaux01.dbf

/u01/app/oracle/oradata/PROD/undotbs01.dbf

/u01/app/oracle/oradata/PROD/datafile/o1_mf_local_un_hps8s2pk_.dbf

/u01/app/oracle/oradata/PROD/users01.dbf

/u01/app/oracle/oradata/PROD/datafile/o1_mf_tracetbs_hps8zgfo_.dbf

/u01/app/oracle/oradata/PROD/datafile/o1_mf_tracetbs_hps8zkdl_.dbf

/u01/app/oracle/oradata/PROD/datafile/o1_mf_soe_tbs_hq3k4psb_.dbf

 

9 rows selected.

 

RMAN> switch database to copy ;

 

datafile 1 switched to datafile copy "+DATA/PROD/DATAFILE/system.261.1054386755"

datafile 2 switched to datafile copy "+DATA/PROD/DATAFILE/example.260.1054386669"

datafile 3 switched to datafile copy "+DATA/PROD/DATAFILE/sysaux.259.1054386573"

datafile 4 switched to datafile copy "+DATA/PROD/DATAFILE/undotbs1.262.1054386809"

datafile 5 switched to datafile copy "+DATA/PROD/DATAFILE/local_uniform1m.263.1054386865"

datafile 7 switched to datafile copy "+DATA/PROD/DATAFILE/users.258.1054386439"

datafile 8 switched to datafile copy "+DATA/PROD/DATAFILE/tracetbs.264.1054386873"

datafile 9 switched to datafile copy "+DATA/PROD/DATAFILE/tracetbs3.265.1054386879"

datafile 10 switched to datafile copy "+DATA/PROD/DATAFILE/soe_tbs.257.1054385061"

 

 

RMAN> host ;

 

[oracle@vm217 ~]$ sqlplus / as sysdba

 

SQL*Plus: Release 19.0.0.0.0 - Production on Wed Oct 21 13:17:36 2020

Version 19.3.0.0.0

 

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

 

 

Connected to:

Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production

Version 19.3.0.0.0

 

SQL>  select name from v$datafile ;

 

NAME

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

+DATA/PROD/DATAFILE/system.261.1054386755

+DATA/PROD/DATAFILE/example.260.1054386669

+DATA/PROD/DATAFILE/sysaux.259.1054386573

+DATA/PROD/DATAFILE/undotbs1.262.1054386809

+DATA/PROD/DATAFILE/local_uniform1m.263.1054386865

+DATA/PROD/DATAFILE/users.258.1054386439

+DATA/PROD/DATAFILE/tracetbs.264.1054386873

+DATA/PROD/DATAFILE/tracetbs3.265.1054386879

+DATA/PROD/DATAFILE/soe_tbs.257.1054385061

 

9 rows selected.

 

SQL> select name from v$tempfile ;

 

NAME

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

/u01/app/oracle/oradata/PROD/temp01.dbf

 

 

RMAN> run {

2>         set newname for tempfile '/u01/app/oracle/oradata/PROD/temp01.dbf' to '+DATA';

3>         switch tempfile all ;

4>        }

 

executing command: SET NEWNAME

 

renamed tempfile 1 to +DATA in control file

 

RMAN> host ;

 

[oracle@vm217 ~]$ sqlplus / as sysdba

 

SQL*Plus: Release 19.0.0.0.0 - Production on Wed Oct 21 13:20:40 2020

Version 19.3.0.0.0

 

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

 

 

Connected to:

Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production

Version 19.3.0.0.0

 

SQL> select name from v$tempfile ;

 

NAME

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

+DATA

 

 

No open the database and perform the post task

 

 

RMAN> alter database open ;

 

Statement processed

 

RMAN> host ;

 

[oracle@vm217 ~]$ sqlplus / as sysdba

 

SQL*Plus: Release 19.0.0.0.0 - Production on Wed Oct 21 13:22:10 2020

Version 19.3.0.0.0

 

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

 

 

Connected to:

Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production

Version 19.3.0.0.0

 

SQL> select name from v$tempfile ;

 

NAME

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

+DATA/PROD/TEMPFILE/temp.266.1054387295

 

SQL> select member from v$logfile ;

 

MEMBER

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

/u01/app/oracle/oradata/PROD/redo03.log

/u01/app/oracle/oradata/PROD/redo02.log

/u01/app/oracle/oradata/PROD/redo01.log

 

 

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> col member for a70

SQL> set lin200 pages 200

SQL> select group#, member from v$logfile ;

 

 GROUP# MEMBER

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

      3 /u01/app/oracle/oradata/PROD/redo03.log

      2 /u01/app/oracle/oradata/PROD/redo02.log

      1 /u01/app/oracle/oradata/PROD/redo01.log

 

SQL>

SQL>

SQL> alter database add logfile size 100m  ;

 

Database altered.

 

SQL> /

 

Database altered.

 

SQL> /

 

Database altered.

 

SQL> select group#, member from v$logfile ;

 

    GROUP# MEMBER

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

         3 /u01/app/oracle/oradata/PROD/redo03.log

         2 /u01/app/oracle/oradata/PROD/redo02.log

         1 /u01/app/oracle/oradata/PROD/redo01.log

         4 +DATA/PROD/ONLINELOG/group_4.267.1054387469

         5 +DATA/PROD/ONLINELOG/group_5.268.1054387475

         6 +DATA/PROD/ONLINELOG/group_6.269.1054387479

 

6 rows selected.

 

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

 

    GROUP# STATUS

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

         1 INACTIVE

         2 INACTIVE

         3 CURRENT

         4 UNUSED

         5 UNUSED

         6 UNUSED

 

6 rows selected.

 

SQL> alter system switch logfile ;

 

System altered.

 

SQL> /

 

System altered.

 

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

 

    GROUP# STATUS

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

         1 INACTIVE

         2 INACTIVE

         3 ACTIVE

         4 ACTIVE

         5 CURRENT

         6 UNUSED

 

6 rows selected.

 

SQL> alter system switch logfile ;

 

System altered.

 

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

 

    GROUP# STATUS

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

         1 INACTIVE

         2 INACTIVE

         3 ACTIVE

         4 ACTIVE

         5 ACTIVE

         6 CURRENT

 

6 rows selected.

 

SQL> alter database drop logfile group 1 ;

 

Database altered.

 

SQL> alter database drop logfile group 2 ;

 

Database altered.

 

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

 

    GROUP# STATUS

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

         3 ACTIVE

         4 ACTIVE

         5 ACTIVE

         6 CURRENT

 

SQL>  alter system switch logfile ;

 

System altered.

 

SQL> /

 

System altered.

 

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

 

    GROUP# STATUS

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

         3 INACTIVE

         4 CURRENT

         5 INACTIVE

         6 INACTIVE

 

SQL> alter database drop logfile group 3 ;

 

Database altered.

 

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

 

    GROUP# STATUS

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

         4 CURRENT

         5 INACTIVE

         6 INACTIVE

 

SQL> select name from v$datafile ;

 

NAME

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

+DATA/PROD/DATAFILE/system.261.1054386755

+DATA/PROD/DATAFILE/example.260.1054386669

+DATA/PROD/DATAFILE/sysaux.259.1054386573

+DATA/PROD/DATAFILE/undotbs1.262.1054386809

+DATA/PROD/DATAFILE/local_uniform1m.263.1054386865

+DATA/PROD/DATAFILE/users.258.1054386439

+DATA/PROD/DATAFILE/tracetbs.264.1054386873

+DATA/PROD/DATAFILE/tracetbs3.265.1054386879

+DATA/PROD/DATAFILE/soe_tbs.257.1054385061

 

9 rows selected.

 

SQL> select name from v$tempfile ;

 

NAME

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

+DATA/PROD/TEMPFILE/temp.266.1054387295

 

Register the database to Oracle Restart

 

[oracle@vm217 ~]$ . oraenv

ORACLE_SID = [PROD] ? prod

The Oracle base remains unchanged with value /u01/app/oracle

 

 

[oracle@vm217 ~]$ srvctl status database -d PROD

PRCD-1120 : The resource for database PROD could not be found.

PRCR-1001 : Resource ora.prod.db does not exist

 

 [oracle@vm217 ~]$ sqlplus / as sysdba

 

SQL*Plus: Release 19.0.0.0.0 - Production on Wed Oct 21 13:31:10 2020

Version 19.3.0.0.0

 

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

 

 

Connected to:

Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production

Version 19.3.0.0.0

 

SQL> show parameter pfile ;

 

NAME                                 TYPE        VALUE

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

spfile                               string      /u01/app/oracle/product/19.3/D

                                                 B_1/dbs/spfileprod.ora

SQL> create spfile='+DATA' from memory ;

 

File created.

 

 

[oracle@vm217 ~]$ . oraenv

ORACLE_SID = [prod] ? +ASM

The Oracle base remains unchanged with value /u01/app/oracle

[oracle@vm217 ~]$ asmcmd -p

 

ASMCMD [+] > lsdg

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

MOUNTED  EXTERN  N         512             512   4096  1048576     20478    20412                0           20412              0             N  CRS_DISK/

MOUNTED  EXTERN  N         512             512   4096  1048576     51195    18298                0           18298              0             N  DATA/

 

ASMCMD [+] > cd /DATA/PROD/PARAMETERFILE

ASMCMD [+DATA/PROD/PARAMETERFILE] > ls

spfile.270.1054387907

 

 

[oracle@vm217 ~]$ . oraenv

ORACLE_SID = [+ASM] ? prod

The Oracle base remains unchanged with value /u01/app/oracle

[oracle@vm217 ~]$ cd $ORACLE_HOME/dbs

[oracle@vm217 dbs]$ ls

c-463823052-20201021-00  hc_prod.dat  init.ora  lkPROD  orapwprod  snapcf_prod.f  spfileprod.ora

[oracle@vm217 dbs]$ mv spfileprod.ora old_spfileprod.ora

 [oracle@vm217 dbs]$ ls -l initprod.ora

-rw-r--r--. 1 oracle oinstall 56 Oct 21 13:40 initprod.ora

[oracle@vm217 dbs]$ vi initprod.ora

[oracle@vm217 dbs]$

[oracle@vm217 dbs]$ more initprod.ora

SPFILE='+DATA/PROD/PARAMETERFILE/spfile.270.1054387907'

 

[oracle@vm217 dbs]$  srvctl add database -d prod -o /u01/app/oracle/product/19.3/DB_1 -p '+DATA/PROD/PARAMETERFILE/spfile.270.1054387907'

 

[oracle@vm217 dbs]$ srvctl config database -d prod

Database unique name: prod

Database name:

Oracle home: /u01/app/oracle/product/19.3/DB_1

Oracle user: oracle

Spfile: +DATA/PROD/PARAMETERFILE/spfile.270.1054387907

Password file:

Domain:

Start options: open

Stop options: immediate

Database role: PRIMARY

Management policy: AUTOMATIC

Disk Groups:

Services:

OSDBA group:

OSOPER group:

Database instance: prod

[oracle@vm217 dbs]$

[oracle@vm217 dbs]$

[oracle@vm217 dbs]$ ps -ef | grep pmon

oracle    9541     1  0 Oct20 ?        00:00:10 asm_pmon_+ASM

oracle   23927     1  0 12:41 ?        00:00:01 ora_pmon_prod

oracle   29835 28494  0 13:46 pts/0    00:00:00 grep --color=auto pmon

[oracle@vm217 dbs]$ sqlplus / as sysdba

 

SQL*Plus: Release 19.0.0.0.0 - Production on Wed Oct 21 13:46:17 2020

Version 19.3.0.0.0

 

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

 

 

Connected to:

Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production

Version 19.3.0.0.0

 

SQL> shut immediate ;

 

[oracle@vm217 ~]$ srvctl start database -d prod

 

[oracle@vm217 ~]$ ps -ef | grep pmon

oracle    9541     1  0 Oct20 ?        00:00:10 asm_pmon_+ASM

oracle   32078     1  0 14:05 ?        00:00:00 ora_pmon_prod

oracle   32473 31706  0 14:06 pts/5    00:00:00 grep --color=auto pmon

 

[oracle@vm217 ~]$ srvctl status database -d prod

Database is running.

 

[oracle@vm217 dbs]$ crsctl stat res -t

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

Name           Target  State        Server     State details

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

Local Resources

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

ora.CRS_DISK.dg

               ONLINE  ONLINE       vm217      STABLE

ora.DATA.dg

               ONLINE  ONLINE       vm217      STABLE

ora.LISTENER.lsnr

               ONLINE  ONLINE       vm217      STABLE

ora.asm

               ONLINE  ONLINE       vm217      Started,STABLE

ora.ons

               OFFLINE OFFLINE      vm217      STABLE

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

Cluster Resources

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

ora.cssd

      1        ONLINE  ONLINE       vm217      STABLE

ora.diskmon

      1        OFFLINE OFFLINE                 STABLE

ora.evmd

      1        ONLINE  ONLINE       vm217      STABLE

ora.prod.db

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

                                               racle/product/19.3/D

                                               B_1,STABLE

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

No comments:

Post a Comment