How to create folders through PL/SQL  -  Urgent Please

Hi,
We are using Oracle 9i on Windows NT. Is there any way to create a folder in a specified directory through PL/SQL?
Thank you.

Well,
You can and you can't. I don't know how to do that through existing PL/SQL utilities. But, you can create your own utility using java, and wrapping it so you can call it from PL/SQL.
An example of calling Operating System commands can be found in this zip file
http://www.ckamco.com/Execute_Command.zip
Please let me know if this helps at all.
Thanks
TwoPigs

Similar Messages

  • How To Create User through Pl SQL Block

    Want to create user from pl sql block using dynamic SQl. Used dbms_sql package . But when I run the block it does not recognises the parameter v7 which is a constant in dbms_sql package. Message displayed is Can not access parameter from package being restricted procedure.
    Is there any method to create user through PL SQl block

    hi ranjit,
    hope this will work
    declare
    uname varchar2(30):=&uname;
    pword varchar2(30):=&pword;
    begin
    execute immediate ('grant connect, resource to '| |uname| |' identified by '| |pword);
    end;
    regards

  • How to create and user Temporary Table ( Urgent Please )

    i want to use temporary table in Oracle, how can i use it in Stored procedure, Please explain it with any Example, Please also clear that If more then one user can access the same stored procedure then what will be behavior of Temporary table, is it manage for its session, i want to manage it on every session. when store procedure call temporary table create and when finish then demolished.

    It depends on what you mean by a temporary table. If you are coming form a Sybase/Sql Server background where you would do something like:
    SELECT * INTO #my_temp
    FROM some_table
    WHERE some_condition
    GO
    UPDATE #my_temp
    SET some_column = some_calculated_value
    GO
    SELECT *
    FROM #my_temp
    WHERE some_other_conditionthen you could use in-line views instead of the temporary table.
    SELECT col1,col2,some_calculated_value
    FROM (SELECT *
          FROM some_table
          WHERE some_condition)
    WHERE some_other_conditionYou should be able to do this directly in a stored procedure, as long as you have some way to process or return the result set.
    If your processing is so complex that you cannot do it in straight SQL (and remember, Oracle handles multi-table joins much better that Sybase and SQL Server), then you need to look at Global Temporary Tables.
    You would declare a Global Temporary Table outside of the stored procedure (that is create it once and use it over and over), then use it in you stored proc just as you would a regular table. When you create the table, you have a choice of creating it as:
    ON COMMIT PRESERVE ROWS which means that any data you put in the table will persist for the length of your session, or
    ON COMMIT DELETE ROWS which will empty the table every time you issue a commit;
    The rows in the GTT are visible only to the session that put them there, and are removed when that session ends at the latest.
    HTH
    John

  • How to create a database in sql?

    My question is how to create a database in sql?

    entrant wrote:
    My question is how to create a database in sql?
    as Iam a beginner
    =================================================
    Learning how to look things up in the documentation is time well spent investing in your career.  To that end, you should drop everything else you are doing and do the following:
    Go to  docs.oracle.com.
    Locate the link for your Oracle product and version, and click on it.
    You are now at the entire documentation set for your selected Oracle product and version.
    BOOKMARK THAT LOCATION
    Spend a few minutes just getting familiar with what is available here. Take special note of the "books" and "search" tabs. Under the "books" tab (for 10.x) or the "Master Book List" link (for 11.x) you will find the complete documentation library.
    Spend a few minutes just getting familiar with what kind of documentation is available there by simply browsing the titles under the "Books" tab.
    Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what kind of information is available there.
    Do the same with the SQL Reference Manual.
    Do the same with the Utilities manual.
    You don't have to read the above in depth.  They are reference manuals.  Just get familiar with what is there to be referenced. Ninety percent of the questions asked on this forum can be answered in less than 5 minutes by simply searching one of the above manuals.
    Then set yourself a plan to dig deeper.
    - *Read a chapter a day from the Concepts Manual*.
    - Take a look in your alert log.  One of the first things listed at startup is the initialization parms with non-default values. Read up on each one of them (listed in your alert log) in the Reference Manual.
    - Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files. Go to the Network Administrators manual and read up on everything you see in those files.
    - *When you have finished reading the Concepts Manual, do it again*.
    Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.
    =================================

  • How to create folders for photo albums

    How to create folders for photo albums?

    More detail please?  Are you talking about photos synced to the Photos app in the iPad, or photos taken by the iPad camera, emailed to it or added by a camera kit? Have you checked the User Guide for this - availble through the IPad Manuals link at the very start of this forum?

  • How to create a database in Sql server management studio

    how to create a database in Sql server management studio

    One method is to run the SQL statement below from a SSMS query window:
    CREATE DATABASE MyDatabase;
    You can also right-click on the Databases node in SSMS Object explorer and select New Database.
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • How to create CATALOG with MS SQL Server?

    Connection class has getCatalog(strCatalog) method. In order to use it, we must create CATALOG in Database?
    How to create CATALOG with MS SQL Server?
    Help me, please!!!

    You do not create these for any database, this is part of the Connection metadata.
    The Catalog is the third level of table-like database object qualification as in "Catalog.Schema.Table". For SQLServer the qualification scheme is "Database.Owner.Table" and I would be surprised if they reported anything for the current connections getCatalog() method call.
    What many people do is avoid table qualification altogether by setting the connection's context in a database proprietary manner and then keeping the SQL as clean as possible. For many ODBC and JDBC drivers this can be set in the configuration. For MS SQLServer you can also execute a "USE dbname" statement on the connection to avoid table qualification.

  • How to create po through batch run

    Hi,
    how to create po through batch run (through background job)
    Prashanth

    Hi Prashanth ,
    Run the below program as a background job.
    Make sure that inforecord exists for all and automatic PO are ticked in Vendor and Material Master.
    Program : RM06BB30
    Create a suitable variant.
    Job Creation : Tcode : SM36
    Regards
    Ramesh Ch

  • How to create VPN through tunnel

    how to create vpn through tunnel
    Navaz       

    can you be a little bit more specific what you wnat to achieve?
    Don't stop after you've improved your network! Improve the world by lending money to the working poor:
    http://www.kiva.org/invitedby/karsteni

  • How to create folders in video app in IPhone 5...

    Can anyone please tell me how to create folders for different things like movies,video songs in the video app on iPhone 5????...My itunes is up to date and i am using windows 7...

    Right click Target, select Add->New Build Phase->New Copy Files Build Phase.
    And yes, .app is nothing more than a folder (technically a package).
    Eric

  • How to create folders for SMS in iPhone 4?

    Hi,
    How to create folders for SMS in iPhone 4?
    Is there a way to create folders for SMSs in iPhone 4?
    Thanks & regards,
    Afreen

    sorry about that..Where do i find the replies to my posts?  tks

  • How to create authorisation object for save button please help in abap

    how to create authorisation object for save button please help in abap

    Hi
    In general different users will be given different authorizations based on their role in the orgn.
    We create ROLES and assign the Authorization and TCODES for that role, so only that user can have access to those T Codes.
    USe SUIM and SU21 T codes for this.
    Much of the data in an R/3 system has to be protected so that unauthorized users cannot access it. Therefore the appropriate authorization is required before a user can carry out certain actions in the system. When you log on to the R/3 system, the system checks in the user master record to see which transactions you are authorized to use. An authorization check is implemented for every sensitive transaction.
    If you wish to protect a transaction that you have programmed yourself, then you must implement an authorization check.
    This means you have to allocate an authorization object in the definition of the transaction.
    For example:
    program an AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT <authorization object>
    ID <authority field 1> FIELD <field value 1>.
    ID <authority field 2> FIELD <field value 2>.
    ID <authority-field n> FIELD <field value n>.
    The OBJECT parameter specifies the authorization object.
    The ID parameter specifies an authorization field (in the authorization object).
    The FIELD parameter specifies a value for the authorization field.
    The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields.
    http://help.sap.com/saphelp_nw04s/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm
    To ensure that a user has the appropriate authorizations when he or she performs an action, users are subject to authorization checks.
    Authorization : An authorization enables you to perform a particular activity in the SAP System, based on a set of authorization object field values.
    You program the authorization check using the ABAP statement AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT 'S_TRVL_BKS'
    ID 'ACTVT' FIELD '02'
    ID 'CUSTTYPE' FIELD 'B'.
    IF SY-SUBRC <> 0.
    MESSAGE E...
    ENDIF.
    'S_TRVL_BKS' is a auth. object
    ID 'ACTVT' FIELD '02' in place 2 you can put 1,2, 3 for change create or display.
    The AUTHORITY-CHECK checks whether a user has the appropriate authorization to execute a particular activity.
    This Authorization concept is somewhat linked with BASIS people.
    As a developer you may not have access to access to SU21 Transaction where you have to define, authorizations, Objects and for nthat object you assign fields and values. Another Tcode is PFCG where you can assign these authrization objects and TCodes for a  profile and that profile in turn attached to a particular user.
    Take the help of the basis Guy and create and use.
    Regards
    ANJI

  • How to Create PR from exeternal SQL Server through IDOC

    Dear all,
    I am in trouble while creating PR from exeternal SQL Server through IDOC . although I have created PR from TCODE we19 giving input as well as from function writen below
    My scnerio is from external system(Sql) want to send data to sap to create PR return PR No to SQl Server
    Not having idea how to do
    Basic Type for Idoc : PREQCR01
    Message Type       : PREQCR
    Function Module    : BAP_Idoc_Input1
    Thanxs in Advance

    if you have XI installed,
    than it would be easy,
    just use JDBC channel->XI->SAP IDOC.
    otherwise,
    you can export the table from the SQL to CSV file,
    and import it with LSMW with IDOC PREQCR01.

  • How to create a view in sql workshop depending on an application item value

    Hello,
    How coud I create a view in SQL worshop based on an application item value? For example select id, name
    from gg_provider
    where user = ' || :USER
    So basically each user would have it's own view. But it does not work like that. I think when I use :USER then the database takes database user not the user logged in to apex application. How would be possible to use application user to create the view?
    Thank you very much.

    Instead of
    :APP_USER
    use
    v('APP_USER')
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • How to create Spool through ABAP program

    How to create spool request for Smartforms through program. So I can go in TCODE SP01 and see the output of my smartforms.

    Include the below code in ur program .......
      DATA: PRINT_PARAMETERS TYPE PRI_PARAMS,
            VALID_FLAG       TYPE C LENGTH 1.
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING
      IMMEDIATELY = 'X' "C_IMMEDIATELY
    *LAYOUT = 'Z_48_144'
    *LINE_COUNT = '48'
      LINE_SIZE = '255'
    *NEW_LIST_ID = C_NEW_LIST_ID
      NO_DIALOG = 'X'
      RELEASE = 'X'
      IMPORTING
      OUT_PARAMETERS = PRINT_PARAMETERS
      VALID = VALID_FLAG
      EXCEPTIONS
      ARCHIVE_INFO_NOT_FOUND = 1
      INVALID_PRINT_PARAMS = 2
      INVALID_ARCHIVE_PARAMS = 3
      OTHERS = 4 .
      G_PDEST = PRINT_PARAMETERS-PDEST.
      NEW-PAGE PRINT ON PARAMETERS PRINT_PARAMETERS
                        NO DIALOG.
    List of write statements to be output.......
    NEW-PAGE PRINT OFF.
    Reward if useful..............

Maybe you are looking for

  • Display only/Grey out Delivery Schedule tab in the PO

    We are not going to use Delivery Schedule tab at all. Business wants us to Grey out the delivery schedule tab. Is it possible to make all fields under Delivery Schedule as display only? If yes, how can I do that? But, I don't want PO line qty to be g

  • WRT610N RIP version and SNMP

    I just bought this router ... Never experience the overheating problem posted by other users, router is pretty cold, even after 3 days on In Italy the street price is quite expensive (180€ / 232$) but works great on 2.4G (5G suffer serious lack of co

  • I can't open a report created in win XP on win2000

    I can't open a report created in win XP on win2000 I created a report in winXP on SCOTT schemas and I tried at home to reopen the report. I receive an error like UNABLE TO OPEN .....REP-0110. I tried these reports on another computer with WINXP and t

  • Cropping a photo to print on 4X6 paper, printing on paper and other issues.

    Good morning everyone, I have a Canon PIXMA MP830 and a Powerbook G4 running iPhoto 4.03 I just got the printer and was trying to print some pictures from iPhoto last week using 4X6 paper. I tried selecting paper size in the advanced features before

  • How do you select multiple photos in iCloud?

    I am trying to select multiple photos in iCloud without having to click on each photo individually. Is there a way to do so?