File ownership created using file_oper

I am creating a file using file_oper. The unix shell script calls the plsql and creates the file. The file is created with Oracle as the owner. I need the file to have 777 rights when it is cretaed.
I am getting an error when I used chmod 777 for the file in the shell script. It says not the owner.
How can I change the access after the file is created?
Thanks

Try using just the Directory path without the filename to create the directory using something like this.
filepath = "D:\Test\Test.txt"
'use just the directory path "D:\Test" to create the directory
IO.Directory.CreateDirectory(IO.Path.GetDirectoryName(filepath))
If CreateTextFile(filepath) Then
MessageBox.Show("Success")
End If
If you say it can`t be done then i`ll try it
@Kevin and @Ironrazers
On what part of the problem are you replying. In my perception was the question:
But (the) File
(is) not created in the Directory
Because of the fact that English (like my first language) is a very lousy one if it becomes to grammatical cases are verbs and articles often forgotten by those with better describing languages. 
Success
Cor

Similar Messages

  • Dymanin File Name Creating Using ODI variable

    Hi All,
    I am trying to create a flat file dynamically using ODI variables. I am following a document in metalink (Using A Dynamically Specified File Name Or Directory Name With ODI [ID 423635.1]). However, I am getting the following error, whenever I try to execute the interface:
    java.lang.NullPointerException
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execCollOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.h.y(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    IKM: IKM SQL to File append
    I am sure that it is unable to locate the file. May be the variable value is not passed, not sure. But, if I mention a name like abc.txt, it works. It creates a new file with abc.txt. However, when I try to use a variable, it throws null pointer exception.
    Thank you
    KK

    Hi Nitesh,
    I am really not sure what exactly you mean by declare a variable in a script. I create a new variable and used it as a name for the flat flie model. I defined a SQL that contactenates sysdate with a string. Thank you for your help!
    Regards,
    KK

  • Opening an Excel file already created - using ADF faces

    I have an action that exports a bunch of data to an excel file using jXLS, which seems to work nicely. However, the file is exported outside of my application context. I would like to open the file right into the file stream so that when they click on the link, it just opens the file directly in the browser or prompts for download.
    Here's my action code. Any suggestions would greatly appreciated.
         public String selectForExcel() throws IOException {
         final String templateFileName = "../server/default/tmp/stats_template.xls";
         final String destFileName = "../server/default/tmp/chart_output.xls";
         Map beans = new HashMap();
    beans.put("platformStats", deviceStats);
    XLSTransformer transformer = new XLSTransformer();
    transformer.transformXLS(templateFileName, beans, destFileName);
    return "success";
         }

    Add the following code to an action that returns null. The action will return the user to the current page and will be presented with a download prompt. This code should work well for your case.
    Regards.
    public static synchronized void downloadFile(String filename, String fileLocation, String mimeType,
    FacesContext facesContext) {
    ExternalContext context = facesContext.getExternalContext();
    String path = context.getInitParameter("externalFiles") + fileLocation;
    String fullFileName = path + filename;
    File file = new File(fullFileName);
    HttpServletResponse response = (HttpServletResponse) context.getResponse();
    response.setHeader("Content-Disposition", "attachment;filename=\"" + filename + "\"");
    response.setContentLength((int) file.length());
    response.setContentType(mimeType);
    try {
    FileInputStream in = new FileInputStream(file);
    OutputStream out = response.getOutputStream();
    // Copy the contents of the file to the output stream
    byte[] buf = new byte[1024];
    int count;
    while ((count = in.read(buf)) >= 0) {
    out.write(buf, 0, count);
    in.close();
    out.flush();
    out.close();
    facesContext.responseComplete();
    } catch (IOException ex) {
    System.out.println("Error in downloadFile: " + ex.getMessage());
    ex.printStackTrace();
    }

  • Can't open 1 document created using travel journal template

    Since installing Snow Leopard yesterday I found out I can't open this one file I created using the travel journal template. All other Pages '09 files are fine. I just get this error message telling me Pages had to close my document "unexpectedly".
    *"Pages quit unexpectedly while using the SFWordProcessing plug-in"*
    Don't see why it would need to use this plug-in. And I don't recall choosing this plug-in. There must be a way around this. To open this file by turning off that plug-in perhaps. Unless it's absolutely necessary when using the templates. Or the "travel journal" template.

    http://discussions.apple.com/thread.jspa?threadID=2141021&tstart=15

  • This file was created with a newer version of Adobe After Effects

    I downloaded the trial version of Adobe After Effects last night and spent a lot of time learning how to use the product, created my first tracking face on a body in a video.
    This morning when I tried to open the project I got an error message: After Effects Error: this file was created using a newer version of After Effects [3.0 (unknown)] -- time to upgrade your application!
    What should I do?

    Sounds odd. If you created it in CS6 it should open just fine in that same version. chances are that the project fiel is simply damaged. Impossible to tell without actualyl seeing the file.
    Mylenium

  • How to prevent unauthorized extraction of the zip files I created.

    Hi all,
    Can anyone help me in knowing abt this.
    Is there any way to prevent unauthorized extraction of the zip files I create using Java.
    Plz help friends.
    Thanks in Advance.
    -James

    Since you already found out that Java's zipping methods don't implement password protection, all you could possibly do is encrypting the contents.

  • Can i use impdo while dump file was creeated using exp

    hi,
       I am using oracle 10g database I want to use impdp but my dump file was created using exp utility so can I use impdp now?
    regards

    Hi,
    >>kindly tell me how can I replace existing user from new dump user using imp utility
    You mean the user which used to take the Exp/import right?
    if yes, You do not need to drop/replace this, you just need to add/grant read,write privilege on directory. you can check this:http://www.oracle-base.com/articles/10g/oracle-data-pump-10g.php
    HTH

  • For the first time, I'm trying to use adobe premiere elements10 that came with my pc Windows 8. I created a single project, saved it but cannot open it. My pc shows the file I created but I get an error message that says this type file is not supported or

    For the first time, I'm trying to use adobe premiere elements 10 that came with my pc Windows 8. I created a single project, saved it but cannot open it. My pc shows the file I created but I get an error message that says this type file is not supported or the codex is not installed. As a test, I created another very small project and get the same error message, when I try to open it. Pls give me a simple answer, a refund or a phone

    mike frischenmeyer
    What computer operating system is your Premiere Elements 10 running on? And, what video card/graphics card does that computer use?
    Is this the first time you are using Premiere Elements 10 or have you worked with it before successfully? There is no easy solution until we
    know the details and troubleshoot to determined what caused the problem.
    1. Can you open a new project?
    2. After you saved/closed the problem project, did you move, delete, or rename any of the files/folder that were related to the source media
    for that project?
    3. Please review the Adobe document on troubleshooting damaged projects.
    Troubleshoot damaged projects | Adobe Premiere Elements
    4. What are the steps that you are using to reopen this saved closed project.
    a. File Menu/Open Project/Name of Project
    b. Other
    Please review and consider and then we can decide what next based on your further details and results..
    Thank you.
    ATR

  • Music and Video on Nas in folders but how do i set up itunes on multiple computers to see and use these files and create libraries?

    Music and Video on Nas in folders but how do i set up itunes on multiple computers to see and use these files and create libraries?
    So i have had a itunes set up on my old PC, bought a NAS and copied the folders over to the NAS, i did this incorrectly and so then even when i told the old PC to use that folder it saw all the songs but wasnt able to play the songs as it was looking in the incorrect place.
    So now i want my Mac as well as my PC and others to all use the music, videos etc on the NAS they are in itunes friendly folders (as they were compiled this way by the itunes on the old PC.
    When i tell the mac to use the itunes library.itl file it sees the song list (about 100gb) but cant see any songs, so i have removed this file to another location for now with the hope to set up a new file and then get it to see the songs on the folder from the NAS.
    Can someone tell me how to do this for all the Mac's and PC's on my network as i really want one master library that all use and add too.
    Thanks for your help in advance.

    I have the same question but I am using two pc's

  • Why multiple  log files are created while using transaction in berkeley db

    we are using berkeleydb java edition db base api, we have already read/write CDRFile of 9 lack rows with transaction and
    without transaction implementing secondary database concept the issues we are getting are as follows:-
    with transaction----------size of database environment 1.63gb which is due to no. of log files created each of 10 mb.
    without transaction-------size of database environment 588mb and here only one log file is created which is of 10mb. so we want to know how REASON CONCRETE CONCLUSION ..
    how log files are created and what is meant of using transaction and not using transaction in db environment and what are this db files db.001,db.002,_db.003,_db.004,__db.005 and log files like log.0000000001.....plz reply soon

    we are using berkeleydb java edition db base api, If you are seeing __db.NNN files in your environment root directory, these are environment's shared region files. And since you see these you are using Berkeley DB Core (with the Java/JNI Base API), not Berkeley DB Java Edition.
    with transaction ...
    without transaction ...First of all, do you need transactions or not? Review the documentation section called "Why transactions?" in the Berkeley DB Programmer's Reference Guide.
    without transaction-------size of database environment 588mb and here only one log file is created which is of 10mb.There should be no logs created when transactions are not used. That single log file has likely remained there from the previous transactional run.
    how log files are created and what is meant of using transaction and not using transaction in db environment and what are this db files db.001,db.002,_db.003,_db.004,__db.005 and log files like log.0000000001Have you reviewed the basic documentations references for Berkeley DB Core?
    - Berkeley DB Programmer's Reference Guide
    in particular sections: The Berkeley DB products, Shared memory regions, Chapter 11. Berkeley DB Transactional Data Store Applications, Chapter 17. The Logging Subsystem.
    - Getting Started with Berkeley DB (Java API Guide) and Getting Started with Berkeley DB Transaction Processing (Java API Guide).
    If so, you would have had the answers to these questions; the __db.NNN files are the environment shared region files needed by the environment's subsystems (transaction, locking, logging, memory pool buffer, mutexes), and the log.MMMMMMMMMM are the log files needed for recoverability and created when running with transactions.
    --Andrei                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How do I access my encrypted User Account files from my Back Up hard drive?  Time Machine  was used to create the back up disk; File Vault was used to encrypt the files.

    How do I access my encrypted User Account files from my Back Up hard drive?  Time Machine  was used to create the back up disk; File Vault was used to encrypt the files.

    Thanks.  I will try going through TM.  Since my Simpletech is on the way out, I'll be plugging in a new external hard drive (other than the back-up drive) and trying to restore the library to the new drive.  Any advice or warning if this is NOT the right thing to do?
    Meanwhile, that is a great tip to do an alternate back-up using a different means.  It's been tough to figure out how to "preserve access" to digital images and files for posterity, knowing the hardware will always fail/obsolesce sooner or later, and that "clouds" are only as good as their consistent and reliable accessibility.  Upping the odds with redundancy will help dull the edge of my "access anxiety", though logically, it can never relieve it.  Will look into
    Carbon Copy Cloner.

  • How can I remove a signature on a PDF file that I created using Preview on iMac computer??

    How can I remove a signature on a PDF file that I created using Preview on iMac computer??  I inadvertently hit the icon on the Preview tool bar with an xS and a line through it.  There is my signature in the middle of the PDF file I was editing.  How do I get rid of it?  Cannot select it.  Cannot find any tools that allow me to delete it.  The Preview documentation tells how to create and apply a signature, but not how to remove it.  I think when a signature is added the doucment becomes locked from any editing.

    Hey needadobehelp10,
    Using Adobe Acrobat/Reader, you can simply change your PDF view settings under "View > Page Display > Single Page View"
    Is this really you wish for?
    Please let me know.
    Regards,
    Anubha

  • HT3697 I am trying to convert a Keynote Presentation to a cross platform PDF file. When using export it creates a 30mb file when it only need to be 2-3mb and so cant email or use it very easily. How do I get the file size down?

    I'm trying export a Keynote presentation to PDF, or other format, to use on Windows PC, iPad and other devices.
    The file Keynote create is way too large at 30mb+. So cant email or share it very easily
    If I print it and to Adobe PDF I can get it to 3mb, but have to crop it manually, and some settings or graphics are not so good or accdeptable!
    Does anyone know how to do this?

    Use Dropbox to send large files that cant be sent using email:
    https://www.dropbox.com/

  • How to use a excel file to create a service component?

    Dear all,
       I want to use a excel file to create a service to be my data source. I used the wizard to do that but i always got a message. "The data format is not valid, fields in each record must be delimited by tab charactors, and each record seperated by new line charactors". How should I reformat my excel file to fit the requirements? I have already chang the field`s format into 'text' type. Thx ^^

    Hi Louis,
    [Here|http://img125.imageshack.us/my.php?image=exceltestlo7.jpg] is the result of your data.  I downloaded your excel sheet and created a simulated service in 7.1.1 and it works fine.
    Below are the steps:
    1. Go to Tools -> service component wizard
    2. The popup opens : Step1 :  Enter the name of your service component
    3. Go to Excel spreadsheet Copy the data for which the service needs to be created.
    4. Step 2 : Paste the copied Excel data in the popup
    5. Step 3 : Define Input -> just click next
    6. Step 4: Define Conditions -> just click finish.
    Let me know if it helps.
    Good Luck,
    Dharmi

  • I am working on Mac OS 10.7.2 using Quark 9.I. The program keeps shutting down every time I try to work on a file I created on my MacBook Pro using Quark 7.01. Help!

    I am working on Mac OS 10.7.2 using Quark 9.I. The program keeps shutting down every time I try to work on a file I created on my MacBook Pro using Quark 7.01. Help!

    http://support.quark.com/SSP/Login.aspx?ReturnUrl=/ssp/default.aspx

Maybe you are looking for

  • Running a java program

    This shows how dumb i am. I have a java program all wrote. How can i run it without using the compiler? Can i have a .exe file or something that I just have to click on to run?? Thanks again Agdude

  • Display pdf in HTML page with no toolbar

    Hello again, After successfully embedding a pdf file in my html page using the object tag, I need to know now how to do the same thing without having the toolbars displayed. Does anyone know if this is possible? Below is the code I used to successful

  • Business roles for diffrent org positions

    Hi guys, I have an issue: I have an organization model: Org ABC-> Org A-> channel manager               -> Org B-> partner manager I assigned channel manager role to channal manager in org A but when i assign partner manager role in org B , it overwr

  • Updating images in an FLA

    This may sound simple but it's not at all from what I can tell. Hell it may be impossible but I might as well ask...Anyways, what I'm trying to ask for is a way to update the images embedded in an FLA somehow without having to manually re-import each

  • Strange audio

    Hey all, So I am having a strange problem with audio. When I import a song from Itunes or anywhere else it sounds fine when I play it on my TV. I play the dvd and listen to it on my 2 speakers and it still sounds fine. For some reason when I play it