Oracle crontab job failed, But if run command line scripts working fine.
Executing Command : BACKUP AS COMPRESSED BACKUPSET
::::::::::::::
./src.log
::::::::::::::
Recovery Manager: Release 11.2.0.3.0 - Production on Mon Feb 2 08:00:01 2015
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: PROD (DBID=2595689245)
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04004: error from recovery catalog database: ORA-12154: TNS:could not resolve the connect identifier specified
Soluttion:
Add this TNS_ADMIN path in the "environment scripts" file. Then Try.
export TNS_ADMIN=/a02/oracle/PROD/db/11.2.0/network/admin/PROD1_server
export PATH=$PATH:$ORACLE_HOME/bin:/usr/local/bin:/usr/bin:/bin:$TNS_ADMIN
Executing Command : BACKUP AS COMPRESSED BACKUPSET
::::::::::::::
./src.log
::::::::::::::
Recovery Manager: Release 11.2.0.3.0 - Production on Mon Feb 2 08:00:01 2015
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: PROD (DBID=2595689245)
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04004: error from recovery catalog database: ORA-12154: TNS:could not resolve the connect identifier specified
Soluttion:
Add this TNS_ADMIN path in the "environment scripts" file. Then Try.
export TNS_ADMIN=/a02/oracle/PROD/db/11.2.0/network/admin/PROD1_server
export PATH=$PATH:$ORACLE_HOME/bin:/usr/local/bin:/usr/bin:/bin:$TNS_ADMIN