Autoextend tablespace into new file

I have a small program that captures images and from time to time the users fill up the image tablespace and I have to manually create a new tablespace. The way I have it setup is that my image tablespace is set to 2GB (the name of the datafile is /opt/oracle/oradata/image1.dbf). How can I (or CAN I) have Oracle (or my program) automatically create another datafile when space is getting low on the 1st. I thought about creating a bigger file to start with, but I don't want to chew up that much space unless it's needed (some clients need it, some don't).
Edited by: user461089 on Aug 27, 2009 11:52 AM

Oracle allows data files to autoextend. You can have it automatically increase the size of image1.dbf (or whatever other data files you have in the tablespace). You cannot have Oracle automatically add new data files to a tablespace, though you could certainly write a job (DBMS_JOB or DBMS_SCHEDULER) that would periodically look at the free space in a tablespace and add a data file if there was too little free space. I'm not sure I see the benefit to doing this rather than letting data files grow, though.
Justin

Similar Messages

  • Merge Multiple CSV Files Into One and save it into new file

    Below code run in specific directory. However I'm looking a code which will select the folder  & save it into new sheet.
    Can you help me with this? I've searched for a solution for a long time but could not find anything which worked.
    The following is the start of the macro code
    Sub OpenCSV()
    Dim i As Integer
    ' change this next line to reflect the actual directory
    Const strDir = "C:\Documents and Settings\shekar\"
    Dim ThisWB As Workbook
    Dim wb As Workbook
    Dim ws As Worksheet
    Dim strWS As String
    Set ThisWB = ActiveWorkbook
    Set fs = Application.FileSearch
    With fs
    .LookIn = strDir
    .Filename = "*.csv"
    If .Execute(SortBy:=msoSortByFileName, _
    SortOrder:=msoSortOrderAscending) > 0 Then
    For i = 1 To .FoundFiles.Count
    Set wb = Workbooks.Open(.FoundFiles(i))
    strWS = wb.Sheets(1).Name
    wb.Sheets(1).UsedRange.Copy (ThisWB.Worksheets(strWS).Range("A1"))
    wb.Close False
    Next i
    Else
    MsgBox "There were no files found."
    End If
    End With
    End Sub

    The below will do the.But be careful if any of csv file name is more than 31 then Excel will not allow it to name the sheet with filename.
    Sub OpenCSV()
    Dim i As Integer
    ' change this next line to reflect the actual directory
    Const strDir = "C:\Documents and Settings\shekar\"
    Dim ThisWB As Workbook
    Dim wb As Workbook
    Dim ws As Worksheet
    Dim strWS As String
    Dim sFileName As String
    Set ThisWB = ActiveWorkbook
    With Application.FileDialog(msoFileDialogOpen)
    .InitialFileName = strDir
    .Filters.Clear
    .Filters.Add "CSV Files", "*.csv"
    If .Show Then
    For i = 1 To .SelectedItems.Count
    Set wb = Workbooks.Open(.SelectedItems(i))
    sFileName = .SelectedItems(i)
    Set ws = ThisWB.Worksheets.Add(before:=ThisWB.Worksheets(1))
    ws.Name = ActiveSheet.Name
    wb.Sheets(1).UsedRange.Copy ws.Range("A1")
    wb.Close False
    Next i
    Else
    MsgBox "There were no files found."
    End If
    End With
    End Sub
    Please do not forget to click “Vote as Helpful” if any post helps you and
    Mark as Answer if it solves the issue.

  • 30EA2 - refuses to unload results into new file

    With ver 3.0.02.83 I'm getting "Not writable" message every time when I try to unload the results into a new file. SqllDeveloper refuses to write to a new file and I have to preallocate it first and then answer yes on override question.
    Does anybody else have the same situation?

    On what OS version?
    K.

  • Copy file names into New Mail Message?

    *I've been slowly teaching myself Applescript, and can't seem to find a way to do a few things. Basically what I'm trying to do is set up a script that will run when items are dropped into a folder on my FTP. I want the script to have a pop-up dialogue, and generate an email to certain users announcing new files are on the FTP. I have these 2 parts down, but I would also like the body of the email to include a list of the filenames. This part I can't figure out.*
    *I just need to find a function that will copy the filenames of new items, and paste them into the body of the email already being generated. My current code is below. Anyone have any ideas to help me expand?*
    property dialog_timeout : 15 -- set the amount of time before dialogs auto-answer.
    on adding folder items to this_folder after receiving added_items
    try
    tell application "Mail"
    set theMessage to make new outgoing message with properties {visible:true, subject:"New Files on FTP", content:"New files have been posted to incoming folder of the FTP."}
    tell theMessage
    make new to recipient at end of to recipients with properties {name:"Jane Doe", address:"[email protected]"}
    make new to recipient at end of to recipients with properties {name:"John Smith", address:"[email protected]"}
    end tell
    send theMessage
    end tell
    tell application "Finder"
    --get the name of the folder
    set the folder_name to the name of this_folder
    end tell
    -- find out how many new items have been placed in the folder
    set the item_count to the number of items in the added_items
    --create the alert string
    set alert_message to ("Folder Actions Alert:" & return & return) as Unicode text
    if the item_count is greater than 1 then
    set alert_message to alert_message & (the item_count as text) & " new items have "
    else
    set alert_message to alert_message & "One new item has "
    end if
    set alert_message to alert_message & "been placed in folder " & «data utxt201C» & the folder_name & «data utxt201D» & "."
    set the alert_message to (the alert_message & return & return & "Would you like to view the added items?")
    display dialog the alert_message buttons {"Yes", "No"} default button 2 with icon 1 giving up after dialog_timeout
    set the user_choice to the button returned of the result
    if user_choice is "Yes" then
    tell application "Finder"
    --go to the desktop
    activate
    --open the folder
    open this_folder
    --select the items
    reveal the added_items
    end tell
    end if
    end try
    end adding folder items to

    Try beginning your script like this:
    on adding folder items to this_folder after receiving added_items
    try
    set theFileNames to ""
    tell application "Finder"
    repeat with thisItem in added_items
    set theFileNames to theFileNames & name of thisItem & return
    end repeat
    end tell
    tell application "Mail"
    set theMessage to make new outgoing message with properties {visible:true, subject:"New Files on FTP", content:"New files have been posted to incoming folder of the FTP:" & return & return & theFileNames}
    It should work.

  • Automate 'Load files into stack' and save as new file

    Hello there,
    I hope someone can help me with the following issue:
    I have 300 folders, each containing 100 images which I need to open as layers, change the opacity to 1% for every layer, flatten the image and then save as a new file. So for every folder I would need one new file generated from the 100 originals.
    I know how to do it manually, i.e. load every folder with the 'Load files into stack' command and let an action run for the rest, but that does take some time with 300 folders. Maybe someone knows how to manipulate the 'load files into stack' script so that it does the job independently.
    Thank you for your answers.

    I think you would be better off starting from scratch with a new script for the design and structure of the 'Load files into stack' script is not easy to comprehend.
    I guess that’s sound advice.
    But another point, leroybak:
    What are you trying to achieve here anyway?
    If you want to »blend a movie into one image« like a continuous exposure of the whole movie on photographic paper (and it has been done) changing all layers opacity to 1% might be not altogether the ideal route.
    Instead converting the Layers to one Smart Object and invoking Layer > Smart Layers > Stack Mode > Mean might be better in that all layers contribute to the resulting values equally.

  • I'm trying to write an Applescript: when I add a file to a folder, I want finder to name it "1" and increment the other files in the folder by 1. i.e. once I drop a new file into the folder, the file originally called "1" will be renamed "2" etc

    I'm trying to write an Applescript. I have never used Applescript but my boss has just asked me to write a script so I dutifully nodded and said "Yes Boss"...
    The funtionality I need is that I want finder to rename the files in folder when I drop a new file in. When I add the new file (file neame: "1") to a folder, I want to increment the other file names in the folder by 1.
    So when I drop a my new "1" file into the folder, the file original file called "1" will be renamed "2", the original file named "2" will be renamed "3" etc
    I'm creating a 'stream' of images. When I add a new image i want it to nudge the other images in the folder along.
    Thanks guys!

    Maybe this will help. If you monitor the "More Like This" box (top right), other threads appear. Opening them usually displays other threads.
    https://discussions.apple.com/message/1986834#1986834

  • HT1347 When I add a folder to the library, does that mean that 'later' when I drop a new file into that folder (already added) it will automatically end up in iTunes? (or do I have to add file/folder to library every time I have a new file??) I'm using XP

    When I add a folder to the library, does that mean that 'later' when I drop a new file into that folder (already added) it will automatically end up in iTunes? (or do I have to add file/folder to library every time I have a new file??) I'm using XP...

    iTunes does not actively scan the media folders.  If you manually add content to a folder, then you must add that content to iTunes manually via the File > Add File/Folder feature.
    The only folder that gets scanned is the "Automatically add to iTunes" folder.

  • How do you write any kind of content you want into a new file using Java?

    I know this is extremely basic, but I have absolutely no idea how to do this!
    How can I create a brand new file on my machine, this new file containing literally ANYTHING I want: String content; Image content, Excel content, Whatever content.. literally anything on the planet I can come up with..??
    I have tried everything I can think of to no avail and have exhausted every online tutorial I could find both here and via Google, to no avail. I can't figure it out, and this is all I have so far:
    * FileDownloader.java
    * Created on January 10, 2007, 3:47 PM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package FileTools;
    import java.io.*;
    import java.net.*;
    * @author ppowell-c
    public class FileDownloader {
        public static void download(URL url, File file) throws IOException {
            InputStream in = url.openStream();
            FileOutputStream out = new FileOutputStream(file);
            byte[] b = new byte[1024];
            int len;
            while((len = in.read(b)) != -1) {
                out.write(b, 0, len);
            out.close();
        public static void download(String path, File file) throws IOException {
         download(new URL(path), file);
        public static void download(String path, Object contents) throws IOException {
         ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(path));
         out.writeObject(contents);
         out.close();
    }This code fails to download contents into a new file in the case whereby I want to create a new .ico Icon file with the contents from ImageIcon.getImage() as an example, which is what I want to do right now.
    Thanx
    Phil

    beyond any mortal being? In PHP it's extremely easy,
    it's just three lines:
    <?
    $fileID = @fopen('/path/to/your/file', 'rb');
    @fputs($fileID, $contents);  // $contents can be
    literally anything, even anobject!
    @fclose($fileID);
    The thing here is - what is in $contents? I personally don't have a clue how to manually create the contents for a .bmp file for instance - I don't know what should go where in order for a .bmp reader to be able to recognize the file as a "real" bitmap (.bmp) file. I can, however, just put anything I want - anything at all into a file, write it out, calling it a .bmp file. Will it be a .bmp file? No, of course not. So, what is in $contents?
    ~Bill

  • Combining picts into one new file?

    Hi, does anybody know a way to combine a few pictures (for instance a sequence of two or three pictures) into one new file that can be exported after that? I mean within Aperture ofcourse.

    You can't. Use an image editor for tht.
    In order of price here are some suggestions:
    Seashore (free)
    The Gimp (free)
    Graphic Coverter ($45 approx)
    Acorn ($50 approx)
    Pixelmator ($50 approx)
    Photoshop Elements ($75 approx)
    There are many, many other options. Search on MacUpdate.
    Regards
    TD

  • Moving files into new folders (help needed)

    Hi it would be grate if some one could help me....
    in/with my program i need to move a file (mp3) from one folder into a new folder???

    ...i was and i also tried with out it...here is my code (for both classes!)
    it does not have the returnTo()...i took it out...this is working...but the mp3 files need to be moved into the files that have been created or already exist...
    import java.io.File;
    import cs1.Keyboard;
    public class DirectoryList  {
    /* This program lists the files in a directory specified by
        the user.  The user is asked to type in a directory name.
        If the name entered by the user is not a directory, a
        message is printed and the program ends.
    static String directoryName;  // Directory name entered by the user.
    static File directory;        // File object referring to the directory.
    static String[] files;        // Array of file names in the directory.
        String[] arguments;
    public static void main(String[] args) {
        System.out.print("Enter a directory name: ");
        directoryName = Keyboard.readString().trim();
        directory = new File(directoryName);
        if (directory.isDirectory() == false) {
            if (directory.exists() == false)
               System.out.print("There is no such directory!");
            else
               System.out.print("That file is not a directory.");
        else {
            files = directory.list();
            System.out.println("Files in directory \"" + directory + "\":");
            for (int i = 0; i < files.length; i++)
                System.out.println("   " + files);
    } // end main()
    import java.io.*;
    public class ReadID3
        static String artist;
        static int index = 0;
        public static void main(String[] arguments)
            DirectoryList.main(arguments);
            if (DirectoryList.directory.exists() == true)
            for(int index = 0; index < DirectoryList.files.length; index++)
                try
                    File song = new File(DirectoryList.directoryName + File.separator + DirectoryList.files[index]);
                    FileInputStream file = new FileInputStream(song);
                    int size = (int)song.length();
                    file.skip(size - 128);
                    byte[] last128 = new byte[128];
                    file.read(last128);
                    String id3 = new String(last128);
                    String tag = id3.substring(0, 3);
                        if (tag.equals("TAG"))
                            System.out.println("\nTitle: " + id3.substring(3, 32));
                            System.out.println("Artist: " + id3.substring(33, 62));
                            System.out.println("Album: " + id3.substring(63, 91));
                            System.out.println("Year: " + id3.substring(93, 97));
                            artist = id3.substring(33, 62);
                            createFiles();
                                File newLocation = new File( DirectoryList.directoryName + File.separator + artist);
                                System.out.println("'song' exists? "+song.exists());
                                System.out.println("'newLocation' already exists? "+newLocation.exists());
                                System.out.println("Renaming succeeded? "+song.renameTo(newLocation));
                        else
                            System.out.println(arguments[0] + " does not contain"
                            + " ID3 info."); 
                            file.close();
                catch (Exception e)
                    System.out.println("Error � " + e.toString());
        public static void createFiles()
                File f = new File(DirectoryList.directoryName + File.separator + artist);
                f.mkdir();

  • Why won't new files import into LR 3.6?

    So, there are a couple of new .TIFs that I want to import into an existing LR folder.  Under Import the window shows both of those new files, each checked, as the only ones not already in the LR library.  So I click on import and one of three things happens:  (1) they immediately import, (2) the window goes blank forever except for a message that there's nothing to import, (3) the window goes blank forever with a message "Import in progress...".  This is infuriating, expecially since there appears to be no way to escape from this infinite import loop. Note:  the newly named files open perfectly in PhotoShop when it is invoked outside of LR.  What is LR seeing that PS is not seeing, and how do I correct this bug? Or at least make an orderly retreat from the infinite loop?

    AVI is a wrapper, what is inside YOUR wrapper - Exactly what is INSIDE the video you are editing?
    Codec & Format information, with 2 links inside for you to read http://forums.adobe.com/thread/1270588
    Report back with the codec details of your file, use the programs below... A screen shot works well to SHOW people what you are doing
    https://forums.adobe.com/thread/1070933 for screen shot instructions
    Free programs to get file information for PC/Mac http://mediaarea.net/en/MediaInfo/Download
    GoPro http://forums.adobe.com/message/4486784
    -below says Mac (Win process should be the same) but even GoPro says to convert to edit
    -http://gopro.com/how-to-prepare-video-files-for-editing-apple-mac/
    -use to convert http://gopro.com/software-app/cineform-studio/

  • Insert PDF into new Adobe Form - merging two PDF files into one

    Hi everyone,
    I need to enable access to archive PDF files but within a new PDF file containing header and footer.
    Request is not to change archived PDF files at all.
    I use Web Dynpro application to upload PDF file and to display new PDF file.
    I thought converting archive PDF files into JPG files and than using an 'Image Field' object to display those in a new PDF file.
    I am dealing here with PDF version 1.3 files.
    I am also having trouble converting these PDF files into JPG files. Any sugestions one this problem?
    Does anyone have any suggestion on how to deal with this concerning the fact that archive PDF files can not be changed?
    Is there some other way to merge two PDF files into one using Adobe Designer?
    Regards,
    Amel

    Hello, Lukasz:
      I am also facing similar requirement from my customer.
      And I found one useful blog, hope this blog can help you.
      http://wiki.sdn.sap.com/wiki/display/WDJava/CombinePDFfileswithWebDynproforJava
      Best regards, Nick.

  • Why does an image size 6x6 240 print out 6.25x6.25 when I drag it into a new file 24x7  240?  When I print it before I drag it into the new file it prints out 6x6.

    Why does an image size 6x6 240 print out 6.25x6.25 when I drag it into a new file 24x7  240 image size?  If I print it before I drag it into the 24x7 240 file it prints 6x6.

    What is the number 240 meant to indicate here – the resolution? If so please also give the unit.
    And what are your printer and the print settings you use, could there be any scaling involved in the printing itself?

  • Used ipod as a drive to copy songs into new itunes on new computer. Some songs do play in entirety, las minute cuts off with nothing plyaing, or it suddenly starts playing a different song. "TIme" shown is correct in the file.

    Used ipod as a drive to copy songs into new itunes on new computer. Some songs do play in entirety, last 30 seconds to minute cuts off with nothing plyaing, or it suddenly starts playing a different song. "TIme" shown is correct in the file. Any way to fix this?

    I copied the iTunes file from the external drive and it's in both places.  I thought all I would need is the iTunes program (which I downloaded to new computer) and my iTunes library file.  There must be something else that's missing.  My iTunes library looks the same on the new computer as it does when I open it on the external drive.  If I click on an iTunes library song from my new computer, it will only play if I have the external drive plugged in.
    My back-up drive is a mess.  I have multiple copies of music, video, photo, and document files and I don't know how that happened. ={  Obviously, I don't know how to back up stuff properly and there are back-up files extending over a 6- to 8-year period.  I think all I did was just drag and drop the main folders from the back-up drive to the same main folders on the C: drive.  Also (and I'm kind of fuzzy on this) Windows used to automatically save music files in a folder within my document files (which makes no sense to me).  As my Jewish friends would say, "Oy Vey!" 

  • Print a new model into a file

    Hi everybody!
    After capturing a design from a server model,
    what can I use to print the new model into a file ??
    Thanks for any help!

    RMy wrote:
    > I prefer to make a screen dump (Alt+PrintScrn) and paste picture into
    > my document. Alternative: Print to a .rtf-file. Problem is with large
    > blockdiagrams that doesnt fit into one page. Solutions?
    Maybe installing a hpgl-driver and print to a file.
    Download the hpgl-graphics filter from microsoft (was included until
    Office 95 i think) and import it to the word-document.
    You'll lose the colors this way (as far as i remember).
    Use a postscript printerdriver to print to a file. Convert it to
    something, you can import to your application.
    Use a pdf-printerdriver. But I don't know how you can import graphics
    from pdf (a subset of postscript) to other applications.
    Print to PostScript-File, use ImageMagick's "convert" program to conver
    t
    it to something userful for you and import it.
    These are my ideas...
    bye
    Marco

Maybe you are looking for

  • Mail plist question

    Well, I had the same mail issues that everyone had yesterday, but then things seemed to be working again last night and this morning, but now AGAIN I am not getting emails. The status page has a green light and says all systems are "go", but I'm gues

  • Maximum Render Quality CS5.5

    My project is about 1hr 15 mins long, covering 8 sequences. 3 days ago, I encoded using the MPG2-DVD preset and burnt a trial disk with an Encore project. After reviewing the disk, I made a few trivial changes to the PP project and encoded again. Exa

  • Maximum RAM for HP Pavilion All-in-One MS228sc

    Since my HP Pavilion All-in-One MS228sc is getting increasingly slow - even after releasing space on the hard-drive I am researching on the possibility for a RAM upgrade. The Pavillion ins "born" with 2 GB RAM in the slots and 2 GB virtual RAM. My qu

  • Use of Adaptive RFC and locking

    Hello, I am using an adaptive RFC model inside a Web Dynpro Application to maintain data residing on a SAP Enterprise system. This RFC also sets a lock in order to make sure nobody else tries to change the same data. I use pessimistic locking which m

  • Compress Pdf in C# Need Code

    Hello, I want to compress pdf... Can any one tell me how can i compress the pdf in c#  point me to some article. I have the License Copy of Adobe Professional. I am using the Adobe Version X. so any one please assist me how can i compress the pdf. Le