- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: error in .profile file
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
10-26-2005 04:38 AM
10-26-2005 04:38 AM
SIDs on this machine are IRDS IRDS8 IRDS90 IRDS9 *
.profile[70]: Syntax error: `then' is not matched.
Which .profile file is this referring to, the oracle or the one in /etc?
I just installed a patch to move from 9.2.0.6 to 9.2.0.7. Could that have touched my .profile files?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 04:43 AM
10-26-2005 04:43 AM
SolutionSomething like this within the .profile:
umask 027
PATH=${PATH}:./
...
...
...
. /usr/local/bin/oraenv.sh
...
...
Note the "." before /usr/local/bin/oraenv.sh; this tells the shell to include the file just as if it were part of .profile. It does not execute as a child process. You should also note that sourced files may in turn source other files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 04:44 AM
10-26-2005 04:44 AM
Re: error in .profile file
Usually not. It is /etc/profile ( no dot)
Probably in oracle's home directory.
- Jihn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 04:49 AM
10-26-2005 04:49 AM
Re: error in .profile file
# sh -x <.profile>
cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 05:09 AM
10-26-2005 05:09 AM
Re: error in .profile file
I checked the .profile for the user and here is that section you made reference to,
umask 022
SIDLIST=`awk -F: '/^[^#]/{printf "%s ",$1}' /etc/oratab`
echo "SIDs on this machine are $SIDLIST"
ORAENV_ASK=
. /usr/local/bin/oraenv
is the problem therefore in the /etc/oratab file?
or the /usr/local/bin/oraenv file?
Yes, I'm a newbie ;)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 05:15 AM
10-26-2005 05:15 AM
Re: error in .profile file
When I run your command I get this:
+ eval export TERM; TERM=xterm;
+ export TERM
+ TERM=xterm
+ stty erase ^H kill ^U intr ^C eof ^D
+ stty hupcl ixon ixoff
+ tabs
+ PATH=/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/hparray/bin:/opt/nettladm/bin:/opt/upgrade/bin:/opt/fcms/bin:/opt/pd/bin:/opt/resmon/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/graphics/common/bin:/opt/gnome/bin:/opt/mx/bin:/usr/sbin/diag/contrib:/opt/wbem/bin:/opt/wbem/sbin:/opt/ignite/bin:.:/automate2:.:/opt/oracle/app/oracle/product/8.1.7/bin:/usr/local/bin:/usr/bin:/usr/ccs/bin:/bin:/opt/java1.4/bin:/usr/sbin:.:/automate2
+ set -u
+ trap echo 'logout' 0
+ EDITOR=vi
+ export EDITOR
+ TZ=CST6CDT
+ export TZ
+ ORACLE_BASE=/opt/oracle
+ export ORACLE_BASE
+ ORACLE_HOME=/opt/oracle/app/oracle/product/8.1.7
+ export ORACLE_HOME
+ ORACLE_SID=IRDS
+ export ORACLE_SID
+ ORACLE_TERM=hp
+ export ORACLE_TERM
+ ORA_NLS33=/opt/oracle/app/oracle/product/8.1.7/ocommon/nls/admin/data
+ export ORA_NLS33
+ PATH=/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/hparray/bin:/opt/nettladm/bin:/opt/upgrade/bin:/opt/fcms/bin:/opt/pd/bin:/opt/resmon/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/graphics/common/bin:/opt/gnome/bin:/opt/mx/bin:/usr/sbin/diag/contrib:/opt/wbem/bin:/opt/wbem/sbin:/opt/ignite/bin:.:/automate2:.:/opt/oracle/app/oracle/product/8.1.7/bin:/usr/local/bin:/usr/bin:/usr/ccs/bin:/bin:/opt/java1.4/bin:/usr/sbin:.:/automate2:.:/opt/oracle/app/oracle/product/8.1.7/bin:/usr/local/bin:/usr/bin:/usr/ccs/bin:/bin:/opt/java1.4/bin:/usr/sbin
+ export PATH
+ TNS_ADMIN=/opt/oracle/app/oracle/product/8.1.7/network/admin
+ export TNS_ADMIN
+ BACKUP=/opt/oracle/data/orabackup
+ export BACKUP
+ GRAPH=/var/adm/backupfiles
+ export GRAPH
+ INIT_ORA=/opt/oracle/app/oracle/product/8.1.7/dbs
+ export INIT_ORA
+ ARCH_LOG=/opt/oracle/archive_logs/IRDS/arch
+ export ARCH_LOG
+ ORACLE_BASE=/opt/oracle
+ export ORACLE_BASE
+ ALERT_LOG=/opt/oracle/admin/IRDS/bdump
+ export ALERT_LOG
+ SHLIB_PATH=/opt/oracle/app/oracle/product/8.1.7/lib:/usr/lib
+ export SHLIB_PATH
+ SRCHOME=
+ export SRCHOME
+ ORAENV=/usr/local/bin
+ export ORAENV
+ TMPDIR=/tmp
+ export TMPDIR
+ umask 022
+ + awk -F: /^[^#]/{printf "%s ",$1} /etc/oratab
SIDLIST=IRDS IRDS8 IRDS90 IRDS9
+ echo SIDs on this machine are IRDS IRDS8 IRDS90 IRDS9
SIDs on this machine are IRDS IRDS8 IRDS90 IRDS9
+ ORAENV_ASK=
+ . /usr/local/bin/oraenv
.profile[70]: Syntax error at line 70 : `then' is not matched.
+ IRDS_log=/opt/oracle/admin/IRDS/bdump
+ export IRDS_log
+ echo logout
logout
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 05:23 AM
10-26-2005 05:23 AM
Re: error in .profile file
Im quite sure you will have to look in /usr/local/bin/oraenv
For this file is executed with .
In this file I suppose are set all the environment variable for oracle...
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 05:44 AM
10-26-2005 05:44 AM
Re: error in .profile file
the file attached is the oraenv file from
/usr/local/bin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 05:51 AM
10-26-2005 05:51 AM
Re: error in .profile file
I think that adding a "fi" to the last line on the file will help here.
Regards,
Zigor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 05:57 AM
10-26-2005 05:57 AM
Re: error in .profile file
Zigor Buruaga you were right, a missing "fi" at the end was the problem