LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-22-2017, 05:35 AM   #1
verrinder
LQ Newbie
 
Registered: Jun 2017
Posts: 4

Rep: Reputation: Disabled
Permissions problems with Oracle


sir

I facing problem kindly solve this one :-
The new storage is visible in the database servers and we are able to list the raw devices at the OS level as :

/dev/mapper/mpathn

We have changed the ownership of these disks and given oracle user their ownership (Oracle is a OS user with oinstall group associated with it). We have also given read/write permission to user and group for the device. Please find an example for reference below:

Chown oracleinstall /dev/mapper/mpath4
Chmod 660 /dev/mapper/mpath4
Chown oracleinstall /dev/mapper/mpath5
Chmod 660 /dev/mapper/mpath6
Chown oracleinstall /dev/mapper/mpath6
Chmod 660 /dev/mapper/mpath6
Chown oracleinstall /dev/mapper/mpath8
Chmod 660 /dev/mapper/mpath8
Chown oracleinstall /dev/mapper/mpath9
Chmod 660 /dev/mapper/mpath9

ISSUE: We have observed that once we restart the Server , the ownerships and permissions are wiped out and devices permissions revert back to original root:disk. Due to this oracle software does not works properly as it is installed using oracle install user/group.
 
Old 06-22-2017, 08:19 AM   #2
Laserbeak
Member
 
Registered: Jan 2017
Location: Manhattan, NYC NY
Distribution: Mac OS X, iOS, Solaris
Posts: 508

Rep: Reputation: 143Reputation: 143
That's weird.

Are you using raw disk space as database storage, or files?
 
Old 06-22-2017, 08:36 AM   #3
verrinder
LQ Newbie
 
Registered: Jun 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Laserbeak View Post
That's weird.

Are you using raw disk space as database storage, or files?

yes we are using raw disk space as database storage, the RAW device are mentioned the below

/dev/mapper/mpath4
/dev/mapper/mpath5
/dev/mapper/mpath6
/dev/mapper/mpath8
/dev/mapper/mpath9
 
Old 06-22-2017, 09:28 AM   #4
Laserbeak
Member
 
Registered: Jan 2017
Location: Manhattan, NYC NY
Distribution: Mac OS X, iOS, Solaris
Posts: 508

Rep: Reputation: 143Reputation: 143
Well, I don't know if it has anything to do with your problem, but I generally do not recommend that setup unless you have some (usually) very expensive live backup software.

Otherwise, you can just shutdown ORACLE with a script, back up all the regular files, then start it back up in the middle of the night. That worked fine for most of the companies I worked for and they were all Fortune 500 companies. You may take a slight performance hit, but it seems to be worth it unless you really need 24/7 availability.

Still don't know why permissions would just change out of the blue on your disks. Maybe you should look into ACLs?

Last edited by Laserbeak; 06-22-2017 at 09:37 AM.
 
Old 06-22-2017, 09:42 AM   #5
Laserbeak
Member
 
Registered: Jan 2017
Location: Manhattan, NYC NY
Distribution: Mac OS X, iOS, Solaris
Posts: 508

Rep: Reputation: 143Reputation: 143
Are you using Solaris? Have you tried looking at the permissions of the /dev/rdsk and/or /dev/dsk permissions like c0t0d0s0 etc.?
 
Old 06-22-2017, 09:57 AM   #6
verrinder
LQ Newbie
 
Registered: Jun 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Laserbeak View Post
Are you using Solaris? Have you tried looking at the permissions of the /dev/rdsk and/or /dev/dsk permissions like c0t0d0s0 etc.?

We are using RHEL 5.4 ENTERPRISE 64BIT
 
Old 06-23-2017, 02:30 PM   #7
B-RAH
LQ Newbie
 
Registered: Jun 2017
Distribution: HP-UX, Red Hat, Fedora, AIX, Solaris
Posts: 13

Rep: Reputation: Disabled
Smile

Hi there, why do you want oracle to own the actual disks? The raw devices should belong to root, which is why it changes back on startup. Oracle needs permission to access oracle owned files on these disks (rwx). Just make sure you chmod 661 instead of 660 so you can execute and see the full path. I'm not sure how your security posture is, but putting oracle in the sudoers file will allow you to install patches and scripts at a higher level if need be, but is not always allowed in organizations.
 
Old 06-23-2017, 11:11 PM   #8
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,983

Rep: Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182
I am with the others in not understanding why oracle would need to own the partitions/drives. For the companies I have worked on, oracle owns the directories/files related to the Oracle install.
 
Old 06-23-2017, 11:57 PM   #9
Laserbeak
Member
 
Registered: Jan 2017
Location: Manhattan, NYC NY
Distribution: Mac OS X, iOS, Solaris
Posts: 508

Rep: Reputation: 143Reputation: 143
Let me explain...

There are two ways ORACLE can save database data. One is by having ordinary files on ordinary host filesystems, or it can take entire raw partitions of disks or whole disks and control them itself and save its data to the drives using its own proprietary drive controllers.

It appears the OP wants to do the second method. I'm not a DBA but I've been a Solaris administrator working in tandem with ORACLE DBAs and we always came to the conclusion that files were better. They might be a bit slower, but it's a lot easier to recover from a crashed disk or something.
 
Old 06-25-2017, 08:30 AM   #10
B-RAH
LQ Newbie
 
Registered: Jun 2017
Distribution: HP-UX, Red Hat, Fedora, AIX, Solaris
Posts: 13

Rep: Reputation: Disabled
Wink

I realize what you're saying, but unless he's building this at his house for fun, I find it hard to believe a Linux (Red Hat) administration would be ok with that. Admins control the structure and let DBA's run Oracle on it... Also, dev/mapper/ is a LVM logical volume, which you are attempting to use. LVM's should certainly follow the file structure UGO permissions, opposed to Oracle owning the LVM.When you created your PV, VG, and LV, you would have done it as a privileged user, because a standard user cannot create LVM's. I'm guessing this is why a reboot reverts back to root. You can edit the etc/fstab, but I highly recommend not having oracle own the LVM.

Last edited by B-RAH; 06-25-2017 at 08:37 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with Apache PHP and Oracle mmulligan033 Linux - Software 3 09-08-2010 02:25 PM
Oracle Installation problems linux69 Linux - General 4 08-21-2010 02:54 AM
Oracle 8i (8.17) on RHEL WS3 U6 Problems honda_ricer Linux - Software 4 06-15-2006 03:27 PM
Installation problems using Oracle 8i Ismark Linux - Software 16 09-05-2003 09:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration