- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- spool file owner 'oracle' instead of OS athenticat...
Operating System - HP-UX
1745809
Members
3955
Online
108722
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
Discussions
Discussions
Forums
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
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-02-2007 09:00 AM
тАО11-02-2007 09:00 AM
spool file owner 'oracle' instead of OS athenticated user
I'm experimenting a strange behaviour when connecting to an Oracle 10g database (10.2.0.3) with an externally identified user (namely 'backora'): the owner of the spool file is 'oracle' instead of 'backora'. Example:
myhostname: /home/backora $ sqlplus /
SQL> spool lixo
SQL> select sysdate from dual;
SYSDATE
--------
07.11.02
SQL> spool off
SQL> !ls -ltr
-rw-r--r-- 1 oracle oinstall 291 Nov 2 19:49 lixo.lst
Is this an instalation problem? I had to apply 'changePerms.sh', so other users other than 'oracle' can connect. umask 022 in 'oracle' an 007 in 'backora'.
How can i turn around this issue?
myhostname: /home/backora $ sqlplus /
SQL> spool lixo
SQL> select sysdate from dual;
SYSDATE
--------
07.11.02
SQL> spool off
SQL> !ls -ltr
-rw-r--r-- 1 oracle oinstall 291 Nov 2 19:49 lixo.lst
Is this an instalation problem? I had to apply 'changePerms.sh', so other users other than 'oracle' can connect. umask 022 in 'oracle' an 007 in 'backora'.
How can i turn around this issue?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2007 10:27 PM
тАО11-02-2007 10:27 PM
Re: spool file owner 'oracle' instead of OS athenticated user
hi Alberto,
Can you verify the following?
1. The id of oracle and backora:
$ id oracle
$ id backora
2. Spool path
Try to spool to another path and see what happens.
e.g.
SQL> spool /tmp/lixo
3. Remove the file lixo.lst and retry the spool operation.
revert!
kind regards
yogeeraj
Can you verify the following?
1. The id of oracle and backora:
$ id oracle
$ id backora
2. Spool path
Try to spool to another path and see what happens.
e.g.
SQL> spool /tmp/lixo
3. Remove the file lixo.lst and retry the spool operation.
revert!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2007 11:29 PM
тАО11-02-2007 11:29 PM
Re: spool file owner 'oracle' instead of OS athenticated user
Some hints to clarify:
OS: HP-UX 11.11
BD: Oracle 10g Database w/ patchset2 (10.2.0.3)
myhostname: / # id oracle
uid=107(oracle) gid=104(oinstall) groups=105(dba)
myhostname: / # id backora
uid=108(backora) gid=105(dba)
This user 'backora' is identified externally and it's only function is to run backup jobs. By some strange reason, in this machine, the spool file is produced with 'oracle' ownership instead of 'backora'. Despite they belong to the same 'dba' group, in some parts of the backup scripts it must do 'chmod' and fails because it's not the owner of the spooled file.
OS: HP-UX 11.11
BD: Oracle 10g Database w/ patchset2 (10.2.0.3)
myhostname: / # id oracle
uid=107(oracle) gid=104(oinstall) groups=105(dba)
myhostname: / # id backora
uid=108(backora) gid=105(dba)
This user 'backora' is identified externally and it's only function is to run backup jobs. By some strange reason, in this machine, the spool file is produced with 'oracle' ownership instead of 'backora'. Despite they belong to the same 'dba' group, in some parts of the backup scripts it must do 'chmod' and fails because it's not the owner of the spooled file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2007 11:38 PM
тАО11-02-2007 11:38 PM
Re: spool file owner 'oracle' instead of OS athenticated user
Thank you for your sugestion: i've tried but with no success:
$ sqlplus /
SQL> spool /tmp/test
SQL> select * from v$version;
BANNER
-------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for HPUX: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
SQL> spool off
SQL> !ls -ltr /tmp
-rw-rw---- 1 oracle oinstall 614 Nov 3 10:31 test.lst
= = =
This problem arise with the migration from 9i to 10g: after 10g install i had to apply 'changePerms.sh', so other users other than 'oracle' can connect - 4516865:WRONG PERMISSIONS AFTER INSTALLATION IN OH AND SUBSEQUENT DIRECTORIES
AR
$ sqlplus /
SQL> spool /tmp/test
SQL> select * from v$version;
BANNER
-------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for HPUX: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
SQL> spool off
SQL> !ls -ltr /tmp
-rw-rw---- 1 oracle oinstall 614 Nov 3 10:31 test.lst
= = =
This problem arise with the migration from 9i to 10g: after 10g install i had to apply 'changePerms.sh', so other users other than 'oracle' can connect - 4516865:WRONG PERMISSIONS AFTER INSTALLATION IN OH AND SUBSEQUENT DIRECTORIES
AR
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP