- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- not an identifier ???
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
04-08-2003 05:41 AM
04-08-2003 05:41 AM
/usr/users/oracle/dba/utils/run_statspack_snap.ksh: ORACLE_SID=tad: is not an identifier
##------Start script-----
#!/usr/bin/ksh
export ORACLE_SID="$1"$member
sqlplus -s perfstat/pass <
exec statspack.snap
EOF
##------End script-------
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2003 05:57 AM
04-08-2003 05:57 AM
Solution'cron' provides a sparse environment for any task. This consists of the HOME, LOGNAME, SHELL and PATH variables. Your '.profile' is *not* sourced so this environment differs radically from the one you come to expect following a normal login. This is the reason for the behavior you see.
A good approach is to setup a file of the environmental variables you want to provide, specically including a PATH statement. Then, in your '.profile' source (read) this file. For crontasks, do the same; read the variables from the environmental file. For example, to source 'home/oracle/env' do:
# . /home/oracle/env
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2003 06:03 AM
04-08-2003 06:03 AM
Re: not an identifier ???
The post above contains some good info on setting up your environment for your cron jobs.
In your script, where does $member get set?
I also wondered if there's anything strange about your shell identifier line, eg if you wrote the script on a PC and it had a control character within it.
regards,
Darren.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2003 06:08 AM
04-08-2003 06:08 AM
Re: not an identifier ???
Always running any Oracle/Informix Database scripts from CRON, export all the Oracle/Informix environment variables with their home directories and configuration files also.
Thanks
Zafar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2003 06:11 AM
04-08-2003 06:11 AM
Re: not an identifier ???
Always appreciate the prompt and accurate responses in this forum :-)