Link to home
Start Free TrialLog in
Avatar of luyan
luyan

asked on

RMAN-04002: ocipi failed, ORA--1

Log into OS as rman account. When tried to connect and got RMAN-04002 error as below.
svr_name> rman
Recovery Manager: Release 10.2.0.3.0 - Production on Tue Jun 30 00:21:05 2009
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
RMAN> connect target /
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-04002: ocipi failed, ORA--1

How to fix it?
Thanks!
ASKER CERTIFIED SOLUTION
Avatar of garysadler
garysadler
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
See Metalink article 780670.1
Avatar of luyan
luyan

ASKER

After I ran relink,
cd $ORACLE_HOME/rdbms/lib
make -f ins_rdbms.mk irman

still got the same error:
RMAN> connect target /
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-04002: ocipi failed, ORA--1
Did something in your environment change?

You might try relinking all executables. (there is a script in ORACLE_HOME/bin called relink)

It should be as simple as "relink all"

Make sure to shutdown all Oracle programs before relinking.


If that fails, its time to open a SR with Oracle.
Avatar of luyan

ASKER

Do I need to shutdown all instances before I ran "relink all"?
Thanks!
Avatar of luyan

ASKER

Let me get downtime and try it. I will let you know. Thanks!
Avatar of luyan

ASKER

shut down instances and listener. Logged in as oracle account and ran
relink all
and
make -f ins_rdbms.mk irman.
Tried it again. Still got the same error.  
RMAN> connect target /
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-04002: ocipi failed, ORA--1

How to fix it?
Thanks!
I think the only next step is to call Oracle / file a service request.

Something definitely amiss in your environment.
Oracle classifies this error as "Not supposed to happen"

If you are unsupported, the only other option I can think of is to reinstall the Oracle software (the exact version that the database was created under).
Avatar of luyan

ASKER

It works now. But got error when register database.
RMAN> connect target /
connected to target database (not started)
RMAN> connect catalog /@rmansrv
connected to recovery catalog database
RMAN> register database;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of register command at 07/01/2009 01:26:31
RMAN-06403: could not obtain a fully authorized session
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory

Make sure ORACLE_SID is set correctly to your target prior to running RMAN

Also I've never seen the syntax you used above to connect to the catalog (connect catalog /@rmansrv) ??. I use the catalog owner which is usually named rman, see below.

export ORACLE_SID=ORA1
rman target / catalog rman/cat@CAT