How to CREATE a DIRECTORY using local directory

Hi all

I want to get some data to the local computer from the remote database service, so I use a stored procedure to get these date and save them in a file before you perform the procedure, I have to CREATE a DIRECTORY ensures that the path of the file.

I use to CREATE a DIRECTORY on the local computer OCCI using, as: "CREATE or REPLACE DIRECTORY MSGDIR AS 'C:\test'" and I can't find the file in C:\test, I found the answer on the internet about this problem, it seems that use to CREATE a DIRECTORY on the database of service rather than on the local computer.

Anyone know how to CREATE the local directory to use?
Or give me advice to get the data to the local computer in my case?

Best regards.
It looks that CREATE DIRECTORY use the directory on the database service rather than local machine.

Exactly. Where it States Furthermore?

Anybody knows how to CREATE DIRECTORY use local directory?
Or have any advice to get data to local machine in my case?

1 all simply cannot do it. It is not possible, because this would be a serious security breach.
2 of course, you can share the directory on the server to the network and configure a share on your local machine.
It's so simple, most people think about it.
You might also consider using Apex or utl_http directly.

-----------
Sybrand Bakker
Senior Oracle DBA

Tags: Database

Similar Questions

  • How to create IT strategy using the BES administrator API

    Hi all

    Can tell me, how to create IT strategy using the BES administrator API.

    Please provide me with the code example.

    Thanks in advance.

    Kind regards

    Sampath

    Hi Sebastian,.

    The Administration of BlackBerry API does not support the creation of it political. This feature is currently with the development of control and review for a future version of the BlackBerry Web Services for the Administration of the company.

    Kind regards

  • How to create screen saver using the java bean

    Hi all

    can someone knows how to create screen saver using java beans?

    Thanks in advance.
    Sarah

    It is a strange requirement, but you can go

    A TIME-NEW-FORM-INSTANCE:

    DECLARE timer_id Timer;
     one_minute NUMBER(5) := 60000;
    BEGIN
     timer_id := CREATE_TIMER('chnage_color', one_minute, REPEAT);
    END; 
    

    WHEN-TIMER-EXPIRED:

    DECLARE
         RandomR NUMBER(10):=dbms_random.value(1,256);
         RandomG NUMBER(10):=dbms_random.value(1,256);
         RandomB NUMBER(10):=dbms_random.value(1,256);
    BEGIN
    
     SET_CANVAS_PROPERTY('CANVAS2',BACKGROUND_COLOR, 'R'||RandomR||'G'||RandomG||'B'||RandomB);
    END; 
    
  • How to create several data on local storage scsi stores

    Hi all

    If you have a host ESX 3.5 local scsi storage with how you create multiple data warehouses. I would like to create 2 data warehouses. One for my virtual machine and one for my ISO. I tried 2 partitions VMFS3 partitioning at the time of the creation of ESX but when I remove the storage to rename it it only allow me to create 1 data store? Is this possible?

    Is there a downside to simply create a folder in 1 ISO called data store and empty my iso files it?

    I would also like to point out that I have only 1 raid controller

    you will need to manually partition the free space of the Service Console using fdisk.

    If its only for a store, I wouldn't bother.

    Just create a folder like you said yourself, without inconveniences, except that you have to watch out you don't fill your data with the ISOs and other stuff store.

  • How to create the custom using Javascripts in PLM for Agile process validator

    I have already created customized using ASP.Net validators. But now I need to create custom using Javascript validator.

    Please provide me the details

    1. how to create custom validator and where to create?

    2 provide me with code samples for custom validators javascripts

    Thank you

    Floquet

    I am currently using 6.1.1.5

  • How to create the report using the procedure.

    Hi all

    I want to create the report in the apex. But I don't have a sql code. I have a single procedure. Is it possible to create the report using this procedure in the apex.

    CREATE OR REPLACE PROCEDURE headcsv_prc2

    AS

    CURSOR cr_header

    IS

    SELECT ood.organization_code, fm.formula_no AS "FORMULA_NAME."

    FM.formula_vers AS "FORMULA_VERSION."

    FM.formula_desc1 AS "FORMULA_DESC."

    DECODE (fm.formula_status,

    100, 'new ',.

    400, "approved for use in the laboratory."

    700, "allow the general."

    800, "We Hold."

    900, "frozen."

    1000, "obsolete/archived.

    ) AS "FORMULA_STATUS."

    DECODE (fd.line_type, '1', msib.segment1).

    DECODE (fd.line_type, '-1', msib.segment1 ') ingrediant.

    DECODE (fd.line_type, '2', msib.segment1) AS "BY_PRODUCT."

    DECODE (by_product_type,

    "W', 'waste."

    "R',"rework. "

    "Y', 'Yield."

    The of ', 'Sample. "

    NULL VALUE

    ) AS "BY_PRODUCT_TYPE".

    Of org_organization_definitions ood,.

    fm_form_mst fm,

    fm_matl_dtl fd,

    mtl_system_items_b msib

    WHERE ood.organization_id = fm.owner_organization_id

    AND fm.owner_organization_id = msib.organization_id

    AND msib.organization_id = fd.organization_id

    AND fd.organization_id = ood.organization_id

    AND fm.formula_id = fd.formula_id

    AND msib.inventory_item_id = fd.inventory_item_id

    - and fm. FORMULA_NO like '% THE % '.

    AND fd.line_type IN ('1 ', ' 2', '-1' ")

    Ood.organization_code GROUP,

    FM.formula_no,

    FM.formula_vers,

    FM.formula_desc1,

    FM.formula_status,

    FD.line_type,

    MSIB. Segment1,

    by_product_type

    ORDER BY fm.formula_no, fm.formula_vers;

    BEGIN

    Dbms_output.put_line (INITCAP ('the ORGANIZATION CODE')

    || ','

    || INITCAP ('NAME FORMULA')

    || ','

    || INITCAP ('FORMULA VERSION')

    || ','

    || INITCAP ('FORMULA DESC')

    || ','

    || INITCAP ('FORMULA STATUS')

    || ','

    || INITCAP ('PRODUCT')

    || ','

    || INITCAP ('INGREDIANT")

    || ','

    || INITCAP ("PER PRODUCT")

    || ','

    || INITCAP ('PER TYPE OF PRODUCT")

    );

    FOR ch IN cr_header

    LOOP

    Dbms_output.put_line (ch.organization_code

    || ','

    || ch.formula_name

    || ','

    || ch.formula_version

    || ','

    || '"'

    || ch.formula_desc

    || '"'

    || ','

    || ch.formula_status

    || ','

    || ch. Product

    || ','

    || ch.ingrediant

    || ','

    || ch.by_product

    || ','

    || ch.by_product_type

    );

    END LOOP;

    EXCEPTION

    WHILE OTHERS

    THEN

    Dbms_output.put_line (' No error: ' |) SQLCODE. "Error Msg: ' '.

    || SQLERRM

    );

    END;

    EXEC HeadCSV_Prc2



    Thank you

    Rambeau

    Hi Christian,

    In addition to the fact that the Oracle database has an internal Java engine and it would be possible for Apex call a Java stored procedure, the Apex really has nothing to do with Java. To create a report, you discovered, you specify a SQL query. In certain circumstances, you can embed a query in a PL/SQL function, but the incorporation of an arbitrary Java application and waiting for it to be called from Apex for a kind of security is there with the fairies.

    I recommend you research the Apex and then enter your so-called "higher authorities" how things work.

    Concerning

    André

  • How to create vSwitch distributed using vicfg-vswitch?

    I was looking for to vSphere command-line Interface documentation to create the vswitches distributed using the CLI.

    http://www.VMware.com/support/developer/VCLI/

    But I couldn't find a way. So I would like to know, is it possible to create a dvSwitches using the CLI?

    If it is not possible through CLI, then what is the opposite?

    Unfortunately, my development environment is always downwards, otherwise I can whip up a small example.

    But when you say it is no examples around, there are actually many examples using the SDK including the vSphere SDK for Perl. If you look at the source code of the any orders vCLI, you will notice that they are all written in Perl, and it is not surprising, he uses the vSphere SDK for Perl. Yes, there may be no examples for each use unique case or operation that can be performed against a host ESX/ESXi and vCenter, which is the same for given PowerCLI, the functionality is there in the API.

    If you are new to VMware SDK/API and is interested to develop or create your own scripts, I'd take a glance at this document first - Getting Started with vSphere SDK - Update for SDK 4.1 release. Depending on your comfort level, you will choose an appropriate SDK (vSphere SDK for Perl, PowerCLI, VI Java, c#, .NET, etc.) to the script or program in. Some SDK will be easier to learn as PowerCLI, VMware has done a great job using the Powershell language to abstract much of the complexity of the vSphere API made it really simple to jump to the right, if you still need to understand what is happening and how the operations are actually called. The default value 100-200 + cmdlets cover most of the basic use cases, but once you start getting into more complicated scenarios, then you need to really understand the vSphere API to extend the functionality, including things like creating a vDS and distributed of the exchanges, etc.

    Here is a guide on getting started with vSphere SDK for Perl - Getting Started with vSphere SDK for Perl and here a collection of vSphere SDK for Perl scripts that I've written scripts repository vGhetto. Another excellent resource is the forums for developers as well as for the vSphere various API/SDK - http://communities.vmware.com/community/developer

    Bottom line is, everything that can be done via vSphere Client can be done using the API vsphere and with one of the vSphere SDK, it can still be trivial, but the functionality is there, you can simply create it if there isn't an example/sample code.

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    Twitter: @lamw

    repository scripts vGhetto

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    VMware Code Central - Scripts/code samples for developers and administrators

    VMware developer community

    If you find this information useful, please give points to "correct" or "useful".

  • How to create this site using Dreamweaver?

    I just finished a course of the basics of Dreamweaver and I would like to enter into a more advanced stage.

    This is the site I want to create:

    www.safaribig5.com

    Could someone please help me understand whether it is possible to create a website using Dreamweaver? If so, HOW?

    Thank you.

    The cursor is a plugin called Galleria

    http://Galleria.IO/

    The image gallery is a plugin called Flowslider jQuery

    http://www.flowslider.com/

    The page is a fundamental provision of 2 columns fixed centered width.

    http://ALT-Web.com/templates/CSS-Basic-2-column-layout.shtml

    Having said all that, you need to learn the theory of web design of base first and all that you can in HTML & CSS. He had to learn.

    HTML CSS & Web Design theory tutorials.

    http://www.html.NET/

    http://w3schools.com/

    http://www.csstutorial.NET/

    http://webdesign.tutsplus.com/sessions/Web-design-theory/

    Nancy O.

  • How to create a certificate using the keytool / terminal?

    I have problems with the creation of certificates using the Terminal. I use the instructions below and exactly all the information required. When he asks me to type 'Yes' and confirm, the whole process starts right at the beginning over and over and I have to type in the same things. Do I did wrong? How can I confirm the information I typed in?

    I'm trying to create a certificate to sign the apps for GooglePlay and Amazon. I use professional DPS.

    Thanks for the help!

    Directions for use:

    (Mac OS) Create a certificate using Keytool

    Open Terminal, located in Applications > utilities.

    Type (or paste) the following line (replace "myname.key.p12" with the actual name of your certificate):

    1

    keytool - genkey - v - keystore myname.key.p12 - alias alias_name - keyalg RSA - keysize 2048 - stores pkcs12-validity 10000

    The "10000" specification sets the expiration date after 22 October 2033.

    Enter and enter a password. Until the Viewer constructor supports the creation of custom Android applications, it is necessary to share this password with Adobe. Create a password that you can share.

    Follow the prompts to specify the certificate information.

    When you are prompted to confirm the choice, enter Yes and press return to use the same password.

    A certificate is created in your quick location, such as your user name folder. Copy the certificate file to a known location. Note the password as well.

    It could be access question. Enable the root user, and then try again.

  • How to create a signature using a business card in Windows Live Mail?

    I want to know how to create a business card to signature in Windows Live Mail 2011. I already know how to create a signature. I want to know how to create a signature with graphs, etc.

    You will find detailed instructions on this page: create a signature with a picture

  • How to create the report using pass-in parameters

    Hi all

    I want to create a report using the parameters passed from the previous page. Let's take an example:

    Now in page B, he got 2 parameters P1_Table, P1_column, from Page A, I want to get the report:

    Select * from P1_Table, where P1_column like 'test % ';

    This means that I want to get the date in the P1_Table table and its P1_column begins with the character 'test'.

    I tried to use dynamic sql in the source of the region, but failed.

    Please help me

    Thanks in advance.


    PPMonkey

    Published by: PPMonkey on January 4, 2009 12:53 AM

    Hello

    Ensure that the report is a "SQL (body of function from PL/SQL returning the SQL) query. Then, use a source of something like:

    DECLARE
     vSQL VARCHAR2(4000);
    BEGIN
     vSQL := 'SELECT * FROM ' || v('P1_TABLE') || ' WHERE ' || v('P1_COLUMN') || ' LIKE '''test%''';
     RETURN vSQL;
    END;
    

    Andy

  • How to create a directory of companies in Muse?

    Does anyone have advice or instruments suggested for the creation of a community business directory in Adobe Muse?  Specifically, a directory that can be found both in alphabetical order by company name and categorically by business type.

    Cannot be done with Muse just at that moment, but you have a few options:

    1: host to Business Catalyst (eCommerce Plan) and use BC webApps - best solution

    2: host the directory itself on a server supporting PHP and then provide the list of directory in a page using an iFrame

  • How POST (create) a folder using CMIS REST in Webcenter

    Someone has already tried to create a new folder using calls to the CMIS REST/Atom in Webcenter?

    Here's what I'm trying to do:
    http://172.31.100.150:7001 / cmisrestprelim, cmis, children, MyContentServer == > POST (using the REST client plugin Firefox)

    Content-Type = application/atom + xml

    <? XML version = "1.0" encoding = "utf-8"? >
    < Xmlns = "http://www.w3.org/2005/Atom" entry
    xmlns:cmisra = "http://docs.oasis-open.org/ns/cmis/restatom/200908/".
    xmlns:CMIS = "http://docs.oasis-open.org/ns/cmis/core/200908/" >
    mytestfolder < title > < /title >
    < cmisra:object >
    < cmis:properties >
    < cmis:propertyId propertyDefinitionId = "cmis:objectTypeId" > < cmis: value > cmis:folder < / cmis: value > < / cmis:propertyId >
    < / cmis:properties >
    < / cmisra:object >
    < / Entry >

    This piece of code should create a folder called "mytestfolder" in the root directory.
    When I this POST, I get the following internal server error:
    < pre > javax.servlet.ServletException: com.sun.jersey.api.container.MappableContainerException: com.bea.content.RepositoryException: Please specify a valid ID object. Make sure that the name of the repository is not null.
    at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:310)
    at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:314)
    at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:239)
    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at com.bea.content.manager.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:178)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:94)
    ...........

    Someone has any idea how to solve this problem?

    The entry atom you post must have an createable (cmis:objectTypeId) file type, for example:


    xmlns:cmisra = "http://docs.oasis-open.org/ns/cmis/restatom/200908/".
    xmlns:CMIS = "http://docs.oasis-open.org/ns/cmis/core/200908/" >
    mytestfolder


    / usbohp380-10 / IDC:Folder


    To search for a folder can be created, you'll want to do a GET on a URI as follows:
    http://172.31.100.150:7001/cmisrestprelim/cmis / typesChildren/MyContentServer/cmis:folder
    Which returns an atom feed with entries atom.
    Each of these entries will be a child type in cmis:folder, and when you inspect each entry, you will be looking for a w /.
    true

    I have never had much luck using web browsers for strolling through the AtomPub type links.
    There might be a rest client tool or a tool customer atom that will allow you to see the actual xml text that is returned.

    If you're going to do a lot w / CMIS, it would be interesting to look at the specifications:
    http://docs.oasis-open.org/CMIS/CMIS/v1.0/CS01/CMIS-spec-v1.0.html
    And documentation accompanying Oracle:
    http://www.Oracle.com/technetwork/middleware/WebCenter/documentation/e15813-01-128494.PDF

  • How to create the database using the command line?

    Hi all

    Win7
    10g or 11g

    I want to create a new database using a script.

    I set up my new SID and oracle_home.

    Then sqlplus / DBA.

    then I execute a common script...
    startup nomount;
    create database PRODB
           logfile group 1 ('z:\oradata\PRODB\redo01.log',
                            'z:\oradata\PRODB\redo01b.log') size 50M,
                   group 2 ('z:\oradata\PRODB\redo02.log',
                            'z:\oradata\PRODB\redo02b.log') size 50M,
                   group 3 ('z:\oradata\PRODB\redo03.log',
                            'z:\oradata\PRODB\redo03b.log') size 50M,
                   group 4 ('z:\oradata\PRODB\redo04.log',
                            'z:\oradata\PRODB\redo04b.log') size 50M
           character set AL32UTF8
           datafile 'z:\oradata\PRODB\sysPRODB.dbf' size 500M
           sysaux datafile 'z:\oradata\PRODB\auxPRODB.dbf' size 300M
           undo tablespace undo
                   datafile 'z:\oradata\PRODB\undoPRODB.dbf' size 100M
           default temporary tablespace temp
                   tempfile 'z:\oradata\PRODB\tempPRODB.dbf' size 150M;
    @/opt/app/oracle/product/10.2.0/db_1/rdbms/admin/catalog.sql;
    @/opt/app/oracle/product/10.2.0/db_1/rdbms/admin/catproc.sql;
    connect system/manager;
    @/opt/app/oracle/product/10.2.0/db_1/sqlplus/admin/pupbld.sql;
    exit;
    
    
    
    SQL> startup nomount;
    ORA-12560: TNS:protocol adapter error
    SQL> create database PRODB
      2         logfile group 1 ('z:\oradata\PRODB\redo01.log',
      3                          'z:\oradata\PRODB\redo01b.log') size 50M,
      4                 group 2 ('z:\oradata\PRODB\redo02.log',
      5                          'z:\oradata\PRODB\redo02b.log') size 50M,
      6                 group 3 ('z:\oradata\PRODB\redo03.log',
      7                          'z:\oradata\PRODB\redo03b.log') size 50M,
      8                 group 4 ('z:\oradata\PRODB\redo04.log',
      9                          'z:\oradata\PRODB\redo04b.log') size 50M
     10         character set AL32UTF8
     11         datafile 'z:\oradata\PRODB\sysPRODB.dbf' size 500M
     12         sysaux datafile 'z:\oradata\PRODB\auxPRODB.dbf' size 300M
     13         undo tablespace undo
     14                 datafile 'z:\oradata\PRODB\undoPRODB.dbf' size 100M
     15         default temporary tablespace temp
     16                 tempfile 'z:\oradata\PRODB\tempPRODB.dbf' size 150M;
    I always hit it

    SQL > startup nomount;
    ORA-12560: TNS:protocol adapter error

    But if I run it on Linux is good.


    Help, please...


    Thank you very much

    zxy

    yxes2013 wrote:

    I want to create a new database using a script.

    Suggestion. DBCA allows to generate the database model and use the option "+ Save as scripts + ' (no need to create the database).

    In the scripts directory, there will be a couple of shell and SQL scripts to create the database. Use them as your CLI model for the creation of a custom database. (I guess that DBCA works the same on Windows as it does on Linux).

    Another option, if you are using Oracle XE, is to copy ORACLE_HOME/bin/createdb.sh (probably a + .cmd on Windows) script and change for use. If you manually add non-XE features to the script (such as the installation of the Java virtual machine) If you want a database of SE or EE. (whereby DBCA scripts are a better answer).

  • How to create a chart using two independent loops while?

    Hello world

    I'm currently developing a program for the acquisition of data. In this program, I have two independent, while loops that each output a number of type double with each iteration of the loop. I am able to successfully create two independent waveform graphs (data / time) for each of the loops when placed inside. However, I now want to create a live data xy chart (the output of a loop is x and the output of the other is there).

    I have a problem, that the distinct nature of loops... When I try to extract data outside of the loop (naturally), it is not refresh with each iteration of the loop causing the graph xy does not work in the way I intend. Is there an easy way to solve this problem? If more clarification is needed, please let me know!

    David

    If the two loops are not synchronized, exactly how do you do the xy graph, where each point, by definition, must have a value of each loop.

    1. updated when updates or the other value and combine with the last value from the other loop?
    2. updated on a constant basis with the current value of each loop?
    3. ... There are many other possibilities.

    #2 is the easiest. Simply create a third loop with a reasonable time and graph the two values via local variables. You probably also should limit the history of ranking somehow.

Maybe you are looking for