Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

sql command not propery ended in the spool file output

Posted on 2008-10-11
2
Medium Priority
?
497 Views
Last Modified: 2013-12-18
Hi
I am using spool to run the statement
select ' grant SELECT, INSERT, UPDATE, DELETE ' || ' on DBSEC.'|| table_name || ' to DBSEC_SUPERVISOR_ROLE ' || ';'    
from dba_tables where owner = 'DBSEC' ;

but the output spool file not generating the statements in one line (limiting to 80 characters along with spaces). I am getting the error since the statement is braking into two. give me the solution please
0
Comment
Question by:ravalireddy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 42

Accepted Solution

by:
dqmq earned 1000 total points
ID: 22694506
set linesize 1000
0
 
LVL 32

Assisted Solution

by:awking00
awking00 earned 1000 total points
ID: 22694741
Rather than creating a spool file, then executing it, why not do as attached?
run-grants.txt
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question