Question

Asked on 2005-05-27 at 12:01:17ID: 25471638

spool command on linux

by: ronan_40060500

Rating9.8Excellent

Dear experts

I am using an spool command to get the output of a sql query on to /home/ronan/file.txt
when i do like
>set linesize 1000
>spool /home/ronan/file.txt
It gives me an error like SP2-0332: Cannot create spool file

please suggest me a suitable alternative

Thank you
Ronan

  1. How do I remove spaces from the end of rows in…
    I'm trying to spool a select statement to which returns a list of SSNs meeting a certain criteria. When this runs, there are 16 spaces placed after each SSN. In order for me to use the spool how I need to use it, I need a hard return directly after each SSN (no spaces). I can't figure out how to do this. The SSN field in the select statement is a VARCHAR2(…
  2. Oracle spool - issue quit command at the end of …
    I am using the spool command to automatically generate some SQL scripts for example: set pages 20000 set heading off spool trunc_ndsi.sql select 'truncate table '||tname||';' from tab where tabtype = 'TABLE'; spool off quit Works great but how to I inject a "quit;" command at the end of the trun…
  3. Spool host command output
    Is there a way in sqlplus to spool the output of a host command ex. spool ls.txt host ls spool off
  4. Oracle Home
    Oracle Hoem means the home of oracle software or it is a direcoty where oracle is installed.? How to install just the oracle home for patch purpose when I already have a version of oracle installed ?. why it is good to have multiple oracle home ?
  5. Spool SQL Plus to create a file name
    Hi All, I will need to spool the result of a 2 queris to two different .txt file The name of the file should be: C:\Temp\file1YYYYMMDD.txt (where YYYYMMDD is 20100126 for today) so for todays file the name of the file should be: C:\Temp\file120100126.txt The other one C:\Temp\sample220100126…

Solution

Sign up now to view this solution! It's quick, easy, and secure to subscribe. We will return you to this solution, unlocked, when you’re done.

About this Solution
View This Solution - Start Your 30 Day Free Trial
Zone
General
Tags
command cannot create
Participating Experts
1
Solution Grade
A

Replies

 by: slightwv

Posted on 2005-05-27 at 12:04:52ID: 28307333

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: ronan_40060

Posted on 2005-05-27 at 12:12:59ID: 28307334

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by:

Posted on 2005-05-27 at 12:27:44ID: 28307335

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: ronan_40060

Posted on 2005-05-29 at 00:05:05ID: 28307336

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

Stay Connected

Oracle Around the Web

The latest Oracle news, tips, and tricks

Oracle Unveils Netra SPARC T3 Servers

New Carrier-Grade Blade and Rackmount Servers Deliver Better Performance, Density and Power Efficiency for the Communications Industry ...

read more

Oracle fixes 21 flaws in Java SE, Java for Business

Oracle is fixing 21 flaws in its Java SE and Java for Business products in its February critical patch update issued this week ...

read more

Obama’s Silicon Valley “Tech Supper”

Why was he there? Who wasn’t invited and why? What did they talk about? Why was he really there? These are the questions being debated ...

read more

Featured Oracle Experts

slightwv

slightwv has answered more than 2,000 Oracle questions and oversees database management within the U.S. Government. Slightwv

sdstuber

A regular presenter at the Collaborate conference, Oracle developer sdstuber is a top expert in PL/SQL and Oracle 9, 10 and 11. sdstuber

Testimonials

What users are saying about our experts

"The Oracle gurus provide answers, solutions and valuable workarounds"

User: schwertner

"Wow! Excellent, valuable explanation. Hats off to you"

User: aseshu70

"Solution worked fantastic and performs excellent! Thanks heaps"

User: klausbrandlhuber

Top Experts

  1. slightwv

    2,000

    0 points yesterday

    Profile

BrowseBecome an Expert