Move files accross directories

Hi, I'm in Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production HPUX
I have two Virtual Directories DIR1 (/data/dir1/) and DIR2(/data/dir2/) .
DIR1 is filled with Source Code backup from all stored procedures, functions, etc.
I generated the file name using DBA_SOURCE.OWNER||DBA_SOURCE.NAME||DBA_SOURCE.TYPE
Is there any command that we can remove all files which are currently in DIR1 to DIR2 without having to retrieve the name again one by one from DBA_SOURCE.
the goal is DIR1 will store today backup. DIR2 will store yesterday backup.
this task will be run by schedule job every afternoon. both directories will be overwritten everyday.
Please let me know if you have any solution about this.
thanks

Is there any command that we can remove all files which are currently in DIR1 to DIR2 without having to retrieve the name again one by one from DBA_SOURCE.Why does it matter not to loop through dba_source?
Following should do the job you request:
begin
   for c
      in (select dba_source.owner || dba_source.name || dba_source.type fn
            from dba_source
           where some_condition)
   loop
      utl_file.frename ('DIR1',
                        c.fn,
                        'DIR2',
                        c.fn);
   end loop;
end;
 

Similar Messages

  • Move file within directories

    Hi
    Can anyone let me know how to move a file from source directory to target directory in an unix/windows NT system and how to do error handling.
    Please let me know the code.There was a thread which desscribed this but am not able to locate it
    Thanks
    Panda<b></b>

    Hi Guys
    I tried the following code for Windows NT to move a file from one directory to another but its not working.Can you please suggest what is going wrong
    am using operating system command 'MOVE' while creating external command
    ws_file_path = 'D:\usr\sap\UKR\DVEBMGS00\work\ENQLOG00.DAT'.
    p_tg_dir = 'D:\usr\sap\UKR\DVEBMGS00\data'.
    Forming the command
    concatenate ws_file_path p_tg_dir into ws_comm_winnt
    separated by space.
    Call function to execute 'ZMV' command defined in SM69 CALL FUNCTION
    call function 'SXPG_COMMAND_EXECUTE'
      exporting
        commandname                   = 'ZMV'
        additional_parameters         = ws_comm_winnt
        operatingsystem               = sy-opsys
        stdout                        = 'X'
        stderr                        = 'X'
        terminationwait               = 'X'
      importing
        status                        = ws_zstat
        exitcode                      = ws_zexit
      tables
        exec_protocol                 = t_move
      exceptions
        no_permission                 = 1
        command_not_found             = 2
        parameters_too_long           = 3
        security_risk                 = 4
        wrong_check_call_interface    = 5
        program_start_error           = 6
        program_termination_error     = 7
        x_error                       = 8
        parameter_expected            = 9
        too_many_parameters           = 10
        illegal_command               = 11
        wrong_asynchronous_parameters = 12
        cant_enq_tbtco_entry          = 13
        jobcount_generation_error     = 14
        others                        = 15.
    if sy-subrc <> 0.
      message id sy-msgid type sy-msgty number sy-msgno
              with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.

  • How do you add cue points to a MOV file that Director 12 can read?

    I have just downloaded the Trial of Director 12 - and unless I can add cue points to video that it can interpret - I am not going to be able to achieve what I need to.  I've spent the last day and a half looking over the scant documentation provided by Adobe, and anything else I could find online - but the only answers that came anywhere near were for old versions using discontinued xtras.
    Please can anyone help? - I am using Windows 7 64 bit - CS6.
    Thanks in advance. :-)

    Probably too late for your project but...
    You can do this by using 3 sprites in addition to the SWF. In this example, I've named them "videoPlay", "videoRewind, and "videoStop". The SWF in this case was named "video."
    Apply this script to each of the 3 sprites.
    property mySprite
    on beginSprite me
      mySprite = sprite(me.spriteNum)
    end
    on mouseUp me
      case mySprite.name of 
        "videoPlay":
          sprite("video").play()
        "videoStop":
          sprite("video").stop()
        "videoRewind":
          sprite("video").stop()
          sprite("video").rewind()
      end case
    end

  • Move file with space in the filename - SM49

    Hi,
    I am using operating system command, MV, to move files across directories in application server. If the filename has spaces, this move fails. Can you please tell me if any escape character can solve this issue? I have already tried using backslash, single and double quotes.
    Thanks,
    Hema

    here's the solution:
    http://www.freebsd.org/cgi/man.cgi?query=file&apropos=0&sektion=0&manpath=FreeBSD+8.1-RELEASE&format=html
    The one significant difference between this version and System V is that
         this version treats any white space as a delimiter, so that spaces in
         pattern strings must be escaped.  For example,
            >10        string  language impress        (imPRESS data)
         in an existing magic file would have to be changed to
            >10        string  language\ impress        (imPRESS data)
    hope that helps

  • Linking moview files in director

    Hi all,
    I have managed to link 2 movie files in director together and am able to link back to specific frames etc etc.
    Currently one of my links from the 2nd move moves to frame 149 in the 1st movie.  Now the link works but just a split second before that the frame before that appears.
    Does anyone know if a way to get around this?
    Thanks
    Claire

    Hi Claire,
    Can you be a little more specific with some details? Are you linking Director movies or actual video files (ie Quicktime, WMV, SWF, FLV...etc). What lingo are you using so that Director knows what do do after your "movies" are done playing? This information might help us help you better.
    Rafa.

  • How can I copy or move files with elements 10 organizer ?

    Hello,
    since a couple of days I use Elements10 Organizer under Windows 7 Home.  Since then Im testing how to come along with the product and it's features. Though I had many good impressions of many functions that work excellent I now have severe problems  to organize my workflow. The problem is: I can*t copy or move files or directories with the organizer and worse, I can't find files or directories that where copied, moved or renamed by Windows 7 Explorer even when I import or load the specified directory into the elements10  catalogue again. Off course I understand the elements 10 philosophy to have an image only one time within the data base and to arrange every collecting idea by tags and catagiories. Nevertheless there is a need to have sometimes a copy and also to know where the copy is and to manage it. Right now I find no way to handle these tasks by elements 10 organizer. I am a newbe on photoshop elements.
    I would appreciate if there is anybody who knows a solution to me. Thanks and bye, Woenni

    I am also having this same exact problem. Only some, and not all of the files on my external hard drive will copy. I get the "No Symbol" when trying to copy or move files.
    I am able to duplicate all files. I also can right click on a file and select copy. However on some files, I can't ever paste it (paste doesn't show up or is grayed out), drag it to another folder, or drag-and-copy it to another location or drive.
    The files are not locked and I have read and write permissions.
    The external that I'm trying to move and copy files from is a FAT32. Could that be a problem? How do I get my files off of this drive?
    *PLEEEEASE HELP!*

  • I have an external hard drive that was formatted by a PC and has files and directories etc. I want to format it and use it on my IMAC for backup but I can't seem to write to it nor can I delete current content. How do I initialize it for use with the MAC?

    I have an external hard drive that was formatted by a PC and has files and directories copied to it etc. I want to use it on my IMAC for backup. I see it on my my IMAC . I can open files etc.  But I can't seem to write to it nor can I delete current content. I don't care if I lose current content. How do I initialize it for use with the MAC?

    You can't write to it because it's formatted as NTFS which OS X will read but not write to. If you want to continue using the drive with both a PC and OS X you will need to download and install NTFS-3G so you can then write to it from your Mac. You can get NTFS-3G at:
    http://www.macupdate.com/app/mac/24481/ntfs-3g
    If you want to use the drive exclusively with your Mac then move the data off it and reformat it in Disk Utility (Applications - Utilities - Disk Utilities) as Mac OS Extended (Journaled.)

  • Export through Final Cut Pro of .mov file results in non-viewable file...

    Hello,
    I recently worked on a film and had asked for a .mov version of the movie so I could get an uncompressed HD version in case I wished to use it for my demo reel (video for actors).
    I was present when the director exported it and he exported it from Final Cut Pro (the latest version) and he exported it as a .mov file.
    Well, I just tried opening the video and it does not work. In Quicktime, the error message:
    "The movie "movie.mov" can't be opened.
    You may need to install additional software to open this type of file.
    I'm thinking it might be a codec issue.
    Do you have any suggestions as to how the movie should be exported so that I avoid this type of error message?
    I tried opening the file in iTunes and I got the audio, but the video was black. Another clue that it's a codec issue.
    I just need a high quality (as uncompressed as possible) file that I can then add to an editing program and insert into my demo reel. I need the high definition format to be retained.
    As for the frame-rate, etc. I'm not sure. It was done with high quality and expensive video equipment and didn't use tape. I know it was high definition and widescreen as well.

    Nope, I don't have Final Cut Pro on my system.
    I clicked on Get Info and nothing about the codec appears.
    "Kind: QuickTime movie"
    "Size: 1.99 GB on disc" (it is about 6 minutes long; that I remember)
    "Title: movie.mov"
    "Last Opened" is the next and last thing that appears.
    I tried opening it using VLC and the movie just stops and starts throughout. It plays for just a second and then stops and I have to keep clicking the "Play" button to get it to keep playing.
    Actually, just now I tried it again in VLC and it just kept stuttering.
    From VLC, I chose Media Information and under Codec Details, the following appeared:
    Stream 0:
    Type: Video
    Codec: MPEG-1/2 Video (xdvd)
    Language: English
    Resolution: 1920x1080
    Frame rate: 23.976000
    Stream 1:
    Type: Audio
    Codec: PCM S16 LE (sowt)
    Language: English
    Channels: Stereo
    Sample Rate: 48000 Hz
    Bits per sample: 16
    Should I ask that the movie be re-exported using the ProRes codec???

  • How do I add playback control to a .swf file in Director 11.5 (PLEASE HELP!)

    Hi,
    I am currently trying to add controls (play/stop/etc) to a .swf file within Director 11.5. The movie imports fine and plays perfectly, however there does seems to be built in options to add the control in the same way you would for a .mov.
    The .swf file has been created with controls and plays outside of director fine. When it is placed into director the controls disappear and leave a white space.
    Is there a step by step guide somewhere or can someone give me a step by step guide? I'm fairly new to director and won't know some of the terms etc....
    The movie is 30 mins long and requires the user to move to various points and pause the playback. I cannot change the format of the file either.
    Please let me know if you need any more info...
    PLEASE HELP, I have to complete this in 2 days.
    W

    Probably too late for your project but...
    You can do this by using 3 sprites in addition to the SWF. In this example, I've named them "videoPlay", "videoRewind, and "videoStop". The SWF in this case was named "video."
    Apply this script to each of the 3 sprites.
    property mySprite
    on beginSprite me
      mySprite = sprite(me.spriteNum)
    end
    on mouseUp me
      case mySprite.name of 
        "videoPlay":
          sprite("video").play()
        "videoStop":
          sprite("video").stop()
        "videoRewind":
          sprite("video").stop()
          sprite("video").rewind()
      end case
    end

  • Older .mov files have no previews

    Trying to see if ANYONE else has seen this problem:
    I was digging through my media archive disk and noticed something very odd: maybe three quarters of my older .mov files show only a generic icon in the finder, and trying to use the Quick Look (or preview) feature will only play the SOUND from the file.  When played within QT 7.6.6 Pro, the files are still intact.  Is this a harbinger of the problems people have been complaining about with QT 7.7?
    Add: attempting to re-save the files (to see if the format has changed between versions of QT) netted the same set of features, so it would appear that the difficulty may be with Finder, not QT.  As NOT ALL files are affected, I'm not sure what's going on.  Looking at the ages of the files, there's no hard and fast correlation between what the file was created (or last modified) and whether or not it displays correctly in Finder.  Worse, these clips all came from the same rip of the same DVD originally.  I have no clue what's going on, but it's making it difficult for me to separate out video clip from sound clip files in my working directories. 
    Ah!  That may be it.  The files that are displaying without video in finder may have last been worked on in QT using the Export as AIFF command.  But that shouldn't have affected the parent file.  Pretty glaring mistake if that's it.

    Same problem here.  But I'm using QuickTime X and Lion.  Didn't notice anything until I upgraded to 10.7.1.   I was thinking it was related to that, but I guess not if you're having the same issue on 10.6.8.

  • Query regarding conversion of Quick Time movie files to .swf format

    Hello Everyone,
    Is it possible to convert QT movie files to .swf format using
    any tool ?
    Will it significantly reduce the file size ?
    Suppose we have a QT movie file of size 3MB , when it is
    converted to .swf
    format what will be its size ?
    Then can we play this .swf file using QT player or we require
    flash player
    to do so .
    Kindly answer these queries.
    Thanking you,
    With Best regards,
    Anil.

    Sudeshchan Shetty wrote:
    > Is it possible to convert QT movie files to .swf format
    using any tool ?
    Hi Anil.
    Yes, you can. You can import QT movies into Flash and embed
    the movie and then
    export an swf version of it. You can also convert teh video
    to a FLV (Flash
    video) and have a swf that provides the controls and player
    for it.
    > Will it significantly reduce the file size ?
    File size probably will go down but that depnds on what
    compression the orginal
    QT has and what compression you use when importing to Flash.
    I'd say start with
    a high quality QT, then try various compression levels when
    importing to get
    the best size to quality balance.
    > Suppose we have a QT movie file of size 3MB , when it is
    converted to .swf
    > format what will be its size ?
    Is hard to say - as mentione dabove, depends on what the QT's
    compression is.
    > Then can we play this .swf file using QT player or we
    require flash player
    > to do so .
    You'll have to play the swf through Flash. Why would you wnat
    to play it
    through QT?
    What's the output for - CD/web? I'd suggest FLVs ratehr than
    an embedded vidoe
    into a swf as you can get better quality control and
    playback.
    regards
    Dean
    Director Lecturer / Consultant / Director Enthusiast
    http://www.fbe.unsw.edu.au/learning/director
    http://www.multimediacreative.com.au
    email: [email protected]

  • Will changing the partition of the Home Folder automatically move files from old location?

    I want to change the home folder for my users.  Currently they are saving to the C: drive and using up the space on the root drive.  There is a D:  partition that has 774 GB free, so I would like to move use directories over to a new Home
    Folder on the D: drive. 
    http://support.microsoft.com/kb/816313
    What I am unsure of is whether or not I will have to manually move their files once I change the home directory.  Will it or do I need to take an extra step to move files in order to provide a seemless experience to the users?
    I am working with Windows Small Business Server 2011 Essentials.  

    Hi,
    Did you use the group policy to set the user home folder?
    As Ahmed MALEK mentioned, a user account is moved from one location to another in AD the users home drive setting is not automatically updated as its a static configuration on the users account. You need to manually move the file to the new location.
    Maybe you could consider the folder redirection, more detail information, please refer to:
    How to “Set users home folder” via group policy in Windows 8
    Regards.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Can't arrange movie files in itunes?

    In itunes, whenever i click on the "movie" file under my iPod Touch's name, the list of all the movies i have in my ipod show up. However, whenever i want to move the files around/organize them, it won't let me move them. It's like the movie files are locked or something?
    However, i can move my music files around fine. It's just the movie files that won't move/arrange /:
    & if this matters, the movie files play fine in my ipod.
    I just need to move/arrange/organize them on itunes... but it won't let me -.-

    Very strange. I use Handbrake exclusively for movie conversion and all tags are editable. I even use iDentify which is a super little app which populates ratings, directors, stars and producers etc in the movie information, together with artwork if required.
    I double checked last night and every single one of the 462 movies converted with Handbrake are editable manually or with iDentify.

  • Possible to add non-movie files in Encore?

    I am interested in making a menus dvd, but which besides
    normal movies files, contains an ebook probably in pdf. Ideally a menu icon in the dvd would open the pdf, but simply having the file present on the disc is better than nothing. Can this be done in Encore, and if so, how?
    I've run some searches but maybe am not using good search terms and come up empty. Proper search term suggestions would also be welcome. Thanks

    Actually opening non-movie files in a DVD player is not part of the DVD specification... a DVD player is not a computer... so this does not work 
    As mentioned, you may add a folder to the ROM content... and then make an entry in your video (such as a menu that is only a title) telling the user to take the disc to a computer to access the files 
    Web or Internet functions on a DVD
    Macromedia Director http://www.adobe.com/products/director/ for mixed content
    -or some functions via Flash http://forums.adobe.com/thread/871391?tstart=0
    -or ROM Content and a note http://forums.adobe.com/thread/883630?tstart=0

  • MOV Files stop working

    Hello,
    I'm working on some MOV files in CS4 and they will randomly stop working; my image is lost.  Sometimes it does this when exporting as well; it will, to my suprise, pick clips and make them a blank screen.  Please help!

    Read Bill Hunt on a file type as WRAPPER
    http://forums.adobe.com/thread/440037?tstart=0
    What is a CODEC... a Primer http://forums.adobe.com/thread/546811?tstart=0
    What CODEC is INSIDE that file? http://forums.adobe.com/thread/440037?tstart=0
    Report back with the codec details of your file, use the programs below
    For PC http://www.headbands.com/gspot/ or http://mediainfo.sourceforge.net/en
    For Mac http://mediainfo.massanti.com/
    Once you know exactly what it is you are editing, report back with that information... and your project setting, and if there is a red line above the video in the timeline, which indicates a mismatch between video and project
    More information needed for someone to help http://forums.adobe.com/thread/416679
    Some is general about your computer and OS, some is specific to video editing
    Build a Configuration file http://www.piriform.com/speccy
    Brand/Model Computer (or Brand/Model Motherboard if self-built)
    How much system memory you have installed, such as 2Gig or ???
    Operating System version, such as Win7 64bit Pro... or whatevevr
    -including your security settings, such as are YOU the Administrator
    -and have you tried to RIGHT click the program Icon and then select
    -the Run as Administrator option (for Windows, not sure about Mac)
    Your Firewall settings and brand of anti-virus are you running
    Brand/Model graphics card, sush as ATI "xxxx" or nVidia "xxxx"
    -or the brand/model graphics chip if on the motherboard
    -and the exact driver version for the above graphics card/chip
    -and how much video memory you have on your graphics card
    Brand/Model sound card, or sound "chip" name on Motherboard
    -and the exact driver version for the above sound card/chip
    Size(s) and configuration of your hard drive(s)... example below
    -and how much FREE space is available on each drive (in Windows
    -you RIGHT click the drive letter while using Windows Explorer
    -and then select the Properties option to see used/free space)
    Windows Indexing is BAD http://forums.adobe.com/thread/676303
    While in Properties, be sure you have drive indexing set OFF
    -for the drive, and for all directories, to improve performance
    Some/Much of the above are available by going to the Windows
    Control Panel and then the Hardware option (Win7 option name)
    OR Control Panel--System--Hardware Tab--Device Manager for WinXP
    And the EXACT type and size of file that is causing you problems
    -for pictures, that includes the camera used and the pixel dimensions
    Plus Video-Specific Information http://forums.adobe.com/thread/459220?tstart=0

Maybe you are looking for

  • How to find the Rejected quantity in the Itemmaster data-- Inventory Tab

    Hi Experts, I want to find the Rejected quantity value when iam raising a production order->issue>and Receipt.                      In the Receipt from production, if iam giving 10 qty as rejected the value must get displayed in the inventory tab of

  • How to configure selection variant on KO8G

    Hi Gurus, I need to do collective settlement on my work orders. and the requirement is to settle it through tcode KO8G but the problem is they settle per plant. how can i configure it in such a way that the settlement is on a per plant basis? Thank y

  • Upgrade Adobe Reader XI to Acrobat XI Pro

    Hi, Is this at all possible, or do I need to purchase the full software package?

  • [New Release] Oracle Application Testing Suite 12.5.0.1.0

    Hi All, OATS new release available, please check : http://www.oracle.com/technetwork/oem/app-test/index-084446.html From Release Notes Oracle Application Testing Suite 12.5.0.1 - New Features and Updates Support for Chrome 32 browser - Oracle OpenScr

  • No sound after ios7.0.6 update!

    Updated to ios7.0.6 now no sound on anything and it's all switched on checked everything!  Music works but that's it anybody had the same problem tried to contact support but they want £25!!!