File open/close/read/write

open a file..
write text into file..
path in varchar2,
filename in varchar2,
firstline in varchar2,
secondline in varchar2)
is
output_file utl_file.file_type;
begin
output_file := utl_file.fopen (path,filename, 'W');
utl_file.put_line (output_file, firstline);
utl_file.put_line (output_file, secondline);
utl_file.fclose(output_file);
can not return any value???
How do I do this operation_?

well you haven't shown all your code or how you are calling this.
No reason using utl_file shouldn't work assuming you've set up your directory objects correctly to point to a valid directory on the operating system, and you've granted write permission to the user executing the code, and referenced the directory object correctly in your UTL_FILE.FOPEN statement.

Similar Messages

  • Having problems opening a pdf file with reader 10/11 get error msg cannot open close reader and try again any ideas

    having problems opening a pdf file with reader 10/11 get error msg cannot open close reader and try again any ideas

    Hi George ,
    Is it happening with all the PDF' or any specific one?
    Could you please share the error message so that we can replicate at our end ?
    Try repairing reader  once and see if that fixes the issue.
    Launch Reader>Navigate to Help>Repair Adobe Reader Installation
    Regards
    Sukrit Dhingra

  • Shared folder files open as read only even though they are set up as read write

    Hello, I've recently purchased a iMac to work alongside my mac book pro. Primarily, i want this for ease of use at home and as a 'back up' to my pro should anything happen.
    I have a number of folders and files on my pro that I wish to access on the iMac and have set up shared folders to enable this with a new profile and read/write permissions. This all works fine until I open the document, make changes then find that I have to save as a different name as the files open as 'read only'?
    Is there anything I've missed? I would of expected 'read/write' permissions to enable me to save files as edited?
    Any help appreciated otherwise, I'll have to resort to copying files between machines which would be a major dissapointment!
    Thanks in advance

    Found the solution...basically the permissions are not automatically cascaded down to sub folders and files so you have to do the following... modified from https://discussions.apple.com/thread/2743520?start=0&tstart=0
    On the folder that you would like to change, select the Get Info and then click on the cogwheel at the bottom of the Get Info dialog.
    Click on the menu pick "Apply to enclosed items ..." and confirm the warning message.
    Then the same read & write permissions are applied to all the subfolders of the selected folder.

  • Project files open in read-only mode

    project files open in read-only mode in ms project 2013.But in the case of MS Project 2007 it opens in READ\WRITE mode .what should i do so that project will opens in READ\WRITE mode by default in MS Project 2013

    In addition to John's excellent reply, I'd add that if you are talking about Project Server, this is by design that the projects in 2013 version open in read-only mode, in order to require an explicit operation to check-out the file. This prevents to have
    many checked out files by mistake.
    See this
    article on my blog.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Open standby read-write then flashback leaves standby in new incarnation?

    Oracle 10.2.0.4 on RHEL. In February, we followed Note:805438.1 to open the standby for read-write for a test (after creating a restore point). A few minutes later, we did flashback. It ran fine ever since, receiving and applying archivelogs. Recently we noticed it stopped applying redo and this started in late June. Then I followed Note:836986.1 to roll forward the standby with incremental backup from the primary. During this process, it was found that the standby was in incarnation 2:
    RMAN> list incarnation;
    using target database control file instead of recovery catalog
    List of Database Incarnations
    DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
    1 1 ORACP2 4102395133 PARENT 1 20080407 14:13:17
    2 2 ORACP2 4102395133 CURRENT 44328058841 20110223 08:33:18
    The solution is to set it to 1, because the primary is (and always was) 1:
    reset database to incarnation 1;
    The DBA team don't recall making any significant change to the standby since the February test and alert.log doesn't show anything relevant. Will "open standby read-write then flashback" leave the standby in the new incarnation, instead of setting it back to the original incarnation? We checked another database which has a standby we did the same test on. The standby is back to the original incarnation as the primary is. So there must be something special about this database.
    Secondly, if the standby stayed in a newer incarnation, how could it continue to apply redo received from the primary in its original incarnation?

    Thanks. Bug 6035495 is related but not exactly my case. My 10.2.0.4 standby database alert.log does not have "orphan" or "ORA-19909". But the solution is the same.
    The Oracle support analyst working on my case referred me to this new note
    Rman-06571: Datafile 1 Does Not Have Recoverable Copy (Doc ID 1336872.1)
    (maybe he wrote it)
    That's exactly what happened to me. Although flashing back the standby sets its current incarnation back (to the same as the primary), if you later run "catalog start with" on the standby, that command will change the incarnation to the later one! Since I was following Note:836986.1 to roll forward the standby, "catalog start with" was run and these lines appeared
    WARNING: catalog online log file +fra/ORACP2SB/ONLINELOG/group_52.2882.708107363 is not supported
    New incarnation branch detected in Backup, filename +FRA/oracp2sb/autobackup/2011_02_23/s_743848464.8985.743848467
    Inspection of file changed rdi from 1 to 2
    Setting recovery target incarnation to 2
    Wed Jul 6 00:06:53 2011
    Setting recovery target incarnation to 2
    Wed Jul 6 00:10:51 2011
    It appears that when "catalog" detects another (must be newer I guess?) incarnation, it blindly sets the standby database to that one. The analyst calls it "implicit catalog". It may as well be called "implicit incarnation change of catalog" or "side effec of catalog".
    Edited by: user11989003 on Jul 11, 2011 7:02 AM
    Edited by: user11989003 on Jul 11, 2011 7:04 AM

  • I am trying to change the order of one of my audiobooks (media kind: audiobook), but the ID tags are greyed out.  I can't change tags for almost all my audiobooks.  Music files OK. Files are all read/write. Repaired disc perms. OS 10.9.4. ITunes11.4

    I am trying to change the order of one of my audiobooks (media kind: audiobook), but the ID tags are greyed out.  I can't change tags for almost all my audiobooks.  Music files OK. Files are all read/write. Repaired disc perms. OS 10.9.4. ITunes 11.4  I don't have iTunes Match.

    Select all the songs and then Advanced -> Convert ID3 tags.
    http://docs.info.apple.com/article.html?path=iTunesWin/6.0/en/655win.html

  • Can't open unlocked file I have read & write privileges for

    My nephew emailed me an RTF (created using iWork Pages on a Mac running 10.5.8). When I try to open it, I get "The document “x.rtf” could not be opened. You do not have appropriate access privileges."
    Get Info shows the file isn't locked, plus:
    You have custom access
    dp (Me)  Read & Write
    (unknown) Read only
    everyone Read only
    His parents use Parental Controls, so I thought I might be encountering an ACL problem. But the Terminal command "chmod -a# 0 x.rtf" yields "No ACL present".
    I tried changing the privileges for "everyone" to Read & Write but -- as I expected -- it makes no difference. (OSX won't let me change the privileges for "unknown.")
    For that matter, he attached 2 other files as well -- they behave the same ways.
    It's useless to try fixing the problem on his end unless I can provide his parents with super-simple step-by-step directions, so I'd prefer to fix it myself if possible, but I'm stumped as to what's wrong.

    According to http://www.freebsd.org/doc/handbook/permissions.html, in the case of directories, the execute bit controls whether they may be traversed. So it's normal for this bit to be set for a directory.
    To clarify where I'm at now: ls -l for the directory containing the file shows
    drwxrwxrwx   9 dp  dp         306 Jun 17 20:33 x.rtf
    and CDing to the file itself shows
    drwxrwxrwx  3 dp  dp    102 Jun 15 17:17 Contents
    -rw-rw-rw-  1 dp  dp  10156 Apr 17 22:45 H4835.jpg
    drwxrwxrwx  3 dp  dp    102 Jun 15 17:17 QuickLook
    -rw-rw-rw-  1 dp  dp   8363 Jun 15 17:17 imgres.jpg
    -rw-rw-rw-  1 dp  dp  31077 Jun 15 17:17 index.xml.gz
    -rw-rw-rw-  1 dp  dp  47231 Apr 17 19:01 macbookair.jpg
    -rw-rw-rw-  1 dp  dp  36191 Apr 17 21:14 unknown.jpg
    Get Info still says I have "custom access" to the RTF. Get Info for each file and directory (and their contents) it contains, however, says "You can read and write." I've searched the web and our KB but find very little about exactly what "custom access" means. As near as I can tell, it should mean it has an ACL, but as I reported earlier, that's apparently not so.

  • Acrobat Pro X: File Open closes down program

    Just installed my licensed copy of Acrobat Pro X on Windows 7-  64 BIT with lots of RAM & a great processor; I am a retired computer science teacher so am no novice. When I try to open any local  a PDF on my hard drive by navigating within Acrobat Pro X: "Choose File > Open" the Acrobat program immediately just closes down every time (no messages, no warning, nothing). Yet the program is working fine when I open any PDF from OUTSIDE the program say an email or Windows Explorer. Same program closing occurs when I try to open a local PDF using the Splash Screen. Everything also works fine when I open a recent document from the Splash Screen..It's only the "OPEN" button both on the File Menu and the Splash Screen that "crashes" Acrobat Pro X....so peculiar & annoying...This is most disconcerting and I cannot find this problem for anyone else searching on Google. Can anyone get tot he bottom of this and help please?

    You are not the only one this happens to. I hope we can get an answer soon!

  • OS X Server files open as read only on client machines.

    Recently, users became unable to save changes to any file on our server or add any file to any folder on our server. The server folders and files are all opening as read only on the client machines. Currently, the users are all assigned to a group, we'll call it "companyusers", this group is granted full read/write access. On the Get Info dialog box for each file on the server, the group "companyusers" is accurately displayed under sharing and permissions with Read & Write privileges, however under the Get Info dialog box for each client machine, the group "companyusers" is non-existent. Only a name titled "(unknown)" and "everyone" is showing up. Any ideas on why the "companyusers" group is not showing up on the sharing and permissions section for the client machines?

    I think I found the fix. Looks like it works in my quick test.
    I read this post here:
    http://discussions.apple.com/thread.jspa?messageID=8278602&#8278602
    Basically in Server Admin, I went to the 'File Sharing Tab' at the top of the window
    Clicked on 'Share points'
    High-lighted my Share Point
    Below in the window, clicked on Share Point
    Clicked on Protocol Options...
    Clicked on SMB
    Clicked on Assign as Follows - and I made everything Read & Write.

  • SP2013 and Project 2013 - project files open in read-only mode with no options to edit only Save As

    Hi all,
    Environment:
    SharePoint 2013 (15.0.4420.1017)  RTM
    Windows 8 - Project 2013 (15.0.4433.1506) 32Bit
    Issue details:
    When opening .mpp files stored within SharePoint they are opened successfully within Project 2013 however they are opened in Read-Only mode with no options to edit/check out only Save As.  The
    same outcome is experienced if you click the document link within SharePoint or you chose to edit from the document menu. 
    Opening the file through windows explorer also opens only in read-only mode.
    To date we’ve tested the following
    Windows 7 – Office 2010 = working as expected
    Windows 8 – Office 2010 = working as expected
    Windows 7 – Office 2013 = opening as read only, no prompt to edit
    Windows 8 – Office 2013 – opening as read only, no prompt to edit
    Current thinking is that it is an issue with either the SharePoint Office Documents Class ActiveX control or Project 2013 itself interacting with SharePoint 2013.
    We have tested this in multiple SP2013 environments with the same outcomes.
    The workaround therefore is to save locally and then upload again which is not ideal.
    Unable to find an exact issue match to this.
    Any help with this appreciated.

    Hi Dan,
    For us after investigating this further it was found that using the document menu to edit or checkout and then edit results in the project file being opened in read-only mode. 
    The same issue was present for Visio files.
    Using the FILES ribbon menu results in the document being opened in edit mode successfully in both Project and Visio.
    Please note that we found that this issue only exists within document libraries where checkout is required to edit which was our case.  If checkout is not required the document
    menu can also be used as expected.
    Cheers,
    Dan

  • File opens in Reader, but prints with Acrobat

    Hi
    If I double click on a PDF file it opens in Reader.
    If I right click it and select 'print' it will attempt to print using Adobe Acrobat 5.
    I think Adobe Acrobat 5 is required for some old systems my company uses.
    How can I change default behaviour on my machine so that right-click print is done through Reader and not Acrobat?

    In Run type regedit and open following registry path(Second part may differ from machine to machine):
    HKEY_USERS\S-1-5-21-762979615-2031575299-929701000-XXXXXX\Software\Microsoft\Windows\Curre ntVersion\Explorer\FileExts\.pdf
    On the Right panel ,right click and Add "String Value" by the name "Application" and then Modify(Right Click) this "Application" and add Value data as the name of application by which you want open pdf file.Eg. If you want to make Acrobat as your default application ,put Acrobat.exe or put  AcroRd32.exe if you want Reader as your default app. Similarly put the name of corresponding .exe for other pdf Readers you have and you want to make a particular as your default app.For knowing the name of  exe of other Readers, just check in “OpenWithList” just below .pdf(on left).
    I hope it can solve your problem

  • InDesign CS4 Files Open as Read-Only (Mac)

    Having a problem where InDesign CS4 files sometimes open as read-only versions. This happens when opened by double-clicking through Finder, force opening by dragging the file over the ID icon in the Dock, or when opened through ID (file > open). If it's relevant, the ID file contains links to InCopy files that have been made using the Assignments Panel. System is Mac OS X 10.6.2. Any help &/or insight is greatly appreciated!

    I got a similar kind of problem / error trying to migrate an InDesign Server CS4 solution to another server with InDesign Server CS5.
    Windows 2008 server.
    I'll describe it, just in case it might give any clues.
    Calling an InDesign server "open" script, trying to open an InDesign document, using a network path - although the file is on the same server - resulted in an error message:
    System.Exception: 3598: Error from InDesign. Cannot save the document. No destination file supplied.
    In the script there is a line, telling Indesign Server to call the save method, if the document is modified, which can be the case after opening a document from another environment, converting to CS5, and links that need relinking and other stuff that either InDesign takes care of, or that the script does.
    No lock file ( .idlk ) was created on the server, but until I restarted the InDesign server instance, the file was opened as read-only when I opened it on my own computer (from the same network path on the server). I could then not save it from my own computer (the "Save As" dialogue appeared when I selected "Save" in the File menu).
    After restarting the InDesign Service, the file was no longer locked (restarting the sevice automatically clears all open threads to the documents), and I could use and save the file without trouble, from my own computer.
    Changing from Local Service to Administrator for running the InDesign service on the server, made the document open. Setting full permissions to the "Local Service" account, on the network share in question, also works, and that's the way I left it.
    So my problem had to do with permissions on the network share. Since the service account was not allowed to do certain things, such as "modify" files... something went wrong.
    Probably no lock file could be written either, due to permissions... then the open document and locking was handled by the operating system only(?), keeping the document read-only, and reporting other messages than the expected ones. It somehow seems that the document was neither open nor closed on the server (since InDesign Server has no user interface, I can only report what my method calls "saw").
    Now - with the permissions of the service account changed - trying to open the document on my computer I get the correct message: "Cannot open the document [...]. You may not have permission or the document may be open already."
    (When it was opened in a faulty state - with insufficient permissions - on the server, I could still open it on my computer, but as read-only, due to the missing lock file.)

  • Check if file open for read (INPUT)

    Hi,
    how ti cheeck if file is open for reading. I have problem, that one file could be open for reading, for example with RFBIBL00, and my Z program creates this file. My program should not be able to open this file, because of inconsistencies in RFBIBL00. Diff. filenames aren't an option....
    thx
    mario

    not helping, in case that one program has
    open dataset dsn for input in text mode encoding default.
    in other program:
    open dataset dsn for output in text mode encoding default.
    returns sy-subrc = 0.
    and i'm able to use
    transfer string to dsn
    . and change file.
    I don't want to do that

  • Two Desktop items appear in file/open close dialog boxes.

    In all applications in the file open/save dialog box I have two "Desktop" items on the left toolbar. In Finder it is showing up the right way with only one "Desktop" item on the left tool bar. How do I get rid of this extra "Desktop" item on my open/save dialog boxes?
    Thanks.

    1. Drag all Desktop icons off your Finder sidebar.
    2. In Finder >> Preferences >> Sidebar UNcheck all options.
    3. navigate to ~(yourhome)/library/preferences and trash these two files:
    com.apple.finder.plist
    com.apple.sidebarlists.plist
    Then log out and back in again. Or restart.
    (You will have to reset a few finder prefs the way you like them.)

  • Word 2010 Files Open as Read Only

    Greetings !
    I have an end user who has a somewhat enigmatic and oh so mysterious issue concerning various and random Word files stored on one of our file servers.
     Let's say she opens 10 different Word files. Of those 10, 2 or 3 may open as READ ONLY when that attribute is clearly not set on any of them! Permissions look OK. The files are not in use.
    This occurs on a Windows 7 client pulling files from a 2012 file server.
    I dunno on this one. Suggestions?
    This topic first appeared in the Spiceworks Community

    Hi Doug,
    Please check the KB article below and see if it answered your question:
    http://support.microsoft.com/kb/2018958/en-us
    Hope this helps.
    Best Regards,
    Steve Fan
    TechNet Community Support

Maybe you are looking for

  • HELP! iTunes can't locate my music files and don't have them on my computer anymore.

    Well pretty much none of my 2000 iTunes songs can be played. It just says the original file could not be found. I backed up my iTunes because my computer was going in for repairs and would need to be reformatted. It then got reformatted and put iTune

  • Basic question on setting Redundancy as the Retention policy

    DB version:11g I am planning to implement Differential Incremental Backup for my database. My strategy is Sunday -->     Level 0 backup Monday -->     Level 1 backup Tuesday-->     Level 1 backup Wednesday-->     Level 1 backup Thursday-->     Level

  • EPM 11.1.2.1 Upgrade to the 11.1.2.3

    Hello, I am new to the EPM systems migration (installed the fresh EPM 11.1.2.1 and 11.1.2.3) and we are planning to upgrade our existing environment from 11.1.2.1 to 11.1.2.3 and I am looking for the complete guide on how can I upgrade the environmen

  • What's with all the controllers?

    Could somebody please make clear to me what is the purpose of the Apple-provided controller classes such as NSObjectController, NSViewController, and NSWindowController? I am fairly familiar with the MVC design pattern, but I am not sure what task th

  • Am I allowed to remove the Skype sticker?

    Hi, I just got my new Satellite A505-S6973 a couple days ago and I love it already! The only thing that bothers me though is that, like every other laptop, it came with a bunch of stickers all over it. I'm okay with the Windows and Intel stickers, bu