Create directory error on a VMS system

Ok, I am trying to load some date into a CLOB field within a small table I have created. Here is how I attempted to accomplish this and the result (and to add insult to injury, it is on a VMS system!):
CREATE TABLE js_holder (
js_name varchar(30),
js_body CLOB );
CREATE DIRECTORY foos as 'USR$DISK:[CLEMENSD.SQL_EDIT]';
CREATE OR REPLACE PROCEDURE Load_CLOB IS
dest_clob CLOB;
in_file BFILE := BFILENAME('foos', 'supernote.js');
dst_offset number := 1 ;
src_offset number := 1 ;
lang_ctx number := DBMS_LOB.DEFAULT_LANG_CTX;
warning number;
BEGIN
DBMS_OUTPUT.ENABLE(100000);
INSERT INTO js_holder(js_name, js_body)
VALUES('supernote', empty_clob())
RETURNING js_body INTO dest_clob;
DBMS_LOB.OPEN(in_file, DBMS_LOB.LOB_READONLY);
DBMS_LOB.LoadCLOBFromFile(
DEST_LOB => dest_clob,
SRC_BFILE => in_file,
AMOUNT => DBMS_LOB.GETLENGTH(in_file),
DEST_OFFSET => dst_offset ,
SRC_OFFSET => src_offset,
BFILE_CSID => DBMS_LOB.DEFAULT_CSID,
LANG_CONTEXT => lang_ctx,
WARNING => warning );
DBMS_LOB.CLOSE(in_file);
COMMIT;
DBMS_OUTPUT.PUT_LINE('Loaded File using DBMS_LOB.LoadCLOBFromFile.');
END;
then the following:
SQL> set serveroutput on
SQL> exec Load_CLOB
SQL> exec load_clob
BEGIN load_clob; END;
ERROR at line 1:
ORA-22285: non-existent directory or file for FILEOPEN operation
ORA-06512: at "SYS.DBMS_LOB", line 672
ORA-06512: at "BANINST1.LOAD_CLOB", line 13
ORA-06512: at line 1
SQL>

Wow you've sure got a lot of threads going on this one (Ok Waz zup? and VMS, create directory and the chamber of secrets
My first question is have you checked to ensure that the file and directory permissions will allow oracle to read the file you want? Have you tried dumping your supernote.js file in the jobsub directory, or chaning it's (and/or the directories) protections?
From the documentation for create directory: "Oracle Database does not verify that the directory you specify actually exists. Therefore, take care that you specify a valid directory in your operating system. In addition, if your operating system uses case-sensitive path names, be sure you specify the directory in the correct format."

Similar Messages

  • Can not create directory error while creating database

    i am creating database using dbca in oel but when i try to do so i get an error saying can not create directory pawii
    and pawii is the sid
    actually oracle is installed on u01 and i am creating database in u02
    but this error is not allowing me to create database but when i try to create database in uo1 the database installed successfully but this is not happening when i try to create database in another mount point u02

    987018 wrote:
    so finally i had solved the problem myself as people like rukbat are very unhelpful in nature here
    all we had to do is we had to change the group of the folder to oracle and oinstall where we are going to create our new database :)Actually he tries to be quite helpful. But sometimes the help you need isn't the help you want.
    "When you need me but do not want me, then I must stay. When you want me but no longer need me, then I have to go." (Nanny McPhee)

  • Creating Directory Errors

    I get two error messages when I try to install 7.1
    After itunes installs the update and it is going through it's last step (looks almost complete), I get the following error:
    "An error occurred while attempting to create the directory:
    C:\WINDOWS\Installer\{50D8FFDD-90CD-4859-841F-AA1961C7767A}"
    After I click on cancel, another box appears with this message:
    "The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2330."
    I've updated my windows software and removed itunes from my computer prior to this install, but still no luck. Suggestions?

    Hi,
    In general I don't have problems creating folders in my directory. However, I can't locate a C:C:\WINDOWS\Installer\ folder. When I try to creat a folder called "installer" in the windows directory, i get an error saying the file already exists.
    I do see a folder in c:\windows\ called "Downloaded Installations". It has the installer packages for ipod and itunes from successful updates over the years.
    I tried to create a folder called {50D8FFDD-90CD-4859-841F-AA1961C7767A} in the "Downloaded Installations" folder. I was able to create the folder, but the iTunes update still didn't work. I ended up getting the same error message, but this time it had a different number than the one above (the 50D8FFDD-etc....number).
    What should I do next? I really appreciate the help.
    Are you getting errors about creating folders there?
    Try creating the folder where you get the errors.
    "An error occurred while attempting to create the
    directory:
    C:\WINDOWS\Installer\{50D8FFDD-90CD-4859-841F-AA1961C7
    767A}
    If you can't create the above folder by hand then its
    possibly a permission problem. I don't think the run
    as adminstrator works well. So make sure you are in
    the adminstrators group or logged in as the admin.

  • Creating directory

    How can I create directory(folder) in the file system with pl/sql. I know you can create file or write in to a file, in any folder in file system with utl_file. but what about creating a folder then a file in to it.

    depending on your os/oracle version, you can use dbms_scheduler to do that.
    ex in AIX5L/10.2.0.2
    $ cat /tmp/x            
    #!/bin/ksh
    mkdir /tmp/xxx
    SQL> exec dbms_scheduler.create_job(job_name=>'createdir',job_type=>'EXECUTABLE',job_action=>'/tmp/x',start_date=>sysdate,enabled=>true)                                       
    PL/SQL procedure successfully completed.or you can use java

  • VMS, create directory and the chamber of secrets

    Ok, here I am bumbling around in the dark. Here is the scenario I am developing an application using PL/SQL under the constraints of the SCT Banner web form system. The Banner function calls create the web page on the fly from data obtained with PL/SQL. What I would like to do is incorporate a java function into the web page. The only method available to me is via Banners function call twbkfrmt.p_printmessage (my_string); Here is the 'Plan' (caution: may be seriously flawed). I thought I could store my java code in a the CLOB field of a table, access it with a cursor and insert the code into the generated web page like so: twbkfrmt.p_printmessage (my_java_from_the_CLOB); I am having troubles loading the .js into my table. Here is how I attempted to accomplish this and the result (and to add insult to injury, it is on a VMS system!):
    CREATE TABLE js_holder (
    js_name varchar(30),
    js_body CLOB );
    CREATE DIRECTORY foos as 'USR$DISK:[CLEMENSD.SQL_EDIT]';
    CREATE OR REPLACE PROCEDURE Load_CLOB IS
    dest_clob CLOB;
    in_file BFILE := BFILENAME('foos', 'supernote.js');
    dst_offset number := 1 ;
    src_offset number := 1 ;
    lang_ctx number := DBMS_LOB.DEFAULT_LANG_CTX;
    warning number;
    BEGIN
    DBMS_OUTPUT.ENABLE(100000);
    INSERT INTO js_holder(js_name, js_body)
    VALUES('supernote', empty_clob())
    RETURNING js_body INTO dest_clob;
    DBMS_LOB.OPEN(in_file, DBMS_LOB.LOB_READONLY);
    DBMS_LOB.LoadCLOBFromFile(
    DEST_LOB => dest_clob
    , SRC_BFILE => in_file
    , AMOUNT => DBMS_LOB.GETLENGTH(in_file)
    , DEST_OFFSET => dst_offset
    , SRC_OFFSET => src_offset
    , BFILE_CSID => DBMS_LOB.DEFAULT_CSID
    , LANG_CONTEXT => lang_ctx
    , WARNING => warning
    DBMS_LOB.CLOSE(in_file);
    COMMIT;
    DBMS_OUTPUT.PUT_LINE('Loaded File using DBMS_LOB.LoadCLOBFromFile.');
    END;
    then the following:
    EOUTST> set serveroutput on
    EOUTST> exec Load_CLOB
    EOUTST> exec load_clob
    BEGIN load_clob; END;
    ERROR at line 1:
    ORA-22285: non-existent directory or file for FILEOPEN operation
    ORA-06512: at "SYS.DBMS_LOB", line 672
    ORA-06512: at "BANINST1.LOAD_CLOB", line 13
    ORA-06512: at line 1
    EOUTST>

    Is the directory owned by the same schema that owns the procedure?
    If not did you GRANT READ and WRITE to the proc's schema?
    If so then you might want to create a simple external table to confirm that your directory and permissions are valid.

  • Error 7 occurred at Create Folder in Create Directory Recursive.vi-

    Recieved following message when attemoting to create source distribution
    Error 7 occurred at Create Folder in Create Directory Recursive.vi->ABAPI Dist Create Directory Recursive.vi->ABAPI Dist Chk for Destinations.vi->ABAPI Copy Files and Apply Settings.vi->SDBEP_Invoke_Build_Engine.vi->SDBUIP_Build_Invoke.vi->SDBUIP_Build_Rule_Editor.vi->SDBUIP_Item_OnDoProperties.vi->SDBUIP_Item_OnDoProperties.vi.ProxyCaller
    Possible reason(s):
    LabVIEW:  File not found. The file might have been moved or deleted, or the file path might be incorrectly formatted for the operating system. For example, use \ as path separators on Windows, : on Mac OS, and / on Linux.

    Hello,
    Could you please list which options you are selecting when building a
    source distribution (I am assuming you are using LabVIEW 8.0?).
    Do you get this error when clicking on "Generate Preview" button when configuring source distribution properties?
    Under "Distribution Settings" category, could you try checking the
    "Disconnect type definitions and remove unuses polymorphic VI
    instances" option and see if that helps with the build process?
    Also I suggest Mass Compiling your VIs (Tools -> Advanced -> Mass Compile) before creating a source distribution.
    If these do not help, could you attach your project with all the VIs it contains here?
    Thank you and best regards,
    Shakhina P.
    Applications Engineer
    National Instruments

  • Backup failed with Error: (-50) Creating Directory

    Repeats ad nauseum.
    This is backing up to a second internal drive that is an exact duplicate (in terms of HD model and size).
    Does anyone know what Error -50 means? Lack of permissions? Invalid name (doesn't seem like it)?
    8/30/08 9:06:37 AM /System/Library/CoreServices/backupd Starting standard backup
    8/30/08 9:06:37 AM /System/Library/CoreServices/backupd Backing up to: /Volumes/Sliffy Time/Backups.backupdb
    8/30/08 9:06:58 AM /System/Library/CoreServices/backupd Error: (-50) Creating directory 2008-08-30-090658.inProgress
    8/30/08 9:06:58 AM /System/Library/CoreServices/backupd Failed to make snapshot container.
    8/30/08 9:07:03 AM /System/Library/CoreServices/backupd Backup failed with error: 2

    Hi Glenn,
    Thanks for the suggestion. Nope, it's not listed. The only thing listed is my Time Machine volume.
    After a reboot, Time Machine seems to be working. It's making backups on schedule and the logs look good, not reporting any strangeness.
    A bit bummed about these phantom errors that go away on reboot. I'll keep on eye on the error/reboot frequency.
    Rob

  • CREATE DIRECTORY Does not Create Any Directory in My File System Hard Disk

    create or replace directory emp_dir
    as 'D:\emp_direc';
    Main Question:
    *1. Transaction succeeded, but i have not seen emp_direc created in my D: drive. I'm running Vista Home Edition x32. Any idea why directory does not show up?*
    Optional:
    Extra info:
    after creating a directory i did: - avoid comment sign
    --create table oldemp ( fname char(25), lname char(25) )
    --organization external
    --(type oracle_loader
    -- default directory emp_dir
    -- access parameters
    -- ( records delimited by newline
    -- nobadfile
    -- nologfile
    -- fields terminated by ','
    -- (fname position(1:20) char,
    -- lname position(22:41) char)
    -- location ('emp.dat')
    --parallel 5
    --reject limit 200;
    Table created successfully, then I did
    describe oldemp;
    Name NULL Type
    FNAME CHAR(25)
    LNAME CHAR(25)
    2 rows selected
    Extra questions:
    *2. emp.dat carries all the table data which can make data more portable to different oracle servers. However, it is one time operation, once table is populated, i can not update, insert, delete any rows. Thats what i know, if i'm wrong please let me know. If what i said is true, just confirm it if you don't mind...*
    *3. Parallel 5, allows five oracle servers to deal with the emp.dat file at the same time. So won't there be any conflict! Maybe one server wants to read a certain data while the other server wants to delete it. Can you clarify please....*

    user11164565 wrote:
    create or replace directory emp_dir
    as 'D:\emp_direc';
    Main Question:
    *1. Transaction succeeded, but i have not seen emp_direc created in my D: drive. I'm running Vista Home Edition x32. Any idea why directory does not show up?*
    <snip>
    From the fine SQL Reference Manual found a tahiti.oracle.com, in the prerequisites for the CREATE DIRECTORY command:
    For file storage, you must also create a corresponding operating system directory, an ASM disk group, or a directory within an ASM disk group.
    Your system or database administrator must ensure that the operating system directory has the correct read and write permissions for Oracle Database processes.
    Privileges granted for the directory are created independently of the permissions defined for the operating system directory, and
    the two may or may not correspond exactly. For example, an error occurs if sample user hr is granted READ privilege on the directory object but
    the corresponding operating system directory does not have READ permission defined for Oracle Database processes.

  • SelectTransport: creating directory failed: Win32Exception: root of directory to create not found: The system cannot find the path specified. [0x00000003]

    USMT is failing with error 71 for all users in a specific office when backing up to a specific share:
    COMPUTERNAME\Guest, administrator: No, interactive: Yes, logged on: No, has profile: No
    DOMAIN\USERNAME, administrator: Yes, interactive: Yes, logged on: Yes, has profile: Yes
    COMPUTERNAME\Administrator, administrator: Yes, interactive: Yes, logged on: No, has profile: Yes
    2014-10-31 12:52:37, Status [0x000000] Activity: 'MIGACTIVITY_TRANSPORT_SELECTION'
    2014-10-31 12:52:37, Info [0x000000] Processing the settings store
    2014-10-31 12:52:37, Error [0x000000] SelectTransport: creating directory \\san.f.q.d.n\share$\username\BACKUP\USERNAME\USMT failed: Win32Exception: root of directory to create not found: The system cannot find the path specified. [0x00000003] class UnBCL::DirectoryInfo *__cdecl UnBCL::Directory::CreateDir(const class UnBCL::String *)[gle=0x00000005]
    2014-10-31 12:52:37, Info [0x000000] Failed.[gle=0x00000091]
    2014-10-31 12:52:37, Info [0x000000] A Windows Win32 API error occurred
    Windows error 3 description: The system cannot find the path specified.[gle=0x00000091]
    2014-10-31 12:52:37, Info [0x000000] Windows Error 3 description: The system cannot find the path specified.
    2014-10-31 12:52:37, Info [0x000000] USMT Completed at 2014/10/31:12:52:37.861[gle=0x00000091]
    2014-10-31 12:52:37, Info [0x000000] Entering MigShutdown method
    2014-10-31 12:52:37, Info [0x080000] COutOfProcPluginFactory::FreeSurrogateHost: Shutdown in progress.
    2014-10-31 12:52:37, Info [0x0803e5] Not unmapping HKLM\ELAM; it is not mapped
    2014-10-31 12:52:37, Info [0x0803e6] Removing mapping for HKLM
    2014-10-31 12:52:37, Info [0x0803e7] Successfully unmapped HKLM
    2014-10-31 12:52:37, Info [0x0803e6] Removing mapping for HKU
    2014-10-31 12:52:37, Info [0x0803e7] Successfully unmapped HKU
    2014-10-31 12:52:37, Info [0x080487] Destroying OS analysis service
    2014-10-31 12:52:37, Info [0x080488] Destroyed OS analysis service
    2014-10-31 12:52:37, Info [0x000000] Leaving MigShutdown method
    2014-10-31 12:52:37, Info [0x000000] ----------------------------------- USMT ERROR SUMMARY -----------------------------------
    2014-10-31 12:52:37, Info [0x000000] * USMT error code 71:
    2014-10-31 12:52:37, Info [0x000000] +-----------------------------------------------------------------------------------------
    2014-10-31 12:52:37, Info [0x000000] | A Windows Win32 API error occurred
    2014-10-31 12:52:37, Info [0x000000] | Windows error 3 description: The system cannot find the path specified.
    2014-10-31 12:52:37, Info [0x000000] +-----------------------------------------------------------------------------------------
    As the user in question, when I browse \\san.f.q.d.n\share$\username, the BACKUP directory exists, but there are no sub directories.
    I manually created the sub directories, USERNAME\USMT - so the full path now exists: \\san.f.q.d.n\share$\username\BACKUP\USERNAME\USMT
    I re-ran USMT but the process returned the same error.
    If I specify other shares not on san.f.q.d.n but on san1.f.q.d.n or server.f.q.d.n or even workstation.f.q.d.n, it works fine.
    Can someone provide guidance on how to troubleshoot this further?

    In Windows, setting the Environmental Variable sometimes DOES NOT WORK.
    The -Djava.io.tmpdir=C:\temp setting must be made in the server properties of the oc4j in order for it to work.
    Jae

  • Error in creating directory

    i am using the following command to create a directory in Oracle:-
    CREATE OR REPLACE DIRECTORY DATALOAD AS ‘D:\temp\udump’
    ERROR at line 1:
    ORA-00911: invalid character
    How, can we remove the error? Please, help in solving the doubt.
    regards

    For eg., the directory 'DATALOAD' is not showing under D:\temp\udump path.Alas you have misunderstood the purpose of DIRECTORY objects in Oracle. They are a way of referring to OS paths abstractly, for instance in calls to UTL_FILE or when creating External Tables.
    This is useful for all sorts of reasons. It's safer and easier that setting UTL_FILE_DIR in the init.ora parameters. It's hand if we want our application to run on different operating systems, or just on servers with different directory structures.
    What CREATE DIRECTORY does not do is actually create the OS directory; it's just creating a mapping. You have to create the OS directory yourself, using the tool appropriate to your platform, Explorer in your case.
    Cheers, APC
    Blog : http://radiofreetooting.blogspot.com/

  • Error while creating a support message in satellite system

    Hi,
    I am facing an error while sending a support message to solman form the satellite system
    (( Error Description :  Error in Local Message System: Error when opening
    an RFC connection Message was Not Created ))
    1) I gone through various threads and set the required authorizations like
    SAP_SUPPDESK_CREATE and
    SAP_SV_FDB_NOTIF_BC_ADMIN ,
    SAP_SUPPDESK_ADMIN
    for the user in the solman .
    2) I checked the RFC connection and it is working fine.
    Anyone pls help me to resolve this issue

    hi rohit,
    thanks for u r immmediate response
    do i have to assign the roles to the user in the satellite system or the solman.
    some roles in those 4 roles are not in the satellite system.
    thanks
    Rahul

  • Error creating Service Desk Message in Satellite System

    Hi all
    We have two satellite system from which I want to create a Support Message. With my current profile/role and can do it from one system and not from the other system. I get "Error in local message system, message xxx not complete". I dont think it is an Authotization fault, but not sure.
    How should the Number ranges be setup for more than one satellite system?
    Thanx
    Jaco Snyman

    Hi Tina
    This was my answer in a previuos thread:
    Hi all
    I also struggled with this for 2 weeks. But the problem is fixed.
    Do your "normal: config from the IMG and then:
    1) Make sure that you have selected for the system NOT to check for the User in SolMan
    tr: DNO_CUST04, Go to Detail, Select the field NO_USER_CHECK, "X", this is very important, otherwise you will have to create a username for everyone on the satellite system... far too timeconsuming.
    2) In your satellite system under OSS_MSG: Col1:Application: OSS_MSG, Col2: + : W. Col3: RFC Destination: SM_"SOLMANRFC"_BACK. Col4: + : CUST620. COl5: + : 1.0
    In the Solman side you maintain Col3 as "NONE".
    3) Make sure that ALL users in the satellite system has the following roles: SAP_SUPPDESK_CREATE and SAP_SV_FDB_NOTIF_BC_ADMIN.
    4) Make sure that you have TRUSTED RFC to and from your Satellite system and Solution Manager.
    The main one to be sure of is: SAP_ALL for all SOLMANxxx user in the Solution Manager system for every satelite system, because the standard roles from SAP does not work.
    This should have your Service Desk Messaging working.
    Jaco Snyman

  • Error while assigning Business Systems in Integration Directory

    Hi,
    I'm getting an error when trying to assign the business systems in the integration directory.
    The error i'm getting exactly is "access to object list of type BusinessSystem using the internalEOAService BusinesSystemAccessor failed " .
    I've cleared the SLD_cache and checked it but the same error.
    The business systems are appearing when i tried the transaction code SLD_CHECK and is in green status.
    what might be the error.

    Hey
    just want to make sure,are u using communication channel with party or without party.
    also make sure that user has sufficient authorizations
    http://help.sap.com/saphelp_nw04/helpdata/en/c4/51104159ecef23e10000000a155106/content.htm
    Thanx
    Ahmad
    Message was edited by:
            Ahmad

  • Geting error while creating a dir through CREATE DIRECTORY command

    Hi Gurus,
    When I'm trying to create a dir through this command with logged in as SYS
    CREATE DIRECTORY pump_dir AS 'd:\temp\pump_dir';
    I'm getting the error
    Error starting at line 1 in command:
    CREATE DIRECTORY pump_dir AS 'd:\temp\pump_dir'
    Error at Command Line:1 Column:18
    Error report:
    SQL Error: ORA-00955: name is already used by an existing object
    00955. 00000 - "name is already used by an existing object"
    Any ideas how I can create a dir and grant access to a different user.
    Thanks
    Amitava.

    amitavachatterjee1975 wrote:
    I checked and there is no such directory. I guess it is not that simple, the error I mean.Actually it is , please see,
    ORA-00955:     name is already used by an existing object
    Cause:     An attempt was made to create a database object (such as a table, view, cluster, index, or synonym) that already exists. A user's database objects must have distinct names.
    Action:     Enter a unique name for the database object or modify or drop the existing object so it can be reusedSo as Sb mentioned, check that which object is using the same name that you are trying to assign to this directory object and either rename or drop the object if you want to use the same name only. If not, you can always use another distinct name for this directory object .
    Aman....

  • Error creating a new project in trial system

    I recently registered for a trial system to check Netweaver Gateway and build some sample services. Unfortunately could able to create a new project and being challenged with attached error"You are not authorised to create a new project "
    Does this mean the trial system/demo system only allows to consume the sample services but not create new services?

    Yes. demo system only allows to consume sample services. see this discussion How to create new gateway services using SAP Gateway demo system
    Regards,
    Chandra

Maybe you are looking for

  • How to find out the user who has created  a new field in the custom table.

    How to find out the user details who has created  a new field in the custom table. Thanks, Joan

  • Calendar in ios7 on ipad not showing correct month.

    After updating to ios 7 on my iPad with Retina the calendar app will not show the correct month in the future. If I scroll back in time the months will change correctly. ie: The name of the month at the top and the dates will change correctly. If I s

  • Install Errors

    All, I am performing a silent install of Oracle 10g r2 and noticed in my install log file two errors. Error: Cannot add user to application access ACL No mapping between account names & security IDs was done. (534) Error: Cannot add user to applicati

  • Outside PDF transfer from iBook to nook

    I recently bought a travel guidebook online from an outside source other than iTunes. However, when asked what program I wanted to use to open it I chose iBook. Since the book I downloaded was in PDF format I can not highlight portions of it using iB

  • Amount display transaction VK13

    VK13. I am looking at a certain condition record in transaction VK13, when i see the output in the table control in the amount field i have a percentage value e.g. 2 and in the unit fields i have '%'. The amount value is picked from the table KONP-KB