Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
File permission with datapump file (Oracle 10G Release2)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Damien  
View profile  
 More options Jan 28 2008, 12:14 pm
Newsgroups: comp.databases.oracle.server
From: Damien <damien.will...@gmail.com>
Date: Mon, 28 Jan 2008 09:14:43 -0800 (PST)
Local: Mon, Jan 28 2008 12:14 pm
Subject: File permission with datapump file (Oracle 10G Release2)
Hello,

I have a problem that I can't resolve. I hope that someone have a
response.

I use the package DBMS_DATAPUMP to do an export of my database into a
file.
The export operation is done correctly and the file appears correctly
on the UNIX filesystem.

Here is the output of the "ls -l" command :
-rw-r-----    1 oracle   dba        614400 Jan 28 16:43 export.dmp

The exported file permissions are set by default as shown below.

The problem is that I have to do some actions that need write
permissions on this file with a distant user via SSH (that user cannot
be oracle).

My question is :
How to modify the default permission of the file to set the write
permission to the group or others?
It is possible with a specific Oracle Package ? Is there any
solution ?

I show on another thread that we can modify the umask of the user
oracle but I also cannot do this (professionnal restriction.)

Thanks by advance for your help.

Regards.

Damien


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
fitzjarrell@cox.net  
View profile  
 More options Jan 28 2008, 12:29 pm
Newsgroups: comp.databases.oracle.server
From: "fitzjarr...@cox.net" <fitzjarr...@cox.net>
Date: Mon, 28 Jan 2008 09:29:30 -0800 (PST)
Local: Mon, Jan 28 2008 12:29 pm
Subject: Re: File permission with datapump file (Oracle 10G Release2)
Comments embedded.
On Jan 28, 11:14 am, Damien <damien.will...@gmail.com> wrote:

What could those 'actions' be?  Why would a user other than 'oracle'
need to access that file?  It's an export of a schema/database that
normally only 'oracle' would need to process.

> My question is :
> How to modify the default permission of the file to set the write
> permission to the group or others?

Modify the umask for the 'oracle' account.

> It is possible with a specific Oracle Package ?

Not to my knowledge.

> Is there any
> solution ?

Modify the umask, as I said earlier.

> I show on another thread that we can modify the umask of the user
> oracle but I also cannot do this (professionnal restriction.)

In that case you'll need to write a 'wrapper' script to run your
dbms_datapump call, and in that script alter the permissions on the
resulting file.

> Thanks by advance for your help.

> Regards.

> Damien

David Fitzjarrell

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Damien  
View profile  
 More options Jan 29 2008, 3:20 am
Newsgroups: comp.databases.oracle.server
From: Damien <damien.will...@gmail.com>
Date: Tue, 29 Jan 2008 00:20:13 -0800 (PST)
Local: Tues, Jan 29 2008 3:20 am
Subject: Re: File permission with datapump file (Oracle 10G Release2)
Hello David,

First, Thanks for your response.

> What could those 'actions' be?

I have to remove the exported files after having transferred then on
our server.
The transfer is made by a shell script which connects to the remote
server where are localized the exported dump files.
Then after transferring, I have to clean the transferred dump files.

> Why would a user other than 'oracle' need to access that file?  It's an export of a schema/database that
> normally only 'oracle' would need to process.

The distant server where are localized the dump files can be accessed
via SSH only with a specific user.

> Modify the umask for the 'oracle' account.

In my case, it is impossible because modifying the umask would have
effect on all output files generated by the user Oracle. The database
is critical and the DBA does not permit this action.

> In that case you'll need to write a 'wrapper' script to run your
> dbms_datapump call, and in that script alter the permissions on the
> resulting file.

I will work on this way.

Thanks a lot.

Regards.

Damien.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
GD  
View profile  
 More options Jan 29 2008, 4:09 am
Newsgroups: comp.databases.oracle.server
From: GD <goran99_rem...@yahoo.com>
Date: Tue, 29 Jan 2008 10:09:26 +0100
Local: Tues, Jan 29 2008 4:09 am
Subject: Re: File permission with datapump file (Oracle 10G Release2)

Damien wrote:
> Hello David,

> First, Thanks for your response.

>> What could those 'actions' be?

> I have to remove the exported files after having transferred then on
> our server.
> The transfer is made by a shell script which connects to the remote
> server where are localized the exported dump files.
> Then after transferring, I have to clean the transferred dump files.

In order to remove a file, other user needs a write permission on a
parent directory, not the file itself; you have to chmod o+w for a
directory containing the dump.

Regards


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »