- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: oracle backup online
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
тАО05-13-2005 05:26 AM
тАО05-13-2005 05:26 AM
oracle backup online
First script the name is hotbk1.sh
# more hotbk1.sh
export ORACLE_SID=olap
sqlplus -s "/as sysdba" @/ora9i/admin/olap/scripts/hotbk1.sql
Second script is hotbk1.sql:
#more hotbk1.sql
alter tablespace SYSTEM begin backup;
alter tablespace UNDOTBS1 begin backup;
alter tablespace SIEBELDATA begin backup;
alter tablespace SIEBELINDEX begin backup;
alter tablespace TOOLS begin backup;
alter tablespace USERS begin backup;
!rm /oracle/backup/hot/control/crontrol_file.ctl
alter database backup controlfile to '/oracle/backup/hot/control/crontrol_file.c
tl';
alter database backup controlfile to trace;
alter system switch logfile;
alter system archive log stop;
!cp /ora9i/admin/olap/udump/* /oracle/backup/hot/udump
!cp /ora9i/dbs/spfileolap.ora /oracle/backup/hot/dbs
!cp /ora9i/dbs/orapwolap /oracle/backup/hot/dbs
exit
OLAP01 /ora9i/admin/olap/scripts
I need execute in the crontab the script for automatic execution, Do you know what is the sintaxis or what is the procedure for execute my backup online ?
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2005 05:33 AM
тАО05-13-2005 05:33 AM
Re: oracle backup online
min hr month_day month wekkday
So you want you script to execute at 0100 daily,
00 01 * * *
Do man on cron and crontab.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2005 05:37 AM
тАО05-13-2005 05:37 AM
Re: oracle backup online
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2005 06:01 AM
тАО05-13-2005 06:01 AM
Re: oracle backup online
On HPUX - "man cron" see section titled "EXAMPLES" a few pages down.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2005 04:50 AM
тАО05-16-2005 04:50 AM
Re: oracle backup online
With these details the question is easily answered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2005 05:41 AM
тАО05-16-2005 05:41 AM
Re: oracle backup online
One issue that keeps coming back on these thread regarding crontab is that the environemnt is NOT set. Therefore, you must set all your (required) environment variables.
One option is to create a wrapper script that we source an initialisation script with all required variable. very usefull when you need the same functionality elsewhere.
Regards
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2005 05:43 AM
тАО05-16-2005 05:43 AM
Re: oracle backup online
check this thread :
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=822683
Regards
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2005 11:52 AM
тАО05-16-2005 11:52 AM
Re: oracle backup online
You can do this backup in some easy steps:
1. save your commands above in a file owned by oracle and with execute permission, like hotbk.sh
2. have an oracle account with all environment variables: ORACLE_HOME, ORACLE_SID and PATH with ORACLE_HOME/bin
3. make your crontab as root to execute at midnight/everyday:
0 0 * * * su - oracle -c
3.2 make your crontab as oracle (don├В┬┤t forget to put oracle in /var/adm/cron/cron.allow):
0 0 * * *
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2005 11:09 PM
тАО05-16-2005 11:09 PM
Re: oracle backup online
I suggest you to use RMAN for this. This is an excellent powerfull backup and recovery tool (free) from Oracle, which allows you to do (supported) online backups and point-in-time recoveries.
You initially have to do so reading, but it's worth-well.
Cheerio,
Renarios
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2005 12:30 AM
тАО05-17-2005 12:30 AM
Re: oracle backup online
Have you gotten it to work? The statements alter tablespace
alter tablespace
If the begin backups and end backups don't match, you could have some problems.
-Just a heads up