How can I copy records from a Table to a ASCII/ Text file.?

Hi
Can you help me with code for copying the records from an oracle table to a Text file,? I like to copy the 1200 records from a 7 field table to a .txt file and print out the out put.
earliest reply is deeply appreciated.
regrds
Saj

All I would do is, in SQL*Plus, spool your output to a file and change the pagesize to however many lines you want before the next header break.
For example:
SET PAGESIZE 79
SPOOL OUTPUT.TXT
Would create an output file called OUTPUT.TXT with header rows produced after every 79 rows of data.

Similar Messages

  • How can i fetch records from 3 tables in a single query  without using join

    Hi.
    Can any body please tell me <b>How can i fetch records from 3 tables with a single query  without using joins</b>
    Thanx
    prabhudutta

    Hi Prabgudutta,
    We can fetch the data by using the views concept.
    Go throuth this info we can know the how to create view and same like database table only we can fetch the data.
    Views conatin the data at runtime only.
    Four different view types are supported. These differ in the
    way in which the view is implemented and in the methods
    permitted for accessing the view data.
    Database views are implemented with an equivalent view on
    the database.
    Projection views are used to hide fields of a table (only
    projection).
    Help views can be used as selection method in search helps.
    Maintenance views permit you to maintain the data
    distributed
    on several tables for one application object at one time.
    step by step creation of Maintenance view:
    With the help of the table maintenance generator, you are able to maintain the ENTRIES of the table in SM30 transaction.
    It can be set in transaction SE11 - Tools - Table maintenance generator.
    Table maintanance Generator is used to manually input values using transaction sm30
    follow below steps
    1) go to se11 check table maintanance check box under attributes tab
    2) utilities-table maintanance Generator-> create function group and assign it under
    function group input box. Also assign authorization group default &NC& .
    3) select standard recording routine radio in table table mainitainence generator to move table
    contents to quality and production by assigning it to request.
    4) select maintaience type as single step.
    5) maintainence screen as system generated numbers this dialog box appears when you click on create button
    6) save and activate table
    One step, two step in Table Maintenance Generator
    Single step: Only overview screen is created i.e. the Table Maintenance Program will have only one screen where you can add, delete or edit records.
    Two step: Two screens namely the overview screen and Single screen are created. The user can see the key fields in the first screen and can further go on to edit further details.
    SM30 is used for table maintenance(addition or deletion of records),
    For all the tables in SE11 for which Table maintenance is selected , they can be maintained in SM30
    Sm30 is used to maintain the table ,i.e to delete ,insert or modify the field values and all..
    It creates the maintenance screen for u for the aprticular table as the maintenance is not allowed for the table..
    In the SE11 delivery and maintenance tab, keep the maintenance allowed..
    Then come to the SM30 and then enter the table name and press maintain..,
    Give the authorization group if necessary and give the function group and then select maintenance type as one step and give the screen numbers as system specified..
    Then create,,,
    Then u will able to see the maintenance view for the table in which u can able to insert and delete the table values...
    We use SM30 transaction for entering values into any DB table.
    First we create a table in SE11 and create the table maintenance generator for that Table using (utilities-> table maintenance generator) and create it.
    Then it will create a View.
    After that from SM30, enter the table name and Maintain, create new entries, change the existing entries for that table.
    Hope this resolves your query.
    Reward all the helpful answers.
    Rgds,
    P.Naganjana Reddy

  • How can i copy ztable from development server to ides server?

    how can i copy ztable from development server to ides server?

    Hello Suresh
    The simplest way is to use a transport request.
    Another possibility is to check for SAPLINK plugins which allow to download table definitions (including data elements and domains) into a flat file. Upload on IDES again via [SAPLINK|https://wiki.sdn.sap.com/wiki/display/ABAP/SAPlink].
    Regards
      Uwe

  • How to delete a record from BSEG table

    Dear Experts,
    How to delete a record from BSEG table.
    If there possible to delete some records from transparent table ?
    Please help.
    Regards,
    Tan

    Hi,
    Deleting a record from a standard table can be done only if table maintenance exists - Cehck tcode - SM30.  But it is not advisable to delete records, coz the records may be dependent on many other tables.  If u delete in a single place, there may be chance that inconsistency in the data happens and hence will affect ur financial statements.
    Pls. assign points, if useful
    Regards,
    Sridevi

  • How can i copy apps from one computer to another?

    how can i copy apps from one computer to another?

    You don't mention which operating system you have so it's difficult to provide an answer since the mac and Windows stores the files differently.
    The other thing you can do is just re-download the apps from the iTunes Store. Just login to the iTunes Store on the other computer using the same Apple ID. On the right-hand side of the iTunes Store page you will see a 'Purchased' link. Clicking on that will take you to a page that will list your past purchases which you can re-download to the new computer.

  • OSB : How can we copy  actions from one project folder to other projects?

    How can we copy actions from one project folder to other projects in OSB?
    For eg:
    I have a service call out action in Project1/proxySer1
    I want to copy this to Project2/proxySer2.
    Espicially, in our case error handling callout is common to all of our projects and we should be able to copy from one to another.
    Edited by: user10367892 on Aug 20, 2009 12:28 PM

    Thank you for the reply.
    It was my fault. I was on two different servers, while i was doing this and so didn't work. But copy /past action works as you suggested.
    Can I select multiple actions from one stage and paste to different proxy service? I have too many options to copy/paste and hence I have this question.
    Is there any other way of copying all selected actions in one stage to another, but not the complete stage itselft?

  • How can I copy layers from one .fla file to another .fla file?

    Hi,
    How can I copy layers from one .fla file to another .fla file? Please do help.
    Thanks.

    Select all the frames you want to copy, right click and select copy frames then select the file you want to paste them into and right click again and then paste frames.
    The layers the frames are should come across with them.

  • How can I copy pictures from my PC to my iPad2 without going through iTunes?

    how can I copy pictures from my PC to my iPad2 without going through iTunes?

    David Witcoff wrote:
    Is there a step-by-step instruction guide I can find re how to so import photos through iTunes?
    For windows pc's Photo albums:
    1) Create a master sync folder on your pc with no photo files at the root level of the folder.
    2) Create sub-folders within the master sync folder with the subfolders named what you want the ipad's photo albums to be named.
    3) Place the photo files you want to sync in the appropriate subfolder within the master sync folder.
    4) In itunes on the photos tab, select the master folder as the sync folder.
    5) After syncing, each subfolder will be an album on the ipad with the proper photos contained there-in.

  • How can i copy contacts from my iphone 4 to SIM card

    how can i copy contacts from iphone 4 to SIM card?

    You can't. Contact info is not stored on a SIM card in an iPhone.

  • How can I copy music from my old ipod to my new one??

    How can I copy music from my old ipod to my new one?? They are not on my computer because it is also new, and the old one is not working anymore. Is there a way to do this without having to import the music from the cds again??

    Check this out:
    Getting Music from your iPod to your Computer 3rd party options
    I hope this helps!

  • How can I copy contacts from old iphone (4) to my new iphone 4s ?

    how can I copy contacts from my old iphone (4) to my new iphone 4s ?

    http://support.apple.com/kb/HT2109
    Bah wjo beat me

  • How can I copy notebook from iPhone 3GS to iPhone 4

    How can I copy notebook from iPhone 3GS to iPhone 4

    Is Notebook a 3rd party app?
    If so, you want to install the Notebook app on your iPhone 4 as well?

  • How can i copy itunes from ext.hardrive t o mac itunes, when i try igot a question? (if i want to delete my old itune and copy my new itunes to finder)) not sure how to cmby bough itunes in finder

    PLEASE somebody....how can i copy itunes from ext.hardrive to mac itunes, when i try i got a question? (if i want to delete my old itune and copy my new itunes to finder)) not sure how to cmby bough itunes in finder.

    PLEASE somebody....how can i copy itunes from ext.hardrive to mac itunes, when i try i got a question? (if i want to delete my old itune and copy my new itunes to finder)) not sure how to cmby bough itunes in finder.

  • How can i Copy paste from e-mail to Notebook or textbook

    How can i Copy pasta from some Content of e-mail to the notepad or textbook or word?

    hold your finger down in the body of the mail - the part you want to copy. a blue box will comeup and offer to 'select/select all' or something like that. choose the appropriate choice. If you only want part of it that bubble will have two handles that allow you to drag out the selection box.
    then hold your finger down again and another bubble will come up offering to cut/copy the words. choose copy
    then navigate to your notes app (not sure about the textbook, depends on whether or not it support it) and hold your finger down in an empty text area. you'll get another blue bubble offering to paste it. choose that and the words should appear. then save as appropriate.

  • How can i copy photo from my computer to ipad

    How  can i copy photos from computer to ipad?

    You sync http://support.apple.com/kb/HT4236  photos on your computer to ipad.

Maybe you are looking for

  • Format of date in calendar

    hi, i created a screen in which input field is date. the format i hav given is DATS, so we get input help by default. but wen i select some date from the calendar displayed as input help , the date is shown in the format "MM/DD/YYYY". I need it in th

  • After upgrading to Firefox 4.0.1 all backgrounds/images on websites are gone.

    After upgrading to Firefox 4.0.1 all backgrounds and images on websites are gone. Please help.

  • Add swatch throwing error 1200

    I have a simple script which is attempting to add a swatch. However, it is throwing "Error 1200: an Illustrator error occurred: 1312914990 ('NA~.') Line: 18 -> newSpot.colorType = ColorModel.SPOT;" This is an example taken straight from the docs, the

  • Photo Management through Dropbox and without iPhoto

    Good evening, I have finally made the jump back from iPhone to BB and i'm loving it. Go Blackberry!!! The ability to port some apps from android has bridged most of the gaps from the store.  My biggest show stopper right now is getting dropbox to syn

  • Error using WebServicesAssembler to create webservice for PL/SQL-Example

    Hello all, I tried to create a webservice based upon the pl/sql package emptax (Oracle Example: Boolean). The package just contains: PACKAGE EMPTAX as FUNCTION getTax(employeeid number, ismarried boolean) RETURN number ; END Emptax; JAVA_HOME, ORACLE