How can a non dba user manipulate the dump file outside of oracle ?

I have a business request to allow a none DBA database user to dump his tables and he can move his dump file on the Unix box from a file system to another file system. This user has a none oracle unix account. When using traditional exp, this is not a problem. But in expdp, all dump files are owned by oracle. Does anybody know how to change the ownership without a DBA involved?
Unix: Sun Solaris
DB: 10g
Storage: sand disk

Betty wrote:
following option 1, problem is now the command in the shell script like chmod 744 doesn't allow this none dba user to change the permission, since he doesn't own the file. you can test yourself:
changepermit.ksh 755
chmod 744 dump.dmpSo have the script owned by oracle:dba change the owner!
$ echo "" > bla
$ ll bla
-rw-rw-rw-   1 jeg    users            1 Nov 10 16:53 bla
$ chmod 640 bla
$ ll bla
-rw-r-----   1 jeg    users            1 Nov 10 16:53 bla
$ chown smk bla
$ ll bla
-rw-r-----   1 smk    users            1 Nov 10 16:53 bla
$ echo "" > bla
/usr/bin/ksh: bla: cannot createNote you'll have to move it unless you let oracle write to it.

Similar Messages

  • How can I write new objects to the existing file with already written objec

    Hi,
    I've got a problem in my app.
    Namely, my app stores data as objects written to the files. Everything is OK, when I write some data (objects of a class defined by me) to the file (by using writeObject method from ObjectOutputStream) and then I'm reading it sequencially by the corresponding readObject method (from ObjectInputStream).
    Problems start when I add new objects to the already existing file (to the end of this file). Then, when I'm trying to read newly written data, I get an exception:
    java.io.StreamCorruptedException
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.readObject(Unknown Source)
    Is there any method to avoid corrupting the stream? Maybe it is a silly problem, but I really can't cope with it! How can I write new objects to the existing file with already written objects?
    If anyone of you know something about this issue, please help!
    Jai

    Here is a piece of sample codes. You can save the bytes read from the object by invoking save(byte[] b), and load the last inserted object by invoking load.
    * Created on 2004-12-23
    package com.cpic.msgbus.monitor.util.cachequeue;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.RandomAccessFile;
    * @author elgs This is a very high performance implemention of Cache.
    public class StackCache implements Cache
        protected long             seed    = 0;
        protected RandomAccessFile raf;
        protected int              count;
        protected String           cacheDeviceName;
        protected Adapter          adapter;
        protected long             pointer = 0;
        protected File             f;
        public StackCache(String name) throws IOException
            cacheDeviceName = name;
            f = new File(Const.cacheHome + name);
            raf = new RandomAccessFile(f, "rw");
            if (raf.length() == 0)
                raf.writeLong(0L);
         * Whne the cache file is getting large in size and may there be fragments,
         * we should do a shrink.
        public synchronized void shrink() throws IOException
            int BUF = 8192;
            long pointer = getPointer();
            long size = pointer + 4;
            File temp = new File(Const.cacheHome + getCacheDeviceName() + ".shrink");
            FileInputStream in = new FileInputStream(f);
            FileOutputStream out = new FileOutputStream(temp);
            byte[] buf = new byte[BUF];
            long runs = size / BUF;
            int mode = (int) size % BUF;
            for (long l = 0; l < runs; ++l)
                in.read(buf);
                out.write(buf);
            in.read(buf, 0, mode);
            out.write(buf, 0, mode);
            out.flush();
            out.close();
            in.close();
            raf.close();
            f.delete();
            temp.renameTo(f);
            raf = new RandomAccessFile(f, "rw");
        private synchronized long getPointer() throws IOException
            long l = raf.getFilePointer();
            raf.seek(0);
            long pointer = raf.readLong();
            raf.seek(l);
            return pointer < 8 ? 4 : pointer;
         * (non-Javadoc)
         * @see com.cpic.msgbus.monitor.util.cachequeue.Cache#load()
        public synchronized byte[] load() throws IOException
            pointer = getPointer();
            if (pointer < 8)
                return null;
            raf.seek(pointer);
            int length = raf.readInt();
            pointer = pointer - length - 4;
            raf.seek(0);
            raf.writeLong(pointer);
            byte[] b = new byte[length];
            raf.seek(pointer + 4);
            raf.read(b);
            --count;
            return b;
         * (non-Javadoc)
         * @see com.cpic.msgbus.monitor.util.cachequeue.Cache#save(byte[])
        public synchronized void save(byte[] b) throws IOException
            pointer = getPointer();
            int length = b.length;
            pointer += 4;
            raf.seek(pointer);
            raf.write(b);
            raf.writeInt(length);
            pointer = raf.getFilePointer() - 4;
            raf.seek(0);
            raf.writeLong(pointer);
            ++count;
         * (non-Javadoc)
         * @see com.cpic.msgbus.monitor.util.cachequeue.Cache#getCachedObjectsCount()
        public synchronized int getCachedObjectsCount()
            return count;
         * (non-Javadoc)
         * @see com.cpic.msgbus.monitor.util.cachequeue.Cache#getCacheDeviceName()
        public String getCacheDeviceName()
            return cacheDeviceName;
    }

  • When I try to same an image under the command 'save as' it will only let me save as file types 'firefox document' or 'all files' and when I try to look at them later they dont work. How can I save an image as the same file type it is on the web site?!

    When I try to save an image under the command 'save as' it will only let me save as file types 'firefox document' or 'all files' and when I try to look at them later they dont work. How can I save an image as the same file type it is on the web site?!
    == This happened ==
    Every time Firefox opened
    == I updated to one of the firefox versions (Not sure which one it was)

    Thanks Alex, but sadly I already tried that. Neither .docx or .xlsx files show up in the content list. They both show as a Chrome HTML document so changing how Firefox addresses those doesn't help since it thinks its the same type of file. I don't think I can manually add files into the "Content Type" left side nav.

  • How can I find a photo from the backup file in my pc?

    How can I find a photo from the backup file in my pc?
    I have accidentally erased a photo. It happened after the backup.

    I am not aware you can extract a single photo or a single app's content from the backup, you can either restore the whole backup to your phone or not restore. If you restore your last backup to your phone then any content that is currently on your phone will be replaced with what was on it at the time that the backup was made - so if you do decide to restore, first copy off any purchases to your computer's iTunes via File > Transfer Purchases, and copy any documents/files that you've udpated on the phone since the backup.

  • In Windows 8, how can I see an image of the psd file instead of the Photoshop icon?

    In Windows 8, how can I see an image of the psd file instead of the Photoshop icon?

    There are a number of third party solutions for this.  I just use Bridge, so can't recommend one in particular.

  • How can i dynamically assign values to the tld file

    How can i dynamically assign values to the tld file

    In the tld you write for the tag handler mention the following sub tags in the attribute
    <attribute>
    <name>xyz</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    import the packagejavax.servlet.jsp.tagext.DynammicAttributes;
    add the method
    public void setDynamicAttribute(String rui, String localname, Object value) throws JspException
    <Your Required task>
    Its better if you SimpleTagSupport class to be extended.

  • How can I have multiple users edit the same calendar?

    I work on a team of about a dozen people. We already share individual work calendars through iCloud. We want to create a master iCal calendar that allows us to display our various deadlines on a given project. We want the people to be able to edit their own deadlines.
    How can I create a calendar that offers multiple user Edit permission?
    Thanks!

    Go to this page:
    http://help.apple.com/icloud/#mm6b1a9479
    and expand 'Share a calendar privately'.

  • How can I add a user to the current session context ?

    Hello,
    I would like to use the programmatic authorization of servlets ( the roles are defined
    in the servlet deployment descriptor web.xml ). But I don' t use the authentication
    specified in the servlet deployment descriptor.
    Is it possible to populate a user to the session/servlet context without using the
    authentication specified in the deployment descriptor ? How can I do ? ( cookie ?
    methods ? ... )
    Thank you for your answer.
    Nicolas.

    see weblogic.servlet.security.ServletAuthentication.
    - Neil
    Nicolas Dieu wrote:
    Hello,
    I would like to use the programmatic authorization of servlets ( the roles are defined
    in the servlet deployment descriptor web.xml ). But I don' t use the authentication
    specified in the servlet deployment descriptor.
    Is it possible to populate a user to the session/servlet context without using the
    authentication specified in the deployment descriptor ? How can I do ? ( cookie ?
    methods ? ... )
    Thank you for your answer.
    Nicolas.

  • How can I add a User to the transport workflow

    Hi all,
       I want to add one user to the transport workflow in BW Dev system? How can I do it, PLEASE.
    Thanks.

    Hi,
    Check this if you can reset the workflow if the configuration of old user get damaged instead of creating a new one.
    http://help.sap.com/saphelp_erp2005/helpdata/en/06/1c3737f0e64142e10000009b38f839/frameset.htm
    Please reward if it helps.

  • How can I automatically redirect users to the correct platform?

    Hi,
    I have built my website three times, once for desktop, once for tablet and once for mobile phones. My question is how can i automatically redirect the user to the correct site depending on which device they are using.
    I have read that they can be redirected to a separate domain name such as m.example.com for mobile, I have also read that a lot of large corporations use this approach as well.
    Any help would be great!
    Cheers guys

    Most corporations nowadays are moving towards responsive designs with a mobile first approach.  This tends to be the most efficient and compatible since there is no need for javascript or other scripts to redirect users.
    The following is a simple example for phones and desktops only, and most examples I was finding were that way due to their publishing date.
    http://css-tricks.com/snippets/javascript/redirect-mobile-devices/
    The trick is going to be getting lists of devices and resolutions to make sure they are all captured which can be a major pain since that information updates all the time.  With that said, if I were you doing it this way I would do away with the tablet version.

  • How can i save differnts data in the same file?

        Hi all,
    i need some help.  I'm working  on a project  for students an th university. We have to devellop  a programm for LEDs measurement so that all the measure data must be save in de same file.  We have develloped the programm, but we have  a big problem to save the measure in the same File.
    When we do the first  measure , the file must be created and the fisrt data gonna be save in this file that is correct
    When wie do the second measure, the third  ....  measure, the programm ask us to comfirm the file or where we want save our data
    We need some help, to know how we can change  or devellop this programm so that, for the first measure , the file must be created and the fisrt data gonna be save in this file,  the second measure the same file must be chose and from the third and more the measure data must be automatically save in this file without the programm ask to chose or to confirme a file? 
    I attach a part off this programmm
    Thanks
    Attachments:
    SR830DSP19.vi ‏212 KB

    Move the "File Dialog" where you open your new file out of the while loop. Only pass the refnum inside the loop.

  • How can I include multiple limits in the sequence file documentat​ion for custom step type?

    Hi,
    I have a custom Step Type that contains Measurements property under Results. Its type is Array of NI_LimitMeasurement.
    I would like to see the values in the sequence file documentation like NI_MultipleNumericLimitTest type.
    Is there any trick to do that?
    Thanks,
    Andras

    Hi Andras,
    I have made  a slight change to the sequencefile 'docgen_txt.seq'.
    In the Sequence 'Step Doc' is a section which handles MultipleNumericLimit step type. There is a precondition check on the step 'Add Multiple Numeric Limits' if the step is of type 'NI_MultipleNumericLimit'. As your step type is based on the MultipleNumeric Limit type, I have just removed this precondition and just relied on the existence of Parameters.Step.Result.Measurement. Equally you could add a new section in this sequence to handle your Custom Step Type which is only called when the precodition match your type name.
    Now when you run the DocGen tool it handles your custom step type.
    Find attached my modified sequencefile 'docgen_txt.seq'.
    Just copy the contents of '..\National Instruments\TestStand 3.5\Components\NI\Tools\DocGen' to the User folder. Then place the attached file in the User\Tools\DocGen overwritting the version that is in that folder.
    Then launch TestStand and try it out on your sequence file.
    If you are using the html version, then you will have to make the same change into Step Doc sequence of the docgen_html sequence file.
    Hope this helps
    Regards
    Ray Farmer
    Message Edited by Ray Farmer on 05-19-2007 05:28 PM
    Regards
    Ray Farmer
    Attachments:
    docgen_txt.seq ‏184 KB

  • How can I merge multiple versions of the same file?

    I have a number of PDF ebooks that I read on multiple devices, and I highlight selections of interest, then save the modified files. Using Acrobat  XI, is there a straightforward way to merge all of these changes into a single master file for each book?
    For example, I read and highlighted Chapters 1 and 2 on my home computer, and Chapters 3-6 at work. I'd like to merge the home and work files (which are identical apart from the highlighting) so that I have a single file that's highlighted in Chapters 1-6. These tend to be large files, so comparing them manually page by page isn't really an option.
    Any help you could offer would be gratefully received. Thanks!

    Yes, it's possible.
    Open a file and click on the Comment button to open the panel. In the Comments List click on the Options button and select "Export All to Data File...". Save the file somewhere on your computer. Do the same for the other files.
    Now open a blank version of the file and do the same but select "Import Data File..." from that menu. Select all the files you've saved and you'll have a merged version of all the comments from the various versions.

  • How can I start Fireworks without openig the last Files

    Hi,
    I need to open Firewrks without opening the last File I'm working on.
    The Problem is that the programm crashes by starting and automatically opening the last pictures.
    Any idea?
    Kind Regards

    You could try the solution mentioned in the following forum thread:
    http://forums.adobe.com/thread/1193088?tstart=0

  • Newbie :  How can i create 2 users with the same name on diff domain name ?

    I have two domains on my server
    exemple1.com
    exemple2.com
    and i want to create one user for each domain with the same name
    [email protected] and [email protected]
    curently i can create one user, and it's the same user for both domains :-/
    how ?
    thanks
    Hète

    I must say. I am equally curious about this. i've played a lot in Communigate and it is easy to do there but how does one do this in apple mail?

Maybe you are looking for

  • CWM_GR/IR ACCOUNT

    Hi, u2022     My client is going for up gradation of EHP5 CWM(Catch weight management), if he implement in FI in which areas we have effect. He is asking that u201CValidate changes to GR/IR clearing u201C and u2022     Special attention will need to

  • UCCX 7.0 Wrap-up time

    Dear Netpro gurus, My client wants to introduce a Wrap-up time of 15 seconds where for all of their agents in one of the CSQ, everytime they finish with their call, their agents will stay at 'Not Ready' state for 15 seconds so that they could write d

  • Invocation Error

    When i invoke OutputClient.transformPDF()am getting the following error. My question here is about the cause of the exception. Is that JAR is missing at server side or client side. (If it is at client side, please let me know whats the JAR name. am g

  • Jyhton issue with ODI upgrade

    Hi, I am trying to execute the jython script but when i execute this part d = glob.glob(src + os.sep + 'd33*cts.txt') i am getting the following error :Traceback (innermost last): File "<console>", line 1, in ? AttributeError: class 'org.python.modul

  • SP05 Upgrade Issue

    Hi, We are upgrading from MDM 5.5 SP04 to SP05. Now, in SP05 this looks like the field codes have been changed not to accept the special characters and the existing field codes with specical characters have been replaced with _. The business packages