Can not rename created file via UTL_FILE package

Hi,
I am wondering why I am not able to rename file after the procedure has created it?
I am closing the file with UTL_FILE.FCLOSE (v_file);
but it seems that oracle still keep it open.
Any suggestions?
Thanks
BEGIN
SELECT TO_CHAR (SYSDATE, 'YYYYMMDD')
INTO v_sysdate4filename
FROM DUAL;
v_filename :=
('MyFileName_' || v_sysdate4filename || '.txt'
v_file := UTL_FILE.FOPEN ('MY_DIR', v_filename, 'w');
FOR v_current_row IN my_c
LOOP
UTL_FILE.PUT_LINE (v_file,
v_current_row.record_type
|| v_current_row.operation_type
|| v_current_row.child_id
|| v_current_row.parent_id
|| v_current_row.start_date
|| v_current_row.end_date
|| v_current_row.process_field
END LOOP;
UTL_FILE.FCLOSE (v_file);
END ;

(I have administrator rights) Again, If you are not able to rename the file, what the error message is returned by the OS.
Did you try to disconnect your Oracle session and then try?

Similar Messages

  • Can not send any file via bluetooth

    my 5800 Xpress music can not recently send any msg via Bluetooth. As soon as sending started, the phone will be locked where as no more action possible no keys works the phone does not even switch off by pressing its button otherwise removing the battery. pls help me

    What does it says when you try to send a file via Bluetooth?
    Previous Phones: 6600, 7610, 6230, 6230i, 1100, 1112, N70, N73, N95, N95 8GB, 5800XM, 5230, C5, iPhone 3GS, SE Xperia X10, N900, N8, SE Xperia Arc
    Current Phones: Nokia N9, iPhone 4

  • Can't read text file using UTL_FILE

    Hi All,
    how can I read notepad file using UTL_FILE package.I have specified the UTL_FILE_DIR in the init.ora file.My objective is to when a button is clicked, the contents of the file will display in a text item.Here is my code written in WHEN_BUTTON_PRESSED trigger.
    DECLARE
         file_handle UTL_FILE.FILE_TYPE;
    data_line Varchar2(100);
    BEGIN
         file_handle := UTL_FILE.FOPEN('E:\vimal','abc.txt','R');
              message('directory created');
         UTL_FILE.GET_LINE(file_handle, data_line);
         :block2.t1 := data_line;
         UTL_FILE.FCLOSE(file_handle);
    END;

    Why don't you use text_io? Don't forget that UTL_FILE is reading directories from the database point of view. The E drive for the database is a different E then on your client pc. I presume your database is on a different computer. Are you getting any errors?

  • Nokia 6650 can not send and recieve via infrared/b...

    hello to all members here in nokia and also faculty and staff in nokia.
    I'm dennis bendicio from the philippines, I have my nokia 6650 and my brother gave this to me and this unit he brought this in dubhai and i want to download a file and also upload file to my pc but i can not do the thing. is there any idea why my phone can not reacieve a file via bluetooth or even using infrared also? thanks for helping me for this.. have a nice day..

    Hallo,Dennis,
    the Nokia 6650 has no Infrared, but Bluetooth. You need to switch this feature on (off by default as it consumes some extra power) and then you can move files if you have a BT enabled PC. You need to pair first.
    If you want to have it easier, try the Nokia data suite (free on Nokia web) via BT or USB cable, that supports the recognition and file transport as well.
    That should work.

  • Can not open JPEG files and can not create JPEG files from other software

    Can not open JPEG files and can not create JPEG files from other software (For example from Solidworks).
    When I try to right click on a JPEG, a notice window appears written: "Windows Explorer has stopped working - Windows is
    checking for a solution to the problem" and then the notice box disapears, the desktop appears and I can continue working.
    From the other side - If I try to save as JPEG a screen of Solidworks (like a view of a part) the Solidworks falls but the JPEG
    is created (I can see its name in the directory I created it).
    I can open the JPEGS with the Paint software if I want but not with the Windows Photo Viewer.
    I have the feeling that the Windows Photo Viewer disapeared from my computer - just a feeling.
    I will appreciate your assistance.
    Avi T. 2014

    Hi,
    Did Windows Photo Viewer option appear when you right click the JPEG file and select open with?
    I would like suggest you use Clean Boot to troubleshoot if there is third-party software conflict:
    How to perform a clean boot in Windows
    http://support.microsoft.com/kb/929135
    Karen Hu
    TechNet Community Support

  • Can not Open exe file that is created by Labview 2010 SP1

    Hi Everyone,
    My Operating system is XP .. I installed .net latest version but I can not open exe file. I try to open  exe file, then  crashes , quits without seeing any interface.
    I tried with another computer whose o.s is xp too. I can open exe file. I saw it is created by Labview 2010 Sp1
    I dont know what the difference is. I attached config file. 
    Attachments:
    TPS65175 C (Vcom only).ini ‏1 KB

    burak35 wrote:
    [..]Do  I need any other components besides .Net? 
    That's a question only the provider of the application can answer.
    You could also take a look into the system event log if there is an indication for the reason of the application failing to start properly. It is possible that certain services are required for the application, but they do not run on the machine.
    Another point is possibly missing rights. So you might want to test the application once with the option "Run as Admin" (right click menu item on the application shortcut or the exe itself).
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • My iTunes can not read a file, because its created by a newer

    My iTunes can not read a file, because it's created by a newer!!!
    The file is:     iTunes Library.itl
    I hope you can help me!!
    Bye tokiodrift

    You need to restore the pre-upgrade backup of the library file in the manner shown in  Empty/corrupt library after upgrade/crash.
    tt2

  • Instance of javafx.collections.FXCollections can not be create by FXML load

    <ListView>
    <items>
    <FXCollections fx:factory="observableArrayList">
    <String fx:value="One"/>
    <String fx:value="Two"/>
    <String fx:value="Three"/>
    <String fx:value="Four"/>
    <String fx:value="Five"/>
    </FXCollections>
    </items>
    </ListView>
    why the netBeans 7.3beta2 say "Instance of javafx.collections.FXCollections can not be create by FXML loader"?

    Hi,
    PLS-00201 : identifier 'v$INSTANCE' must be declared. Please note that, this package having a procedure that is loading a text files rows to table. Its using UTL_FILE package.
    And directories are used to load the data. I created the directories in the TEST database and create the physical directory in the TEST database host machine. 1. when issuue was raised from pl/sql - have you check the code ?
    2. Have you tested code independently - instead of executing from job. ?
    3. Forget about production system for a while, try to check the pre-requisites required for the things to run. ?
    4. what is the pacakge code dependent on v$instance error - have you checked across ?
    5. Have you tried to debug the code or not ?
    - Pavan Kumar N

  • Can't rename important file!

    Hi everybody
    well, I have quite an extraordinary situation here.
    Today morning I created an iStopMotion file (.mov) and renamed it, to my misfortune, with a VERY long name. The file's only copy is on my external drive (unfortunately FAT 32). If I now want to select the file, it simply just disappears (and only reappears if I restart the Finder). Hence, I can not rename it and therefor use it. It's a very important school file and I can not reproduce the file, I HAVE to rename it and be able to use it/convert it. How can I do that without losing the file or anything similar to that? I don't mind if the solution is very long, as long as it works I'm fine with it.
    Please help me!
    Thank you in advance.

    Can you open the file using the application's menu open command, then save it with a different name?
    Open the application with which you created the file. In the application menu go to File > Open and try opening the file. Then save it with a different name.
    You can also try the move (mv) command in Terminal:
    Open Terminal in your applications > utilities folder.
    Type in mv with a space after it. Do not press return yet.
    Drag the problem file to the Terminal window. This should result in the file with the directory path being entered in the window after the mv+space. Do not press return yet.
    Enter another space. Now type a new name for the file. In order to make things easy we are going to have the file go to your Home folder on your main drive.
    Now press return. This should move the file from the old place to the new place with a new name.
    If you do not want to risk erasing the first file while creating the second in case something goes wrong, use the copy "cp" command instead of the move "mv".

  • Getting "Can not open the file due to unknown error(FRM:0007)"

    Getting "Can not open the file due to unknown error(FRM:0007)", when refreshing the local copy of Deski report  from user docs.
    Any assistance
    Thanks,
    Sasi.

    Hi Sasi,
    One of the reason for this error is corrupted universe.So you can try following steps and restore copy of universe and then try to import this universe and check whether it works.
    1.While importing a universe, a temp file is created in the users local settings temp directory.
    2. For example C:\Documents and Settings\brijones\Local Settings\Temp\0dd0b0a7 .
    3. File has no extension is relatively the same size as the original universe file.
    4.Rename this file to original universe name.
    I hope it helps.
    Regards,
    Snehal

  • After Effects warning: Could not rename the file  . . .

    Mac pro 2x 2.66 Dual-Core
    Mac os10.5.8
    CS5 master collection install
    Please some help on this would be greatly appreciated.
    everything works except
    After Effects
    I get this message after launch:
    After Effects warning: Could not rename the file '/Users/michaelrutledge/Library/Preferences/Adobe/After Effects/10.0/Workspaces.1405.1407350763865601.xml' to 'Workspaces.xml'.
    followed by
    After Effects can’t continue: unexpected failure during application startup
    What I've tried:
    I've searched this forum found one thread that hasn't helped
    uninstalled entire Master Collection and reinstalled
    fixed permissions
    uninstalled and reinstalled just AE
    I am unable to change the prefs directory indicated to add .xml file for folder.
    Do not find Workspaces.1405.1407350763865601.xml
    I'm about to download the master collection again and try a fresh install of AE.
    Thank in advance for any help . . .
    M

    And what if you simply trash the whole prefs folder/ move it out of the way? AE should happily re-create everything with factory defaults. realyl sounds like one of your workspace files is damaged, perhaps due to a crash.
    Mylenium

  • Help:Can not find the file in jar!

    Hello everyone:
    I build a project using Netbeans 5.0 and make a jar file with it...
    The code in the project as follows will throw an exception described that it can not find the file named datasource-config.xml
    String dataFilePath = getClass().getResource(dataFile).getPath();
    //System.out.println("filepath:"+dataFilePath);
    InputStream input = new FileInputStream(dataFilePath);
    when I run the project with the main() function as an entry it works perfectly and output:
    filepath:/C:/projects/java_project/search/build/classes/com/cn/wxjt/lucene/config/datasource-config.xml
    But when I compressed the project with jar and run it , it will show:
    filepath:file:/C:/projects/java_project/search/dist/search.jar!/com/cn/wxjt/lucene/config/datasource-config.xml
    there is a (!) between search.jar and /com/cn/wxjt...
    I dont know why I generate a ! symbol in the file path... Is it cause the exception->
    java.io.FileNotFoundException: file:\C:\projects\java_project\search\dist\search.jar!\com\cn\wxjt\lucene\config\datasource-config.xml
    If you have any idea, plz tell me.
    Thank you and best wishes to you !
    :)

    If the file you want to read is in your jar file, use
    getClass ().getResourceAsStream
    (relative_path_file_name)Hope that help,
    Jackhey jack i want to open the file as new File
    i m using this.getClass().getResource("resource/backend.xml");
    the resource is the directory inside the jar file.
    when i prints the url it shows:
    the jar file is in the WORK directory
    URL : jar:file:/home/neeraj/WORK/show.jar!/resource/backend.xml
    now when i creates new File using the url.getFile() method the file does not exist.
    although the same programs runs well when i uses the InputStream
    so plz tell me cant I create a new File from the above method????
    thanks in advance
    with regards
    neeraj

  • Had to uninstall Firefox, now I can't reinstall. Get error message "Can not find archive file." Please help!

    I believe I had some kind of virus attack. I got everything cleaned up. (I HOPE) In the process of cleaning the virus, I unintalled Firefox because it wouldn't open. Kept getting the error message that Firefox was already open and I had to close out of the sessions or restart the computer. After restarting the computer several times and not being able to find any open sessions in task manager, I uninstalled. When trying to reinstall, I get the error message "can not find archive file." I've tried downloading Firefox from cnet as well as the Mozilla site to no avail. Please help. I'm getting tired of using Chrome already!

    Hello,
    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu).
    #Delete the Firefox installation folder, which is located in one of these locations, by default:
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #*'''Mac:''' Delete Firefox from the Applications folder.
    #*'''Linux:''' If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Firefox on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/firefox#desktop Firefox download page], simply remove the folder ''firefox'' in your home directory.
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    Please report back to see if this helped you!
    Thank you.

  • How can i stream some files via my macbook pro

    how can i stream some files via my macbook pro and my WD TV LIVE

    Which email client are you using & which version?   Your emails are not appearing in the email trashcan? 

  • I can not download any files using Safari ? when I choose to download application file the URL include the file name and stop responding. Any help??

    I can not download any files using Safari ? when I choose to download application file the URL include the file name and stop responding. Any help??

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up a guest account” (without the quotes) in the search box.
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem(s)?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault in Mac OS X 10.7 or later, then you can’t enable the Guest account. The Guest login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    *Note: If FileVault is enabled under Mac OS X 10.7 or later, you can’t boot in safe mode.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

Maybe you are looking for

  • Installing Photoshop Elements 13 Fails Extracting Files

    I get an error when I attempt to install Adobe Photoshop Elements 13 on my Windows 7 x64 machine.  It fails when extracting files. I have full read and write permission on my desktop.  I also have plenty of space.  I double checked requirements on th

  • Adding and "empty" row to an ArrayCollection

    Hi, I've got an ArrayCollection named CompanyList which has been populated by a webservice. Each "row" structure is the same. I want to add a new row with the same elements as an existing row. I'm trying the followng, but of course the new row is bei

  • Importing mifs into RoboHelp imports Nothing

    Using FrameMaker 7 and RoboHelp 8 - I import regularly (create new project, import frame docs as mifs) and an empty RoboHelp project with NO framemaker docs is created. Someone else has GOT to have had this issue, as it occurs occasionally on my mach

  • Writing TEXT in color

    Hi, I want to write some colored text in a JEditorPane. How can I do this?? THX

  • Rebates Paid to Parent for Sales to Subsidiary

    When dealing with a group of related customers, all rebates associated with sales to any one of the group should be paid to the parent.  How do I configure so that the rebate is accrued at the time of sales to the child customer but is recorded again