Which is the size of the file through sql/sqlplus

Dear all

I have set up 10g database job sheduler that auto export dump file, I want to check the size of the file (using sql/Plsql) after completing the work on E:\dumps\01012008.dmp.
What function can I use, how can I do that.

Thank you

You set the directory correcly?
If so, it will be workfine...

-bash-3.00$ ls -ltr VI.DAT
-rw-r-----  1 orapps oinstall 41951232 Oct 21 12:11 VI.DAT

SQL> DECLARE
  2   ex BOOLEAN;
  3   flen NUMBER;
  4   bsize NUMBER;
  5   BEGIN
  6   utl_file.fgetattr('DIR1', 'VI.DAT', ex, flen, bsize);
  7   IF ex THEN
  8   dbms_output.put_line('File Exists');
  9   ELSE
 10   dbms_output.put_line('File Does Not Exist');
 11   END IF;
 12   dbms_output.put_line('File Length: ' || TO_CHAR(flen));
 13   dbms_output.put_line('Block Size: ' || TO_CHAR(bsize));
 14   END fgetattr;
 15  /
File Exists
File Length: 41951232
Block Size: 4096

Tags: Database

Similar Questions

  • I have the UI which downloads the file in file multiprt transfer in chuncks. It worked very well in a previous version of firefox, but now ajax calls gets abandoned?

    I have the UI which downloads the file in file multiprt transfer in chuncks (blob file). It worked very well in a previous version of firefox when we send chuncks 10 MB for each ajax calls. But now in the last version of firefox, its get rejected for 10Mo chuncks with every call, but allowing only 4 KB be sent for each call. You guys could help me. I also tried with the Application (/ octectstream). It also works very well in all browsers.

    Hi Sivasathy, support.mozilla.org is intended for management of the end user. If you have questions about web development please refer to the place to go for support the developers instead. Thank you for your understanding!

  • I change the settings of firefox and accidentally closed on the display tab, which displays the files, settings, and tools. I can't see how to reset it back to default where I can see those?

    I change the settings of firefox and accidentally closed on the display tab, which displays the files, settings, and tools. I can't see how to reset it back to default where I can see those?

    You can hide the menu bar in Firefox 3.6 on Windows, on "view > toolbars" or via the contextual right click menu on a toolbar.
    Press in and hold the Alt key to display the menu bar.
    Go to "view > toolbars", right click on the menu bar, or press Alt + V T to select the toolbars to show or hide.

    See also what happened to the file, edit and view menus?

  • -A file association problem exist, which prevents the file you are trying to download from being associated with the correct application of the operating system using the windows 7 IE 11

    --Is a file association problem, which prevents the file you are trying to download from being associated with the correct application of the operating system

    IN USING THE WINDOW 7 IE 11 HOW CAN I FIX IT?

    Try to download the installation offline programs:

  • What used cmd which brings the sys before sql prompt?

    Hello everyone

    can you please let me know

    What used cmd which brings the sys before sql prompt? As say he's help me market my cmd of flashback.


    Thank you

    are you talking about Abu?

    SQL>set time on set timing on
    

    ?

  • SP2-0310-could not open the file "catalog.sql.

    I created the database and after completing the creation

    I encounter error SP2-0310-could not open the file "catalog.sql.

    When I gave

    SQL > @catproc.sql

    If I gave as

    SQL > exec catproc.sql

    then I get

    ERROR on line 1:
    ORA-06553: PLS-213: STANDARD package is not accessible

    That's great.. good luck :) Please close the message.

    Anil Malkai

  • Compare 2 PDF of the file through the command line using the Acrobat SDK

    Hello

    I want to compare 2 by command line of the PDF using the Acrobat SDK, is it possible?

    My needis to create Automation for comparison in .net, c# technology to compare files of 100.

    Could you be it someone at - it one please let me if the Acrobat SDK kit supports integration with .NET and is it possible to call the term comapere.

    OK, Acrobat is not suitable. It is not technically suitable for the server; also no license. It doesn't have a command line, only OLE user interface.

    There are Acrobat PDF library, allowing development in C/C++. But I think that there is no function to compare. You will need to implement one yourself, which is a probably a lot of work. What kind of comparison do you want? If you just want to know if the files have changed at all you can use all the checksums without any API. Or are you looking for any Visual change? Or text change...?

  • How can I change the creation date of the file through Labview 2012?

    I want to change the format of the data stored in text files, but I want the dates of the files to stay the same.  Currently, my program creates files with the new dates.

    LabVIEW to my knowledge has no native functions to do.

    You can use functions to get/set CreationTime, LastAccessTime and LastWriteTime .NET on Windows.

    See attached VI (LabVIEW 8.6)

  • Large remote directory shows only the files through M?

    I use Dreamweaver MX 2004 to maintain my blog photo site.

    I have now approximately 3,500 photos on my site.  All photos are displayed in my local blog/images directory.

    But in my remote blog/images directory, I see that the pictures whose name begins with a number or one of the letters A to M.  It's as if Dreamweaver is mowing the half view files.

    Is there a way to tell him not to do it?

    I don't really want to split the directory into two, as then I have to change almost 2 000 image tags in the archives of the blog...

    Can you be sure it's DW and not the server? Have you tried other FTP programs to check? Quite possible the server limit the list for performance reasons. If so, the only way to be sure would be to split the files in separate directories, but I guesss what all your files beyond M are properly stored on the server, but does not.

    Mylenium

  • Database demo of vision: how to access the database through SQL * more?

    I'm totally new in this space, so forgive my beginner questions.

    What I want to do, is to integrate EBS with APEX. To get there I downloaded (of delivery) and installed the Vision database unique node in a VirtualBox. To do this, I followed this video on YouTube: https://www.youtube.com/watch?v=8JgxMDPsd6s

    Now I want to install APEX and for this I need to access my database as SYS. Now for my questions:

    1. How can I use SQL * more in the VirtualBox?

    2. What is the default password for SYS with this demo database?

    Thanks, Alex

    File under $ORACLE_HOME and the owner is the user 'oracle '.

    You will need to source the file VISION_ebs.env , and then deliver "env | fate"and you should see the set env variables. You can connect as sysdba.

    Thank you

    Hussein

  • How can I determine the total size of the file through several subfolders?

    I intend to spend all my digital photos from my hard drive to a set of flash drives.  I want to determine how much disk space flash that I need, but my photos are organized into several folders and subfolders.  Is it possible to get an estimate of the size for all folders and subfolders of the folder my pictures?

    How to see the size of the folder in Vista
    http://www.Vistax64.com/tutorials/118967-folder-size.html

  • Which of the files in disk cleanup are safe to delete?

    That are safe to delete?

    Per user queued Windows error report is 2 GB in size, I am the only user on the pc, no idea how he could be so great?

    Original title: Disk Cleanup

    They are all still safe to delete.  None of them are needed at all.  Many will come when necessary (including the reconstruction of the thumbnails of the photo folders).  Click on one to see a full description of what is in the description below it.

    While these can save disk space, do not forget that some of them may be better and let your computer run faster. For example, these tiles allow a quick view of your folders. If delete you it, your computer will lag while the thumbnails are rebuilt at the next time. Similar impacts with some temporary files.

  • do action of photoshop which saves the file with the specific file name

    Is there a way to make a photoshop action that makes a SaveForWeb, but adds text in the name of the original file when recording?

    By example, if I open a file called "guard page", and I want the action of making SaveForWeb in JPEG format, can I save as "coverPageWEBVERSION"?

    Thank you for your time and help

    No it's something, for that you will need for scripting.

    They really should introduced some changes to the dialog box Save that allows additions or of the changes can be triggered again in the actions of file naming. But they never have.

    As a solution, bridge is a good tool to rename, because there is naming can be SAVED and quickly applied to groups of files. Done - on a mac it is not often known are also the scripts OS can do the same thing. There is a script called "rename the items' hidden somewhere. It is accessible through the control or right-click on a group of files and going through the submenu "automate".

  • Which bar the file to download?

    According to this article here:

    http://supportforums.BlackBerry.com/T5/Cascades-development-knowledge/how-to-generate-a-bar-file-to-...

    It is in the folder "arms / o.le - v7.

    In this case, I see:

    MyApp - 1_0_0_1.bar

    It is the right, or is the one in the folder ' arm / o.le - v7 - g "the good bar file?

    MyApp.bar

    One with the version and construction inside numbers is that you download on App World.

  • Download. The files through a wire bar

    IM at my parents House and they do not seem to deal with WIFI so I can not download my application to my PB Beata. Is it possible to load it via cable?

    PS. do not live with my parents.

    Sure. If you connect via the USB port and mode of development, it will have a different IP address that allows you to upload your files.

Maybe you are looking for