Monday 11 November 2019

RAC - Grid Installation steps error - VIP IP Address conflict INS-40912] : Virtual host name assigned to another system on the network.

[INS-40912] : Virtual host name :sgd02-vip.xsxzxzxz.com is assigned to another system on the network.


This is real time issue .
This issue occurs due to VIP -IP address is already using on some other server.
Before installation vip address should not be ping. As i have seen in lab setup virtual machine. virtual ip provided were able to ping. But on real time it should not ping before installation. I have also confirmed with oracle support metalink.




Archivelog,and RMAN Backup copy from ASM to Local filesystem

15 08 * * *  /u04/MasterDB/scripts/grid_scripts/asm_rman_backup.sh >>/u04/MasterDB/smrrac_backup/SMRRAC_FULL.log | mail -s "RMAN ASM Bacckup to filesystem" varun.yadav@mind-infotech.com

0 */1 * * * /u04/MasterDB/scripts/grid_scripts/
>>//u04/MasterDB/scripts/grid_scripts/asm_ls.txt | mail -s "Archivelog smrrac " varun.yadav@mind-infotech.com

################# asm_rman_backup.sh Script ############################
grid@sgdcplm02:/home/oracle> cat /u04/MasterDB/scripts/grid_scripts/asm_rman_backup.sh
#!/bin/bash

#

# This script copies files from FRA on ASM to local disk

#

export ORACLE_SID=+ASM1

export ORACLE_HOME=/u01/app/12.1.0/grid  ##{Grid OH}
export PATH=$ORACLE_HOME/perl/bin:$PATH
ASMLS=/u04/MasterDB/scripts/grid_scripts/asm_rman.txt ##{ASM files list}

FRA=+BACKUP/rman_bkp ##{source location of files}

LOCALBACKUPDIR=/u04/MasterDB/smrrac_backup  ##{destination filesystem}

LOG=/u04/MasterDB/scripts/grid_scripts/asm_rman1.txt ##{log file}

#

# Get the list of files

#

$ORACLE_HOME/bin/asmcmd > $ASMLS <<EOF

ls $FRA

exit

EOF

#

# Clean the list by removing "ASMCMD>"

#

sed -i 's/ASMCMD> //g' $ASMLS

##cat $ASMLS

echo `date` > $LOG

#

# Copy files one by one

#



for FILENAME in `cat $ASMLS`

do

if [[ ! -f $LOCALBACKUPDIR/${FILENAME} ]]

then

$ORACLE_HOME/bin/asmcmd >> $LOG <<EOF

cp $FRA/$FILENAME $LOCALBACKUPDIR

EOF

fi

done

echo `date` >> $LOG
grid@sgdcplm02:/home/oracle>
#################################################################################

##########################  asm_archive.sh SCRIPTS ############################### 

grid@sgdcplm02:/home/oracle> cat /u04/MasterDB/scripts/grid_scripts/asm_archive.sh
#!/bin/bash

#

# This script copies files from FRA on ASM to local disk

#

export ORACLE_SID=+ASM1
#export ORACLE_HOME=/u01/app/12.1.0/grid  ##{Grid OH}
export ORACLE_HOME=/u01/app/12.1.0/grid/
#export PATH=$ORACLE_HOME/OPatch:$PATH:$ORACLE_HOME/bin
export PATH=$ORACLE_HOME/perl/bin:$PATH

ASMLS=/u04/MasterDB/scripts/grid_scripts/asm_ls.txt ##{ASM files list}

FRA=+FRA2/archivelog ##{source location of files}

LOCALBACKUPDIR=/u04/MasterDB/smrrac_archivelog  ##{destination filesystem}

LOG=/u04/MasterDB/scripts/grid_scripts/asm_log.txt ##{log file}

#

# Get the list of files

#

$ORACLE_HOME/bin/asmcmd > $ASMLS <<EOF

ls $FRA

exit

EOF

#

# Clean the list by removing "ASMCMD>"

#

sed -i 's/ASMCMD> //g' $ASMLS

##cat $ASMLS

echo `date` > $LOG

#

# Copy files one by one

#



for FILENAME in `cat $ASMLS`

do

if [[ ! -f $LOCALBACKUPDIR/${FILENAME} ]]

then

$ORACLE_HOME/bin/asmcmd >> $LOG <<EOF

cp $FRA/$FILENAME $LOCALBACKUPDIR

EOF

fi

done

echo `date` >> $LOG
grid@sgdcplm02:/home/oracle>

EXPDP -Error - ORA-31626,ORA-31633,ORA-06512, ORA-06512,ORA-00955




DataPump Export Or Import Fails With Errors ORA-31633 ORA-6512 ORA-955 (Doc ID 556425.1)
oracle@sgdcplm02:/u04/MasterDB/scripts> sh expdp_SMRRAC_full.sh

Export: Release 12.1.0.2.0 - Production on Fri Oct 25 12:40:28 2019

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

Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Advanced Analytics and Real Application Testing options
ORA-31626: job does not exist
ORA-31633: unable to create master table "SYS.FULL_EXPDP_SMRRAC1"
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPV$FT", line 1048
ORA-00955: name is already used by an existing object


oracle@sgdcplm02:/u04/MasterDB/scripts> sqlplus sys/system123@smrrac1 as sysdba

SQL*Plus: Release 12.1.0.2.0 Production on Fri Oct 25 12:40:38 2019

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, Real Application Clusters, Automatic Storage Management, OLAP,
Advanced Analytics and Real Application Testing options

SQL> @d
SP2-0310: unable to open file "d.sql"
SQL> select sid, serial#, sofar, totalwork,
dp.owner_name, dp.state, dp.job_mode
from gv$session_longops sl, gv$datapump_job dp
where sl.opname = dp.job_name and sofar != totalwork;  2    3    4

no rows selected

SQL> SELECT owner_name, job_name, operation, job_mode, state, attached_sessions FROM dba_datapump_jobs WHERE job_name NOT LIKE 'BIN$%'
ORDER BY 1,2;  2

OWNER_NAME
--------------------------------------------------------------------------------
JOB_NAME
--------------------------------------------------------------------------------
OPERATION
--------------------------------------------------------------------------------
JOB_MODE
--------------------------------------------------------------------------------
STATE                          ATTACHED_SESSIONS
------------------------------ -----------------
SYS
FULL_EXPDP_SMRRAC1
EXPORT

OWNER_NAME
--------------------------------------------------------------------------------
JOB_NAME
--------------------------------------------------------------------------------
OPERATION
--------------------------------------------------------------------------------
JOB_MODE
--------------------------------------------------------------------------------
STATE                          ATTACHED_SESSIONS
------------------------------ -----------------
FULL
NOT RUNNING                                    0


OWNER_NAME
--------------------------------------------------------------------------------
JOB_NAME
--------------------------------------------------------------------------------
OPERATION
--------------------------------------------------------------------------------
JOB_MODE
--------------------------------------------------------------------------------
STATE                          ATTACHED_SESSIONS
------------------------------ -----------------
SYS
FULL_EXPDP_SMRRAC2
EXPORT

OWNER_NAME
--------------------------------------------------------------------------------
JOB_NAME
--------------------------------------------------------------------------------
OPERATION
--------------------------------------------------------------------------------
JOB_MODE
--------------------------------------------------------------------------------
STATE                          ATTACHED_SESSIONS
------------------------------ -----------------
FULL
NOT RUNNING                                    0


SQL> SELECT o.status, o.object_id, o.object_type, o.owner||'.'||object_name "OWNER.OBJECT"
FROM dba_objects o, dba_datapump_jobs j WHERE o.owner=j.owner_name AND o.object_name=j.job_name AND j.job_name NOT LIKE 'BIN$%' ORDER BY 4,2;  2

STATUS   OBJECT_ID OBJECT_TYPE
------- ---------- -----------------------
OWNER.OBJECT
--------------------------------------------------------------------------------
VALID       105403 TABLE
SYS.FULL_EXPDP_SMRRAC1

VALID       106260 TABLE
SYS.FULL_EXPDP_SMRRAC2


SQL>



Table dropped.

SQL> drop table SYS.FULL_EXPDP_SMRRAC2;

Table dropped.

SQL> select o.status, o.object_id, o.object_type,
       o.owner||'.'||object_name "OWNER.OBJECT"
from   dba_objects o, dba_datapump_jobs j
where  o.owner=j.owner_name and
       o.object_name=j.job_name and
       j.job_name not like 'BIN$%'
order  by 4, 2;  2    3    4    5    6    7

no rows selected