최신 패치시 또는 applyRU 적용시 fuser 명령어 없어서 opatch 패치시 에러날때..

 

주로 RHEL7 OS 설치시 최소 minimum 옵션으로 설치시 fuser 명령어가 누락되는 듯 하다.

에러날때 opatch 로그를 보고 확인가능..

 

Prerequisite Status: FAILED, Prerequisite output: 
The details are:

 

Missing command :fuser] 

(첨부화일은 psmisc 설치하여 해결하고 싶다면 각각 RHEL7/RHEL8 용 rpm을 첨부함)

1. yum install psmisc 
또는 

2. export OPATCH_NO_FUSER=true
또는 

3. export PATH=$PATH:/tmp
cat > /tmp/fuser
또는

4. cd $GRID_HOME/bin
touch fuser
chmod 755 fuser

 

psmisc-22.20-17.el7.x86_64.rpm
0.14MB
psmisc-23.1-5.el8.x86_64.rpm
0.15MB

Posted by pat98

패치작업 19.13.0.0.211019 (GI PSU 33182768)

OCW Patch Set Update      : 19.13.0.0.211019 (33208123)
ACFS Patch Set Update     : 19.13.0.0.211019 (33208107)
Database Patch Set Update : 19.13.0.0.211019 (33192793)
DBWLM Release Update      : 19.0.0.0.0       (32585572)
Tomcat Release Update     : 19.0.0.0.0       (33239955)

Oracle Grid Infrastructure Patch Set Update 19.13.0.0.211019 
-------------------------------------
GI_HOME, ORACLE_HOME 을 개별로 각각 할때

- grid 유저
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir <UNZIPPED_PATCH_LOCATION>/33182768/33192793
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir <UNZIPPED_PATCH_LOCATION>/33182768/33208123
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir <UNZIPPED_PATCH_LOCATION>/33182768/33208107
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir <UNZIPPED_PATCH_LOCATION>/33182768/32585572
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir <UNZIPPED_PATCH_LOCATION>/33182768/33239955

- oracle 유저
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir <UNZIPPED_PATCH_LOCATION>/33182768/33192793
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir <UNZIPPED_PATCH_LOCATION>/33182768/33208123

(oracle)
$ <ORACLE_HOME>/bin/srvctl stop home -o <ORACLE_HOME> -s <status file location> -n <node name>

(root 유저)
export GI_HOME=/u01/app/19.3.0.0/grid
$GI_HOME/crs/install/rootcrs.sh -prepatch -nonrolling

(grid 유저)
export GI_HOME=/u01/app/19.3.0.0/grid
cd /u01/install
$GI_HOME/OPatch/opatch apply -oh $GI_HOME -local ./33182768/33208123 -silent
$GI_HOME/OPatch/opatch apply -oh $GI_HOME -local ./33182768/33208107 -silent
$GI_HOME/OPatch/opatch apply -oh $GI_HOME -local ./33182768/33192793 -silent
$GI_HOME/OPatch/opatch apply -oh $GI_HOME -local ./33182768/32585572 -silent
$GI_HOME/OPatch/opatch apply -oh $GI_HOME -local ./33182768/33239955 -silent

(oracle 유저)
export ORACLE_HOME=/u01/app/oracle/product/19.3.0.0/dbhome_1
cd /u01/install
./33182768/33208123/custom/scripts/prepatch.sh -dbhome $ORACLE_HOME
$ORACLE_HOME/OPatch/opatch apply -oh $ORACLE_HOME -local ./33182768/33208123 -silent
$ORACLE_HOME/OPatch/opatch apply -oh $ORACLE_HOME -local ./33182768/33192793 -silent
./33182768/33208123/custom/scripts/postpatch.sh -dbhome $ORACLE_HOME 

(root 유저)
export GI_HOME=/u01/app/19.3.0.0/grid
$GI_HOME/rdbms/install/rootadd_rdbms.sh
$GI_HOME/crs/install/rootcrs.sh -postpatch -nonrolling

(oracle)
$ <ORACLE_HOME>/bin/srvctl start home -o <ORACLE_HOME> -s <status file location> -n <node name> 

- Loading Modified SQL Files into the Database
sqlplus /nolog
SQL> conect / as sysdba
SQL> startup
SQL> quit
cd $ORACLE_HOME/OPatch
./datapatch -verbose

### [롤백하는 경우] ###########

(oracle)
$ <ORACLE_HOME>/bin/srvctl stop home -o <ORACLE_HOME> -s <status file location> -n <node name>

GI Home
(root로)
$GI_HOME/crs/install/rootcrs.sh -prepatch -rollback

(grid 유저로)
$GI_HOME/OPatch/opatch nrollback -local -id 33208123,33208107,33192793,32585572,33239955 -oh $GI_HOME

(oracle 유저로)
cd <UNZIPPED_PATCH_LOCATION>
./33182768/33208123/custom/scripts/prepatch.sh -dbhome $ORACLE_HOME (권한체크)
$ORACLE_HOME/OPatch/opatch nrollback -local -id  33208123,33192793 -oh /oracle/product/19.3.0.0
./33182768/33208123/custom/scripts/postpatch.sh -dbhome $ORACLE_HOME (권한체크)

Run post script
(root로)
$GI_HOME/rdbms/install/rootadd_rdbms.sh
$GI_HOME/crs/install/rootcrs.sh -postpatch -rollback

(oracle)
$ <ORACLE_HOME>/bin/srvctl start home -o <ORACLE_HOME> -s <status file location> -n <node name>

sqlplus /nolog
SQL> conect / as sysdba
SQL> startup
SQL> quit
cd $ORACLE_HOME/OPatch
./datapatch -verbose

Posted by pat98

패치작업 12.1.0.2.5 (2015.10)

 

RAC 환경임

 

Patch 21523234 - Oracle Grid Infrastructure Patch Set Update 12.1.0.2.5 (Oct2015

Patch Number
21359755 : DB PSU 12.1.0.2.5 (OCT2015)
21359758 : OCW PSU 12.1.0.2.5

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

auto로 GRID_HOME, ORACLE_HOME 한꺼번에 해 버릴때(auto)

 

As the Grid home owner execute:

 

cd /tmp
$ <ORACLE_HOME>/OPatch/ocm/bin/emocmrsp

 

적용 (root)

opatchauto apply <UNZIPPED_PATCH_LOCATION>/21523234 -ocmrf <ocm response file>


롤백 (root)

opatchauto rollback <UNZIPPED_PATCH_LOCATION>/21523234

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

manual 로  GRID_HOME, ORACLE_HOME 각각 따로 (manually)

(root 유저)

<GI_HOME>/crs/install/rootcrs.pl -prepatch


crs 패치 (grid 유저)

<GI_HOME>/OPatch/opatch apply -oh <GI_HOME> -local <UNZIPPED_PATCH_LOCATION>/21523234/21359755
<GI_HOME>/OPatch/opatch apply -oh <GI_HOME> -local <UNZIPPED_PATCH_LOCATION>/21523234/21359758

 

db 패치 (oracle 유저)

<ORACLE_HOME>/OPatch/opatch apply -oh <ORACLE_HOME> -local <UNZIPPED_PATCH_LOCATION>/21523234/21359755
<ORACLE_HOME>/OPatch/opatch apply -oh <ORACLE_HOME> -local <UNZIPPED_PATCH_LOCATION>/21523234/21359758


(root 유저)

<GI_HOME>/rdbms/install/rootadd_rdbms.sh
<GI_HOME>/crs/install/rootcrs.pl -postpatch

 

Post 작업

1. sqlplus /nolog
2. SQL> Connect / as sysdba
3. SQL> startup
4. SQL> quit
5. cd $ORACLE_HOME/OPatch
6. ./datapatch -verbose


[롤백하는 경우]

(root로)
<GI_HOME>/crs/install/rootcrs.pl -prepatch -rollback

 

crs 패치 (grid 유저로)


$ <GI_HOME>/OPatch/opatch rollback -local -id 21359755 -oh <GI_HOME>
$ <GI_HOME>/OPatch/opatch rollback -local -id 21359758  -oh <GI_HOME>

 

db 패치 (oracle 유저로)
$ <ORACLE_HOME>/OPatch/opatch rollback -local -id 21359755 -oh <ORACLE_HOME>
$ <ORACLE_HOME>/OPatch/opatch rollback -local -id 21359758  -oh <ORACLE_HOME>

 

Run post script
(root로)
<GI_HOME>/rdbms/install/rootadd_rdbms.sh
<GI_HOME>/crs/install/rootcrs.pl -postpatch -rollback

Posted by pat98

Opatch 이용 GI PSU 적용시 Space 부족으로 인한 장애시 처리방법

 

- XXX 은행 작업시 발생했던 상황 (AIX 7.1 with  Oracle 11.2.0.3)

 

패치 적용시 공간이 충분함에도 아래와 같은 메세지와 함께 패치가 진행되지 않는다.

 

Required amount of space(23428.225MB) is not available.
UtilSession failed: 
Prerequisite check "CheckSystemSpace" failed.
Log file location: /oracle/app/11.2.0/grid/cfgtoollogs/opatch/opatch2012-10-07_18-26-07PM_1.log
OPatch failed with error code 73
 

마운드 포인트가 /50G 인데도 어이없는 메세지가 뜬다.

 

고민하지 말고  AIX 버그(비공식 버그 (bug 9780505) 이므로 아래와 같이 Opatch 옵션을 붙여주고 수행하면 Space check 를 하지 않기 때문에

 

바로 해결가능하다.

 

opatch apply OPatch.SKIP_VERIFY_SPACE=true

 

그리고 조금 진행하다 보면 libclsra11.so 화일을 Copy 할수 없다고 에러가 뜨는데 이때는 다른 창 열어서 root 유저로 slibclean 실행시키고

 

retry 하면 잘 된다.

 

AIX Platform 은 다른 OS와 달리 GI PSU 공간도 실제로 많이 차지하며 (적용하면 GI_HOME 이 7G 늘어남) 유독 Library 버그성 문제도 많은것 같다.

Posted by pat98

2011. 8. 4. 09:41 오라클

opatch oci.dll



windows에서 Opatch 진행시 oci.dll 화일 에러로 진행이 안될때가 있다.

아래와 같을 때는...

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
 
C:\Documents and Settings\Administrator>cd %ORACLE_HOME%\opatch
 
C:\oracle\product\10.2.0\db_1\OPatch>opatch apply C:\GTech10\p6430171_10203_WINN
T\6430171
Invoking OPatch 10.2.0.3.4
 
Oracle Interim Patch Installer version 10.2.0.3.4
Copyright (c) 2007, Oracle Corporation.  All rights reserved.
 
 
Oracle Home       : C:\oracle\product\10.2.0\db_1
Central Inventory : C:\Program Files\Oracle\Inventory
   from           : n/a
OPatch version    : 10.2.0.3.4
OUI version       : 10.2.0.3.0
OUI location      : C:\oracle\product\10.2.0\db_1\oui
Log file location : C:\oracle\product\10.2.0\db_1\cfgtoollogs\opatch\opatch2008-
04-25_17-31-16PM.log
 
ApplySession applying interim patch '6430171' to OH 'C:\oracle\product\10.2.0\db
_1'
Interim patch 6430171 is a superset of the patch(es) [  5556081 5557962 ] in OH
C:\oracle\product\10.2.0\db_1
OPatch will rollback the subset patches and apply the given patch.
 
Running prerequisite checks...
Prerequisite check "CheckActiveFilesAndExecutables" failed.
The details are:
 
Following files are active :
C:\oracle\product\10.2.0\db_1\bin\oci.dll
ApplySession failed during prerequisite checks: Prerequisite check "CheckActiveF
ilesAndExecutables" failed.
System intact, OPatch will not attempt to restore the system
 
The following warnings have occurred during OPatch execution:
1) OUI-67078:Interim patch 6430171 is a superset of the patch(es) [  5556081 555
7962 ] in OH C:\oracle\product\10.2.0\db_1
--------------------------------------------------------------------------------
 
 
OPatch failed with error code = 74
 
C:\oracle\product\10.2.0\db_1\OPatch>

-----------------------------------------------------------------------------------
원인과 해결법

Cause
This error occurs when the Oracle Files are in use.
Windows will not allow a file to be overwritten, while it is in use.

Solution
- Make sure ALL Oracle Services are stopped.
- Check to see if you have a service called Distributed Transaction Coordinator running.
- If so, stop it.
- Try to apply the patch again.


If you get the same error, then it means some other application / service is using the Oracle Files.
There is a simple workaround for this:
- Boot the machine into SAFE MODE.
- Apply the patch.
- After the patch is applied, reboot the machine back into Normal Mode.
- Finish applying the patch, by using the Post Installation Procedures.


Other possible workarounds:

Remove Oracle from the PATH, reboot the machine, apply the patch, then put Oracle back in the PATH.
Steps recommended:
- Set ALL Oracle Services to Manual Start (Note which ones are set this way, so you can
set them back later).
- Edit the System Environment Variables.
- Copy the ENTIRE PATH into a Notepad Text file (for later use).
- Remove the Oracle directories from the PATH.
- Reboot the machine.
- Apply the patch.
- Restore the PATH back to how it was (using the Notepad text file).
- Set the Oracle Services back to AUTO startup (only the ones that were set this way before).
- Reboot the machine.
- Finish applying the patch with the Post Installation Procedures (ie., the scripts).

 

It has been reported by some, an application such as a Virus Checker, Backup software, DiskKeeper, and other programs such as these, have a lock on some of the Oracle files.
You may want to disable these programs, and see if the patch gets applied.
See the next section, to help determine what process / program is locking the files.


Use a utility to determine what process is using the Oracle files.
- One such utility is called Process Explorer.
- You can find this at: http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx
- Once installed, search for the Oracle .dll files.
- When you find the process that is using the files, you can kill that process.
- Then try applying the patch.


If the above steps have been tried, and you are still getting errors copying the files:
Check to see if the 'Read-Only' attribute is set, either on the patch bundle files, or>br> in the Oracle_Home.
(Note: A good indication of this problem is when there are 80+ files that can not be copied).
A common reason for this, is if the patch bundle was put onto a CD-ROM, then copied onto
the local disk. Or, if someone intentionally sets the read-only attribute on the Oracle files.

To check for the 'Read-Only' Attribute, you can:
- Use Windows Explorer
- CD to the directory (either the patch directory, or the Oracle_Home)
- Right click on a file
(Use the Opatch Apply.log, to determine the filename or folders.)
- Select Properties
- You can see if the Read-Only Attribute is set.

If the Read-Only attribute is set, you need to remove it:
- Open a CMD Prompt.
- CD to directory (the patch directory or the Oracle_Home).
- Type: attrib -r *.* /s
(This command will remove the 'read-only' attribute from all files and all sub-folders).

Now try applying the patch.

 

 

Posted by pat98
이전버튼 1 이전버튼

04-27 15:27
Flag Counter
Yesterday
Today
Total

글 보관함

최근에 올라온 글

달력

 « |  » 2024.4
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

최근에 달린 댓글