[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 522
  • Last Modified:

TSM backups

Hi,
I have a script for TSM backups, but I am getting the below error. Please suggest what should I change.
cd /e01/exp_dp
$TSMBIN/dsmc incremental /e01/exp_dp/*.dmp -subdir=yes > /e01/exp_dp/tsm_diw.log

error-ksh: /dsmc:  not found.
0
nirvairghuman
Asked:
nirvairghuman
5 Solutions
 
johnsoneSenior Oracle DBACommented:
The TSMBIN variable is not defined.
0
 
nirvairghumanAuthor Commented:


I using  TSMBIN=/usr/bin in the script.
0
 
johnsoneSenior Oracle DBACommented:
The command you posted is:

$TSMBIN/dsmc

The error is on:

/dsmc

This would indicate that the variable is not set.

Double check your spelling, and also export the variable.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
Mark GeerlingsDatabase AdministratorCommented:
Does your /usr/bin directory have an executable file named: "dsmc"?  If not, that is the problem.  If it does, then you don't have the $TSMBIN alias defined correctly.
0
 
johnsoneSenior Oracle DBACommented:
If the executable was missing from /usr/bin, then the error message would have been:

error-ksh: /usr/bin/dsmc:  not found.

The error does not contain the /usr/bin part of the path, which would indicate that the variable is not set correctly.
0
 
AnacreoCommented:
Try changing it to:

${TSMBIN}/dsmc

The trailing slash may be causing the variable to not be parsed correctly since you're not in a quoted string.
0

Featured Post

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now