RE: Password file not getting updated
Date: Wed, 12 Oct 2011 10:18:29 +0000
Message-ID: <341078561D12A54D8FEA365F2489FD270121E2_at_EATOLEXMBS01.PRODDS.NTNL>
Morning Subdoh,
>> I do not think rman has to do with /usr/X11R6/bin directory, >> I believe X11R6 is related to xwindows server. This is correct, but on an HPUX server, there is no rman under X11. On a SLES Linux server, I see the following (immediately after login):
oracle_at_moorland:~> id
uid=1002(oracle) gid=1000(oinstall) groups=1000(oinstall),1003(dba)
oracle_at_moorland:~> whereis rman
rman: /usr/X11R6/bin/rman /usr/bin/X11/rman /usr/X11/bin/rman
So, there *is* an rman executable under X11. The PATH on this box, after calling oraenv is:
oracle_at_moorland:~> echo $PATH
/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/opt/oracle/product/10.2.0.3/db_1/bin
So, X11 is higher up the PATH than Oracle. Result, rman executes from X11 and not from Oracle Home, and hangs as reported by the OP. adding the '-h' switch gives this:
oracle_at_moorland:~> /rman -h
rman
[-f <ASCII|roff|TkMan|Tk|Sections|HTML|XML|MIME|LaTeX|LaTeX2e|RTF|pod>]
[-S(ource of man page passed in)] [-F(ormatted man page passed in)]
[-r <man reference printf string>] [-l <title printf string>]
[-V(olume) <colon-separated list>] [-U(RLs as hyperlinks)]
[-b (show subsections)] [-k(eep head/foot)]
[-n(ame of man page) <string>] [-s(ection) <string>]
[-p(aragraph mode toggle)] [-t(abstops spacing) <number>]
[-N(ormalize spacing, changebars)] [-y (zap hyphens toggle)]
[-K (declare that page has no breaks)]
[-d(iff) <file> (diff of old page source to incorporate)]
[-M(essage) <text> (included verbatim at end of Name section)]
[-R(ebus words for TkMan)] [-C (enable Tcl/Tk formatting)]
[-o (no op)] [-O <arg> (no op with arg)]
[-q(uiet--don't report warnings)] [-h(elp)] [-v(ersion)]
[<filename>]
None of which is anything to do with Oracle.
Setting an alias works:
oracle_at_moorland:~> alias rman='${ORACLE_HOME}/bin/rman'
oracle_at_moorland:~> alias
...
alias rman='${ORACLE_HOME}/bin/rman'
...
And, it can now be run:
oracle_at_moorland:~> rman
Recovery Manager: Release 10.2.0.3.0 - Production on Wed Oct 12 11:17:30 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
RMAN>
HTH
Cheers,
Norm.
Norman Dunbar
Contract Senior Oracle DBA
Capgemini Database Build Team
Internal : 7 28 2051
External : 0113 231 2051
Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else.
We have checked this email and its attachments for viruses. But you should still check any attachment before opening it. We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes.
If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at www.environment-agency.gov.uk
-- http://www.freelists.org/webpage/oracle-lReceived on Wed Oct 12 2011 - 05:18:29 CDT