UTL_FILE.fcopy does not work as expected after the upgrade to 10g

Hi all, I have an Oracle database running in HP - UX 11.31. The database version is 10.2.0.5.0 and it is patched with PSUOct2011_12827745. This database has been actually upgraded to version 10.2.0.4 (no group of hotfixes) on 13 - Dec last year.

There is a procedure in the database that reads the contents of a directory, and if there are files in this directory, the contents of the file will be read and inserted in the database. After that, the procedure will move the file to another location for archiving purpose. I will summarize below on the procedure:
Source directory: /home/.../DB_Upload
Source Dir name: SRC_DIR
Destination directory: /home/.../DB_Upload/Archive
Name of destination Dir: DEST_DIR

Before upgrading the database, the procedure works very well. Since I upgraded to 10.2.0.5 + PSUOCt2011, the procedure still works as expected, but the file in the destination folder becomes 0 bytes, although initially the file from the source directory is nonzero bytes. The procedure contains the following lines which makes the move from the source to the destination file:
UTL_FILE.fcopy ('SRC_DIR', 'file', 'DEST_DIR', 'file');
UTL_FILE.fremove ('SRC_DIR', 'file');
I tried running only the function fcopy by running the query below and I get the same result:
exec utl_file.fcopy ('SRC_DIR', 'file', 'DEST_DIR', 'file');
The weird part is that the procedure completed successfully, and no error message only appears. Even alert logs don't show any errors in this procedure.

After searching for a solution, I found another method called utl_file.frename (...), which can also be used to move the file, so I decided to try it. Here's what I came up with to test:
exec utl_file.frename ('SRC_DIR', 'file', 'DEST_DIR', 'file');
Surprisingly, the file is moved to the destination successfully, and the size remains the same from the source (size of 0 bytes is more). Therefore, I changed the procedure to use only the frename() function, and the procedure now works successfully, with files of size zero is not in the destination.

Is this a bug in the new version of Oracle? This never happens in 10.2.0.4 before the upgrade, and I am very surprised that after the upgrade, this problem appears. Oracle experts, please explain this. Thank you.

Is a known bug (reported bug 12412502, bug 12345982 and Bug 9926478) to 10.2.0.5 patch group which appears only on the HP - UX Itanium platform...

There is a work around, copied the text of Bug 9926478:

WORKAROUND SOLUTION?
===========
Yes

WORKAROUND INFORMATION
======================
Utl_file.fcopy of execution in a PL/SQL procedure.
Workaround is acceptable for the customer.

From My Oracle Support Note ID 1324406.1:

Patch 12345982 (FILE CREATED FROM UTL_FILE VACUUM. FCOPY on HP - UX ITANIUM 10.2.0.5) is currently available.

And in the same note, there is a work around using UTL_FILE. GET_RAW and UTL_FILE. PUT_RAW

But, I think, you already found a better workaround for the cases of displacement... so you can use your workaround or apply the Patch 12345982

Best regards
Alfonso Vicente
[http://www.logos.com.uy/el_blog_de_alfonso]

Tags: Database

Similar Questions

  • Lightroom CC does not work in develop after the upgrade to windows 10

    I have upgraded to windows 10 and now Lightroom CC will not develop after importation of new pictures, but lightroom 5 is fine.

    Alan

    Please check if it works:

    Lightroom 6 + 10 windows--> no longer works. Community customer Photoshop family

    https://feedback.Photoshop.com/photoshop_family/topics/Lightroom-2015-becomes-unresponsive-after-several-minutes-of-use-since-Windows-10-upgrade

    Concerning

    Stéphane

  • Adapter DB of the poll as singleton process does not work as expected

    Poller DB adapater uses to control the transaction all the seconds to the downstream system and I want this poller as singleton process (an instance should be in working order at the same time).

    As suggested in the documents of the oracle, here are the settings that are configured in the composite.xml file.

    < name of service = "polling_Mange_Alert_Events."

    UI:wsdlLocation = "polling_Mange_Alert_Events.wsdl" > "

    " < interface.wsdl interface =" http://xmlns.oracle.com/pcbpel/adapter/db/Application1/int_app_manageAlerts/polling_Mange_Alert_Events#wsdl.interface(polling_Mange_Alert_Events_ptt) "/ > "

    < binding.jca config = "polling_Mange_Alert_Events_db.jca" >

    < property name = "singleton" > true < / property >

    < binding.jca >

    < name = "jca.retry.count property" type = "xs: int" much = 'false' override = "may" > 2147483647 < / property > "

    < name = "jca.retry.interval property" type = "xs: int" much = 'false' "

    Override = "may" > 1 < / property >

    < name = "jca.retry.backoff property" type = "xs: int" much = 'false' "

    Override = 'may' > 2 < / property >

    < name = "jca.retry.maxInterval property" type = "xs: String" much = 'false' "

    Override = "may" > 120 < / property >

    < / service >

    JCA file settings are:

    < name of the adapter-config = "polling_Mange_Alert_Events" = 'Database adapter' adapter wsdlLocation = "polling_Mange_Alert_Events.wsdl" xmlns =" " http://platform.integration.Oracle/blocks/adapter/FW/metadata ">

    < connection-factory location = ' ist/DB/vff-int-was"UIConnectionName ="PT_APPINFRA"adapterRef =" "/ >

    < endpoint-activation portType operation "polling_Mange_Alert_Events_ptt" = "receive" = >

    < className = "oracle.tip.adapter.db.DBActivationSpec activation-spec" >

    < property name = value = "polling_Mange_Alert_Events.ManageAlertEvents" / "DescriptorName" >

    < property name = "Nomrequete" value = "polling_Mange_Alert_EventsSelect" / >

    < property name = "MappingsMetaDataURL" value = "polling_Mange_Alert_Events - or - mappings.xml" / >

    < property name = "PollingStrategy" value = "LogicalDeletePollingStrategy" / >

    < property name = "MarkReadColumn" value = "TRANSACTION_STATUS" / >

    < property name = "MarkReadValue" value = "Treatment" / >

    < property name = "PollingInterval" value = "10" / >

    < property name = "MaxRaiseSize" value = "5" / >

    < property name = "MaxTransactionSize" value = "5" / >

    < property name = "NumberOfThreads" value = "1" / >

    < property name = "ReturnSingleResultSet" value = "false" / >

    < property name = "MarkUnreadValue" value = "pending" / >

    < / activation-spec >

    < / point endpoint-activation >

    < / adapter-config >

    This poller process runs on the environment in clusters (2 soa nodes) and it does not work as expected in the singleton process.

    Please advice to solve this problem?

    I think that, in this scenario, you must use the distributed polling in the DB adapter. You can select in the voting options in the DB adapter configuration wizard.

  • Question of Safari and Chrome. indicates on the navigation screen. "An element of the Protection of the family filter does not work as expected. Restart your computer. If the problem persists, contact support.  Error: failed to hose CPI. »

    Question of Safari and Chrome. indicates on the navigation screen. "An element of the Protection of the family filter does not work as expected. Restart your computer. If the problem persists, contact support.  Error: failed to hose CPI. »

    Quit Safari, Chrome to quit smoking. If necessary Forcequit.

    Start Safari while holding the SHIFT key, select the menu Safari ClearHistory, then after this check that the homepage is the one you want.

    Do the same for Chrome.

    Close all browsers, restart the mac.

  • FRAGMENTATION applied on several logical Tables does NOT WORK as expected

    Dear all,

    I have the below scenario implemented that does not work as expected.

    I have a logic Table LT1 (SUN) which is being implemented based on two physical Tables PT1 and PT2 (PT1 and PT2 are DIMS). LT1 has two of LTS, LTS1 and LTS2 implemented PT1 and PT2, respectively. Fragmentation is applied based on the ID of the system Source the PT1 and PT2 are loaded from different source systems. The granularity of the Tables physical is the same.

    Likewise, we have LT2 (DIM), which is implemented in two Tables of physics more and Fragmentation is applied in the Source systems function ID.

    We have an other TIMES DIM on which fragmentation is not applied.

    All of the above tables are linked to the fact (also physical and logical).

    I filter the data for TIME_DIM. Year = 2014 in all scenarios below.

    Scenario1: This solution works as expected when I shoot columns of LT1, SUN as well as the fact of TIME. (YEAR = 2014 is passed in the WHERE clause of queries UNION ALL 2, which is OK)

    Scenario2: This solution is also works very well when I shoot columns of LT2, SUN as well as the fact of TIME. (YEAR = 2014 is passed in the WHERE clause of queries UNION ALL 2, which is OK)

    Scenario 3: When I pull the LT1, LT2, SUN report, done TIME and filter the data for TIME_DIM. Year = 2014, the report does NOT WORK as expected. (Filter on YEAR = 2014 is not passed in UNION All queries in this scenario)

    When I build the model above (for scenario 3) report, it does not go as planned. Do not throw any error, it displays incorrect as results as physical demand generated by the BI server is not correct. Some of the filters is past the TIME SUN are not injected at the request of physics.

    Someone come in this scenario, no solution to the above is greatly appreciated. Thanks in advance

    Kind regards

    Madhav P.

    This is the bug in OBIEE 11 g of product. Oracle has provided the patch for the same and it is absolutely working fine now.

    Kind regards

    Madhav P.

  • My Photoshop CC 2015 does not work correctly. After I edited some photos and I want to meet one of them, the program Terminates? After reboot, the program charges all files again...

    My Photoshop CC 2015 does not work correctly. After I edited some photos and I want to meet one of them, the program Terminates? After reboot, the program charges all files again...

    Hello

    Make sure that Photoshop is closed.

    1 - go to this place C:\Users\user name\AppData\Roaming\Adobe\Adobe 2015\AutoRecover CC in Photoshop

    You will be able to see all the. PSD file that opens automatically when Photoshop is open, delete or move all the files in this folder.

    2 - restart Photoshop and go to edit > preferences > performance UN check the gpu processor use and restart Photoshop.

    It should be working fine now.

    Thank you

  • iTunes does not recognize my devices after the last update

    iTunes does not recognize my devices after the last update. Has crossed all suggestions from the support page (uninstalling/reinstalling driver USB, remove Lockdown folder and so on) but still no joy. iPhone continues to ask if I want to trust to the connected computer, responding 'Yes' has no effect.

    Help, please

    Thank you

    Cyana

    Found this solution here:

    Re: Does not recognize devices in iTunes on PC

    works very well

  • paid for the subscription, but Muse CC does not work, he asks me the serial number

    paid for the subscription, but Muse CC does not work, he asks me the serial number, any help?

    Hello

    Depending on your operating system, please try the following steps

    Windows

    • Click on the start"" menu. Select "All programs" and then "accessories."
    • Right click on "Notepad" and select "run as Administrator"
    • Click "Continue" on the "Windows needs your permission" dialog box
    • When Notepad opens, click file, and then select open
    • In the file name field, type the following text:
    • C:\Windows\System32\Drivers\etc\hosts
    • If all of the entries in the host file include keywords such as "adobe", remove these entries. These are used for the purchase of licenses Adobe.
    • From the menu, select 'file', 'save' after changing
    • Restart the Muse

    Macintosh

    • Click the "Finder". Select the folder "Applications".
    • Open the "Utilities" folder and select "Terminal".
    • Type the following command:
    • sudo nano/etc/hosts
    • Enter the password associated with the user of the OS when prompted
    • If all of the entries in the host file include keywords such as "adobe", remove these entries. These are used for the purchase of licenses Adobe.
    • Press CTRL + o to save the file
    • Press Ctrl + x to close the file
    • Restart the Muse

    Let me know the result

  • Firefox crashes constantly. I have restart firefox. It does not work. I restart the pc and then reopen firefox. It's still freezing?

    Can anyone suggest a better browser than firefox?
    I'm pretty tired of my browser gel every day. I have restart firefox. It does not work.
    I restart the pc and re-open the browser. It does not work.
    I have uninstall Add ons does not help.
    I just can't keep every day. I show that firefox is updated. 34.0.5

    You can try disabling OMTC and leave hardware acceleration in active Firefox.

    • topic: config page: layers.offmainthreadcomposition.enabled = false

    You can open the topic: config page via the address bar.
    You can accept the warning and click on "I'll be careful" to continue.

    Create a new profile as a test to see if your profile is the source of the problem.

    See "create a profile":

    If the new profile works then you can transfer files from a profile already used in the new profile, but be careful not to copy files corrupted to avoid transporting more problems.

  • Since the upgrade of my new tab does not work, I press on the + icon and nothing

    Since the upgrade of my new tab does not work, I press on the + icon and nothing

    Try Firefox Safe mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that disables certain parameters, disables most Add-ons (extensions and themes).

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • In Firefox 29,0 and above, click on the menu button

      click Help

      then select restart with disabled modules.

    • In previous versions of Firefox, click on the Firefox button in the upper left of the Firefox window and click help (or click on help in the Menu bar, if you do not have a Firefox button) and click on restart with disabled modules.

    If Firefox is not running, you can start Firefox in Mode safe mode as follows:

    • On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac: Hold the option key during the startup of Firefox.
    • On Linux: Exit Firefox, go to your Terminal and run firefox-safe-mode
      (you may need to specify the installation path of Firefox for example/usr/lib/firefox)

    When the Firefox Safe Mode window appears, select "start mode safe."

    If the issue is not present in Firefox Safe Mode, your problem is probably caused by an extension, and you need to understand that one. Please follow the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. This might help others with the same problem.

  • I just recently upgraded to OS El Capitan.  Now, none of my movies to quicktime does not work.  I have the old version of Quick time 7 and it does not work either.  They do not convert.  Help?

    I just recently upgraded to OS El Capitan.  Now, none of my movies to quicktime does not work.  I have the old version of Quick time 7 and it does not work either.  They do not convert.  Help?

    VLC will play them?

    http://www.videolan.org/

  • Yahoo page does not work. It seems that java does not work, but I have the latest version installed. Yahoo email page has all scrambled together all left links

    Yahoo page does not work. It seems that java does not work, but I have the latest version installed. Yahoo email page has all the links scrambled together on the left side of the page. Same thing with face book page. All use them to work properly. 64 Waterfox win 7

    Do not use waterfox, it is not supported and is a non-official version of Firefox that often has known bugs. Downlaod Firefox from www.getfirefox.com, uninstall waterfox, then try again.

  • I want to record with &lt; alt &gt; &lt; s &gt; in the Exact program online. This function does not work. This is the first time I use this program with firefox.

    Question
    I want to record with < alt > < s > in the Exact program online. This function does not work. This is the first time I use this program with firefox.

    edit, escaped mod < s > in order to avoid the line through question

    A web page can be defined a "accesskey" for an item. Unlike IE/Chrome/Safari, who use the Alt key only, Firefox requires pressing Alt and Shift to activate the element. In other words, try

    ALT + SHIFT + S

    and see if it works.

    I don't know of any way to change this so that the change is not necessary. There may be an add-on?

  • My cursor does not work in Blogger using the Safari browser.

    My cursor does not work in Blogger using the Safari browser. I am able to type, but the cursor seems to disappear when I'm in blogger.  It is difficult to navigate if you do not see where is the curse. I used all the other browsers, and this does not happen with them.  In the Blogger help forum other people experiencing the same thing.  He has been as well as a few weeks and I can not say definitively if it coincides with the updates to the OS. Any help would be appreciated.

    I have the same question too! Is there any ideas on how to solve this problem? So frustrating when you can't even say where you are on the page

  • Microsoft Pinball Arcade, everything works except the right flipper does not work when you run the game. __Keyboard is very good

    Microsoft Pinball Arcade, everything works except the right flipper does not work when you run the game.
    Keyboard is fine.  Is this a compatibility issue?

    ---------------

Maybe you are looking for