Spool help

hi
I created a view which has 6000 records and each record has 54 columns.
now I am trying to spool the output data of the view to an excel sheet
as
sql>spool c:\out.csv
sql> select * from summary;
but the excel file does not display the records in an order as
one record in one column aligned.It displays unevenly and also it is not displaying all columns in the record.It displays only 14 columns.
Please help me in this
thanks

if you have excel 2003 or later, you can try
SET echo off lin 9999 pages 0 long 999999 longc 999999 feedb 9999 head off trims ON
spool out.xml
prompt <?xml version="1.0"?>
prompt <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
SELECT * FROM TABLE(xmlsequence(cursor(SELECT * FROM summary)));
prompt </root>
spool off

Similar Messages

  • Spooler isnt running

    I cant print install or delete a printer tried many times to restart print spooler doesnt work p6110f desktpo windows vista basic

    Hi Seagram,
    Would you please let me know current situation? Did you refer to the suggestion that Milos Puchta provided?
    Did it help to solve this issue?
    If this issue still persists, please don’t hesitate to let us know. Meanwhile, please let me know the version
    of OS that you use (Windows Server 2012?)?
    Just additional. You can also refer to the following similar questions, and then go further to troubleshoot
    (such as check registry key).
    Error 1068 cannot start my print spooler HELP!
    http://social.technet.microsoft.com/Forums/windows/en-US/61fab6ef-b0de-4a03-88ff-ffd473b0c2a6/error-1068-cannot-start-my-print-spooler-help?forum=itprovistahardware
    DETAILED QUESTION Windows could not start the Print Spooler service on Local Computer ERROR 1068 (Windows 7)
    http://social.technet.microsoft.com/Forums/windows/en-US/2d2cf303-a633-480c-a64f-e326c4023113/detailed-question-windows-could-not-start-the-print-spooler-service-on-local-computer-error-1068?forum=w7itprohardware
    Hope this helps.
    Best regards,
    Justin Gu

  • How do i get sql plus to start in something other than command prompt?

    I have just installed oracle 11g enterprise addition. I am use to a different type of editor for the sql plus, the one I am use to comes up in a white area and has drop downs for file, tools, spool, help and so on. You can also open notepad with a shortcut. I like this better than command prompt how do i get this?

    I think you mean sqlplusw.exe which is a Windows executable delivered until Oracle 10.2 but no more delivered with Oracle 11g.
    Mayb you can have a look to SQL Developer http://www.oracle.com/technology/software/products/sql/index.html

  • Re: Is HP Deskjet 2540 compatible with W'10

    Hi, I just bought the printer 2 days ago and only yesterday updated to Windows 10. I found that, while it printed fine with cable, it didnt work with wifi. So I have followed your instructions i.e. uninstalled the driver and re-install the latest driver (version 32.2 last updated 26 June 2015). Yet the wireless printing still doesnt work. Any thoughts on how this could work. Thanks.

    Hi ,  Thanks for getting back to me.  Click here to install the HP Print and Scan Doctor. This utility might be able to determine what's causing the 'Attention required' status you're seeing.  Does stopping and starting your print spooler help?  Press Windows key + xClick on Command Prompt AdminType net stop spooler and press EnterType net start spooler and press EnterType exit and press Enter (this will close the Command Prompt Window)If not you might need to do a manual setup. Here's how:  Press Windows key + r and type control panel and press EnterClick on the Devices and Printers folderClick Add a printer and then click on the 'my printer is not listed' hyperlink as it appears Since your printer's connected to your wireless network click on option indicated below: Type in the printer's IP address - this will cause the PC to find it on the network and you can install the Deskjet 2540 class driver for now. Let me know if either approach works out.  Regards, 

  • Win server 2012

    windows 2012 server 64 bit auto stop print spooler
    help me...........

    Hi sbanurada,
    Please check the application event log .
    Here is a similar thread :
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/0ef61405-10a1-4e8b-83ed-33ca3c318d57/windows-server-2012-print-spooler-stops-after-logging-off?forum=winserverprint
    Also you may try to download the newest driver from print official site and re-install .
    Hope it helps
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Not able to generate the spool from transaction cv02n .Kindly help,urgent..

    Hi ALL,
            I have a problem in transaction CV02N. Actually i am an ABAPER, but i need some help of PP Guys.
    The requirement is as follows:-
       The client says that they have uploaded a  '.PS'  file into the transaction cv02n.Here in the first screen they give doc, doc type,doc part, doc version. when clicked on enter it take us to second screen , where they enter the '.PS' file path under 'originals' , in the tab 'document data'.   Later they goto transaction CO01 and release an order at the operation level and save it.
    Then it generates a spool. Now if we goto SP01 and check the spool with the number generated during saving CO01. We will be getting the scripts and the '.PS' file separately in a different spool in the production system in 4.6. But in my new upgraded system(6.0), i am not able to view the '.PS' file in the output spool.It seems to me that, it is not getting generated. Pls suggest me, as it is a very urgent issue. Need to close it by today at 1.00pm.
    Regards,
    Manasa.S

    dear friend,
    there would be several reasons for that.
    first, check out your Output Device (your user in SU01) - goto to tab Defaults and look at Spool Control.
    did you tick the 'output immediately' checkbox?
    Fix it if nessesary. Just in case run SPAD to check out your device.
    second, check out the 'output' config for Document Management (because you use t-code CV02N).
    also make sure that relevant output condition exists.
    third, ask someone to do the same - another user with another output device. does he/she have the same problem?
    and the last, try to find out the functional guy or documentation.
    also ask your basis guy regarding the lost transports or any other issues...
    do not worry, life is good.
    good luck!

  • Archiving of spool requests (ERS documents) Apprentice Project HELP needed..

    Hi guys,
    I'm an apprentice from Germany and I have to do a project for my final exams. I could desparetly Need some help on getting started.
    In our SRM, we have a program for the Generation of ERS documents (credit note?).
    Firstly, the Programm BBPERS creates ERS Idocs on Basis of stock-receipt (?). Secondly, the program RSPPFPROCESS sends the ERS invoice to the supplier via mail.
    The document is saved only as an email.
    We do have a Z-Programm, ZZBBPERS, that is used for subsequent creation of ERS documents as PDFs. These are saved in the Spool, but for each invoice a different spool number is created.
    Now my Task is to find a way to Archive these ERS documents into an external Archive. We use d.3 as Archive, I don't know if you have heard of it. But that shouldn't matter right now.
    So the question is, how can this be achieved? I don't really know anything about archiving in SAP. And this is a very Special case. Where do I have to start? Do I Need to write a program, or can I use some of SAPs Standard possiblities? What programs are there for archiving spools? Can they be defined as only archiving Spools from program X? Where do I define archiving procedures?
    I hope some of you can get me started. I don't Need a perfect solution right off the bat, just a place to start and ideas how to Approach this Project.
    Thanks SO MUCH in advance for any help!
    Greetings,
    Sebastian

    Thank you so much, this brought me a leap Forward.
    So the Business object should be the BUS2207, right? This is our Business object for ERS. We don't have BUS2081, what is that?
    edit: Wait, what is the difference between Business Object and Archiving Object? We do not have an archiving object vor ERS.
    To clarify: We do not book in SRM, we are sending it per Idoc to another SAP System where the booking takes place.
    We are just creating the PDF out of the BUS2207 and sending it to the vendor via RSPPFPROCESS and Action "BBP_ERS".
    Can you tell me where I can see detailed Information for the Archive Connection? I have the entry in OAC0 with IP address and all. But we have no records of ever archiving in this System so how can I see Connection details and test it?
    I also have to analyze if ArchiveLink is already set up and working..
    Also, where do I define how the files are saved in the storage System? With this I mean like in which Content repositories / Folders and so on they are saved.
    What Information are given to the PDF? All document informations, like Dates invoice number and so on? How can I use them for my Archive structure?
    Thanks in advance.

  • Printer Spooler In Need Of Serious Help!

    I really need some help i tried everything i could and i still can not get my printer spooler to work i even tried the steps listed in the board  below and when i went to modify it says value not set and i tried the whole steps and it still didnt work i went to view local services and tried to start my printer spooler again and it still came up with an error message. PLEASE HELP!!!! IM DESPERATE OF NEEDING HELP!!!! i have had this laptop for 5 months and my printer spooler decides to quit and screw up on me  

    Thanks for your help.
    The bottom line is I want my Mac to "Just Work".
    I am a reformed windows user...
    Specifically, I need a few things done here:
    I am not heart broken about Time Machine not working. My music and such are all on my external.
    I wanted to simply move all of my data to another external. Reformat my external to Mac OS Extended (Journaled). Move my data and my friends back to my external and finally reformat his drive hopefully avoiding all sorts of these problems after the reformat.
    I have copied all of my data to the other drive. It was not easy but it happened. I did manage to reformat my external in Mac OS Extended (Journaled). I am now struggling to copy all of this data back to my drive. As I copy files back to my Mac formated drive the computer states "the drive is in use" or an obscure "file is in use". Obscure as in it is say a music file and no music is running.
    I was hoping after the reformat I could just dump the data back to my external overnight (its 500GB) and reformat the other drive.
    During all of this my computer showed that my computer (which is listed and Marc McLellan's Computer) was in use and now it is running my computer (2) (Marc McLellan's Computer (2)). No idea how to fix. I am thinking that this is a problem. This is the only way the system could gather that some of these copied files are in use. This is the problem to fix. How to I revert back to the original?
    Again I appreciate your help,
    I hope this makes sense...
    Marc

  • Seek help to format spool file from SQL*PLUS

    I am running a Unix shell script to call a Oracle 11g SQL script from a Oracle database. In this SQL script, I need to connect to many different remote databases to select data, then sool these records as one big text file to a directory. Then email the file to related Group users. In the spool file, there is a line on the top of each page like this:
    DUMMY
    DB_NAME
    I know this is caused by connect to remote database in SQL*PLUS. My connection string is like this:
    Conn system/password@Oracle_SID
    How can I remove these lines or how to skip these lines into spool file? Please advise. Thanks in advnce. Wish all of you Happy New Year!!!

    Hi,
    It sounds like you have some kind of formatting (such as SQL*Plus TTITLE) producing the output you don't want. If that's the case, temporarily stopping the spooling might not help you. Find out what is causing the output that you don't want. You say that you know it is caused by the CONNECT statements, but it must be more than that. I've written scripts with CONNECT statements that don't have anything like what you reported at the top of each page; in fact, they don't even have pages: the output is one continuous stream. Find out what's putting the unwanted output there, and that will be a big clue as to how you can stop it.
    You say that you know the unwanted titles are there because of the CONNECT statements. If so, use database links instead of CONNECT. You don't have to use dbms_scheduler or utl_file; just eliminate the CONNECT statements. (I'm not saying that there's anything wrong with dbms_scheduler or utl_file; you should definitely investigate those tools. I'm just saying that using database links is independent of them.)
    What would happen if you did all your connecting to different databases at the OS level? Can you write a shell script that connects to each database in turn, and runs a SQL*Plus script in each one. Each SQL*Plus script would have a SPOOL or SPOOL ... APPEND command, or maybe you could build the SPOOL into a LOGIN.SQL script.

  • Help required:Spool Creation for posted document in FB03 transaction

    Hi Experts,
    The requirement is like I have to send the PDF document to the user by mail once the document gets posted in SAP ECC. The posting is taking place by IDOC.
    The problem is how do i get the spool request for the document which is posted in ECC. It can be seen by entering document number in FB03 transaction but there is no smart form or SAP script or any Output type. The document is posted by IDOC.The client wants the PDF document excatly as seen from FB03 transaction. Please help as this is typical requirement i have never come across.
    Do let me know some of the user exits where in just after the posting i can write my code for spool creation. The idoc is using the BAPI_ACC_DOCUMENT_POST.

    HI
    In test mode i am able to view the document no. but not the reference document no and when double click on the document no i am not able to view the journal entry.
    Thanks.

  • HELP!! Very Large Spooling / File Size after Data Merge

    My question is: If the image is the same and only the text is different why not use the same image over and over again?
    Here is what happens...
    Using CS3 and XP (P4 2.4Ghz, 1GB Ram, 256MB Video Card) I have taken a postcard pdf (the backside) placed it in a document, then I draw a text box. Then I select a data source and put the fields I wish to print (Name, address, zip, etc.) in the text box.
    Now, under the Create Merged Document menu I select Multiple Records and then use the Multiple Records Layout tab to adjust the placement of this postcard on the page. I use the preview multiple records option to lay out 4 postcards on my page. Then I merge the document (it has 426 records).
    Now that my merged document is created with four postcards per page and the mailing data on each card I go to print. When I print the file it spools up huge! The PDF I orginally placed in the document is 2.48 MB but when it spools I can only print 25 pages at a time and that still takes FOREVER. So again my question is... If the image is the same and only the text is different why not use the same image over and over again?
    How can I prevent the gigantic spooling? I have tried putting the PDF on the master page and then using the document page to create the merged document and still the same result. I have also tried createing a merged document with just the addresses then adding the the pdf on the Master page afterward but again, huge filesize while spooling. Am I missing something? Any help is appreciated :)

    The size of the EMF spool file may become very large when you print a document that contains lots of raster data
    View products that this article applies to.
    Article ID : 919543
    Last Review : June 7, 2006
    Revision : 2.0
    On This Page
    SYMPTOMS
    CAUSE
    RESOLUTION
    STATUS
    MORE INFORMATION
    Steps to reproduce the problem
    SYMPTOMS
    When you print a document that contains lots of raster data, the size of the Enhanced Metafile (EMF) spool file may become very large. Files such as Adobe .pdf files or Microsoft Word .doc documents may contain lots of raster data. Adobe .pdf files and Word .doc documents that contain gradients are even more likely to contain lots of raster data.
    Back to the top
    CAUSE
    This problem occurs because Graphics Device Interface (GDI) does not compress raster data when the GDI processes EMF spool files and generates EMF spool files.
    This problem is very prominent with printers that support higher resolutions. The size of the raster data increases by four times if the dots-per-inch (dpi) in the file increases by two times. For example, a .pdf file of 1 megabyte (MB) may generate an EMF spool file of 500 MB. Therefore, you may notice that the printing process decreases in performance.
    Back to the top
    RESOLUTION
    To resolve this problem, bypass EMF spooling. To do this, follow these steps:1. Open the properties dialog box for the printer.
    2. Click the Advanced tab.
    3. Click the Print directly to the printer option.
    Note This will disable all print processor-based features such as the following features: N-up
    Watermark
    Booklet printing
    Driver collation
    Scale-to-fit
    Back to the top
    STATUS
    Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
    Back to the top
    MORE INFORMATION
    Steps to reproduce the problem
    1. Open the properties dialog box for any inbox printer.
    2. Click the Advanced tab.
    3. Make sure that the Print directly to the printer option is not selected.
    4. Click to select the Keep printed documents check box.
    5. Print an Adobe .pdf document that contains many groups of raster data.
    6. Check the size of the EMF spool file.

  • Help please - when printing to adobe pdf, this hangs and stays in spool status

    Can someone help assist and troubleshoot this problem I'm facing with printing to pdf.
    The background is I provided a vendor a Word converted PDF document approval letter to upload into the system.  While UAT testing, we are not able to print to PDF - hangs in print spool.
    However the document checklist that had been uploaded into the system, properly prints to pdf (see page 2 attached).  Is there any way to debug or determine the root cause since the vendor believes that they have delivered a product that works from their perspective and suggest it's an Adobe issue.

    Hi,
    Could you please provide both the word documents(one that prints and the other that does not print) ? This would be helpful in isolating the issue.
    Thanks,
    Swati
    [email protected]

  • Sqlplus SPOOL broken.  Urgent help.

    I have never seen this before.
    I am running a spool of a small query. It returns 7 rows and they are displayed. I go to look at the .lst file and the first row is gone from the spooled .lst file. I have tried this multiple times, and the results vary- sometimes it removes the first row and sometimes it removes the first column of data form the first row.
    ??????????????? Any idea where to start looking for trouble other than the alert.log?

    > Urgent help.
    My usual soapbox response (again).
    Please do not call your problem urgent. Why?
    Because you are saying that your problem is more important and more deserving attention than other people who post problems here. That is just a rude and arrogant thing to do. Your problem is by no means more important than any other person's problem in this forum - as you are in no position to compare and judge that.
    You are also demanding a quick response from those here that assist people like you. You have no right to demand anything as paid professionals are giving you their free time in assisting you. How can you claim that they must be "quick-quick" in spending their free time, without any payment, to assist you?
    So, practice some netiquette and remember that this is a PUBLIC forum and "staffed" by volunteers.

  • Please Help in ORACLE SPOOL File

    Hello All,
    I made oracle Spool file.Generally i m calling a FUNCTION which return a REFCURSOR.
    ----Package Spec------------------------
    CREATE OR REPLACE PACKAGE Axspointrpt IS
    TYPE return_cur IS REF CURSOR ;
    -- # Updates to the SOI and associated CARMA user ids
    FUNCTION F_UPDATION_USERID_RPT RETURN return_cur ;
    END Axspointrpt;
    ----Package Body------------------------
    CREATE OR REPLACE PACKAGE BODY Axspointrpt IS
    FUNCTION F_UPDATION_USERID_RPT
    RETURN return_cur IS
    VCur return_cur;
    BEGIN
    OPEN VCur FOR
    SELECT
    ID_SCTY,ID_SYMBOL,NM_SHORT,S.DT_MNT_LST,S.ID_MNT_LST,LTRIM(RTRIM(CARMA_FINAL.F_Getusername(S.ID_MNT_LST))) USERNAME,DECODE(IN_DELETED,'Y','YES','N','NO') ACTION
    FROM SOI_MASTER S,APP_USER A
    WHERE S.ID_MNT_LST=A.ID_MNT_LST;
    RETURN VCur;
    EXCEPTION
    WHEN OTHERS THEN
    IF (VCur%isOpen) THEN
    CLOSE VCur;
    END IF;
    END F_UPDATION_USERID_RPT ;
    -----------callRPT.sql ------------------
    SET MARKUP HTML ON SPOOL ON HEAD "<TITLE>SQL*Plus Report</title> -"
    SET ECHO OFF
    SET PAUSE OFF
    SET VERIFY OFF
    SET FEEDBACK OFF
    SET HEADING ON
    SET LINESIZE 150
    set PAGESIZE 85
    SET TRIMSPOOL ON PAGESIZE 50
    SPOOL D:\Avinash\employee.htm
    select Axspointrpt.F_UPDATION_USERID_RPT from DUAL;
    clear breaks
    TTITLE OFF
    SPOOL OFF
    SET MARKUP HTML OFF
    SET ECHO ON
    When i run this SQL file then i am getting the procedure name as well as CURSOR STATEMENT along with the table data.I want get Hide the procedure namd,and cursor statement.Please help in this.
    Regards,
    [email protected]

    Hi Avinash,
    Try this:
    create or replace package dump_refcursor_test is
    type return_cur is ref cursor;
    function get_data return return_cur;
    end dump_refcursor_test;
    create or replace package body dump_refcursor_test is
    function get_data return return_cur
    is
    l_cur return_cur;
    begin
    open l_cur for select 'qwerty' from dual;
    return l_cur;
    end get_data;
    end dump_refcursor_test;
    Create a file called spool.sql put it in c:\. Put his in the file:
    SET NEWPAGE 0
    SET SPACE 0
    SET LINESIZE 80
    SET PAGESIZE 0
    SET ECHO OFF
    SET FEEDBACK OFF
    SET HEADING OFF
    SET MARKUP HTML OFF SPOOL OFF
    set sqlprompt "".
    var res refcursor;
    exec :res:= dump_refcursor_test.get_data;
    spool c:\spool_output
    print res
    spool off
    Now go to sql*plus and type this:
    @c:\spool.sql
    This will give you a file with only the data, here "qwerty"
    Regards Pete

  • Need Help in Formatting Spool data

    Hi,
    Can anyone of you let me knw how to obtain the output flat file in the below format ?
    "ID"|"NAME"|"PARENT_ID"
    "NQ TEL"|"14"|"Macetown"
    But I am gettin the output.. as below.
    VENDOR_NAME||'|'||VENDOR_ID||'|'||CITY
    NQ TEL|14|Macetown
    NA TEL|14|Molokai
    I am using the following script in SQL PLUS and calling it with @ < file path>.
    set heading on
    set echo off
    set feedback off
    spool Y:\Spool\output1.txt
    select Vendor_Name || '|' || Vendor_ID || '|' || City from vendor where city like 'Ma%';
    spool off;
    set feedback on
    set echo on
    set heading on
    Can anyone help me on this.? In Addition to this, I also need to remove the line separating Header and the Data .
    Thanks a ton. :)

    Try this:
    select ' " ' || Vendor_Name || ' " ' || ' "|" ' from vendor where city like 'Ma%';

Maybe you are looking for

  • HT204088 Unable to redeem a gifted application

    Hello!!!! My sis-in-law gifted me a Sygic Navigation for Pakistan on December, 18,2012. I am unable to redeem it. The red writing below the key shows that the gift is not for an apple I.D. other than U.S. Since the payment has been made, and I am una

  • Flex mobile charting issue

    I tried to create column chart using the data model from the previous view, I used var object to transfer the data but the chart does not work. Help PLEASEEEEEE  and if you have tips for passing data to a view please. <?xml version="1.0" encoding="ut

  • Multiclip Nightmare: General Error/Out of Memory when trying to match frame

    I'm an assistant editor on a reality show and am fairly experienced with Final Cut Pro. But I've never seen something like this. At our post house, we have over 30 Macs running FCP7, streaming media off a Xserve/Promise RAID SAN via Fiber channel. We

  • HP Mini 1000 BIOS Password Help

    BIOS password help needed for HP Mini 1000. My error code is cnu9318wgr.

  • Cannot delete or re-install adobe PDF reader on n9...

    my PDF reader has stopped working for some reason but when i try to re-instal it from the download link in the phone, it says item open failed. i cannot see it listed in the App manager and when i click on the C to delete it from the menu, it says un