- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- problem using parameter in rman within netbackup
Operating System - HP-UX
1819761
Members
2953
Online
109606
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2004 03:23 AM
тАО09-01-2004 03:23 AM
problem using parameter in rman within netbackup
Hi all,
We are using netbackup to backup our system. Netbackup call the rman scripts to take the backup. I am having problem with the send parameter. Right now if within the rman scripts, if I use the "send" as following, it works fine
send 'NB_ORA_SCHED=Full-OnSite-Policy, NB_ORA_CLIENT=mpc1234';
but if I used a vairable name in place of mpc1234 it doesn't work
send 'NB_ORA_SCHED=Full-OnSite-Policy, NB_ORA_CLIENT=${HOSTNAME}'
It literally put NB_ORA_CLIENT as ${HOSTNAME}
So instead of mcp1234 I see ${HOSTNAME}. Ofcource export HOSTNAME=mcp1234 is set in the parent script.
Please help
Sushil
We are using netbackup to backup our system. Netbackup call the rman scripts to take the backup. I am having problem with the send parameter. Right now if within the rman scripts, if I use the "send" as following, it works fine
send 'NB_ORA_SCHED=Full-OnSite-Policy, NB_ORA_CLIENT=mpc1234';
but if I used a vairable name in place of mpc1234 it doesn't work
send 'NB_ORA_SCHED=Full-OnSite-Policy, NB_ORA_CLIENT=${HOSTNAME}'
It literally put NB_ORA_CLIENT as ${HOSTNAME}
So instead of mcp1234 I see ${HOSTNAME}. Ofcource export HOSTNAME=mcp1234 is set in the parent script.
Please help
Sushil
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2004 03:27 AM
тАО09-01-2004 03:27 AM
Re: problem using parameter in rman within netbackup
right before send command
echo $HOSTNAME
hostname
DNS could be providing you a fully qualified domain name.
ie
server
could be server.yourdomain.net
Make sure that whatever values are displayed are in /etc/hosts because netbackup does not use dns to resolve hostnames, even if /etc/nsswitch.conf is set to do so.
SEP
echo $HOSTNAME
hostname
DNS could be providing you a fully qualified domain name.
ie
server
could be server.yourdomain.net
Make sure that whatever values are displayed are in /etc/hosts because netbackup does not use dns to resolve hostnames, even if /etc/nsswitch.conf is set to do so.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2004 05:07 AM
тАО09-01-2004 05:07 AM
Re: problem using parameter in rman within netbackup
I can't say exactly why this won't work without a bit of context - is this in an RMAN script which is called as in:
rman cmdfile=myrmanscript.rman
or ist it reading commands from stdout in a shell script as in something like:
rman << EOF
connect target blah...
allocate channel bah...
send 'NB_ORA_SCHED=Full-OnSite-Policy, NB_ORA_CLIENT=${HOSTNAME}'
etc...
EOF
If its the first instance then no wonder it doesn't work, the command is in an RMAN script and the syntax ${} for environment variables is for a UNIX shell.
Can you give us some context (like the whole script)
HTH
Duncan
I am an HPE Employee
rman cmdfile=myrmanscript.rman
or ist it reading commands from stdout in a shell script as in something like:
rman << EOF
connect target blah...
allocate channel bah...
send 'NB_ORA_SCHED=Full-OnSite-Policy, NB_ORA_CLIENT=${HOSTNAME}'
etc...
EOF
If its the first instance then no wonder it doesn't work, the command is in an RMAN script and the syntax ${} for environment variables is for a UNIX shell.
Can you give us some context (like the whole script)
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2004 05:51 AM
тАО09-01-2004 05:51 AM
Re: problem using parameter in rman within netbackup
Thanks Steven and Duncan for the reply.
Duncan, you are right, RMAN is not comfortable with UNIX variable. It literally take the value assigned to the parameter. Below is the rman script that is called by shell script
run(
allocate channel t1 type 'SBT_TAPE';
send 'NB_ORA_SCHED=Full-OnSite-Policy, NB_ORA_CLIENT=${HOSTNAME}'
backup
incremental level 0
skip inaccessible
tag hot_db_bk_level0
and so on
}
I wanted to substitue the ${HOSTNAME} with the machine package name and don't want to hard code it since it may be used on different clusters.
Thanks
Sushil Singh
Duncan, you are right, RMAN is not comfortable with UNIX variable. It literally take the value assigned to the parameter. Below is the rman script that is called by shell script
run(
allocate channel t1 type 'SBT_TAPE';
send 'NB_ORA_SCHED=Full-OnSite-Policy, NB_ORA_CLIENT=${HOSTNAME}'
backup
incremental level 0
skip inaccessible
tag hot_db_bk_level0
and so on
}
I wanted to substitue the ${HOSTNAME} with the machine package name and don't want to hard code it since it may be used on different clusters.
Thanks
Sushil Singh
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP