Create file system directory, no oracle directory

I want to create a directory in the filesystem, example / test / directory1,
I want to create a directory tree example:
/ test / directory1
/ test / dir2
/ test / dir2 / folder
as if a linux mkdir.
Is it possible with sql?
thanks
Greetings

i need Java (jserver) installed in oracle no?,
for load in the database, with this:
declare
f file_type;
fz file_type;
r number;
begin
-- get a handle for the "tmp" directory
f:=file_pkg.get_file('/tmp');
-- create a new temporary directory where the zip archive is being
-- extracted into ... make the filename unique using TIMESTAMP
fz := f.create_dir(+
'zipdir_temp_'||user||'_'||to_char(systimestamp, 'YYYYMMDD_HH24MISS.SSSS')
-- DOIT:
-- extract the zipfile; the -qq switch is very important here - otherwise
-- the OS process will not come back
r := os_command.exec('unzip -o -qq [PATH/TO/ZIPFILE] -d '||fz.file_path);
-- if the result is 0 (=success) load the contents of the temporary directory
-- (recursively) with ONE (!) SQL INSERT command
if r = 0 then
insert into document_table (
select
seq_documents.nextval id,
e.file_path,
e.file_name,
file_pkg.get_file(e.file_path).get_content_as_clob('iso-8859-1') content
from table(file_pkg.get_recursive_file_list(fz)) e
end if;
-- finally delete the temporary directory and its contents
fz := fz.delete_recursive();
end;
sho err
and how install jserver??
Edited by: rafa298 on 05-may-2011 2:22

Similar Messages

  • Procedure  to create file system in AIX  or HP-UX

    hi gurus
    i have to install SAP BI on one HP-UX server. unfortunately the OS admin is not available and i have to cretae file systems too.
    can any one tell me how  to create file systems in HP-UX which are required for SAP installation on Oracle. i know the all the directories required for the installation but i just wonder is it like just create directory like
    /usr/sap/<SID>  and  mount on to any logical volume.  or the procedure is different from what i am thinking
    please help

    thanks kishore.
    such a genious . grt.

  • Unable to create File System Repository manager

    Hello,
    I would like to create File System Repository manager to this path: I have mapped a certain Network drive "
    main-uni-fs1\pictures$" to the Portal Machine and under this machine it appears as drive "N:\", inside it there is a picture folder which I would like to create the mapping to. I tried setting the "Root Directory" value to "N:\" and to "
    main-uni-fs1\pictures$" but I keep receiving an error message at the Repository Component Monitor (see below).
    10X,
    Roy

    Hello Roy,
    1> Create a new path that points to the pictures directory on the system. Enter the path lik
    mypc.myorg.com\pictures
    Under Sys admin -> Sys Config -> KM -> Content MGT -> Global Services -> Network path
    Under the user name and password, enter your username and password
    username whould be entered like domainname\username
    2>Then create a system in for the mypc.myorg.com server under
    Sys admin -> Sys Config -> KM -> Content MGT -> Global Services -> System landscape definitions -> System -> Windows Sytem.
    (Assuming u are acessing a windows sytem from a portal running on windows platform).
    You need to enter system id and description . Kindly remember the system id, since it would be useful in two places while usermapping and creating the file system repository.
    3>create a file system rep mgr under
    Sys admin -> Sys Config -> KM -> Content MGT -> Repository Managers > File System Repository
    Following properties are most important.
    Name , ACL manager cache, Security manager(which you would have to set to W2kSecurity manager)
    prefix(this is the folder name that you will identify your repository with) Widws landscape System (this is the sytem id of step 2) and root directory (network path of first step only in this case enter it like this //mypc.myorg.com/pictures)
    4>Then under user mapping section, you will find you system (the system id of second step) , enter your name as password.
    Initially when you configure your rep manager, you dont need to start ur servlet engine. If you modify any property then you need to re start ur servlet engine.
    These are the steps for creating repository
    If this still does not get resolved. Then kindly read the limitations of creating the file system repository manager in the link that I had posted in my earlier post.
    Thanks and Regards
    Pradeep Bhojak

  • Unable to create File System Repository using Network Path

    Hi All,
    I am trying to create a File System Repository.
    I created a networkpath and windows system and used the same while creating File Repository according to the steps in help.
    With out using Networkpath(i.e.,If I use IP address,I am able to create File System Repository).
    But with the network path,it throws the following error as seen in Component Monitor.
    <b>Startup Error:    The localroot does not exist: C:\usr\sap\IGTE\j2ee\j2ee_00\cluster\server\NWP_001
    My network path is NWP_001
    </b>
    Did any one face this problem?
    Any help please........
    Rgds,
    Santhosh

    Hi,
    I am getting the same error even if I replace(\) by slashes(/).
    I tried on EP6SP12 as well as EP6SP2 and got the same error on both.
    The repository is searching for a folder named with
    n/w path on the portal server itself(i.e, it is searching in the following folder
    <b>C:\usr\sap\IGTE\j2ee\j2ee_00\cluster\server\NWP_001
    My network path is NWP_001</b>),instead of searching on the remote system.
    Can any one help me in solving the problem
    Thanks in Advance.
    Rgds,
    Santhosh

  • Creating File System in SOLARIS

    Hi Everyone,
    We installed SOLARIS in SunFire server. There are 3 hard disks, namely, 0, 1 and 2. Default is zero. We formatted the disk 1 and 2 and now we're having problem creating a file system. Every time we log in to the server we automatically go to disk zero (0), which is the default. How can we create file system in disk 1 and 2?
    We'll appreciate your answers. thank you.
    Regards,
    Eco

    > We installed SOLARIS in SunFire server. There are 3 hard disks, namely, 0, 1 and 2. Default is zero. We formatted the disk 1 and 2 and now we're having problem creating a file system. Every time we log in to the server we automatically go to disk zero (0), which is the default. How can we create file system in disk 1 and 2?
    newfs?
    I'm not sure what you mean with "we automatically go to disk zero..".
    > We'll appreciate your answers. thank you.
    I suggest you take a Solaris class; no offense but if you have no clue how to administer your operating system running a SAP installation on top can be very tedious.
    Markus
    Edited by: Markus Doehr on Sep 16, 2009 11:16 AM

  • How to create file system datagrid in flex web application

    how to create file system datagrid in flex web application

    Hi,
    Check this out:
    http://shigeru-nakagaki.com/flex_samples/FileReference/FileUploadExample2/FileUploadExampl e2.html
    Johnny
    Please rate answer.

  • Permission to create file in directory

    Hi all,
    I want to check permission in directory. ie. if user have permission to create a file in directory.
    how can i check this.
    for testing i wrote this program and i disabled all permissions for user (like read, write ) from security tab of directory properties.
    so i was not able to open the directory
    but it seems that canRead and canWrite are not working
    public class Check {
          * @param args
         public static void main(String[] args) {
              File s = new File("c:/testing/thisdir");
              if (s.exists() && s.isDirectory()) {
                   System.out.println("exists");
                   if(s.canRead()&& s.canWrite()){
                        System.out.println("read n write possible");                    
                   }else{
                        System.out.println("read n write impossible");
              } else {
                   System.out.println("does not exists");
    Output :
    exists
    read n write possibleAny comments why its so...

    hi dcminter ,
    just now changed the code ... and rechecked the permissions also ... and found that program is unable to write file inside directory...it throws following exception "java.io.IOException: Access is denied"
    but still
    canRead and canWrite method returns true ... i dont know why it is so
    public class Check {
          * @param args
         public static void main(String[] args) {
              try {
                   File s = new File("c:/testing/thisdir");
                   if (s.exists() && s.isDirectory()) {
                        System.out.println("exists");
                        if (s.canRead() && s.canWrite()) {
                             System.out.println("read n write possible");
                        } else {
                             System.out.println("read n write impossible");
                        File ss = new File("c:/testing/thisdir/a.txt");
                        ss.createNewFile();
                   } else {
                        System.out.println("does not exists");
              } catch (FileNotFoundException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    }

  • Show tree folder structure of file system directory

    Hi,
    I am new to flex.
    I am using AS3
    I am creating web application.
    I want to show the tree directory structure of the file system similar to what we seen in applet.
    Is there any component in flex, which will do that?
    Can it be possible in web application?
    Thanks,
    Tushar

    Hi,
    Use the FileSystemView class of javax.swing.filechooser
    create an instance of the view and choose the method:
    File root = FileSystemView.getHomeDirectory();as your root file object.
    Maybe you need to do some modifications on your FileTreeModel...
    under windows the desktop node and the first level nodes down from there
    are not real file-objects ...
    Olek

  • Need help with File system creation fro Oracle DB installation

    Hello,
    I am new to Solaris/Unix system landscape. I have a Sun enterprise 450 with 18GB hard drive. It has Solaris 9 on it and no other software at this time. I am planning on adding 2 more hard drives 18gb and 36gb to accommodate Oracle DB.
    Recently I went through the Solaris Intermediate Sys admin training, knows the basic stuff but not fully confident to carry out the task on my own.
    I would appreciate some one can help me with the sequence of steps that I need perform to
    1. recognize the new hard drives in the system,
    2. format,
    3. partition. What is the normal strategy for partitioning? My current thinking is to have 36+18gb drives as data drives. This is where I am little bit lost. Can I make a entire 36GB drive as 1 slice for data, I am not quite sure how this is done in the real life, need your help.
    4. creating the file system to store the database files.
    Any help would be appreciated.

    Hello,
    Here is the rough idea for HA from my experience.
    The important thing is that the binaries required to run SAP
    are to be accessible before and after switchover.
    In terms of this file system doesn't matter.
    But SAP may recommend certain filesystem on linux
    please refer to SAP installation guide.
    I always use reiserfs or ext3fs.
    For soft link I recommend you to refer SAP installation guide.
    In your configuration the files related to SCS and DB is the key.
    Again those files are to be accessible both from hostA and from hostB.
    Easiest way is to use share these files like NFS or other shared file system
    so that both nodes can access to these files.
    And let the clustering software do mount and unmount those directory.
    DB binaries, data and log are to be placed in shared storage subsystem.
    (ex. /oracle/*)
    SAP binaries, profiles and so on to be placed in shared storage as well.
    (ex. /sapmnt/*)
    You may want to place the binaries into local disk to make sure the binaries
    are always accessible on OS level, even in the connection to storage subsystem
    losts.
    In this case you have to sync the binaries on both nodes manually.
    Easiest way is just put on shared storage and mount them!
    Furthermore you can use sapcpe function to sync necessary binaries
    from /sapmnt to /usr/sap/<SID>.
    For your last question /sapmnt should be located in storage subsystem
    and not let the storage down!

  • Creating File System Repository for a remote system

    Hi Experts,
    My requirement is that I need to create a KM repository in EP from where I need to upload documents into the BW system. Is File System Repository the right type of repository which I need to create for this purpose?
    If yes, then in what format do I have to specify the value of the Root Directory property of the repository? I have a folder /data/docs created in the BW system within which I want to upload documents using this repository. But since this folder is located on the BW system which is a remote system for EP, I am not sure how I have to enter the path to this folder.
    Can anyone give me any hints on this?
    Warm Regards,
    Saurabh

    Hello Saurabh,
    I don't think an FS repository is what you are looking for in this scenario, you could instead use a BI Repository Manager, for more information see:
    http://help.sap.com/saphelp_nw70/helpdata/en/43/c1475079642ec5e10000000a11466f/frameset.htm
    Kind regards,
    Lorcan.

  • Export 500gb database size to a 100gb file system space in oracle 10g

    Hi All,
    Please let me the know the procedure to export 500gb database to a 100gb file system space. Please let me know the procedure.

    user533548 wrote:
    Hi Linda,
    The database version is 10g and OS is linux. Can we use filesize parameter for the export. Please advice on this.FILESIZE will limit the size of a file in case you specify multiple dumpfiles. You could also could specify multiple dump directory (in different FS) when given multiple dumpfiles.
    For instance :
    dumpfile=dump_dir1:file1,dump_dir2:file2,dump_dir3:file3...Nicolas.

  • SC 3.0 file system failover for Oracle 8i/9i

    I'm a Oracle DBA for our company. And we have been using shared NFS mounts successfully for the archivelog space on our production 8i 2-node OPS Oracle databases. From each node, both archivelog areas are always available. This is the setup recommended by Oracle for OPS and RAC.
    Our SA team is now wanting to change this to a file system failover configuration instead. And I do not find any information from Oracle about it.
    The SA request states:
    "The current global filesystem configuration on (the OPS production databases) provides poor performance, especially when writing files over 100MB. To prevent an impact to performance on the production servers, we would like to change the configuration ... to use failover filesystems as opposed to the globally available filesystems we are currently using. ... The failover filesystems would be available on only one node at a time, arca on the "A" node and arcb on the "B" node. in the event of a node failure, the remaining node would host both filesystems."
    My question is, does anyone have experience with this kind of configuration with 8iOPS or 9iRAC? Are there any issues with the auto-moving of the archivelog space from the failed node over to the remaining node, in particular when the failure occurs during a transaction?
    Thanks for your help ...
    -j

    The problem with your setup of NFS cross mounting a filesystem (which could have been a recommended solution in SC 2.x for instance versus in SC 3.x where you'd want to choose a global filesystem) is the inherent "instability" of using NFS for a portion of your database (whether it's redo or archivelog files).
    Before this goes up in flames, let me speak from real world experience.
    Having run HA-OPS clusters in the SC 2.x days, we used either private archive log space, or HA archive log space. If you use NFS to cross mount it (either hard, soft or auto), you can run into issues if the machine hosting the NFS share goes out to lunch (either from RPC errors or if the machine goes down unexpectedly due to a panic, etc). At that point, we had only two options : bring the original machine hosting the share back up if possible, or force a reboot of the remaining cluster node to clear the stale NFS mounts so it could resume DB activities. In either case any attempt at failover will fail because you're trying to mount an actual physical filesystem on a stale NFS mount on the surviving node.
    We tried to work this out using many different NFS options, we tried to use automount, we tried to use local_mountpoints then automount to the correct home (e.g. /filesystem_local would be the phys, /filesystem would be the NFS mount where the activity occurred) and anytime the node hosting the NFS share went down unexpectedly, you'd have a temporary hang due to the conditions listed above.
    If you're implementing SC 3.x, use hasp and global filesystems to accomplish this if you must use a single common archive log area. Isn't it possible to use local/private storage for archive logs or is there a sequence numbering issue if you run private archive logs on both sides - or is sequencing just an issue with redo logs? In either case, if you're using rman, you'd have to back up the redologs and archive log files on both nodes, if memory serves me correctly...

  • Decision on File system management in Oracle+SAP

    Hi All,
    In my production system we use to have /oracle/SID/sapdata1 and oracle/SID/sapdata2. Initially there was many datafiles assigned to the table sapce PSAPSR3, few as autoextend on and few as autoextend off. As per my understanding DB02 shows you the information just tablespace wise it will report AUTOEXTEND ON as soon as at least one of the datafiles has AUTOEXTEND ON. In PSAPSR3 all the datafile with autoextend ON are from SAPDATA1 which has only 50 GBs left. All the files as Autoextend OFF are from SAPDATA2 which has 900 GBs of sapce left.
    Now the question is :
    1.Do I need to request for additional space for SAPDATA1 as some of the tablespaces are at the edge of autoextend and that much space is not left in the FS(sapadat1) , then how will they extend? DB growth is 100GB per month.
    2.We usually were adding 10 GB of datafile in the tablespace with 30GB as autoextend.
    Can we add another datafile from sapdata2 this time with autoextend ON and the rest will be taken care automatically.
    Pleae suggest.
    Regards,
    VIcky

    Hi Vicky,
    As you have 100GB/month growth suggestion here would be
    1) Add 2 more mount points sapdata3 and sapdata4 with around 1 TB space.
       This is to distribute data across 4 data partitions for better performance
    2) As sapdata1 has datafiles with auto extend ON, you need to extend the file system to 500 GB atleast so that whenever data is written on datafiles under sapdata1, it will have space to grow using autoextend feature. Without sufficient disk space it may lead to space problem and transaction may result in dump.
    3) No need to change anything on sapdata2 as you already have 900GB free space
    Hope this helps.
    Regards,
    Deepak Kori

  • Unable to see created File System Repository

    Hi,
         I have created a File System Repository following the link below:
    http://help.sap.com/saphelp_nw04s/helpdata/en/e3/92322ab24e11d5993800508b6b8b11/frameset.htm
    I am  not able to do user mapping by going in personalize as I can found my windows System there.
    Do I have to create a new system mwhere else.
    BTW, I am mapping to a remote window system with the KM.
    Please give useful suggestions.
    Points given for problem solving answers.
    Sumit

    Hi,
    Example configuration of a WINDOWS® file system repository manager given in the Help.sap.com.
    Creating System:
    http://help.sap.com/saphelp_nw04s/helpdata/en/e3/92322ab24e11d5993800508b6b8b11/frameset.htm
    Specifying User Mapping:
    http://help.sap.com/saphelp_nw04s/helpdata/en/e3/92322ab24e11d5993800508b6b8b11/frameset.htm
    Senthil K.

  • How to create file in directory

    Hello.
    I have one file in which are names and numbers like:
    name_01
    name_02
    name_03
    Now i want to cut numbers from names and put them in another file so i can check which number is the highest.
    How can i do that?
    Thanks

    Are you running client/server or web..also what version? If you are on trhe web and this is client side manipulation then the webutil package will help.
    See otn.oracle.com/products/forms and click on webutil.
    Regards
    Grant Ronald
    Forms Product Management

Maybe you are looking for

  • My ipod is flashing black and going to the power off screen? Never dropped my ipod, and did not get liquid in it?

    I always make sure to take good care of my ipod, I have no warrnety, It has not been 3 years yer, never spilled anyhting on it nor did i drop/crack it. It happened randomly. Why would this happen...I have restored it tow times and yet happens, it fla

  • BI beans sample code installation

    hi i am new to olap i installed oracle9i enterprise server with olap option. i updated it to 9.2.0.06 with patch. i installed Bussiness Inteligent Bean package. then i try to instlled BI beans samples It's giving me errors about OLAP_USER i checked O

  • PI7.0 and 7.1 certification

    Hi  Experts,          This is a question to all those who know about PI7.0 and 7.1 certification.I wish to know , the BIT402 and 403, are they some study material/ soft/hard copy or some kind of hands on training. Please tell me because some body tol

  • Missing Component in 8.02

    I just started getting a message that iTunes cannot open due to a missing component (-42404). This is a mystery to me. I did an arhive and install recently, but that should not affect my apps, should it?

  • Dedicated Server against Shared Server

    I have a server on which we have installed several clients database isntances. Recently there were several performance issue for one of the client at which time I heard that was becasue of their instance is an shared server and if make it dedicated t