HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Scheduling Oracle Export II - For Victor
Operating System - HP-UX
1833323
Members
3307
Online
110051
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
Forums
Discussions
Discussions
Discussions
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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
11-05-2004 12:45 AM
11-05-2004 12:45 AM
Victor,
I scheduled the Oracle export and it seemed to run fine. Created the file with correct day/month stamp in the correct location.
However I checked the export.log file and saw some strange things at the beginning. I think you were mentioning them towards the end of the original thread.
I've attached all the log files resulting from the export to this message for you to review ok.
I scheduled the Oracle export and it seemed to run fine. Created the file with correct day/month stamp in the correct location.
However I checked the export.log file and saw some strange things at the beginning. I think you were mentioning them towards the end of the original thread.
I've attached all the log files resulting from the export to this message for you to review ok.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 01:43 AM
11-05-2004 01:43 AM
Solution
Hi Adrian,
Sorry coulnt read before, was on a server crash issue...
Well it seemed to work fine, the strange thing at the beginning was what I already mentionned in a previous mail but I will explain for you will have to see what is generating it:
when you connect yourself to the server you are in interactive mode so you have a tty port of some sort dedicated to your session
when you type on a box who -uA you will see them...
But as cron is NOT interactive it cannot use the settings that it encounters like stty business and so complains..
You will have to see and modify the .profile of oracle since you do a su - and inherit oracle environment.
Like I suggested modify first using my previous reply on the subject /etc/profile
this will correct the problem unless oracle in its .profile sets a terminal such as vt100...
you may have in oracle's .profile something like:
# Set up the terminal:
if tty -s; then
if [ "$TERM" = "" ]
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
tabs
fi
----
Here I added a test:
if tty -s; then # this tests if interactive session!
..
fi
---
So do the same if you see a stanza alike
or if you see a line like:
export TERM=vt100
---
Good luck
All the best
Victor
Sorry coulnt read before, was on a server crash issue...
Well it seemed to work fine, the strange thing at the beginning was what I already mentionned in a previous mail but I will explain for you will have to see what is generating it:
when you connect yourself to the server you are in interactive mode so you have a tty port of some sort dedicated to your session
when you type on a box who -uA you will see them...
But as cron is NOT interactive it cannot use the settings that it encounters like stty business and so complains..
You will have to see and modify the .profile of oracle since you do a su - and inherit oracle environment.
Like I suggested modify first using my previous reply on the subject /etc/profile
this will correct the problem unless oracle in its .profile sets a terminal such as vt100...
you may have in oracle's .profile something like:
# Set up the terminal:
if tty -s; then
if [ "$TERM" = "" ]
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
tabs
fi
----
Here I added a test:
if tty -s; then # this tests if interactive session!
..
fi
---
So do the same if you see a stanza alike
or if you see a line like:
export TERM=vt100
---
Good luck
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 01:50 AM
11-05-2004 01:50 AM
Re: Scheduling Oracle Export II - For Victor
As you ave noticed also
It generates 2 other logs
export.done giving you the day time of the export done
export.err wich is empty when all's fine
so you will only have to look if this file is greater than 0 to know you had some trouble with the export and are to edit the export.log to find out why
All the best
Victor
It generates 2 other logs
export.done giving you the day time of the export done
export.err wich is empty when all's fine
so you will only have to look if this file is greater than 0 to know you had some trouble with the export and are to edit the export.log to find out why
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 03:10 AM
11-05-2004 03:10 AM
Re: Scheduling Oracle Export II - For Victor
Just thoughts Adrian,
If you want to be fool proof with an oracle export
modify your oracle script that does the export by adding extra lines at the end to copy in the same directory where lies the export file, all the control files and the redologs
e.g. (As I dont know where you files are... an example but they may look like namewise...)
cd /var/export
cp -p /data/mnt1/oradata/POPA/ctrl1IRDS.ctl .
cp -p /data/mnt2/oradata/POPA/ctrl2IRDS.ctl .
cp -p /data/mnt3/oradata/POPA/ctrl3IRDS.ctl .
cp -p /data/mnt2/oradata/POPA/redoIRDS01.log .
cp -p /data/mnt2/oradata/POPA/redoIRDS02.log .
cp -p /data/mnt2/oradata/POPA/redoIRDS03.log .
I always managed to sort myself out with a good full export of all and with these files copied at the time of the export.
All the best
Victor
If you want to be fool proof with an oracle export
modify your oracle script that does the export by adding extra lines at the end to copy in the same directory where lies the export file, all the control files and the redologs
e.g. (As I dont know where you files are... an example but they may look like namewise...)
cd /var/export
cp -p /data/mnt1/oradata/POPA/ctrl1IRDS.ctl .
cp -p /data/mnt2/oradata/POPA/ctrl2IRDS.ctl .
cp -p /data/mnt3/oradata/POPA/ctrl3IRDS.ctl .
cp -p /data/mnt2/oradata/POPA/redoIRDS01.log .
cp -p /data/mnt2/oradata/POPA/redoIRDS02.log .
cp -p /data/mnt2/oradata/POPA/redoIRDS03.log .
I always managed to sort myself out with a good full export of all and with these files copied at the time of the export.
All the best
Victor
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
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP