Sie sind auf Seite 1von 15

[oracle@node1 ~]$ .

oraenv

ORACLE_SID = [oracle] ? nonrac1

ORACLE_HOME = [/home/oracle] ? /u01/app/oracle/product/11.2.0/dbhome_1

The Oracle base has been set to /u01/app/oracle

[oracle@node1 ~]$ cd /u01/app/oracle/product/11.2.0/dbhome_1

[oracle@node1 dbhome_1]$ cd bin

[oracle@node1 bin]$ ./runInstaller -updateNodeList


ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 "CLUSTER_NODES={node1,node2}"

-bash: ./runInstaller: No such file or directory

[oracle@node1 bin]$ cd ../oui/bin

[oracle@node1 bin]$ ./runInstaller -updateNodeList


ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 "CLUSTER_NODES={node1,node2}"

Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB. Actual 4972 MB Passed

The inventory pointer is located at /etc/oraInst.loc

The inventory is located at /u01/app/oraInventory

'UpdateNodeList' was successful.

[oracle@node1 bin]$ olsnodes -s -t

-bash: olsnodes: command not found

[oracle@node1 bin]$ su - grid

Password:

[grid@node1 ~]$ cd /u01/app/11.2.0/grid/bin/

[grid@node1 bin]$ ./olsnodes -s -t

node1 Active Unpinned

node2 Active Unpinned

node3 Active Unpinned

[grid@node1 bin]$ ./crsctl unpin css -n node3


CRS-4563: Insufficient user privileges.

CRS-4000: Command Unpin failed, or completed with errors.

[grid@node1 bin]$

[grid@node1 bin]$

[grid@node1 bin]$

[grid@node1 bin]$ su -

Password:

[root@node1 ~]# /u01/app/11.2.0/grid/bin/crsctl delete node -n node3

CRS-4661: Node node3 successfully deleted.

[root@node1 ~]# su - grid

[grid@node1 ~]$ /u01/app/11.2.0/grid/oui/bin/^C

[grid@node1 ~]$

[grid@node1 ~]$

[grid@node1 ~]$

[grid@node1 ~]$

[grid@node1 ~]$ cd /u01/app/11.2.0/grid/oui/bin/

[grid@node1 bin]$ ./runInstaller -updateNodeList ORACLE_HOME=/u01/app/11.2.0/grid/


"CLUSTER_NODES={node1,node2}" CRS=TRUE

Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB. Actual 4969 MB Passed

The inventory pointer is located at /etc/oraInst.loc

The inventory is located at /u01/app/oraInventory

'UpdateNodeList' was successful.

[grid@node1 bin]$

[grid@node1 bin]$

[grid@node1 bin]$ cd ../


[grid@node1 oui]$ cd ../

[grid@node1 grid]$ cd bin

[grid@node1 bin]$ ./cluvfy stage -post nodedel -n node3

Performing post-checks for node removal

Checking CRS integrity...

Clusterware version consistency passed

CRS integrity check passed

Node removal check passed

Post-check for node removal was successful.

[grid@node1 bin]$

[grid@node1 bin]$

[oracle@node1 ~]$ srvctl status database -d nonrac

****ORACLE_HOME environment variable is not set.

ORACLE_HOME should be set to the main

directory that contains Oracle products.

Set and export ORACLE_HOME, then re-run.

[oracle@node1 ~]$ . oraenv


ORACLE_SID = [oracle] ? nonrac1

ORACLE_HOME = [/home/oracle] ? /u01/app/oracle/product/11.2.0/dbhome_1

The Oracle base has been set to /u01/app/oracle

[oracle@node1 ~]$ status database -d nonrac

status: invalid option: -d

Try `status --help' for more information.

[oracle@node1 ~]$ srvctl status database -d nonrac

Instance nonrac1 is running on node node1

Instance nonrac2 is running on node node2

[oracle@node1 ~]$ srvctl status listener -l LISTENER

Listener LISTENER is enabled

Listener LISTENER is running on node(s): node2,node3,node1

[oracle@node1 ~]$

[oracle@node1 ~]$

[oracle@node1 ~]$

[oracle@node1 ~]$ srvctl disable listener -l LISTENER -n node3

[oracle@node1 ~]$ srvctl stop listener -l LISTENER -n node3

[oracle@node1 ~]$

[oracle@node1 ~]$

[oracle@node1 ~]$

[oracle@node1 ~]$ ssh node3

Last login: Wed Jan 15 17:05:56 2020 from node1

[oracle@node3 ~]$ . oraenv

ORACLE_SID = [oracle] ? nonrac3

ORACLE_HOME = [/home/oracle] ? /u01/app/oracle/product/11.2.0/dbhome_1

The Oracle base has been set to /u01/app/oracle

[oracle@node3 ~]$ cd /u01/app/oracle/product/11.2.0/dbhome_1/oui/bin


[oracle@node3 bin]$ ./runInstaller -updateNodeList
ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 "CLUSTER_NODES={node3}" -local

Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB. Actual 4811 MB Passed

The inventory pointer is located at /etc/oraInst.loc

The inventory is located at /u01/app/oraInventory

'UpdateNodeList' was successful.

[oracle@node3 bin]$

[oracle@node3 bin]$ /u01/app/oracle/product/11.2.0/dbhome_1/deinstall/deinstall -local

Checking for required files and bootstrapping ...

Please wait ...

Location of logs /u01/app/oraInventory/logs/

############ ORACLE DEINSTALL & DECONFIG TOOL START ############

######################### CHECK OPERATION START #########################

## [START] Install check configuration ##

User equivalence is not set on the node(s) 'node3'

Run '/tmp/deinstall2020-01-15_08-07-38PM/sshUserSetup.sh -hosts "node3 " -user oracle' from the


local node 'node3' and rerun the tool again.

ERROR: Exited from Program.

Network Configuration check config START


Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_check2020-01-
15_08-07-51-PM.log

Network Configuration check config END

Database Check Configuration START

Database de-configuration trace file location: /u01/app/oraInventory/logs/databasedc_check2020-


01-15_08-07-55-PM.log

Database Check Configuration END

Enterprise Manager Configuration Assistant START

EMCA de-configuration trace file location: /u01/app/oraInventory/logs/emcadc_check2020-01-


15_08-07-58-PM.log

Enterprise Manager Configuration Assistant END

Oracle Configuration Manager check START

OCM check log file location : /u01/app/oraInventory/logs//ocm_check1059.log

Oracle Configuration Manager check END

######################### CHECK OPERATION END #########################

####################### CHECK OPERATION SUMMARY #######################

The option -local will not modify any database configuration for this Oracle home.

No Enterprise Manager configuration to be updated for any database(s)


No Enterprise Manager ASM targets to update

No Enterprise Manager listener targets to migrate

Checking the config status for CCR

Oracle Home exists with CCR directory, but CCR is not configured

CCR check is finished

A log of this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2020-01-


15_08-07-49-PM.out'

Any error messages from this session will be written to:


'/u01/app/oraInventory/logs/deinstall_deconfig2020-01-15_08-07-49-PM.err'

############# ORACLE DEINSTALL & DECONFIG TOOL END #############

[oracle@node3 bin]$

[oracle@node3 bin]$

[oracle@node3 bin]$ su -

Password:

[root@node3 ~]# cd /u01/app/11.2.0/grid/bin/

[root@node3 bin]# cd ../install/

[root@node3 install]# ls -lrt

total 164

drwxr-xr-x 9 grid oinstall 4096 Jan 15 17:23 usm

-rw------- 1 grid oinstall 407 Jan 15 17:24 root_node1_2019-11-30_12-45-23.log

-rw------- 1 grid oinstall 377 Jan 15 17:24 root_node1_2019-11-30_13-01-03.log

-rw-r--r-- 1 grid oinstall 0 Jan 15 17:24 portlist.ini

-rw-r--r-- 1 grid oinstall 3052 Jan 15 17:24 modmakedeps.pl

-rw-r--r-- 1 grid oinstall 37 Jan 15 17:24 cluster.ini

-rw-r--r-- 1 grid oinstall 0 Jan 15 17:24 readme.txt

-rw-r--r-- 1 grid oinstall 219 Jan 15 17:24 envVars.properties.bak


-rw-r--r-- 1 grid oinstall 115784 Jan 15 17:24 make.log

drwxr-xr-x 2 grid oinstall 4096 Jan 15 17:24 utl

drwxr-xr-x 2 grid oinstall 4096 Jan 15 17:24 chainedInstall

drwxr-xr-x 2 grid oinstall 4096 Jan 15 17:24 config

drwxr-xr-x 2 grid oinstall 4096 Jan 15 17:24 jlib

drwxrwx--- 2 grid oinstall 4096 Jan 15 17:27 checkpoints

-rw------- 1 grid oinstall 377 Jan 15 17:28 root_node3_2020-01-15_17-28-16.log

[root@node3 install]# ./rootcrs.pl -deconfig -force -verbose

-bash: ./rootcrs.pl: No such file or directory

[root@node3 install]# pwd

/u01/app/11.2.0/grid/install

[root@node3 install]# pwd

/u01/app/11.2.0/grid/install

[root@node3 install]# cd ../../

[root@node3 11.2.0]# cd grid/crs/

[root@node3 crs]# cd install/

[root@node3 install]# ls -lrt

total 844

-rwxr-xr-x 1 grid oinstall 741 Jan 15 17:24 crsconfig_addparams

-rwxr-xr-x 1 root oinstall 488098 Jan 15 17:24 crsconfig_lib.pm

-rwxr-xr-x 1 root oinstall 36458 Jan 15 17:24 rootcrs.pl

-rwxr-x--- 1 grid oinstall 396 Jan 15 17:24 s_crsconfig_node1_env.txt

-rw-r--r-- 1 grid oinstall 220 Jan 15 17:24 oracle-ohasd.conf

-rwxr-xr-x 1 root oinstall 13456 Jan 15 17:24 oracss.pm

-rwxr-xr-x 1 grid oinstall 4240 Jan 15 17:24 crsconfig_params

-rwxr-xr-x 1 root oinstall 17600 Jan 15 17:24 roothas.pl

-r-xr-xr-x 1 grid oinstall 797 Jan 15 17:24 crsconfig_addparams.sbs


-rw-r--r-- 1 grid oinstall 68 Jan 15 17:24 inittab

-rwxr-xr-x 1 root oinstall 38866 Jan 15 17:24 crsdelete.pm

-rwxr-xr-x 1 root oinstall 8231 Jan 15 17:24 hasdconfig.pl

-rwxr-xr-x 1 grid oinstall 17 Jan 15 17:24 installRemove.excl

-rw-r--r-- 1 grid oinstall 87 Jan 15 17:24 ParentDirPerm_node1.txt

-rwxr-xr-x 1 root oinstall 915 Jan 15 17:24 rootofs.sh

-rwxr-xr-x 1 grid oinstall 111 Jan 15 17:24 install.excl

-rwxr-xr-x 1 grid oinstall 4877 Jan 15 17:24 crsconfig_params.sbs

-rwxr-xr-x 1 grid oinstall 0 Jan 15 17:24 install.incl

-rwxr-xr-x 1 root oinstall 102544 Jan 15 17:24 s_crsconfig_lib.pm

-rwxr-xr-x 1 root oinstall 28253 Jan 15 17:24 crspatch.pm

-rwxr-xr-x 1 grid oinstall 3222 Jan 15 17:24 s_crsconfig_defs

-rwxr-xr-x 1 root oinstall 21764 Jan 15 17:24 oraacfs.pm

-rw-r--r-- 1 grid oinstall 414 Jan 15 17:24 paramfile.crs

-rwxr-xr-x 1 root oinstall 5624 Jan 15 17:28 preupdate.sh

-r-xr-xr-- 1 grid oinstall 2067 Jan 15 17:28 onsconfig

-rwxr-xr-x 1 grid oinstall 1276 Jan 15 17:28 cmdllroot.sh

-rw-r--r-- 1 root oinstall 87 Jan 15 17:28 ParentDirPerm_node3.txt

-rwxr-x--- 1 root oinstall 396 Jan 15 17:28 s_crsconfig_node3_env.txt

[root@node3 install]# ./rootcrs.pl -deconfig -force -verbose

Using configuration parameter file: ./crsconfig_params

Network exists: 1/192.168.1.0/255.255.255.0/eth0, type static

VIP exists: /node1-vip/192.168.1.53/192.168.1.0/255.255.255.0/eth0, hosting node node1

VIP exists: /node2-vip/192.168.1.54/192.168.1.0/255.255.255.0/eth0, hosting node node2

VIP exists: /node3-vip/192.168.1.59/192.168.1.0/255.255.255.0/eth0, hosting node node3

GSD exists

ONS exists: Local port 6100, remote port 6200, EM port 2016
CRS-2613: Could not find resource 'ora.registry.acfs'.

CRS-4000: Command Stop failed, or completed with errors.

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'node3'

CRS-2673: Attempting to stop 'ora.crsd' on 'node3'

CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'node3'

CRS-2673: Attempting to stop 'ora.oc4j' on 'node3'

CRS-2673: Attempting to stop 'ora.CRS.dg' on 'node3'

CRS-2673: Attempting to stop 'ora.DATA.dg' on 'node3'

CRS-2677: Stop of 'ora.DATA.dg' on 'node3' succeeded

CRS-2677: Stop of 'ora.oc4j' on 'node3' succeeded

CRS-2672: Attempting to start 'ora.oc4j' on 'node2'

CRS-2676: Start of 'ora.oc4j' on 'node2' succeeded

CRS-2677: Stop of 'ora.CRS.dg' on 'node3' succeeded

CRS-2673: Attempting to stop 'ora.asm' on 'node3'

CRS-2677: Stop of 'ora.asm' on 'node3' succeeded

CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'node3' has completed

CRS-2677: Stop of 'ora.crsd' on 'node3' succeeded

CRS-2673: Attempting to stop 'ora.crf' on 'node3'

CRS-2673: Attempting to stop 'ora.ctssd' on 'node3'

CRS-2673: Attempting to stop 'ora.evmd' on 'node3'

CRS-2673: Attempting to stop 'ora.asm' on 'node3'

CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'node3'

CRS-2673: Attempting to stop 'ora.mdnsd' on 'node3'

CRS-2677: Stop of 'ora.crf' on 'node3' succeeded

CRS-2677: Stop of 'ora.ctssd' on 'node3' succeeded

CRS-2677: Stop of 'ora.evmd' on 'node3' succeeded

CRS-2677: Stop of 'ora.mdnsd' on 'node3' succeeded


CRS-2677: Stop of 'ora.asm' on 'node3' succeeded

CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'node3'

CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'node3' succeeded

CRS-2673: Attempting to stop 'ora.cssd' on 'node3'

CRS-2677: Stop of 'ora.drivers.acfs' on 'node3' succeeded

CRS-2677: Stop of 'ora.cssd' on 'node3' succeeded

CRS-2673: Attempting to stop 'ora.gipcd' on 'node3'

CRS-2677: Stop of 'ora.gipcd' on 'node3' succeeded

CRS-2673: Attempting to stop 'ora.gpnpd' on 'node3'

CRS-2677: Stop of 'ora.gpnpd' on 'node3' succeeded

CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'node3' has


completed

CRS-4133: Oracle High Availability Services has been stopped.

Successfully deconfigured Oracle clusterware stack on this node

[root@node3 install]# pwd

/u01/app/11.2.0/grid/crs/install

[root@node3 install]# su - grid

[grid@node3 ~]$

[grid@node3 ~]$

[grid@node3 ~]$

[grid@node3 ~]$ /u01/app/11.2.0/grid/oui/bin/

-bash: /u01/app/11.2.0/grid/oui/bin/: is a directory

[grid@node3 ~]$ cd /u01/app/11.2.0/grid/oui/bin/

[grid@node3 bin]$

[grid@node3 bin]$

[grid@node3 bin]$ ./runInstaller -updateNodeList ORACLE_HOME=$ORACLE_HOME


"CLUSTER_NODES={node3}" CRS=TRUE -local

Starting Oracle Universal Installer...


Checking swap space: must be greater than 500 MB. Actual 4953 MB Passed

The inventory pointer is located at /etc/oraInst.loc

The inventory is located at /u01/app/oraInventory

'UpdateNodeList' failed.

[grid@node3 bin]$ pwd

/u01/app/11.2.0/grid/oui/bin

[grid@node3 bin]$ ./runInstaller -updateNodeList ORACLE_HOME=/u01/app/11.2.0/grid/


"CLUSTER_NODES={node3}" CRS=TRUE -local

Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB. Actual 4953 MB Passed

The inventory pointer is located at /etc/oraInst.loc

The inventory is located at /u01/app/oraInventory

'UpdateNodeList' was successful.

[grid@node3 bin]$

[grid@node3 bin]$ cd cd /u01/app/11.2.0/grid/deinstall

-bash: cd: cd: No such file or directory

[grid@node3 bin]$ cd /u01/app/11.2.0/grid/deinstall

[grid@node3 deinstall]$ ./deinstall -local

Checking for required files and bootstrapping ...

Please wait ...

Location of logs /u01/app/oraInventory/logs/

############ ORACLE DEINSTALL & DECONFIG TOOL START ############

######################### CHECK OPERATION START #########################


## [START] Install check configuration ##

User equivalence is not set on the node(s) 'node3'

Run '/tmp/deinstall2020-01-15_08-20-33PM/sshUserSetup.sh -hosts "node3 " -user grid' from the


local node 'node3' and rerun the tool again.

ERROR: Exited from Program.

Traces log file: /u01/app/oraInventory/logs//crsdc.log

Enter an address or the name of the virtual IP used on node "node3"[node3-vip]

>

The following information can be collected by running "/sbin/ifconfig -a" on node "node3"

Enter the IP netmask of Virtual IP "192.168.1.59" on node "node3"[255.255.255.0]

>

Enter the network interface name on which the virtual IP address "192.168.1.59" is active

>

Enter an address or the name of the virtual IP[]

>

Network Configuration check config START

Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_check2020-01-


15_08-20-50-PM.log

Specify all RAC listeners (do not include SCAN listener) that are to be de-configured
[LISTENER,LISTENER_SCAN3,LISTENER_SCAN2]:
Network Configuration check config END

Asm Check Configuration START

ASM de-configuration trace file location: /u01/app/oraInventory/logs/asmcadc_check2020-01-


15_08-21-21-PM.log

######################### CHECK OPERATION END #########################

####################### CHECK OPERATION SUMMARY #######################

Following RAC listener(s) will be de-configured: LISTENER,LISTENER_SCAN3,LISTENER_SCAN2

Option -local will not modify any ASM configuration.

A log of this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2020-01-


15_08-20-42-PM.out'

Any error messages from this session will be written to:


'/u01/app/oraInventory/logs/deinstall_deconfig2020-01-15_08-20-42-PM.err'

ERROR: The deconfiguration and deinstallation tool has detected runtime errors when checking the
existing configuration due to which the tool cannot continue with clean up operation. Please check
the log files for more information. Rerun the tool after fixing the errors to proceed with the
ORACLE_HOME clean up.

############# ORACLE DEINSTALL & DECONFIG TOOL END #############

[grid@node3 deinstall]$

Das könnte Ihnen auch gefallen