File permission problem

Dear Ravi,
I was encountered another strange problem.
I have a stored procedure which will first create a sh script in the system and execute the script later. If I call the stored procedure from the foreground, everything works fine while run it as backgound, it fails. When I check "all_scheduler_job_run_details" view, I found "perssion denied". I found the sh script is with "-rw-r----" permission and the owner of the sh script is oracle user which is logical because I use utl_file package to create the file. But the extjob runner is nobody which is in "other" group and obviously he don't has enough privilege on the sh script. I tried umask on the background, it gives me "0027" and on the foreground, it is "0022".
I know that I can create the file using the command line as well so that the owner will be nobody as well.
My question is that how could I change the umask to "0022" when I run the extjob.
Regards,
Lik

Hi Lik,
I believe that utl_file creates files with the umask value of the oracle user(027 in your case). You can check the os documentation to change the umask value of an os user.
The switching of umask to 022 in the foreground is in fact a Scheduler bug which has been fixed in 11.1.0.6 where using run_job to run an external job would cause the umask value of the foreground to change (so utl_file would see a wrong umask when run in the foreground).
This is not something that should be happening and not something you should rely on.
Changing the umask for extjob wouldn't help since the umask is only in effect when the file is created. The umask for an external job should be the umask of the user the job is running as.
Hope this helps,
Ravi.

Similar Messages

  • Constant file permission problems

    Hello out there..
    I'm currently trying to sort out a problem with - what I guess is my - file permissions.
    The problem reappears, even after a long disk repair session, where loads of issues are found and repaired.
    At the end it says everything is ok, but if I click repair again, it starts again , and even after restart, the problem is back again?!?!
    I've set my permission as follows, (to those of you who doesn't speak Danish - it's "read & write"), but it still says I have "special access"?
    Why? and what can I do to fix it..
    Please help me..
    Michael

    Michael Abel wrote:
    Hello out there..
    I'm currently trying to sort out a problem with - what I guess is my - file permissions.
    The problem reappears, even after a long disk repair session, where loads of issues are found and repaired.
    Disk Repair or Permission Repair?
    Long list from a Permission Repair that come back is normal. Nothing wrong. See http://support.apple.com/kb/ts1448
    Long lists of problems from a Disk Repair that keep coming back is bad news. Likely failing disk.
    Special Access means you have Access Control List entries set for the particular directory/file.
    Did you every change permissions and then "Apply to Enclosed?"
    Do you actually have file access problems, or are you just repairing permissions and think the long list indicates a problem?

  • [Bug] Xilinx IPCore file permission problem

    I just copied a CIC IPCore node from a colleagues VI and tried to reconfigure from a 2-channel to a 4-channel filter.
    At the end of the process I got a file permission error for a path which does not exist on my computer (presumably it has remembered the location to save the file from my colleagues computer).
    Not too big a problem except the dialog will not close and I now need to exit LabVIEW and restart to get any more work done.  In other words, a file permission error (or inexistent path) hangs the IPCore properties dialog at the last stage (at least for the CIC filter).  Not nice behaviour.
    Shane.
    Say hello to my little friend.
    RFC 2323 FHE-Compliant

    I realise theres a path input at the beginning of the process but even if this is incorrect, the dialog should not hang.
    Say hello to my little friend.
    RFC 2323 FHE-Compliant

  • File permission problem and  instance owner problem

    Hi all
    Recently i have install oracle 11g R2 software ( Using oracle user).
    oracle home owner is "oracle" and group "oinstall". ( oinstall is primary group and dba as secondary group for the owner "oracle")
    At the same time I have create new user name "test" and group as "dba".
    As a "test" user i can able to access the software , creating new oracle instance , stop and starting the oracle database (orcl).
    But when I started the orcl database as test user.
    I can see the different owner for that instance and file permission is also different ( In my cas oracle user is becoming owner for the orcl database , Which is created by the test user )
    Please help me in this
    For your reference
    ===============
    [test@redhat5 ~]$ id
    uid=504(test) gid=501(dba) groups=501(dba)
    [test@redhat5 ~]$ cat .bash_profile
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
    . ~/.bashrc
    fi
    # User specific environment and startup programs
    PATH=$PATH:$HOME/bin
    export PATH
    export ORACLE_SID=orcl
    export ORACLE_HOME=/oraeng/app/oracle/product/11.2.0
    export ORACLE_BASE=/oraeng/app/oracle
    export PATH=$ORACLE_HOME/bin:$PATH:.
    [test@redhat5 ~]$ sqlplus '/ as sysdba'
    SQL*Plus: Release 11.2.0.1.0 Production on Sat Sep 25 22:20:08 2010
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    Connected to an idle instance.
    SQL> startup nomount
    ORACLE instance started.
    Total System Global Area 1071333376 bytes
    Fixed Size 1341312 bytes
    Variable Size 864028800 bytes
    Database Buffers 201326592 bytes
    Redo Buffers 4636672 bytes
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [test@redhat5 ~]$ ps -ef|grep pmon
    oracle 9248 1 0 22:20 ? 00:00:00 ora_pmon_orcl
    test 9329 9173 0 22:20 pts/2 00:00:00 grep pmon
    Please see the ps command output owner of the instance is "oracle" , Actual instance started by "test" user
    Regards
    Arjun
    Edited by: Arjun B on Sep 25, 2010 4:19 AM

    Sorry , Database is not yeat created and I never used DBCA .
    I am about to create database ( with manual script)
    Please help me in this.
    For your reference
    ===============
    [test@redhat5 ~]$ sqlplus '/ as sysdba'
    SQL*Plus: Release 11.2.0.1.0 Production on Sat Sep 25 22:31:17 2010
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 1071333376 bytes
    Fixed Size 1341312 bytes
    Variable Size 864028800 bytes
    Database Buffers 201326592 bytes
    Redo Buffers 4636672 bytes
    ORA-00205: error in identifying control file, check alert log for more info
    SQL> !ps -ef|grep pmon
    oracle 15534 1 0 22:31 ? 00:00:00 ora_pmon_orcl
    test 15619 15501 0 22:31 pts/2 00:00:00 /bin/bash -c ps -ef|grep pmon
    test 15621 15619 0 22:31 pts/2 00:00:00 grep pmon

  • File Permission problems FCP and XSAN

    We have 5 Mac Pros connected to our XSAN (2 Xserves and 2 Promise arrays.). When a file is created on one of the FCP Macs and saved on the XSAN, the permission are OK (Individual - R/W, Group - R/W & Everyone RO.)
    The problem is when a file, generally audio (from our sound booth or music from an outside source) or a graphic (usually Photoshop from our Graphics folks) is brought in over the LAN and save to the XSAN volume, the permissions are Individual - R/W, no group is listed and Everyone - No Access.
    If they try work on something that another user started, they get permission errors if the sequence contains a file that was brought in from the outside.
    I know we can change permissions on a file, but there are so many of them that it is slowing down production.
    Is there anything we can do to either eliminate this happening, or have something like a drop folder they can place a file in to automatically change the file permissions?
    Any help with this would be greatly appreciated.
    The MacPros are running OS X 10.5.8 and FCP 7.0.3 and the XSAN is running Mac OS X Server 10.5.8 and XSAN 2.2.
    Thanks.

    If files saved to the AFP reshare are inaccessible by the fibre clients try this in terminal on your AFP re-share...
    sudo serveradmin settings afp:lock_manager = no
    Then restart AFP (or reboot), and re-propagate permissions back to where you need them. This will hand off file locking duties from AFP to the Xsan, which will help keep your permissions correct.
    JM
    (Thanks to Shane for showing me this)

  • HT201250 Aperture 3 library file permission problem

    On trying to open Aperture 3 I get a message saying "Aperture cannot access this library.To use this library, make sure its file permissions are set correctly". When I click OK Aperture shuts down. Can anyone help?
    I've been stumbling through trying to rationalise too many Aperture libraries and moving them to an external drive. This is almost certainly how I've manged to get into this situation...

    No sorry in Aperture 3 all that got turned into entries in database files. And even if you could find them it would do you no good because the only place an actual image file is located is in the Masters folder, where the files imported are kept and the Previews folder, where the previews are kept.
    Also bear in mind that the Masters folder is organized by import date and time not image date and time.
    As a  side note you need to be very careful using an online backup service for Aperture (and iPhoto) libraries. Because of the way the # libraries there have been reports of some of the services causing libraries problems when restored.
    regards

  • Oracle Secure Backup on Windows: file permission problem?

    Hi all.
    I did a new Oracle Secure Backup installation.
    I implemented a real simple domain:
    a Linux box is the media/administrative server. Then I have some Windows and Linux Client.
    On a Windows 2000 server SP4 box I'm experiencing an error.
    On certain directories i get the following:
    The directory is not a subdirectory of the root directory.
    On certain files I get the following instead:
    The directory name is invalid.
    The OSB service is running under the local system account on the client.
    Can you help me trouble this error?
    Thanks
    Giovanni

    Thanks for your reply.
    Disks are mounted using CIFS.
    we got the fix for this, need to do the following changes.
    # Turns off locking
    echo 0 > /proc/fs/cifs/OplockEnabled
    # Turns off inode caching
    echo 0 > /proc/fs/cifs/LookupCacheEnabled
    cheers...
    Edited by: TJ_DBA on 14/02/2011 16:43

  • [MX 2004} Can't upload! The file may not exist, or there could be a permission problem

    I'm running MX 2004 on Windows XP. All's been well for the
    last few months, doing site maintenance at this part-time job. I
    get tangled up a bit in checking files in and out, coming from
    GoLive, and since there's no one else with FTP access, yesterday I
    told it to check the entire site in. I didn't have any changes I
    didn't want to commit, and I figured that would keep things a
    little neater.
    As of today, I can post revisions to existing pages, or
    resize image files, but when I create a new page, or try to place a
    new image file on an existing page, I can't upload it.
    So, to be clear: I have two pages already up on the site,
    index.html and apple.html, with a link between them. If I create
    new page banana.html and make a link to it from index, index.html
    will upload that revised link, but banana.html is refused with the
    message
    FTP error: The file may not exist, or there could be a
    permission problem
    I know the file doesn't exist (remotely); I just made it.
    I've gone to Prefs and disable Check In / Check Out, which didn't
    do me any good. What next?

    Can you open the FTP log, select one of these new files and
    upload it- then
    cut and paste relevant part of the ftp log?
    Also- does this site have a "host directory", a subfolder
    that your public
    files need to go into? If yes- is this folder listed in the
    host directory
    line of the remote server info?
    And odd past thing i've seen-
    Had hosting that used public_html as the public folder name.
    They also had a symbolic link named www that pointed to
    public_html
    Could upload/download existing files with www in "host
    directory" line of
    dw; but could not upload new files or work with files in
    subfolders.
    changing to public_html instead of the www symlink fixed this
    for me.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • File permission and ownership problem

    I am trying to resolve some file permission and ownership problems that are left over from using Migration Assistant to set up my iMac from an older iMac. In a terminal session when I use the ls -l command I'm getting a file/directory owner of 504. Sometimes the group is admin and sometimes the group is also 504. I think this is because the owner of the file on the old computer is not present in the new one but I want to be sure before I just change the owner and group.

    The following should give you an indication->
    id -un 504
    or you could try->
    dscl . list /Users UniqueID | grep 504  && echo "User exists" || echo "User does not exist"

  • How do i fix this: error message- index.html - error occurred - An FTP error occurred - cannot put index.html. Access denied. The file may not exist, or there could be a permission problem. Make sure you have proper authorization on the server and the ser

    that is...
    index.html - error occurred - An FTP error occurred - cannot put index.html. Access denied. The file may not exist, or there could be a permission problem. Make sure you have proper authorization on the server and the server is properly configured.
    File activity incomplete. 1 file(s) or folder(s) were not completed.
    Files with errors: 1
    index.html
    thanks!

    It's under More Options triangle in the Manage Sites panel.  See screenshot:
    Nancy O.

  • Newly-created Files & Folders Permission Problem

    Hello. I have a Snow Leopard Server 10.6.8 with Snow Leopard and Lion clients.
    When all Macs were running Snow Leopard, any client could create new folders and files on the Snow Leopard Server, and all other Mac clients can access and modify them (Read and Write permission).
    I updated a few clients to Lion, and now when a Lion client created a new file or folder on the Snow Leopard Server, only that client has Read & Write permission. All other client now cannot modify the newly-created file/folder.
    My temporary fix is to change the folder or file permission on the server so everyone can have access.
    Does anyone know how to fix this? Is this the Lion client problem or the Snow Leopard Server problem?
    Thanks.
    Alex.

    Hello. I have a Snow Leopard Server 10.6.8 with Snow Leopard and Lion clients.
    When all Macs were running Snow Leopard, any client could create new folders and files on the Snow Leopard Server, and all other Mac clients can access and modify them (Read and Write permission).
    I updated a few clients to Lion, and now when a Lion client created a new file or folder on the Snow Leopard Server, only that client has Read & Write permission. All other client now cannot modify the newly-created file/folder.
    My temporary fix is to change the folder or file permission on the server so everyone can have access.
    Does anyone know how to fix this? Is this the Lion client problem or the Snow Leopard Server problem?
    Thanks.
    Alex.

  • Contribute 6.5 "Access denied. The file may not exist, or there could be a permission problem."

    Help.
    After being forced to upgrade to 6.5 since my version would not work after upgrading to Mavericks OS I get the "Access denied. The file may not exist, or there could be a permission problem." error on one of the sites I manage when trying to publish an edit to a page.
    I have looked at prior fixes but none seen to apply to version 6.5
    I have uninstalled, reinstalled and now have a fresh install on a new computer and still the issue persists.
    I'll appreciate any help to resolve this issue.
    Thanks,
    Kort

    I encountered the same error message, then remembered I had changed the name of my hard drive.  I changed the HD name back and was able to access.  Now trying to figure out how I can change the path to my local files so that I can re-change my HD name.

  • There has been a network or file permission error. The network connection..

    hello,
    there has been a network or file permission error. The network connection may be lost.
    this is the error my client gets sometimes when he wants to save a word document.
    when i go in the finder i have no problem accessing that network share, and when i look up the file and check the permissions there is no reason why this error should occure.
    situation :
    1 os 10.3.9 server
    7 os 10.5.5 clients
    1 os 10.3.9 client
    office 2004 for mac (version 11.50)
    there are 2 10.5.5 clients (emacs) with this problem on a regular base (3-5 times a week). One imac 17" 10.5.5 has this once a month.
    it is a wired cat5 network.
    any idea what could cause this problem?
    thanks
    Marco

    I found a logical explanation on the following site : http://www.makemacwork.com/office-2004-wont-save-to-server.htm , I am gonna try the steps they describe and post back the result.
    Marco

  • Error 8 File permission error while building executable for a RT

    I got error 8 File permission error while building executable for a RT. It happened always after build, I mean new startup.rtexe and startup.alias files have been created. At the build properties, it was set use default .alias file.
    I had the executable built successfully at one time.
    The detail message is:
    Visit the Request Support page at ni.com/ask to learn more about resolving this problem. Use the following information as a reference:
    Error 8 occurred at Open/Create/Replace File in RTBEP_Generate_Deploy_Instructions.vi->RTBEP_Invoke_Build_Engine.vi->RTBUIP_Build_Invoke.vi->RTBUIP_Build_Rule_Editor.vi->RTBUIP_Open_Properties.vi->RTBUIP_Item_OnDoProperties.vi->RTBUIP_Item_OnDoProperties.vi.ProxyCaller
    Possible reason(s):
    LabVIEW:  File permission error. You do not have the correct permissions for the file.
    =========================
    NI-488:  DMA hardware error detected.
    I checked relevant posts, couldn't find any clue.
    Please give me some ideas.
    Thanks.

    Hi Ya-hoo,
    Error building application in LabView 8.0 seems to describe a similar situation. The .alias file is important, as described in that discussion forum.
    Cheers.
    | Michael K | Project Manager | LabVIEW R&D | National Instruments |

  • Permission problem calling a java object from a store procedure

    When I run my store procedure
    CREATE OR REPLACE PACKAGE BODY confirms_write_to_file
    AS
    FUNCTION translate(in_en_var in VARCHAR2)
    RETURN VARCHAR2
    AS LANGUAGE JAVA
    NAME 'translate.translatePath(java.lang.String) return java.lang.String';
    PROCEDURE write_to_file(in_file_name IN VARCHAR, in_en_var IN VARCHAR)
    IS
    file_handle               UTL_FILE.FILE_TYPE;
    file_location VARCHAR2(50);
    BEGIN
    file_location := translate(in_en_var);
    dbms_output.put_line ('opened file location' ||file_location);
    END write_to_file;
    END confirms_write_to_file;
    I get the following error:
    exec confirms_write_to_file.write_to_file('zzzz','$RIMS_LOG');
    SQL> exec confirms_write_to_file.write_to_file('zzzz','$RIMS_LOG');
    Exception java.security.AccessControlException: the Permission
    (java.io.FilePermission <<ALL FILES>> execute) has not been granted by
    dbms_java.grant_permission to
    SchemaProtectionDomain(RIMS|PolicyTableProxy(RIMS))
    opened file locationProcess problem
    PL/SQL procedure successfully completed.
    When I try to to grant myself the permissions
    begin
    dbms_java.grant_permission('rims','java.io.FilePermission','*','execute');
    dbms_java.grant_permission('rims', 'java.lang.RuntimePermission', '*','writeFileDescriptor' );
    end;
    I get the following Error:
    oracle.aurora.vm.IdNotFoundException: rims is not a user or role
    at oracle.aurora.rdbms.DbmsRealm.getId(DbmsRealm.java)
    at oracle.aurora.rdbms.DbmsRealm.getId(DbmsRealm.java)
    at
    oracle.aurora.rdbms.security.PolicyTableManager.findAll(PolicyTableManager.java)
    at oracle.aurora.rdbms.security.PolicyTableManager.find(PolicyTableManager.java)
    at
    oracle.aurora.rdbms.security.PolicyTableManager.activate(PolicyTableManager.java
    at
    oracle.aurora.rdbms.security.PolicyTableManager.grant(PolicyTableManager.java)
    begin
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception:
    oracle.aurora.vm.IdNotFoundException: rims is not a user or role
    ORA-06512: at "SYS.DBMS_JAVA", line 0
    ORA-06512: at line 2
    My java code is as follows
    import java.io.*;
    import java.util.*;
    class translate
         public static String translatePath(String envar)
              Runtime rt = Runtime.getRuntime();
              int bufSize = 4096;
              byte buffer[] = new byte[bufSize];
              String path = null;
              Process p = null;
              int len = 0;
              try
                   p = rt.exec("echo "+envar);
                   BufferedInputStream bis = new BufferedInputStream(p.getInputStream());
                   while ((len = bis.read(buffer, 0, bufSize)) != -1)
                        System.out.write(buffer, 0, len);
                   path = new String(buffer);
                   p.waitFor();
              catch(Exception e)
                   System.out.println("Exception "+e);
                   return "Process problem ";
              return path;

    Tony,
    I answered this very same question that you posted at the JavaRanch forum.
    Good Luck,
    Avi.

Maybe you are looking for

  • Create Client Installer Failing

    I have a brand new Mac Mini running Apple Remote Desktop 3.5.1 on Lion 10.7.3 that I am trying to create a custom client installer and right at the end it fails every single time. Saying that "An unexpected error has occured while creating a custom i

  • Error while starting manages server

    Hi All. M facing problem while starting managed server, this might be related to sip server as i see this in the error log. when i click on the sip server tab in the console then io see below error :- +++++++++ Error opening /ext-jsp/sipserver/Config

  • Desktop Manager Problem on Windows 7

    I have DM 5.0.1.28 running on Windows 7 and I just purchased a new Bold 9000.  I am able to send/receive files to the Bold using Blue Tooth with my computer software, but am unable to sync using Blue Tooth with the DM.  I connect to the DM fine but w

  • Managing ALAC and MP3 files in differnet libraries - how to do?

    Hi All I have started upgrading my itunes music to ALAC for home listening. iTunes content is stored on an external hard drive. As I have a big library, my ipod classic is not going to be able to cope with the data volume. So I had the idea of creati

  • I can not seem to get itunes downloaded onto my desktop computer. I have windows vista. Can anyone help me please?

    Can someone help me download itunes onto my desktop computer? I have Windows Vista. When I try to download itunes this is what pops up "this instillation package could not be opened. Verify that the package exists and that you can access it, or conta