Wednesday, January 7, 2015

Cannot Copy a File Using cp on OCFS While the Database on RH3





APPLIES TO:

Oracle Server - Enterprise Edition - Version: 9.2.0.1 to 9.2.0.4
Red Hat Enterprise Linux Advanced Server x86-64 (AMD Opetron Architecture)
Red Hat Enterprise Linux Advanced Server

Check for relevance on 29-Sep-2007

SYMPTOMS

You have followed the below note.

Note:235113.1 Cannot Copy a File Using cp on OCFS While the Database is Running

But while installing fileutils-4.1-4.2.i386.rpm. You receive following errors.

error: Failed dependencies:
sh-utils is needed by (installed) krb5-libs-1.2.7-19
sh-utils is needed by (installed) modutils-2.4.25-9.EL
sh-utils is needed by (installed) initscripts-7.31.6.EL-1
.
.
.

CAUSE

rpm detects conflict with other packages while installing fileutils package.

SOLUTION

In place of using fileutils-4.1-4.2.i386.rpm. Use coreutils-X.X.X-XX.i386.rpm package.

where X.X.X-XX is the latest available package.
It can be download from below URL.
http://oss.oracle.com/projects/ocfs/files/supported/RedHat/RHAS3/

To Install this package use the command

# rpm -Uvh coreutils-4.5.3-33.i386.rpm
Preparing... ########################################### [100%]
1:coreutils ########################################### [100%]

To copy the file from OCFS partition use following example.

$cp --o_direct /ocfs/users.dbf /tmp/backup/users.dbf
$dd o_direct=yes if=/ocfs/users.dbf of=/tmp/backup/users.dbf

And dont forget to put the tablespace in the "begin backup" mode before copying
SQL> alter tablespace USERS begin backup;

1 comment:

  1. This comment has been removed by a blog administrator.

    ReplyDelete