Solved

sql command not propery ended in the spool file output

Posted on 2008-10-11
2
491 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 250 total points
ID: 22694506
set linesize 1000
0
 
LVL 32

Assisted Solution

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

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

728 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