- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- using a variable in the RMAN backup format paramet...
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
тАО04-01-2002 05:14 AM
тАО04-01-2002 05:14 AM
using a variable in the RMAN backup format parameter
RMAN-03006: non-retryable error occurred during execution of command: backup
RMAN-07004: unhandled exception during command execution on channel t1
RMAN-10035: exception raised in RPC: ORA-07217: sltln: environment variable cannot be evaluated.
RMAN-10031: ORA-19583 occurred during call to DBMS_BACKUP_RESTORE.BACKUPPIECECREATE
Is there any more specific documentation about what variables are supported within RMAN? (I've found nothing in the manuals beyond the excerpt I included below.) Does anyone know if the "port-specific directory" mentioned in the excerpt below can be modified/customized?
I've posted this on OTN as well.
Thanks....
Peter
format 'format_string'
specifies the filename to use for the backup piece. Any name that is legal as a sequential filename on the platform is allowed, provided that each backup piece has a unique name. If backing up to disk, then any legal disk filename is allowed, provided it is unique. If you do not specify the format parameter, RMAN stores the backup pieces in a port-specific directory ($ORACLE_HOME/dbs on UNIX).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2002 05:17 AM
тАО04-01-2002 05:17 AM
Re: using a variable in the RMAN backup format parameter
Can you post the environment variable and the assignment you used?
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2002 10:48 AM
тАО04-01-2002 10:48 AM
Re: using a variable in the RMAN backup format parameter
ORACLE_BACKUP=/db/oracle01/netbackup/
Here's the .rcv for RMAN. Using $ORACLE_BACKUP vs. ${ORACLE_BACKUP} made no difference.
Thanks...Peter
connect target ...
connect rcvcat ...
run {
# Hot database level 0 whole backup
allocate channel t1 type disk;
backup
incremental level 0
skip inaccessible
tag hot_db_bk_level0
filesperset 5
# recommended format
format '$ORACLE_BACKUP/bk_%s_%p_%t'
(database);
sql 'alter system archive log current';
# backup all archive logs
backup
filesperset 20
format '$ORACLE_BACKUP/al_%s_%p_%t'
(archivelog all
delete input);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2002 10:53 AM
тАО04-01-2002 10:53 AM
Re: using a variable in the RMAN backup format parameter
Try replacing the Apostrophes (') with QUOTES ("):
See the difference:
[root]pbctst: echo format '$ORACLE_BACKUP/bk_%s_%p_%t'
format $ORACLE_BACKUP/bk_%s_%p_%t
[root]pbctst: export ORACLE_BACKUP=CRAZY
[root]pbctst: echo format '$ORACLE_BACKUP/bk_%s_%p_%t'
format $ORACLE_BACKUP/bk_%s_%p_%t
[root]pbctst: echo format $ORACLE_BACKUP/bk_%s_%p_%t
format CRAZY/bk_%s_%p_%t
[root]pbctst: echo format "$ORACLE_BACKUP/bk_%s_%p_%t"
format CRAZY/bk_%s_%p_%t
[root]pbctst:
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2002 05:40 AM
тАО04-03-2002 05:40 AM
Re: using a variable in the RMAN backup format parameter
Any other thoughts?
Thanks...
...Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2002 05:45 AM
тАО04-03-2002 05:45 AM
Re: using a variable in the RMAN backup format parameter
format "${ORACLE_BACKUP}/bk_%s_%p_%t"
OR
format ${ORACLE_BACKUP}"/bk_%s_%p_%t"
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2002 10:11 AM
тАО04-03-2002 10:11 AM
Re: using a variable in the RMAN backup format parameter
It's working now; problem ended up being with variable definitions within various parts of the "su -c" command.
Thanks for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2002 10:25 AM
тАО04-03-2002 10:25 AM
Re: using a variable in the RMAN backup format parameter
live free or die
harry