Can't write to my own files? Already repaired permissions

Okay, here's a weird permissions problem for you.
For a reason I don't need to go into, I deleted my primary User account and started a fresh one.
Even here, I got the feeling there something wrong. When I deleted the old account, my ~/ folder renamed to "David (Erased)" or something similar. I booted into the new account (also named David) and was suprised to find *my files/settings already loaded*!
Anyway, I renamed the "David (Erased)" folder to "Old" and re-created my new account (using the root account). Everything was fine.
Once I got the new account set up, I imported the old folders, minus parts of ~/Library and ran a chown -R David /Users/David.
But now, I can't rename any of the folders in ~/. Strangely, *I can write to the non-folder files*.
When I run ls -l, I get that my directories (but not other documents) have an @ sign at the end. Which I have read *stands for symbolic link*?
But my folders are not symbolic links.
*What's going on?*

DBJ wrote:
I should have been more specific. When I say "It didn't work" I mean that after I went through all four steps, I wasn't able to rename the folders in the ~/ directory.
which folders did you try to rename? the only ones that should be giving you trouble are the folders listed in this command
chmod +a "everyone deny delete" ~/ ~/Desktop ~/Documents ~/Downloads ~/Library ~/Movies ~/Music ~/Pictures ~/Public ~/Sites
those folders shouldn't be renamed or moved.
I understand why we're adding all those privileges to the Drop Box, but shouldn't we be adding them to all the folders?
no, all the other folders and files are already owned by you and other users have no write access to them . other users only have write access to your drop box.

Similar Messages

  • How can I write relative path in File, ImageIcon objects

    I have downloaded examples from
    http://java.sun.com/docs/books/tutorial/uiswing/components/example-swing/index.html
    but for some reason images are invisible until I write absolute paths?(I use windows) How can I write relative path in File, ImageIcon objects?

    Hello;
    I've found a lot of complaints about this through the Forte forum as well as on Dejanews. I'm just curious as to whether any of you ended up finding a solution to this problem.
    There was one posting about setting up the subdirectory as a URL rather than a String and then using that as the source of the ImageIcon ... but this didn't work for me.
    Any help whatsoever would be appreciated.
    Thanks!

  • Lightroom 5 can't write metadata to DNG files

    I have converted a large number of Canon and Nikon raw files to DNG using Adobe DNG Converter (version 8.2.0.94). 
    Using Lightroom 5.2 I wanted to change metadata in these master DNG files.  I import the files into a catalog, select all, modify the metadata, then invoke the Metadata->Save Metadata to Files...  For many (but not all) of the files I get the following message:
    "Could not write metadata.  Unknown file formats."
    The DNG files reside on a Synology NAS server.  If I copy them to a local disk I do not get the above error.  But I would like to make metadata changes to the files on the NAS.
    I do not have problems importing or viewing DNG files from the NAS.  Why does LR 5 have problems writing DNG metadata to the NAS?  How can I fix this?

    Thanks for replying.
    The problem is definitely not one of permissions. I am accessing the NAS from an admin account with full permissions to read/write the files and directories.
    I'm inclined to believe it's the second cause you propose -- network protocol causing data corruption. 
    It seems to be specific to writing metadata to large files such as DNG or TIFF.  I don't get errors writing to JPEG.  And it is inconsistent -- sometimes retrying fixes it.  And, oddly, sometimes I even get the error "photos have read-only access" when it's clear the permissions are OK.
    On the other hand I have had no problems copying thousands of DNGs to/from the NAS -- no errors and no corruption.  So the issue seems to be an interaction between the NAS and LR when LR is updating the metadata on an existing file and the file is large.

  • Can't write to ssh known_hosts file

    Awhile back I did a complete restore from backup of an MBP. Since then this machine's ssh client can no longer will write to the ~/.ssh/known_hosts file:
    The authenticity of host 'dhcp167 (172.31.0.167)' can't be established.
    DSA key fingerprint is 66:3d:0c:31:e0:07:09:6b:21:f9:8c:79:40:50:01:45.
    Are you sure you want to continue connecting (yes/no)? yes
    Failed to add the host to the list of known hosts (/Users/dnewman/.ssh/known_hosts).
    I have write access to this file:
    dhcp130:~ dnewman$ ls -l /Users/dnewman/.ssh/known_hosts
    -rw-r--r--@ 1 dnewman staff 36439 Sep 26 17:51 /Users/dnewman/.ssh/known_hosts
    How to remedy this error?
    thanks

    Can you manually edit the file?
    No. vi thinks it's a readonly file despite the 0600 perms
    What do the permission for path leading to the file look like?
    dhcp130:.ssh dnewman$ ls -ld /{,Users/{,dnewman/{,.ssh}}}
    drwxr-xr-x 36 root admin 1292 Dec 15 16:07 /
    drwxr-xr-x 5 root admin 170 Oct 21 07:50 /Users/
    drwxr-xr-x+ 39 dnewman staff 1326 Dec 18 15:56 /Users/dnewman/
    drwx------@ 6 dnewman staff 204 Sep 20 12:22 /Users/dnewman/.ssh
    dhcp130:.ssh dnewman$ ls -ld@ known_hosts
    -rw-------@ 1 dnewman staff 36439 Sep 26 17:51 known_hosts
    com.apple.metadata:_kTimeMachineNewestSnapshot 50
    com.apple.metadata:_kTimeMachineOldestSnapshot 50
    The permissions thing is interesting. Is the problem that I had a different UID or GID on the "old" machine image (the one I restored from) than what's currently running? And if so, how to remedy?
    thanks much!

  • How can i write an image to file

    hi everybody,
    How can i write a java.awt.Image object to a file.I want to write it to file as a jpg image.Is ther any jpegencoder which can write an Image object to file.
    any tips or suggestions
    Thanks in advance

    This may be only of limited use but it shows an encoder in use.
    http://forum.java.sun.com//thread.jsp?forum=5&thread=140954
    http://forum.java.sun.com/thread.jsp?forum=48&thread=446603&tstart=0&trange=15
    rykk

  • How can I write more than 32k file in oracle directory

    Hi experts,
    I am struggling while I write more than 32k file size in oracle directory, and throws an error ‘ORA-06502: PL/SQL: numeric or value error, like this.
    This is my procedure
    declare
    l_s_filename   UTL_FILE.file_type;
    begin
       l_s_filename := UTL_FILE.fopen ('INFO_MIGRATION', 'finfinne.txt', 'W');
    FOR rec
          IN ( SELECT SQL_REDO
                  FROM V$LOGMNR_CONTENTS
                 WHERE seg_owner <> 'SYS' AND username = 'GENTEST'
                 AND TABLE_NAME NOT LIKE '%_TEMP'
                       AND OPERATION IN ('UPDATE','INSERT','DELETE')
              ORDER BY TIMESTAMP)
       LOOP
          UTL_FILE.put_line (l_s_filename, rec.SQL_REDO);
       END LOOP;
       UTL_FILE.fclose (l_s_filename);
    end;can any please help me how can I overcome this problem
    Thanks,
    Arun

    You can write by breaking it into small chunks. Also you can try to use DBMS_XSLPROCESSOR.CLOB2FILE. For UTL_FILE the code snippets may looks like
    -- Read chunks of the CLOB and write them to the file
    -- until complete.
       WHILE l_pos < l_blob_len
       LOOP
          DBMS_LOB.READ (rec.l_clob, l_amount, l_pos, l_buffer);
          UTL_FILE.put_line (l_file, l_buffer, FALSE);
          l_pos := l_pos + l_amount;
       END LOOP;

  • Can I write to a text file on local HDD from forms appl?

    Hi All,
    We have 8i database being accessed by 6i forms application using web-based arch. Clients are on windowsNT/window2000. Is it possible to dump some data in a text file from forms application (by pressing a button) on local hard disk? User is looking something similar to sqlplus spool in forms 6i. Is this possible? User is specific about file being created in local machine and not on server(utl_file/dbms_pipe). Any ideas?
    Thanks.

    You can find explanation and a quick start guide on PJCs on the Forms Upgrade Center at:
    I think the following code can give you a starting point for a PJC (based on text_item) that will do it.
    Also you will need to sign this JAR because you want to access the client machine - see the sigining paper on OTN.
    To activate this PJC you will use something like SET_CUSTOM_PROPERTY ('text_item1', 1, 'WRITE', :text_item1);
    In your form.
    import oracle.forms.ui.VTextField;
    import java.io.FileOutputStream;
    import oracle.forms.properties.ID;
    public class textio extends VTextField
    public final static ID WRITE = ID.registerProperty("WRITE");
    String a = "hello";
    public textio()
    public boolean setProperty(ID p0, Object p1)
    if (p0==WRITE)
    try
    FileOutputStream fileOut = new FileOutputStream("c:\\temp\\textio.txt");
    fileOut.write(p1.toString().getBytes());
    fileOut.close();
    } catch (Exception ex)
    ex.printStackTrace();
    }

  • HOW CAN I   WRITE   TEXT IN A     FILE

    HI,
    I have problems with saving files on my hard disk with an JAVA Applet.
    Do you know how to do it in the best way?
    here is the code i'm trying:
    public String getCount()
          int count=456;
          String rec=null;
          DataOutputStream dos = null;
          try
            URL                url;
            URLConnection      urlConn;      
            url = new URL(getCodeBase().toString() + "counter.txt");
            urlConn = url.openConnection();
            urlConn.setDoOutput(true);
            urlConn.setUseCaches(false);
            urlConn.setRequestProperty ("Content-Type", "application/x-www-form-urlencoded");
            rec=""+count;
            dos = new DataOutputStream(urlConn.getOutputStream());
            dos.writeChars(rec);
            dos.flush();
            dos.close();
           catch (MalformedURLException mue) { return mue.toString(); }
           catch (IOException ioe) { return ioe.toString(); }
          return rec;
        }this code is simply saving the value ot count in the file "counter.txt"
    I think the problem comes at the line: dos = new DataOutputStream(urlConn.getOutputStream());
    It doesn't throws exception, it just stopes there and doesn't show any result.
    WHY?
    If you have some ideas ...thanks.
    the class DataInputStream is working perfectly. I'm reading, but saving does not work.

    You're using getCodeBase() to construct the file name, apparently, so I guess you are wanting to write to a file on the server where the applet was loaded from. And it looks like you're trying to do a POST to the URL that you construct, or something like that. But the URL ends in ".txt" so most likely your server isn't exposing that URL to the outside world.
    You're on the right track, but you need to write to a URL that can accept POST requests and knows what to do with them. You can't just write to a file on the server -- if you could do that in your applet then anybody in the world could do it from a simple program, so consider the security implications of that.

  • How can you write TABs in a file?

    Hello everbody,
    suppose you create a simple textfile "Input.txt" in copying the following two lines:
    ABCD
    123
    The code below works fine in creating (on Windows) an ANSI file "Output.txt". Now
    remove the comment slashes in the while loop, and compile and run the program
    again. The output file this time will be a Unicode file with Devanagari
    characters, as two bytes are interpreted as one char. Can anybody tell me why,
    and how it can be prevented?
    import java.io.*;
    class Anwendung
      public static void main(String[] args)
    //    final byte TAB=9; // no difference.
        final int TAB=9;
        try
        { FileInputStream eingabe = new FileInputStream("Input.TXT");
          FileOutputStream ausgabe = new FileOutputStream("Output.TXT");
          int zeichen;
          while ((zeichen=eingabe.read()) != -1)
          { ausgabe.write(zeichen); // only the low byte is taken from the int.
         ausgabe.write(TAB);
          eingabe.close();
          ausgabe.close();
        catch(Throwable e)
        { System.out.println("Error: "+e);
    }Regards
    Joerg

    Hello Tim,
    thanks for your response. Meanwhile I found out, that in fact things work fine. I "tested" the outputfile in opening it with the Notepad editor. That was not the proper way to do it. Making a file dump, I saw that everything was alright. So if one wants to work on such a file with the editor, one should use the Writer classes.
    Regards
    Joerg

  • Can FileReader write to a binary file

    I am just wondering because i would like to use it for a program that is suppose to write in binary. If it can, should I just insert an array of characters that are 1 or 0 or should i actually figure out the bites involved.

    Readers read, not write.
    So you have a char[] that looks like this: {'0','1','0','0',...}? That's an odd thing to have. I would roll up my sleeves and convert it to a byte[]. Writing that to a file is a simple matter: use FileOutputStream.
    edit: can you avoid having a char[] in the first place?

  • Can we write query in xml file to get desired field?

    I have  XML script like  below  can I query this file and get returns like Name only  for instance similar to 'select top 5 name from [HumanResources].[Department] order by DepartmentID'
    Engineering
    Tool Design
    Sales
    Marketing
    Purchasing
    <HumanResources.Department DepartmentID="1" Name="Engineering" GroupName="Research and Development" ModifiedDate="2002-06-01T00:00:00" /><HumanResources.Department DepartmentID="2" Name="Tool Design" GroupName="Research and Development" ModifiedDate="2002-06-01T00:00:00" /><HumanResources.Department DepartmentID="3" Name="Sales" GroupName="Sales and Marketing" ModifiedDate="2002-06-01T00:00:00" /><HumanResources.Department DepartmentID="4" Name="Marketing" GroupName="Sales and Marketing" ModifiedDate="2002-06-01T00:00:00" /><HumanResources.Department DepartmentID="5" Name="Purchasing" GroupName="Inventory Management" ModifiedDate="2002-06-01T00:00:00" />

    DECLARE @xml xml='<HumanResources.Department DepartmentID="1" Name="Engineering" GroupName="Research and Development"
     ModifiedDate="2002-06-01T00:00:00" /><HumanResources.Department DepartmentID="2" Name="Tool Design" 
    GroupName="Research and Development" ModifiedDate="2002-06-01T00:00:00" /><HumanResources.Department 
    DepartmentID="3" Name="Sales" GroupName="Sales and Marketing" ModifiedDate="2002-06-01T00:00:00" />
    <HumanResources.Department DepartmentID="4" Name="Marketing" GroupName="Sales and Marketing" 
    ModifiedDate="2002-06-01T00:00:00" /><HumanResources.Department DepartmentID="5" Name="Purchasing" 
    GroupName="Inventory Management" ModifiedDate="2002-06-01T00:00:00" />'
    SELECT T.Name.value('@Name', 'VARCHAR(50)') AS Name
    FROM @xml.nodes('HumanResources.Department')
     AS T(Name);
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How many channels can I write in a same file with the Write Data Module (Dasylab 12.00.00) ?

    I would like to write data from a large number of channel (up to 128) in a same file. Using the write data module, I have up to 16 channels only ! The only solution I found is to save data in 8 different files... Is there any solution to solve this problem ? I use DASYLAB V.12.00.00. Thank you
    Solved!
    Go to Solution.

    Please see this knowledge base article describing how to do it.
    http://kb.mccdaq.com/KnowledgebaseArticle50372.aspx?Keywords=multiplex
    - cj
    Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.

  • How can i write also to xml file the settings of the Tag property to identify if it's "file" or "directory" ?

    The first thing i'm doing is to get from my ftp server all the ftp content information and i tag it so i can identify later if it's a file or a directory:
    private int total_dirs;
    private int searched_until_now_dirs;
    private int max_percentage;
    private TreeNode directories_real_time;
    private string SummaryText;
    private TreeNode CreateDirectoryNode(string path, string name , int recursive_levl )
    var directoryNode = new TreeNode(name);
    var directoryListing = GetDirectoryListing(path);
    var directories = directoryListing.Where(d => d.IsDirectory);
    var files = directoryListing.Where(d => !d.IsDirectory);
    total_dirs += directories.Count<FTPListDetail>();
    searched_until_now_dirs++;
    int percentage = 0;
    foreach (var dir in directories)
    directoryNode.Nodes.Add(CreateDirectoryNode(dir.FullPath, dir.Name, recursive_levl+1));
    if (recursive_levl == 1)
    TreeNode temp_tn = (TreeNode)directoryNode.Clone();
    this.BeginInvoke(new MethodInvoker( delegate
    UpdateList(temp_tn);
    percentage = (searched_until_now_dirs * 100) / total_dirs;
    if (percentage > max_percentage)
    SummaryText = String.Format("Searched dirs {0} / Total dirs {1}", searched_until_now_dirs, total_dirs);
    max_percentage = percentage;
    backgroundWorker1.ReportProgress(percentage, SummaryText);
    percentage = (searched_until_now_dirs * 100) / total_dirs;
    if (percentage > max_percentage)
    SummaryText = String.Format("Searched dirs {0} / Total dirs {1}", searched_until_now_dirs, total_dirs);
    max_percentage = percentage;
    backgroundWorker1.ReportProgress(percentage, SummaryText);
    foreach (var file in files)
    TreeNode file_tree_node = new TreeNode(file.Name);
    file_tree_node.Tag = "file";
    directoryNode.Nodes.Add(file_tree_node);
    numberOfFiles.Add(file.FullPath);
    return directoryNode;
    The line i'm using to Tag is:
    file_tree_node.Tag = "file";
    So i know what is "file" then i make a simple check if the Tag is not null then i know it's a "file" if it's null then it's directory.
    For example this is how i'm checking if it's file or directory after getting all the content from my ftp server:
    if (treeViewMS1.SelectedNode.Tag != null)
    string s = (string)treeViewMS1.SelectedNode.Tag;
    if (s == "file")
    file = false;
    DeleteFile(treeViewMS1.SelectedNode.FullPath, file);
    else
    RemoveDirectoriesRecursive(treeViewMS1.SelectedNode, treeViewMS1.SelectedNode.FullPath);
    I also update in real time when getting the content of the ftp server xml file on my hard disk with the treeView structure information so when i'm running the program each time it will load the treeView structure with all directories and files.
    This is the class of the xml file:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Xml;
    using System.Windows.Forms;
    namespace FTP_ProgressBar
    class TreeViewXmlPopulation
    // Xml tag for node, e.g. 'node' in case of <node></node>
    private const string XmlNodeTag = "node";
    // Xml attributes for node e.g. <node text="Asia" tag=""
    // imageindex="1"></node>
    private const string XmlNodeTextAtt = "text";
    private const string XmlNodeTagAtt = "tag";
    private const string XmlNodeImageIndexAtt = "imageindex";
    public static void DeserializeTreeView(TreeView treeView, string fileName)
    XmlTextReader reader = null;
    try
    // disabling re-drawing of treeview till all nodes are added
    treeView.BeginUpdate();
    reader = new XmlTextReader(fileName);
    TreeNode parentNode = null;
    while (reader.Read())
    if (reader.NodeType == XmlNodeType.Element)
    if (reader.Name == XmlNodeTag)
    TreeNode newNode = new TreeNode();
    bool isEmptyElement = reader.IsEmptyElement;
    // loading node attributes
    int attributeCount = reader.AttributeCount;
    if (attributeCount > 0)
    for (int i = 0; i < attributeCount; i++)
    reader.MoveToAttribute(i);
    SetAttributeValue(newNode,
    reader.Name, reader.Value);
    // add new node to Parent Node or TreeView
    if (parentNode != null)
    parentNode.Nodes.Add(newNode);
    else
    treeView.Nodes.Add(newNode);
    // making current node 'ParentNode' if its not empty
    if (!isEmptyElement)
    parentNode = newNode;
    // moving up to in TreeView if end tag is encountered
    else if (reader.NodeType == XmlNodeType.EndElement)
    if (reader.Name == XmlNodeTag)
    parentNode = parentNode.Parent;
    else if (reader.NodeType == XmlNodeType.XmlDeclaration)
    //Ignore Xml Declaration
    else if (reader.NodeType == XmlNodeType.None)
    return;
    else if (reader.NodeType == XmlNodeType.Text)
    parentNode.Nodes.Add(reader.Value);
    finally
    // enabling redrawing of treeview after all nodes are added
    treeView.EndUpdate();
    reader.Close();
    /// <span class="code-SummaryComment"><summary>
    /// Used by Deserialize method for setting properties of
    /// TreeNode from xml node attributes
    /// <span class="code-SummaryComment"></summary>
    private static void SetAttributeValue(TreeNode node,
    string propertyName, string value)
    if (propertyName == XmlNodeTextAtt)
    node.Text = value;
    else if (propertyName == XmlNodeImageIndexAtt)
    node.ImageIndex = int.Parse(value);
    else if (propertyName == XmlNodeTagAtt)
    node.Tag = value;
    public static void SerializeTreeView(TreeView treeView, string fileName)
    XmlTextWriter textWriter = new XmlTextWriter(fileName,
    System.Text.Encoding.ASCII);
    // writing the xml declaration tag
    textWriter.WriteStartDocument();
    //textWriter.WriteRaw("\r\n");
    // writing the main tag that encloses all node tags
    textWriter.WriteStartElement("TreeView");
    // save the nodes, recursive method
    SaveNodes(treeView.Nodes, textWriter);
    textWriter.WriteEndElement();
    textWriter.Close();
    private static void SaveNodes(TreeNodeCollection nodesCollection,
    XmlTextWriter textWriter)
    for (int i = 0; i < nodesCollection.Count; i++)
    TreeNode node = nodesCollection[i];
    textWriter.WriteStartElement(XmlNodeTag);
    textWriter.WriteAttributeString(XmlNodeTextAtt,
    node.Text);
    textWriter.WriteAttributeString(
    XmlNodeImageIndexAtt, node.ImageIndex.ToString());
    if (node.Tag != null)
    textWriter.WriteAttributeString(XmlNodeTagAtt,
    node.Tag.ToString());
    // add other node properties to serialize here
    if (node.Nodes.Count > 0)
    SaveNodes(node.Nodes, textWriter);
    textWriter.WriteEndElement();
    And this is how i'm using the class this method i'm calling it inside the CreateDirectoryNode and i'm updating the treeView in real time when getting the ftp content from the server i build the treeView structure in real time.
    DateTime last_update;
    private void UpdateList(TreeNode tn_rt)
    TimeSpan ts = DateTime.Now - last_update;
    if (ts.TotalMilliseconds > 200)
    last_update = DateTime.Now;
    treeViewMS1.BeginUpdate();
    treeViewMS1.Nodes.Clear();
    treeViewMS1.Nodes.Add(tn_rt);
    TreeViewXmlPopulation.SerializeTreeView(treeViewMS1, @"c:\XmlFile\Original.xml");
    ExpandToLevel(treeViewMS1.Nodes, 1);
    treeViewMS1.EndUpdate();
    And when i'm running the program again in the constructor i'm doing:
    if (File.Exists(@"c:\XmlFile\Original.xml"))
    TreeViewXmlPopulation.DeserializeTreeView(treeViewMS1, @"c:\XmlFile\Original.xml");
    My question is how can i update the xml file in real time like i'm doing now but also with the Tag property so next time i will run the program and will not get the content from the ftp i will know in the treeView what is file and what is directory.
    The problem is that now if i will run the program the Tag property is null. I must get the ftp content from the server each time.
    But i want that withoutout getting the ftp content from server to Tag each file as file in the treeView structure.
    So what i need is somehow where i;m Tagging "file" or maybe when updating the treeView also to add something to the xml file so when i will run the progrma again and read back the xml file it will also Tag the files in the treeView.

    Hi
    Chocolade1972,
    Your case related to Winform Data Controls, So i will move your thread to Windows Forms> Windows
    Forms Data Controls and Databinding  forum for better support.
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can I write to a (external)file from a stored procedure

    I want to write some data to a (external) file. I have it working with the function UTL_FILE.
    My problem is I want to write to a file on a mapped drive (so a drive on a different machine). This is not working.
    Does anyone know a way to build this.
    Please send your responses to [email protected]
    Many thanks,
    Alex Nagtegaal

    an extraction out of expert one-on-one from Thomas Kyte
    <quote>
    when an oracle istance is created the services that support it are setup to 'log on as' the system (or operating system) account, this account has very few privileges and no acces to Window NT Domains. To access another Windows NT machine the OracleServiceXXXX must be setup to logon to the appropriate Windows NT Domain as a user who has acces to the required location for UTL_FILE.
    To change the default logon for the Oracle services go to (in Windows NT):
    Control Panel | Services | OracleServiceXXXX | startup | log on as; (where XXXX is the instance name)
    In Windows 2000, this would be:
    Control Panel | Administrative Tools | Services | OracleServiceXXX | Properties | Log on tab; (again XXXX is the instance name)
    Choose the This Account radio button, and then complete the appropriate domain login information. ONce the services have been setup as a user with the appropriate privileges, ther are two options dfor setting UTL_FILE_DIR:
    * Mapped Dirve: To use a mapped drive, the user that the service starts as must have setup a drive to match UTL_FILE_DIR and be logged onto the server when UTL_FILE is in use.
    * Universal Naming Convention: UNC is preferable to Mapped Drives because it does not require anyone to be logged on and utl_file_dir should be set to a name in the form \\<machine name>\<share name>\<path>
    You will of course need to stop and restart Oracle after changing the properties of the service.
    <\quote>
    I want to write some data to a (external) file. I have it working with the function UTL_FILE.
    My problem is I want to write to a file on a mapped drive (so a drive on a different machine). This is not working.
    Does anyone know a way to build this.
    Please send your responses to [email protected]
    Many thanks,
    Alex Nagtegaal

  • File Receiver Adapter:Can't write a large xml file completely

    Hi Folks
    I am doing an IDOC - Xi - FILE scenario where i am writing the xml file as it is onto XI directory.
    The problem i m facing is - the adapter does not write complete file. If i check from AL11 the file i am getting is not exceeding length 660.
    I am not using any content conversion because my requirement is to save xml file as it is.
    This is how it is getting saved:
    <?xml version="1.0" encoding="UTF-8"?>                                                                               
    <ns0:MT_TEST xmlns:ns0="http://test.com/test_sapXi">
    <Account>
    <Account>9899999610</Account>
    <Party>9800000611</Party>
         <Invoice>
              <No>100</No>
              <InvoiceDate>25062010</InvoiceDate>
              <Date>30062010</Date>
              <Total>7</Total>
              <Gross>100</Gross>
              <Net>1000</Net>
                   <Line>
                        <No>100</No>
                        <Date>25062010</Date>
                        <Order>100</Order>
                        <Product>YAG</Product>
                        <Item>100</Item>
                        <Total>7</Total>
                        <Gross>1000</Gross>
    i.e. some tags of <Line> are missing and then closing tags are also missing.          
    Could anyone please help how to extend the length.
    Thanks
    Naina

    So Sorry the structure is like this
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_TEST xmlns:ns0="http://test.com/test_sapXi">
    <Account>
              <Account>9899999610</Account>
              <Party>9800000611</Party>
              <Invoice>
                     <No>100</No>
                     <InvoiceDate>25062010</InvoiceDate>
                     <Date>30062010</Date>
                     <Total>7</Total>
                     <Gross>100</Gross>
                     <Net>1000</Net>
                     <Line>
                            <No>100</No>
                            <Date>25062010</Date>
                            <Order>100</Order>
                            <Product>YAG</Product>
                            <Item>100</Item>
                            <Total>7</Total>
                            <Gross>1000</Gross>
    Shabarish
    I saved the file to .htm from AL11 and saw that this much of the file is getting saved.
    also if i goto communication channel monitoring i could see that in the MESSAGE DISPLAY TOOL it shows
    Write to file "/inbound/xi/107/sss/AB1020100702-132041-124.txt" as text (character encoding US-ASCII) size 660 bytes
    What could be the issue ??
    Naina

Maybe you are looking for

  • Automatic creation of delivery(vl01n)

    Hello, I want to create a outbound / inbound delivery through t-code VL01N  with reference to salesorder / repair order. Please suggest me any BADI , BAPI of functional module.. tHANKS, aNIL Edited by: anilpat1 on Mar 31, 2009 4:03 PM

  • EDI mapping questions

    Dear SAP Friends, My client has planned to develop a program to convert SAP payment run data (F110 for Checks only) to EDI 820 format. I have some points to know the information about EDI 820 format for the following segments to map them to SAP table

  • Syntax errors in update query

    Below is the query: UPDATE CFQCC SET sp_CFQCorr.RecImported = 1,  CFQCC.RecImported = 1 from [HR_DEV_DM].[CFQ_TEST].CFQ_Coord_Corrections as CFQCC INNER JOIN [HR_DEV_DM].[CFQ_TEST].sp_CFQ_Coord_Corrections as sp_CFQCorr ON CFQCC.CorrID = sp_CFQCorr.I

  • Print Preview of Sample Program LP01 not displaying form

    Hey, I have successfully configured ADS in NW2004s ABAP stack. I ran the FP_PDF_TEST_OO program which checks the ABAP Adobe configuration and displays the version number of Adobe document. The problem however is when I implement the sample " Part I:

  • Port forwarding in 6th gen airport extreme

    How do you set the port forwarding in the 6th gen airport extreme?