Help with FIXED LENGTH columns - using spool command
Hi guys,
I have a view I am trying to spool using fixed length columns, and the spacing is off. Ive tried numerous things such as specifiying the column width before running the query, using the rpad command, but nothing seems to work. I have to spool it to a text file in order for the users to import this file into another system. I would welcome any and all suggestions. Thanks so much. The following is the view:
SELECT "EMPLOYEE_ID","FIRST NAME","INITIAL","LAST NAME","SUFFIX","TRAINING DATE","Course ID","Class ID", "We", "Make / Model", "Cali", "Barrell", "Serial Number", "Qualification", "Application", "SCORE", "Status", "Add Time", "Record Add ID","Record Add Date","Record Change ID","Record Change Date","RN" FROM
(SELECT
UPPER(RPAD(tbl.ssn,10)) AS "EMPLOYEE_ID",
UPPER(RPAD('',12)) AS "FIRST NAME",
UPPER(RPAD('',1)) AS "INITIAL",
UPPER(RPAD('',20)) AS "LAST NAME",
UPPER(RPAD('',5)) AS "SUFFIX",
UPPER(RPAD(to_char(QUALDATE, 'mmddyyyy'),8)) AS "TRAINING DATE",
UPPER(RPAD('P123',8)) AS "Course ID",
UPPER(RPAD('',6)) AS "Class ID",
UPPER(RPAD('P',4)) AS "We",
UPPER(RPAD('',4)) AS "Make / Model",
UPPER(RPAD('',4)) AS "Cali",
UPPER(RPAD('',7)) AS "Barrell",
UPPER(RPAD('',15)) AS "Serial Number",
UPPER(RPAD('A',4)) AS "Qualification",
UPPER(RPAD('D',4)) AS "Application",
to_char((RAWSCORE/250)*100, 'fm000.00') AS "SCORE",
UPPER(RPAD('PASS',4)) AS "Status",
UPPER(RPAD('',8)) AS "Add Time",
UPPER(RPAD('',8)) AS "Record Add ID",
UPPER(RPAD('',8)) AS "Record Add Date",
UPPER(RPAD('',8)) AS "Record Change ID",
UPPER(RPAD('',8)) AS "Record Change Date",
row_number()over(partition by firearms_scores.ID_NUMBER order by QUALDATE desc ) rn
FROM FIREARMS_scores, TBL
where scores.id_number=tbl.id_number
and qualyear='2010' and coursecode='SA'
order by employee_id)
where rn =1
Hi,
You RPAD doesn't do anything, since they are same as:
SQL> SELECT NULL AS "Record Add ID",
2 NULL AS "Record Add Date",
3 NULL AS "Record Change ID",
4 NULL AS "Record Change Date" FROM DUAL;
R R R R
SQL>Can't see why COLUMN command shouldn't do what you want. Maybe you forgot the double quotes?
SQL> COL "Record Add ID" FOR a18
SQL> COL "Record Add Date" FOR a18
SQL>
SQL> SELECT NULL AS "Record Add ID",
2 NULL AS "Record Add Date",
3 NULL AS "Record Change ID",
4 NULL AS "Record Change Date" FROM DUAL;
Record Add ID Record Add Date R R
SQL>P.S: You probably shouldn't set a column width which is smaller than the header length
Regards
Peter
Similar Messages
-
Flat file with fixed lengths to XI 3.0 using a Central File Adapter---Error
Hi
According to the following link
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
In Adapter Monitor I got the following error,
In sender Adapter,
Last message processing started 23:47:35 2008-10-25, Error: Conversion of complete file content to XML format failed around position 0 with java.lang.Exception: ERROR converting document line no. 1 according to structure 'Substr':java.lang.Exception: Consistency error: field(s) missing - specify 'lastFieldsOptional' parameter to allow this
last retry interval started 23:47:35 2008-10-25
length 15,000 secs
some one help me out ?
Thanks
Ramfrom the blog you referenced -
<u> /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
<b>goto step 4</b>
<u>additional parameters</u>
add as the last entry
<recordset structure>.lastFieldsOptional Yes
e.g.,
Substr.lastFieldsOptional Yes -
Send a flat file with fixed lengths to XI 3.0 using a Central File Adapter?
Hello,
I'm wondering if someone have experience setting up conversion for different record structures. The example shown,
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter,
(in a greate way) only picture one kind of structure.
How should it be done if the file would contain
10Mat1
20100PCS
The first record structure has columns
ID(2),Material(10)
The second redcord structure has columns
ID(2),Quantity(3), Unit of messure (3)
Brgds
Kalle
Message was edited by: Karl BergstromThe configuration would be like follows:
Content Conversion Parameters:
Document Name: <your message type name>
Document Namespace: <your message type namespace>
Document Offset: <leave empty>
Recordset Name: <any name>
Recordset Namespace: <leave empty>
Recordset Structure: row1,,row2,
Recordset Sequence: any
Recordsets per Message: *
Key Field Name: ID
Key Field Type: String
Parameters for Recordset Structures:
row1.fieldNames ID,Material
row1.fieldFixedLengths 2,10
row1.keyFieldValue 10
row2.fieldNames ID,Quantity,UOM
row2.fieldFixedLengths 2,3,3
row2.keyFieldValue 20
Instead of row1 and row2 you can choose any name.
Regards
Stefan -
Preserve a single space at the end of line using spool command
Hi,
Can you please help me to write the result of an sql query into a file with the last column of the row ending with a single space?
For example:
COL1DATA|COL2DATA|COL3DATA<space1>
As mentioned in the example the col3 value in the file should end with a single space. And there should not be any delimiters at the end of the row.
I tried with set trimspool on/off. But, it didn't work. When I say trimspool on - it is trimming all the trailing spaces.
When I say trimspool off - it is retaining all the trailing spaces to the size of the line.
But, I do not wish to modify the file through shell commands once it is written thru spool. I mean I do not wish to append spaces to the end of a line using shell script or any other method.
I do not wish to use other methods like UTL_FILE also.
Please help me how to do it using spool command?
Thank you.
RamanaMy requirement is that all the trailing spaces should be truncated except the last one in the row.Why?
As you have discovered a single column in sqlplus, is always a fixed length regardless of the size of the data, if the length of the data varies the output is padded to the maximum or line size with spaces. The trim and trimpsool commands are there to remove all the spaces from the end of a line if there are any. There are no commands to trim all the spaces except one, or even to trim all the spaces except two, or three even.
If you want such custom processing you should post process the file in the OS using sed, awk or perl or something designed for such things. -
Is it possible to display a waveform with fixed length and fixed starting point?
Hi,
I am using DAQ assitant to acquire voltage and current measurment of my device. The voltage is a pure sine wave and current is a periodic waveform with phase difference and distortion. I use waveform chart to display the waveform of voltage and current waveform in seperate charts and they work fine.But the waveforms look like moving to the right all the time, in another way ,the phase is always shifting. Now i want to display the waveforms of both with fixed length (say 2 cycle) and also in a same chart. Apart from that, i also want to display the voltage waveform starting form 0 degree (a fixed point )rather than moving all the time. In this case, i can observe the angle difference between voltage and current. Is there any method to achieve this purpose?
Many Thanks,
HaoHao,
first of all, you are using a chart which has three options for updates if the chart is "full":
Strip chart (default)
Scope chart
Sweep chart
These are called "update mode". Test the modes yourself.
Also you have to know that you will not likely have an integer number of periods of your signal in the display of the chart. Therefore, a continuous signal will "move" the graph from update to update.
You can implement some algorithm to discard data to maintain a static "trigger" level for display, but as stated, it will leave gaps in the signal. These gaps are not a concern unless you use the displayed signal for analysis (e.g. FFT).
Norbert
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it. -
How to read the 'Input help with fixed values' of domain .
How to read the 'Input help with fixed values' of domain .
The domain has a Value range i want to read those values .
Are these values stored in any table ?
Plz help me i need it ver badly...
Thanks in Advance...Hi Chandra Shekhar,
To read the 'Input help with fixed values' of domain , you can use the function module : HR_P_GET_FIXED_VALUE_TEXT.
iIf you enter the domain name, you will find the fixed values entered in the domain.
These values are stored in a table DD07L(DD zero 7 L). Here the values are stored based on domain name.
See if it works for you.
Award points if its helpful.
Regards,
Bhanu -
Variable length column to fixed length column
Hi,
Iam new to oracle. Below is the query in which column1 will be displayed as a fixed length column of 16 characters.
SELECT char(column1,16), column2 from table
Please let me know if there is any command in oracle to get a single field as a fixed length.user1127864 wrote:
Hi,
Iam new to oracle. Below is the query in which column1 will be displayed as a fixed length column of 16 characters.
SELECT char(column1,16), column2 from table
Please let me know if there is any command in oracle to get a single field as a fixed length.It would be nice to know how column1 was defined. -
I need your help with a decision to use iPhoto. I have been a PC user since the mid 1980’s and more recently have used ACDSee to manage my photo images and Photoshop to edit them. I have used ProShow Gold to create slideshows. I am comfortable with my own folder and file naming conventions. I currently have over 23,000 images of which around 60% are scans going back 75 years. Since I keep a copy of the originals, the storage requirements for over 46,000 images is huge. 180GB plus.
I now have a Macbook Pro and will add an iMac when the new models arrive. For my photos, I want to stay with Photoshop which also gives me the Bridge. The only obvious reason to use iPhoto is to take advantage of Faces and the link to iMovie to make slideshows. What am I missing and is using iPhoto worth the effort?
If I choose to use iPhoto, I am not certain whether I need to load the originals and the edited versions. I suspect that just the latter is sufficient. If I set PhotoShop as my external editor, I presume that iPhoto will keep track of all changes moving forward. However, over 23,000 images in iPhoto makes me twitchy and they are appear hidden within iPhoto. In the past, I have experienced syncing problems with, and database errors in, large databases. If I break up the images into a number of projects, I loose the value of Faces reaching back over time.
Some guidance and insight would be appreciated. I have a number of Faces questions which I will save for later.Bridge and Photoshop is a common file-based management system. (Not sure why you'd have used ACDSEE as well as Bridge.) In any event, it's on the way out. You won't be using it in 5 years time.
Up to this the lack of processing power on your computer left no choice but to organise this way. But file based organisation is as sensible as organising a Shoe Warehouse based on the colour of the boxes. It's also ultimately data-destructive.
Modern systems are Database driven. Files are managed, Images imported, virtual versions, lossless processing and unlimited editing are the way forward.
For a Photographer Photoshop is overkill. It's an enormously powerful app, a staple of the Graphic Designers' trade. A Photographer uses maybe 15% to 20% of its capability.
Apps like iPhoto, Lightroom, Aperture are the way forward - for photographers. There's the 20% of Photoshop that shooters actually use, coupled with management and lossless processing. Pop over to the Aperture or Lightroom forums (on the Adobe site) and one comment shows up over and over again... "Since I started using Aperture/ Lightroom I hardly ever use Photoshop any more..." and if there is a job that these apps can do, then the (much) cheaper Elements will do it.
The change is not easy though, especially if you have a long-standing and well thought out filing system of your own. The first thing I would strongly advise is that you experiment before making any decisions. So I would create a Library, import 300 or 400 shots and play. You might as well do this in iPhoto to begin with - though if you’re a serious hobbyist or a Pro then you'll find yourself looking further afield pretty soon. iPhoto is good for the family snapper, taking shots at birthdays and sharing them with friends and family.
Next: If you're going to successfully use these apps you need to make a leap: Your files are not your Photos.
The illustration I use is as follows: In my iTunes Library I have a file called 'Let_it_Be_The_Beatles.mp3'. So what is that, exactly? It's not the song. The Beatles never wrote an mp3. They wrote a tune and lyrics. They recorded it and a copy of that recording is stored in the mp3 file. So the file is just a container for the recording. That container is designed in a specific way attuned to the characteristics and requirements of the data. Hence, mp3.
Similarly, that Jpeg is not your photo, it's a container designed to hold that kind of data. iPhoto is all about the data and not about the container. So, regardless of where you choose to store the file, iPhoto will manage the photo, edit the photo, add metadata to the Photo but never touch the file. If you choose to export - unless you specifically choose to export the original - iPhoto will export the Photo into a new container - a new file containing the photo.
When you process an image in iPhoto the file is never touched, instead your decisions are recorded in the database. When you view the image then the Master is presented with these decisions applied to it. That's why it's lossless. You can also have multiple versions and waste no disk space because they are all just listings in the database.
These apps replace the Finder (File Browser) for managing your Photos. They become the Go-To app for anything to do with your photos. They replace Bridge too as they become a front-end for Photoshop.
So, want to use a photo for something - Export it. Choose the format, size and quality you want and there it is. If you're emailing, uploading to websites then these apps have a "good enough for most things" version called the Preview - this will be missing some metadata.
So it's a big change from a file-based to Photo-based management, from editing files to processing Photos and it's worth thinking it through before you decide. -
Interface output file : tab limited vs flat file with fixed length
hey guys,
any idea on difference b/w to file type : flat file with fixed length or tab limited file
thanksTab Delimited:
Two Field are seperated by a TAB
eg. SANJAY SINGH
First field is First Name and Second is Sir Name.
Nth field will be after N -1 tab
Fixed Length:
Every field has a fixed starting position and length
eg. SANJAY SINGH
Here First field start from Position 1 and has lenght 10 and 2nd field start from 11th postion and has lenght 10.
Fixed Length -> The lenght of each field is fixed, while in tab delimited the lenght of field is not fixed but we know it ends when the Seperatot (Tab) is encountered. -
I can send iMessage's but cannot receive them. Any help with fixing it?
I can send iMessage's but cannot receive them. Any help with fixing these?
Is this happening on cellular or Wi-Fi, or both?
-
How to Use SPOOL Command with Bind Variables
For the Following SPOOL I want the GEN_DATE to be entered by the User at the time of execution of the SQL Script. Is it possible in SPOOL Command.
set colsep , -- separate columns with a comma
set pagesize 1000 -- get rid of disturbing ---- between pages
set heading on -- Print column heading
set trimspool on -- remove trailing blanks. eliminating the spaces up to eol
set linesize 700 -- line size should be the sum of the column widths
spool spool_results.csv
SELECT *
FROM GUI_SITE_JOURNAL
WHERE GENDATE_ BETWEEN '2012-11-01 00:00:00:00000' AND '2012-11-02 00:00:00:00000'* ORDER BY GEN_DATE;
spool off;
The reason is to give the ability to user so that he can enter any range without modifying the code of the script.
Can Any one help me please.
Edited by: user10903866 on Feb 18, 2013 7:44 PMHi,
user10903866 wrote:
For the Following SPOOL I want the GEN_DATE to be entered by the User at the time of execution of the SQL Script. Is it possible in SPOOL Command.Do you want the user input in the SPOOL command, or do you want it in the query?
set colsep , -- separate columns with a comma
set pagesize 1000 -- get rid of disturbing ---- between pages
set heading on -- Print column heading
set trimspool on -- remove trailing blanks. eliminating the spaces up to eol
set linesize 700 -- line size should be the sum of the column widths
spool spool_results.csv
SELECT *
FROM GUI_SITE_JOURNAL
WHERE GENDATE_ BETWEEN '2012-11-01 00:00:00:00000' AND '2012-11-02 00:00:00:00000'* ORDER BY GEN_DATE;What is the data type oif gen_date?
If it's a string, that's a big mistake. Information about dates belongs in DATE columns.
If it's a DATE, then don't try to compare it to strings, such as '2012-11-01 00:00:00:00000' .
spool off;
The reason is to give the ability to user so that he can enter any range without modifying the code of the script.
Can Any one help me please.One way to do that is with substitution variables:
SET VERIFY OFF
ACCEPT start_gen_date PROMPT "Starting date (e.g., 2013-02-18 23:00:00.00000): "
ACCEPT end_gen_date PROMPT "Ending date (e.g., 2013-02-18 23:59:59.99999): "
SPOOL spool_results.csv
SELECT *
FROM gui_site_journal
WHERE gen_date BETWEEN '&start_gen_date'
AND '&end_gen_date'
ORDER BY gen_date;
SPOOL OFFThere are security considerations. Substitution variables give devious users the power to issue any SQL command, such as DROP TABLE. Users that have SQL*Plus access already have that power, anyway. -
How to process file with fixed length using MFL in OSB
Hi Team,
I need to translate this file using MFL. its fixed lenght[each line is having 81 chars] file in below format.
Please help me to process this in OSB using MFL.
==================================================================
START
[email protected]
[email protected]
END
Subject : CALIFORNIA STEEL IND Renege #00424523 Hse580 CTH580
BODY:
User_ID: LARRY014
Xpd2 Hse/Customer # : 580/1196310
Xpd Order Number: 580094624
Customer E-Mail: [email protected]
Customer E-Mail 2:[email protected]
Customer Phone : 9093506458
Dear Salesperson,
gexprosupply.com Order # : 00424523
gexprosupply.com User ID : LARRY014
Customer CALIFORNIA STEEL IND has entered order 00424523
through gexprosupply.com.
THIS ORDER HAS RENEGED for the following reason(S):
I. ORDER LEVEL
NOTE SEGMENTS FOUND IN INPUT - SENTRY
CDF REQUIRED CUSTOMER - ORDER RENEGED
II. ITEM/LINE LEVEL
LINE # ECOM LINE NAED QTY STATUS ALLOW SUBS
Please resolve the renege and release the order in Sentry
01 as soon as possible. Thank you.
EMAIL-END
==================================================================
Thanks
Reddy
Edited by: 913248 on Feb 8, 2012 2:07 PM
Edited by: 913248 on Feb 8, 2012 2:08 PMHi Prabu,
thanks a lor fro you replay.......
the above file is having mail content[from id, to id, subject and body] i need to read this file using OSB and need to sent to the respective email id.
the file format is :
it will have
0- its a fixed length in each line [81 chars]
1--"START" tag....starting of the email
2--after START, the email ID is "FROM" email ID
3-after "FROM" emailid, 3rd line onwards....will have "TO email IDs
4-"END"---end of the email IDs
5- "Subject " ...will have subject of the email
6-"BODY".... the email body will start in this tag
7-"EMAIL-END"..end of the email....
so my requirement is ..i need to read above file in OSB and send notification emai.
Thanks
Reddy -
Fixed Length records using SQL
hi , using the following code in a file that generates an output file with a fixed length 300 character lines.
SPOOL C:\PHONE_SAMPLE.OUT;
SET HEADING OFF;
SET PAGES 0;
SET ECHO OFF;
SELECT rpad(CONTACT_ID,15),rpad(PHONE1,15),rpad(PHONE2,15),rpad(PHONE3,15),rpad(PHONE4,15),rpad(PHONE5,15),rpad(PHONE6,15)
,rpad(CALLSEQ,6),rpad(NDCALLSEQ,6),rpad(LANG,3),rpad(FIRST,25),rpad(LAST,25),rpad(CONCODE,10),rpad(EMAIL,30),rpad(TXTMSG,20),rpad(WVEND,20),
rpad(APPTSTART,14),rpad(APPTEND,14),rpad(APPTTYPE,10),rpad(APPTLOCTION,10),rpad(FILLER,1)||'\n'
FROM PHONE_SAMPLE;
SPOOL OFF;
After I run this I get my data and the following below - my end of Character line, and then "22 rows selected" - How do I remove the 22 rows selected. and stop at \n. Any help appreciated.
Is it a set command I am missing ?
\n
22 rows selected.Hi,
SET FEEDBACK OFF
And you don't need SET HEADING OFF when you have SET PAGES 0
And you don't need to end SET commands with ';' since they are SQL*Plus commands
Regards
Peter -
I am in the process of having a service scan my old photos for importing into iPhoto 9. All the photos so far (about 2000) have no places as would be expected from a scanned photo. But some (about 300) have several different places in China. China is no doubt a wonderful place, but I have never been there & China in not in "My Places" so I'm not sure what iPhoto did during the import from DVD.
My question is how can I remove the incorrect location & put it back as "none"?
One solution I saw was to reselect the place & drag the pin to another place, I could not get this to work & I would prefer to remove the location entirely until I get all these photos in their respective events & dated properly & then begin working on the various places.
I have another 1600 photos out being scanned now & I want to solve this problem before I import more photos. Also whatever the fix is I can just look at the last import & fix those each time until I have worked my way through all the rest of my photos. (about another 5000).
Thanks in advance for any assistance.
LeeI don't recommend just deleting the EXIF data. If you're somewhat comfortable with using the command line, it should be easy to losslessly fix the incorrect longitudes with http://www.sno.phy.queensu.ca/~phil/exiftool/
Something like:
exiftool -GPSLongitudeRef=W badgpsimage.jpg
will set the longitude to the Western hemisphere. (It also makes a backup copy of the original, which you'll want to delete unless there happen to be problems with the modified image. This is very, very unlikely, but better safe than sorry.)
Hope this helps! -
heyyall,
am trying to use the spool command to save a file from an output but i get the message:
SPOOL save.lis
SP2-0606: Cannot create SPOOL file save.lis
am using sql-plus 10.2.0.1.0
?No its not an advanced setup , its just i logged into database using putty, easy to use.
In Command Promt we use dir command to list the directories , in the same way in database ls list the subfolders/subdirectories and files present in the current directory.
I think you are using local database only right?.
Then go to command prompt (i.e., go to run and type cmd)
And from there i had done this scenario, please view it so that you can understand clearly
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Balaji K>dir
Volume in drive C has no label.
Volume Serial Number is 0282-81BD
Directory of C:\Users\Balaji K
03/27/2011 12:04 AM <DIR> .
03/27/2011 12:04 AM <DIR> ..
03/26/2011 03:04 AM <DIR> .VirtualBox
02/25/2011 04:57 PM <DIR> Contacts
03/26/2011 06:07 PM <DIR> Desktop
03/25/2011 06:00 PM <DIR> Documents
03/25/2011 08:44 PM <DIR> Downloads
03/04/2011 06:06 PM <DIR> Favorites
02/25/2011 04:57 PM <DIR> Links
02/25/2011 04:57 PM <DIR> Music
02/25/2011 04:57 PM <DIR> Pictures
02/25/2011 04:57 PM <DIR> Saved Games
02/25/2011 04:57 PM <DIR> Searches
03/26/2011 10:04 PM <DIR> Tracing
02/25/2011 04:57 PM <DIR> Videos
02/25/2011 06:07 PM <DIR> VirtualBox VMs
0 File(s) 0 bytes
16 Dir(s) 43,067,936,768 bytes free
C:\Users\Balaji K>sqlplus sys as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Mar 27 00:04:44 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> spool example.txt
SQL> desc dba_users;
Name Null? Type
USERNAME NOT NULL VARCHAR2(30)
USER_ID NOT NULL NUMBER
PASSWORD VARCHAR2(30)
ACCOUNT_STATUS NOT NULL VARCHAR2(32)
LOCK_DATE DATE
EXPIRY_DATE DATE
DEFAULT_TABLESPACE NOT NULL VARCHAR2(30)
TEMPORARY_TABLESPACE NOT NULL VARCHAR2(30)
CREATED NOT NULL DATE
PROFILE NOT NULL VARCHAR2(30)
INITIAL_RSRC_CONSUMER_GROUP VARCHAR2(30)
EXTERNAL_NAME VARCHAR2(4000)
SQL> select username from dba_users;
USERNAME
SYS
SYSTEM
ANONYMOUS
MDSYS
OUTLN
DIP
TSMSYS
FLOWS_FILES
CTXSYS
DBSNMP
FLOWS_020100
USERNAME
XDB
HR
13 rows selected.
SQL> exit
Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Produ
ction
C:\Users\Balaji K>dir
Volume in drive C has no label.
Volume Serial Number is 0282-81BD
Directory of C:\Users\Balaji K
03/27/2011 12:04 AM <DIR> .
03/27/2011 12:04 AM <DIR> ..
03/26/2011 03:04 AM <DIR> .VirtualBox
02/25/2011 04:57 PM <DIR> Contacts
03/26/2011 06:07 PM <DIR> Desktop
03/25/2011 06:00 PM <DIR> Documents
03/25/2011 08:44 PM <DIR> Downloads
03/27/2011 12:05 AM 2,398 example.txt
03/04/2011 06:06 PM <DIR> Favorites
02/25/2011 04:57 PM <DIR> Links
02/25/2011 04:57 PM <DIR> Music
02/25/2011 04:57 PM <DIR> Pictures
02/25/2011 04:57 PM <DIR> Saved Games
02/25/2011 04:57 PM <DIR> Searches
03/26/2011 10:04 PM <DIR> Tracing
02/25/2011 04:57 PM <DIR> Videos
02/25/2011 06:07 PM <DIR> VirtualBox VMs
1 File(s) 2,398 bytes
16 Dir(s) 43,067,940,864 bytes free
C:\Users\Balaji K>
See now you can see the example.txt which we had spooled. Now if go with
C:\Users\Balaji K>edit example.txt command you can see that all the data is spooled into it.
And instead of exiting sqlplus, if you want to continue some other operations , then you can give spool off command .
sql> spool off.
Hope this helps you :)
Thanks,
Balaji K.
Edited by: balaji k on Mar 26, 2011 11:42 AM
Edited by: balaji k on Mar 26, 2011 11:43 AM
Maybe you are looking for
-
I dont use a credit card so how can i create an apple id withoud providing the billing address?
-
IPad no longer printing to HP B210a printer
iPad stopped printing to an Hp b210 a printer. It worked this morning, I changed all the ink cartridges this afternoon and now it no longer prints to it. I shut the printer off as the HP help suggested. My husbands ipad prints to it as well as my lap
-
Employee and Group responsible being overwitten when clicking "Change".
Hi All, I have searched the forums for a solution to a problem I have had but did not get the bottom of it. I have done some debugging and managed to sort it and thought I'd share my findings with you. Problem: You are in the Web interaction centre (
-
Problem with OWB export ext table from dev to prod not the same
Hi everyone, I created a lot of external table in dev and everything works fine, but as I did a mdl export in production about half of my ext tables dont work anymore and I found in the script created by the export/import in OWB something strange: he
-
PHP form/Captcha alternative
I have a php form that works fine. In part: <form method="post" action="sendmail.php"> Now, to add some security to it I created a required field: What is 6 plus 6? A bot can't fill in 12, right? So then the form doesn't go to the sendmail.php file.