- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: COLD BACKUP
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
Forums
Discussions
Discussions
Discussions
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
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
12-23-2006 01:40 AM
12-23-2006 01:40 AM
I am tring to create cold backup script.
this is my script.
1 dt=`date "+%d%m%c%y"`
2 echo "\nSHUTDOWN DATABASE at " `date`
3 sqlplus "/as sysdba" <
5 exit;
6 EOF
7 echo "\Copying files to backup directory" `date`
8 cp /oradata/RFID/*.dbf /oradata/cold_bkp/
9 cp /oradata/RFID/*.ctl /oradata/cold_bkp/
10 cp /oradata/RFID/*.log /oradata/cold_bkp/
11 sqlplus "/as sysdba"<
13 exit
14 EOF2
but after line 6 it stops executing the momoent it comes out of sqlplus it doesnot understand OS cp command.( These line number i have put for ur understanding it doesnot exist in scripts).
so it doesnot copy my dbf,ctl and logfiles to backup dirctory.
Need Help
Regards
Musaddaq
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2006 03:10 AM
12-23-2006 03:10 AM
SolutionBe prepared to explain what you mean by "it
doesnot understand OS cp command".
Also, attaching the actual script might
reveal if you made a simple error like
having white space before "EOF".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2006 04:24 PM
12-23-2006 04:24 PM
Re: COLD BACKUP
That's it man. The space was the problem.
Thanks
Musaddaq
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2006 04:36 PM
12-23-2006 04:36 PM
Re: COLD BACKUP
incompatible with a "here document". (It's
not a bug, it's a feature.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2006 02:12 AM
12-25-2006 02:12 AM
Re: COLD BACKUP
Are you sure that your "oracle" closed
before starting cp???
so it would be nice to check if any oracle
process exist or not BEFORE starting cp
Good Luck,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2006 04:26 PM
12-25-2006 04:26 PM
Re: COLD BACKUP
Its showing me that database is having a clean Shutdown. But if u have some Suggestions please Do let me know.
Regards
Musaddaq
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2006 05:38 PM
12-25-2006 05:38 PM
Re: COLD BACKUP
Here is a small part of my BaaN Erp+Oracle Db
for to take offline scheduled backup script over omniback
#
#
if [ `ps -ef|egrep -i ora_|grep -v rman|grep -v grep|wc -l` -ne 0 ]
then
echo "ORACLE(baan01) is still active!!!"
exit 1
else
echo "Oracle(baan01) is successfully closed!!!"
su - ${ORACLE_USER} -c "${ORACLE_HOME}/bin/lsnrctl stop"
so i do not have any experience about Sun
but i guess you can use "ps -ef" for to check oracle daemons exist or not
Good Luck,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2006 05:45 PM
12-25-2006 05:45 PM
Re: COLD BACKUP
if the logs are showing a clean shutdown, this should not be a problem.
You can also do a ps -ef|grep
still, the only way to verify that the backup is OK, is to recover from it and see if the database starts properly.
hope this helps too!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2006 05:45 PM
12-25-2006 05:45 PM
Re: COLD BACKUP
I will include that in my script.
Thanks for the info once again
Regards
Musaddaq