Using a server side package to copy and delete flat files.

Can anyone tell me if it is possible to copy or delete flat files using comands issued from within a PL/SQL program unit on the server. I know of the package UTL_FILE for the reading and writing of flat files.

Malcolm,
if you use 8i, you can create a Java class to do that for you, and call one of it's metohds from PL/SQL, see http://www.oracle.com/oramag/oracle/00-Mar/o20java.html
null

Similar Messages

  • Defining event handlers for renaming, moving, copying and deleting of files.

    Hi every one.
    I had created a tool for InDesign CS6 written using Javascript to manipulate portions of text in nested way by marking them with small non-printing small anchored text frames contains sequenced numbers and storing these portions as snippets in a spicific folder beside the InDesign documents.
    This tool is open source and free of charge, the only this that I want from you (after downloading) as a user to feedback and as a developer to improve it and join me.
    sourceforge.net/projects/livesnippets
    My question is not about this but I want to trace when the user rename, move, copy or delete a file of these snippets or any container folder and interact according to that by reserving the links between snippet files and their instances which interspersed in InDesign documents.
    Thanks.

    Here is an example of using Bridge events… What this scrript will do if you add it to Bridge scripts… is set *all* indesign snippets in the folders you browse to… to be locked/readonly… This means that users will get an extra dialog if they want to delete the file… Finder or Bridge… You can't just rename the file Finder or Bridge… and Bridge's Batch Rename will only function if the user makes copies to new location… You could set this property using the File Object with indesign…
    #target bridge
    onDocLoaded = function( event ) {
        if ( event.object instanceof Document && event.type == 'loaded' ) {
            lockIDSnippets();
            return { handled: true };
    function lockIDSnippets() {
        var i, count, doc, thum;
        doc = app.document;
        count = doc.visibleThumbnailsLength;
        for ( var i = 0; i < count; i++ ) {
            thum = doc.visibleThumbnails[i];
            if ( /\.idms/.test( thum.spec.name ) ) {
                thum.spec.readonly = true;
    // Register event handler
    app.eventHandlers.push( { handler: onDocLoaded } );

  • Server Side Includes for Apache and parsing text files

    I have an old website I used to do zipped up and I decided to set it up on my personal webserver in OS X . I got apache configured to allow server side includes (edited the httpd.conf to all them:
    <Directory />
    Options FollowSymLinks Indexes MultiViews Includes
    AllowOverride None
    </Directory>
    But I can't get the pages to come up. See I have this .shtml page which loads fine and a part of it has this line:
    <!--#include file="news/news.txt" -->
    But it won't parse that txt file and show the html that its formatted in.
    Anyone have any ideas on how to get it to parse that txt file? Even if I load just that txt file it shows raw code not it formatted. Please help.

    Ignore that first reply. I thought I was dealing with server.
    As usual, I fogot to make sure that Includes was in the Options directive for the DOCUMENT_ROOT or VirtualHost. After 10 years, you'd think I'd remember that. I just configged one of my macs to do SSI. Here's the 3 lines that I changed:
    Line 399 (the DOCUMENT_ROOT definition): Options Indexes FollowSymLinks MultiViews Includes
    Line 887 (To use server parsed HTML): AddType text/html .shtml
    Line 888: AddHandler server-parsed .shtml
    apachectl restart
    and off it went!
    Roger

  • Load and Delete Flat file

    Hi Experts,
    Is there any way to delete a Flat file after loading using any program? The flat file is in application server.
    thanks,
    DV

    DV -
           There are  two ways to delete files in application server.
    1)  To use Os Commands in process chain  you should know some unix commands, I am not good in UNIX.
    2)You can use ABAP programs also to delete files in Application server. Please go through the following links.
    http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3c7f358411d1829f0000e829fbfe/frameset.htm
    http://saplab.blogspot.com/2007/10/sample-abap-program-to-delete-file-from.html
    http://www.geocities.com/abap_sap_tutorial/ABAP_FAQ-50.htm
    Anesh B

  • Server side package or emrbace Apex and use its capability

    This may not be a suitable question for this forum but I can only try.
    My experience with APEX is primarily doing everything in the APEX “front end” and only calling PL/SQL packages in the database when absolutely necessary.
    A colleague insists on putting everything in a PL/SQL package in the database and putting calls in APEX to functions & Packages.
    One example I can quote is we had a conditional tab which could only be viewed if you had an entry in a table.
    I did the SQL code for the tab in the conditions section in apex. My colleague then reworked my code to call a PL/SQL package and placed the code I had written on the server.
    Another example was a demo of lazy load on an input field he loved it but then when he realised it could not be done via a call to a server side package dismissed the lazy load idea as not relevant even though it would make our users life easier.
    I am soon to have a battle royal over which is the best approach. Any comments.

    First of all: All PL/SQL Logic you enter, either in APEX or in packages is always executed on the server. Your browser doesn't understand PL/SQL very well...
    Putting PL/SQL logic in packages - instead of in APEX regions - has some advantages though (not extensive list):
    - You can easily unit test package procedures/functions.
    - You can reuse the package procedures/functions in the same app or in other apps as well.
    - PL/SQL code in packages is compiled in APEX it's dynamic and has to be parsed, so creates some overhead.
    - When you make changes to your codebase or columns you can spot that in your PL/SQL packages (they might get invalid). You won't notice that in your APEX regions until you (or end user) run the page and encounter an error.
    So, yes, putting logic in packages has advantages. But on the other hand, a statement like "if we can't do it in a package, we don't do it all" might be a little to restrictive...
    Just my 2 cents

  • Accessing LCDS Persistence Layer for use in Server-Side Business Logic

    Within server-side business logic, I want to be able to get a persisted object from LCDS, manipulate  that object, and then use LCDS to persist those changes to the database  as well as send those changes to the client.
    Is it possible to access LCDS' persistence layer (Hibernate) to be used by server-side business logic?
    I have attempted to use DataServiceTransaction.getItem(...).  However, for objects that contain a collection of other objects I get this error:
    [LCDS] Runtime exception while trying to fetch a property from hibernate: flex.data.DataServiceException: There is no current message broker to return.
    When calling DataServiceTransaction.updateItem(...) for objects that contain a collection of other objects, I get this error:
    org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.sd.pojo.Book.chapters, no session or session was closed
    Also, it appears that DataServiceTransaction.updateItem does NOT update the database?
    I have resorted to building my own Hibernate SessionFactory, but that seems unnecessary.
    One other piece of information is that I am using the Fiber modeling tool to build and deploy the model to the server.  I am generating the Java classes with Fiber and making them available to be used on the server.
    Thanks,
    Collin

    Thanks for the help guys.
    I guess what I'm really trying to get straight in my own mind is whether supporting interraction and control of eJB database interraction is still using the same functionality as having a stand alone app interracting with a db.
    I'm thinking about; the implications of using eJBs specific query language and the different way in which eJBs use db connections (either for the period of their lifetime or just for the duration of one interaction) compared with a stand alone app, which would maintain a connection to the database(s) while it is open.
    Connection pooling and caching of DB objects is often quoted as being a middle tier activity, but what does this mean when all 3 tiers reside on the same machine?
    Once again thanks for your comments and advice.
    Mark

  • I installed Windows 7 in my Macbook pro, I can access Windows data in Mac, but I can't copy and delete it. and the same case while i am working in Windows. Could you please guide me if there is any solution, where I could copy/paste/delete my data.

    I installed Windows 7 in my Macbook pro, I can access Windows data in Mac, but I can't copy and delete it. and the same case while i am working in Windows. Could you please guide me if there is any solution, where I could copy/paste/delete my data.

    OS X can natively read NTFS of Windows, but not write to it.
    Windows can't read or write to HFS+ of OSX, and that's a good thing from a security standpoint.
    Ideally if you share files between operating systems you should have a FAT/MSDOS formated USB key or hard drive. (exFAT external drive if any of your files are over 4GB in size) both these formats are universal for OS X or Windows.
    If you install software into Windows and OS X to read each others formats, then you have to pay to update/upgrade it deal with headaches.
    If you swtich between Windows and OS X a lot, don't need full hardware performance for Windows, you may consider installing virtual machine software like VMFusion or Parallels which can take a copy of your Windows in Bootcamp and place it into OS X as a file then run that copy of Windows in a window in OS X like so.
    Advantage here is you run most of your light weight Windows programs like this at the same time as OS X.
    Benefit is you can run just about any Windows or Linux version and OSX server editions (not client versions)
    Bootcamp only allows Windows 7, that's it now.
    You'll also be interested in two fre pieces of software, Carbon Copy Cloner and Winclone on macupdate.com.
    CCC clones OS X partition and Winclone clones the Bootcamp partition. Valuable for you.
    Good Luck

  • Copy and paste a file please help.

    i want to copy and paste a file to a different directory.
    if i use the .renameTo() it cut and paste the file.
    what is the right method?
    killuasoft

    do you have an example?Yes, several in fact my good man.
    You may find them here http://java.sun.com/docs/books/tutorial/essential/io/index.html

  • Getting eroor while copying and deleting user

    Hi All,
      I am unable to copy and delete users from one client, we are in ecc6.0. i am getting the following error while copying and deleting. the error is
    NUMBER_GET_NEXT AENDBELEG INTERVAL_MISSING.
    Please help me in this regard,
    thanks,
    praveen

    Hi Praveen,
    Implement the program correction to ensure that the system issues the correct error message.
    Manually create the missing interval.
    You can use error message CD 121 to enable you to identify the error more accurately. Depending on the additional information, the status is as follows:
    OBJECT_MISSING : The entire AENDBELEG number range object is missing and must be created.
    INTERVAL_MISSING: Number range interval 01 is missing and must be created.
    INTERVAL_NOT_INTERNAL: The definition of number range interval 01 is incorrectly set to 'external number assignment'. Delete the 'external' selection in the interval definition.
    Check the definition of the AENDBELEG number range object in transaction SNRO:
    Object name:   AENDBELEG
    Short text:    Change documents
    Long text:     Number Ranges for Change Documents
    To-year flag:                        Do not select
    Number length domain:                 CHAR10
    No interval rolling:                  Do not select
    Number range transaction:             SCDN
    Warning %:                            10.0
    Main memory buffering:
    No. of numbers in buffer:             10
    You must define the following interval:
    Interval No. 01
    from 0000000001
    to 9999999999
    internal number assignment
    Please look st SAP Note: <b>659573</b>
    Hope it helps.
    Please award points if it is useful.
    Thanks & Regards,
    Santosh

  • Copy and Paste multi files

    I know how to copy and paste a file but I want to select all files and copy it to a folder I don't want to select one at time help

    Your best friend to do all this is to use file manager.. Open up file manager app, Just go into the device or SD card, select the folder or files, then it will give you the option to copy, move , zip share , rename etc..

  • I'm not able to copy and paste files from my mac to hard disk and usb. I have tried dragging the items to those devices but it won't work. I also have tried copying and pasting those files onto those devices but that doesn't work too. Can any one help?

    I'm not able to copy and paste files from my mac to hard disk and usb. I have tried dragging the items I want to copy to those devices but it won't work. I also have tried copying and pasting those files onto those devices too but that doesn't work too. Can any one help?

    Hi BobRz
    Thanks for you suggestion but it didn't work - are there other ways for solving this problem? Or is it because my files that I want to copy and paste onto my hard disk etc are too big? (However there is space on my hard disk and it works on a PC)

  • HT2506 hi i can't seem to copy and paste pdf files from preview to a microsoft word document. it always comes up with nonsense characters in the word document. how do i fix this? thanks in advance

    hi i can't seem to copy and paste pdf files from preview to a microsoft word document. it always comes up with nonsense characters in the word document. how do i fix this? thanks in advance

    Hi,
    The quickest way to do this (tested with OS 10.8.2, MS Word 2011) is in one line:
    tell application "Microsoft Word" to close every document whose name begins with "book"
    The reason why your script doesn't work is that you aren't specifying to Word which document you want it to close.
    So, changing one line ought to do it:
    close document incrementvalue -- instead of "close document"
    But... when you close a document, you change the document count. Document 2 becomes document 1, document 3 becomes document 2 etc. So eventually you'd get a message saying "The object you are trying to access doesn't exist".
    Because of this, if you want to do it in a repeat loop, you have to work backwards:
    tell application "Microsoft Word"
      set doc_count to count documents
      repeat with x from doc_count to 1 by -1
      if name of document x begins with "book" then close document x
      end repeat
    end tell
    Hope this helps.

  • I previously had PS CS5 Trial installed but removed it using both Control Panel Programs and deleting all files from the CS5 directory on Program Files.  I then installed a purchased product from Adobe disc using the serial number on the case.  But when I

    I previously had PS CS5 Trial installed but removed it using both Control Panel Programs and deleting all files from the CS5 directory on Program Files.  I then installed a purchased product from Adobe disc using the serial number on the case.  But when I try to launch it, I get a screen headed Photoshop CS5 Extended Trial.  It asks for the serial number and says that my trial has expired.  It rejects the serial number from the Adobe case saying "This Serial Number is not valid for this product".  It thinks that I still have the expired Trial Version installed.  How do I convince it (the program) that the Trial Version is long gone and the currently installed product was installed with a valid and accepted serial number????

    Let me know how it goes. Go into your Adobe account and register your serial number asap.
    https://www.adobe.com/account/my-products-services.html
    That way, should you lose it or you need support, it is on record that it's yours and you can fetch your s/n it from anywhere.
    There are too may sad stories here, where people forgot and the box is buried or lost.
    Gene

  • Advanced table copy and delete slow when done programatically

    I am modifying a line in an advanced table, then copying it and deleting it. What I noticed is that
    it takes a lot less time to copy and delete manually within the application verses doing it programatically.
    To copy or delete 10 lines it takes about 1 or 2 seconds within the form. When I do this programatically
    it can take up to 20 seconds. Does anyone know why it takes so much longer?
    Here is a sample of my code.
              porequisitionlinesvorowimpl.setSelected("Y"); //programatically select line for copy
         ArrayList deletearraylist = null;
         String s1 = porequisitionlinesvorowimpl.getItemNumber();
              java.sql.Connection connection = oadbtransaction.getJdbcConnection();
              //Query values from for child item.
              OraclePreparedStatement oraclepreparedstatement = null;
              ResultSet resultset = null;
              try {oraclepreparedstatement = (OraclePreparedStatement)connection.prepareStatement("SELECT I2.DESCRIPTION WHERE                       I.SEGMENT1 = ?");
                               int i = 1;
                               oraclepreparedstatement.defineColumnType(i++, 12, 240);                                                                 oraclepreparedstatement.setString(1, s1);
                               resultset = oraclepreparedstatement.executeQuery();
                               while(resultset.next())
                                    //Collect values from query for child item.
                                    String desc = resultset.getString(1);
                              porequisitionlinesvorowimpl.setItemDescription(desc);
                              //Copy modified parent to produce a child line.
                              ArrayList copyarraylist = new ArrayList(2);
                               copyarraylist.add("populateAndDuplicate");
                               copyarraylist.add("lines");
                               executeServerCommand(oapagecontext, oaapplicationmodule, "CheckoutLinesSvrCmd", copyarraylist);
                               } //while loop for resultset
              resultset.close();
         oraclepreparedstatement.close();
              catch(SQLException sqlexception) {
                   ErrorUtil.handleFatalException(oadbtransaction, sqlexception, this);
              //Delete original Kit Parent           
              deletearraylist = new ArrayList(2);
              deletearraylist.add("populateAndDeleteReqLines");
              deletearraylist.add("lines");
              executeServerCommand(oapagecontext, oaapplicationmodule, "CheckoutLinesSvrCmd", deletearraylist);

    I timed these too and they appeared to completed very quickly. The only events that took a significant amount of time where the calls to the executeServerCommand when I copied and deleted lines.
    Can the database connection and looping the resultset be slowing these activities down?
    There is no VO existing that generates the query results I am looking for. Do I need to create my own VO?

  • Copy and paste a file path?

    How do i copy and paste a file path?
    Thanks

    I assume there's probably a utility in macupdate.com that could probably do that.  A quick search on macupdate for "copy path" found a bunch.
    Alternatively you could create an automater service (finder contextual menu) to do it.
    Or just drag the finder item into the terminal window.  The path will appear and you can copy/paste that.

Maybe you are looking for

  • IMAC Wireless Internet Connection Problems All Of A Sudden

    My Imac is well over a year and a bit old and has been able to connect to my wireless internet connection absolutely fine until the past week and a half. At first the connection wouldn't work and when I would turn my airport on and off and reset the

  • Duplicate messages and duplicate Envelope Index files - why?

    I am getting duplicate emails in my Mail POP account. I thought it would be a good idea to rebuild after deleting the Envelope Index file. I discovered that there were two; Envelope Index and Envelope Index-1. It occurred to me that would be a proble

  • What app iphone can manage all emails

    I am looking for a way to manage my email with my: Iphone Ipad PC outlook Exemple I am on a business trip and check my email on my iphone and delete 3 email and flag 5 emails And instany it would do the same at my office on the PC Outlook Can any one

  • Air 3.2/3.3 with iOS 5.1.1 & 6.0 SDK Beta on iOS 6 Beta cannot render anything at all

    Hi there, I've just tried to run an air app on iOS 6 but all the vistual elements doesn't render properly, e.g. the tab view cannot render tab icons/tab bar, the action bar cannot render anything at all plus all other components... Please let me know

  • IPod screen is cracked?

    I opened my iPod touch and the screen was cracked, how do i get it fixed or replaced?