error with utl_file for user... !

SET OF BUFFER 1000000
SET SERVEROUTPUT ON
coil LMG_DBmigration_log.log
Declare
V_File UTL_FILE. TYPE_DE_FICHIER;
V_Dir VARCHAR2 (4000);
V_Filename VARCHAR2 (2000);
BEGIN
V_Dir: = "DATAMIGRATION";

DBMS_OUTPUT. Put_line ('start...');

v_filename: = 'LMG_DBmigration_out.txt ';
V_File: = UTL_FILE. FOPEN (v_dir, v_filename, 'w');

DBMS_OUTPUT. Put_line ("open file... '");

UTL_FILE. Put_line (V_File, 'hey..');
UTL_FILE. Put_line (V_File, 'I am pc...');

UTL_FILE. FCLOSE (v_file);
EXCEPTION
WHILE OTHERS THEN
DBMS_OUTPUT. Put_line ("an unexpected error: ' |") substr (SQLERRM, 1, 100));

End;
/

spool off
pause
"exit";
------------------------------------------------------------------------------------------

When running command, I get error like below...

sqlplus co/co@LMGCO AS SYSDBA @Test_UTL.sql

o/p-

beginning...
Unexpected error: ORA-29283: invalid file operation
ORA-06512: at
'SYS. UTL_FILE", line 488
ORA-29283: invalid file ope

PL/SQL procedure successfully completed.
------------------------------------------------------------------------------------------

kindly help me, if there is no problem with the question of privilege user, then please erase me how to fix it...

Published by: PC on November 26, 2010 05:56

>
Yes... "D:\test_co" exists in the local computer and I connect to another server with the help of tnsname.ora
>
This is the reason why you get the error message. Oracle search folder "D:\test_co" of the computer server database and not from your local computer.

You must go to the "172.18.86.10" computer and see what records there. If necessary create a folder "\test_co" somewhere in this remote computer. Then your code wil lstart of work afterwards and folder is created on the remote computer, not on your local computer.

Tags: Database

Similar Questions

  • Error - exception error not supported for user - Help!

    Hi all

    I get an exception error unsupported to the user in a part of my page is refreshed after encountering a validation error.  Validation is managed properly, but when the page is refreshed to display I get an exception error not support for the user for the following code (generates the value of the element on the page):

    < code >

    Select nvl (sum (po_details.po_det_amt), 0)

    of po_details

    where po_details.po_id =: P230_PO_ID

    and po_details.wbs in (select distinct wbs_number_id of wbs, project

    where wbs.vendor_id =: P230_VENDOR

    and substr (wbs.wbs_number_id, 1, 6) = project.wbs_sequence

    and project.project_number = nvl (:F101_FPC_NUMBER,project.project_number));

    < code >

    When the code retrieves a single value, the following post calculation calculation of:

    < code >

    to_char(:P230_PO_AMT_FPC,'FML999G999G999G999G990D00');

    < code >

    Generally, the process works.  It is only when a validation run which prevents the removal of a purchase order that I encounter an error during a refresh of the page.  I get an exception error unsupported to the user for this calculation.  I'm puzzled.

    Any ideas?

    to_char(:P230_PO_AMT_FPC,'FML999G999G999G999G990D00');

    AFAIK - all within the APEX bind variables are of type VARCHAR2

    That means - you are implicitly expressing a string to a different data type just to cast to a string.

    So: this code is completely useless and adds more complication to the mix only what you need.

    It is very possible that Oracle is trying to convert a DATE... (which will fail)

    I put either the FORMAT for the type of element to match what you need or make the conversion from the string in your SELECT statement.

    for example

    Select to_char (nvl (sum (...), 0), "FML999G999G999G999G990D00")

    If you still get a 'user defined error', it is likely to be lifted since within the procedure used to remove the PO.

    See the DEBUGGING within the APEX pages to check exactly where the error is thrown.

    (it sounded like you already did and have reduced in to_char() section)

    MK

  • Semantic error with ProC for a given package


    Hello

    We now move to Oracle 11 g 2, and I encounter an error during precompilation of our code for ProC.  The error is S-PLS-00201, identifier "XXXXXX" must be declared.

    Let me explain what I'm doing.

    The identifier in question is a package.  The owner of this package is a schema user1 user.  In the same instance of the database, I have another user of schema, user 2.

    Granted User1 RUN to USER2.  And a SYNONYM was created for User2.  So now connect with USER2 with SqlDeveloper, I see the synonym of the given package.

    When precompiling with ProC, I use the SQLCHECK = SEMANTICS USERID=USER2/PWD@INSTANCE.

    Other indicators are: DBMS = V8 CHAR_MAP = VARCHAR2 ireclen = 80 oreclen analysis 80 = NONE select_error = no = NO maxliteral = 1024 maxopencursors = 10 TLigne = NONE release_cursor = YES

    That's when I get the error.  I need to connect with User2, because it is the main schema, and only a package is in another schema.  But if I change the username for ProC User1 and precompile only the part of the code that need USER1, it works (same package here, but in the scheme of the owner).  It seems that there is a problem with the GRANT.

    Does anyone have an idea?

    Thank you.

    Jessy Saint.

    Of course, it's the ovious.  The grant has been removed from someone else, something of another test.  The problem with the large dev teams using the same databases...

    Thanks again.

  • Error with several owners user ID: ImageFrame owned bt PagePageItem and BaseLink

    After you install the update of Muse, I run my site work active and immediately saved the file. But I get the error message: uid with several owners: ImageFrame owned bt PagePageItem and BaseLink. And the program of the muse stops.

    Anyone know what it is.

    There is a problem in the original .muse file. Muse made a diagnosis of the State of the file in the framework of Save as. That check detects a problem that unfortunately requires that we take a closer look and the manual of repair by cracking open the file. (You will get a similar error if you had made a save as in the previous version.)

    Please send us the .muse file at [email protected] as well as a link to this topic. If the file is larger than 20 MB, you can use a service like Adobe SendNow, Dropbox, WeTransfer, etc. (if you use a service, please include your email address in the body of the message back, given that not all services to include it in the invite sharing they send.)

  • Error with FOP for report printing in Apex 3.2.1

    We try to use FOP deployed to the GlassFish community, but after you have configured as described in the quick guide to the applicaton to allow the report printing; We get the following error

    There is no such thing as 'package oracle.xml.parser.v2'

    We are running GlassFish on Debian 5.0 (Lenny)

    All help appericated :)

    Hello

    I had the same problem and I downloaded OracleSupportFiles.zip from Oracle. It contains xmlparserv2.jar who works with FOP.

    Published by: YPP on 2010-10-15 08:19

  • File generated with utl_file with the owner of the different operating system.

    Hello
    I'm trying to generate a file with utl_file for a procedure with the other proprietary operating system. When I call sqlplus procedure, the file has oracle and oinstall group as the owner. I create another user of the os and I want to when I call the procedure for this user to have this new user as the owner.
    I put this procedure in cron and the file have new user as long as owner, but when I call this procedure from sqlplus, the generated file have os oracle as the owner user.
    What I can do.
    Thanks in advance.

    Published by: danut68 on October 1st, 2009 04:17

    because the task has a manual task of change-the-owner after you have created the file?

    Maybe this link will prove of some help: http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1254397858882+28353475&threadId=524589

    In regard to "special request"... why? What is the reason for your PM wanting to make this special request?

  • access denied for user access to/users/weblogic/_portal/dashboard of path

    Hello world

    I installed 11.1.1.6 OBIEE. Until yesterday, everything worked well. But today, I made a new RPD and restarted BI services.

    Then after that when I open MonTableauDeBord it is throwing the following error

    "access denied for user/users/weblogic/_portal/dashboard path available.

    One faced this question earlier? Please give me some suggestions to overcome this problem.

    Thanks in advance.

    If possible, remove the weblogic and weblogic.atr folder and restart the BI services

    Either using Catalog Manager, change the permissions

    Published by: svee on July 31, 2012 11:28

  • Access denied for user access path...

    I created the new filter by copying an existing and making some changes. I created this as an Admin user. However, when connect as a tester, I get the error "access denied for user to the path... /.. '. /.. "/ New filter.

    I think I might have to grant the privilege to this user to the filter. But I am not able to know how I can do.

    Help, please.

    Thank you.

    give access to shared folders were the filter is stored in the user, because the common filters were stored there only.

    Thank you
    Vino

  • "error opening file for writing" C:docume~1\user\LOCALS~1\Temp\OpenCandy\OCSetupHlp.dll, as I am trying to install a program.

    I come with a message "error opening file for writing" C:docume~1\user\LOCALS~1\Temp\OpenCandy\OCSetupHlp.dll, as I am trying to install a program.

    Any ideas what is happening?

    Thank you

    Hi and thanks for your time.

    The program was an application to create your own music

    I don't have any problem installing other applications programs...

    The solution was a scan with malware bytes who discovered infected with the registry data.

    So I deleted it and after running a lot on the line scans, I deleted the program, I wanted to install.

    Everything is still better then...

  • Error "this file has no program associated with it for performing this action. An association in the SET ASSOCIATIONS of Crete Control Panel

    Original title: file Association.

    File association.  I am trying to create a delivery company in a direct line between doba.com, and ebay.  I get an error when I try to export.  The error "this file has no program associated with it for performing this action.  An association in the SET ASSOCIATIONS of Crete Control Panel.  I don't know how to do this.

    Great, I can help you right now.  Just open your C:\Users\Peggy\Downloads folder.  While you're looking at him, make a right click on the file icon and choose 'Open with', then "Choose program" you can get the Notepad in the list.

    Here is an example. This example is Windows 7, so it seems a little different, but the steps are the same:

    1. Right click on the file
    2. Go to "open with".
    3. Choose "Notepad."  If Notepad is not listed, use the option "choose by default" to find Notepad instead.

    This will open the file for you to view the data inside.

  • I need to change the master password on laptop, the other user went abroad, and I can't get in touch with him for weeks

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Hello

    If your account is an administrator account, you can change the password of another user account in the Control Panel/users.  There is also the account by default in safe mode that is not normally protected by except defined by a user.

    Otherwise, you will have to wait for the user to return. It is against the policy of Microsoft for users of the forum help others in circumvention of password and other security measures.

    Good luck, Rick Rogers, aka "Crazy" - Microsoft MVP http://mvp.support.microsoft.com Windows help - www.rickrogers.org

  • I want to connect to a computer laptop win 7 with a xp pc, but she keep asking for user and pass?

    I want to connect to a computer laptop win 7 with a xp pc, but she keep asking for user and pass?

    Hi Maysambagheri,

    The description of the problem seems a little unclear and I wish I had a better understanding before you start working on it. I would really appreciate if you could answer the following questions:

    1. how you try to connect with two computers?

    2. What is the error message that is accurate or complete?

    3. do not connect you to your Windows 7 laptop as administrator?

    4. have you made any recent hardware or exchange of software on your computer before the show?

    Please provide us with more information on the specific question to help you to fix as soon as possible.

    For reference:

    Networking of computers running different versions of Windows:

    http://Windows.Microsoft.com/en-us/Windows7/networking-home-computers-running-different-versions-of-Windows

    Your response is very important for us to ensure a proper resolution. Please get back to us with the information above to help you accordingly.

  • Get ORA-00942 error with the clause, but not when the user sys.

    Hello

    About 3 weeks ago we increased our memary to PGA_aggregate_target = 60 GB, SGA_target = 58 GB Oracle instance. About 1 week ago our cognos user started having errors ORA-00942 for these queries generated with clause, with the same authorization. i.e.

    with 'aBmtQuerySubject4' as
    (select "BANK_NOTE_ADI_INFO_T". ' ' PRINT_BATCH_ID ' 'PRINT_BATCH_ID '.
    'BANK_NOTE_ADI_INFO_T '. ' ' PROCESS_RUN_DT ' 'PROCESS_RUN_DT '.
    'BANK_NOTE_ADI_INFO_T '. ' ' RDP_ID ' 'RDP_ID '.
    'BANK_NOTE_ADI_INFO_T '. ' ' FI_ID ' 'FI_ID '.
    'BANK_NOTE_ADI_INFO_T '. ' ' DEPOSIT_NB ' 'DEPOSIT_NB '.
    'BANK_NOTE_ADI_INFO_T '. ' ' PROCESS_MACHINE_ID ' 'PROCESS_MACHINE_ID '.
    'BANK_NOTE_ADI_INFO_T '. ' ' OUTPUT_STACKER_TYPE_CE ' 'OUTPUT_STACKER_TYPE_CE '.
    'BANK_NOTE_ADI_INFO_T '. ' ' PARTITION_KEY ' 'PARTITION_KEY '.
    'BANK_NOTE_ADI_INFO_T '. ' ' LOAD_ID ' 'LOAD_ID '.
    'BANK_NOTE_ADI_INFO_T '. ' ' SERIAL_NUMBER_ID ' 'SERIAL_NUMBER_ID '.
    'BANK_NOTE_ADI_INFO_T '. ' ' SHIFT_NB ' 'SHIFT_NB '.
    'BANK_NOTE_ADI_INFO_T '. ' ' BANK_NOTE_COUNT_NB ' 'BANK_NOTE_COUNT_NB '.
    of "BOISI '." BANK_NOTE_ADI_INFO_T' 'BANK_NOTE_ADI_INFO_T '.
    )
    'CountResultQuery5' as
    (select count ("aBmtQuerySubject4". "BANK_NOTE_COUNT_NB") 'C_1' "
    , count (1) 'C_2' of 'aBmtQuerySubject4 '.
    After having count (*) > 0)
    Select 'CountResultQuery5 '. "' C_2 ' 'Count1.
    of 'CountResultQuery5 '.
    ;


    with 'aBmtQuerySubject4' as
    (select "BANK_NOTE_ADI_INFO_T". ' ' LOAD_ID ' 'LOAD_ID '.
    of "BOISI '." BANK_NOTE_ADI_INFO_T' 'BANK_NOTE_ADI_INFO_T '.
    )
    'CountResultQuery5' as
    (select count ("aBmtQuerySubject4". "LOAD_ID") 'C_1' "
    , count (1) 'C_2 '.
    of 'aBmtQuerySubject4' having count (*) > 0
    )
    Select 'CountResultQuery5 '. "' C_2 ' 'Count1' of 'CountResultQuery5 '.
    ;

    -output like:

    'BANK_NOTE_ADI_INFO_T '. ' ' PROCESS_RUN_DT ' 'PROCESS_RUN_DT '.
    *
    ERROR at line 3:
    ORA-00942: table or view does not exist


    of "BOISI '." BANK_NOTE_ADI_INFO_T' 'BANK_NOTE_ADI_INFO_T '.
    *
    ERROR at line 3:
    ORA-00942: table or view does not exist

    Since 2 days ago, we get ORA-0403.

    One thing I noticed that the coguser can run above queries correctly after they are run by a user sys...

    Could you please help me on how I can resolve ORA-00942 error?

    Thank you very much, much in advance for all your help and your advice! :-)

    Jihong.

    "One thing I've noticed the coguser can run over queries correctly after they are run by a user sys... »

    Jihong,

    Do you mean that queries can be run successfully as a sys user, or as long as once a sys cognos user user has run the query at least once?

    Gerard

  • communication error with the server. callback failed for the data entry page

    Hello

    We have recently applied the corrective update EMP on EMP 11.1.2.0 111.2.1.
    We have following the architecture,

    database server: sql server 2005
    Server Foundation (OS = windows server 2008): HSS, EPMA, Manager Calc, EAS, EIS, provider's server, planning
    Essbase Server (OS = windows server 2008): essbase

    After you apply the patching EMP 11.1.2.1, we apply after Electrodes for IE 9 compactibility i.e EMP 11.1.2.1.600 patches

    1. patch 14119724 (Workspace)
    2 14142678 patch (Shared services)
    3 patch 14224664 (EPMA)
    4 patch 14464109 (planning)

    After you apply above patches, all users get error when opening planning web form through the workspace of all client computer.

    "* error communication with the server. callback failed for the data entry page. "




    When restore us only planning patch 14464109 , issue of "communication error with the server. callback failed for the data entry page "get resolved for all users, but failed for a single user IE"user xyz" "

    the user xyz have OS = windows 7 and IE 8
    user xyz can take foundation server RDP can open any form of planning successfully in vain get when doing the basic machine.

    I have following question:
    1. Why do we get error "error communicating with the server. callback failed for the data entry page"after you apply the fixes to IE9

    2. after cancellation all patches or planning one patch, why the user xyz always get the error but not other users


    Thanks in advance

    Published by: 922755 on June 7, 2013 16:08

    It might be useful to have a read of the following doc Oracle Support - "error:"error Communication with the server. " "Callback failed for the data entry page" when you open a Web form of planning with the members of the Type of text [ID 1392689.1].

    And then this question should be resolved en.600

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Error messages displayed with params for ViewController project

    Hello
    I use Jdev 11.1.1.5.0.
    I'm posting of warning/error messages on the user interface form managed bean using the syntax, subsequently

    FacesContext.getCurrentInstance () .addMessage (null, new FacesMessage (FacesMessage.SEVERITY_ERROR, 'ERROR_MESSAGE', 'ERROR_MESSAGE'));

    ERROR_MESSAGE has its description in the Bundle.properties file.

    I want to see the description of the message with the settings and parameter values going running.

    for example: product {productName} is not allowed to the customer {customerName}.

    I know how go ADF BC but I want the same behavior of Managed beans.

    Please help find the solution...

    Thanks in advance
    Nag

    Hello

    Try this:

    MessageFormat msgFormat = new MessageFormat("ERROR_MESSAGE");
    Object[] paramVals = new Object[]{"ParamVal1", "paramVal2"};
    String formattedMsg = msgFormat.format(paramVals); //Get the formatted message with arguments replaced with values
    FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, formattedMsg, formattedMsg));
    

    Jean Lou

Maybe you are looking for