SQL*Plus Script Dropping Column Headings [message #269123] |
Thu, 20 September 2007 14:57 |
tmajor
Messages: 6 Registered: September 2007
|
Junior Member |
|
|
I have a sql*plus script that I am trying to execute from a concurrent program.
When I run the script in sql*plus, it executes fine and output contains the column headings.
However when I run it in concurrent program and view the output the column headings are not there.
Any ideas?
|
|
|
|
|
|
Re: SQL*Plus Script Dropping Column Headings [message #269131 is a reply to message #269130] |
Thu, 20 September 2007 15:22 |
tmajor
Messages: 6 Registered: September 2007
|
Junior Member |
|
|
I'm not clear on what you mean by "what is my concurrent program", so I'll try to explain.
I have a very simple sql script to select a few columns from a table. The output is a report I'm developing for a user.
Rather than have the users run it from SQL*Plus, I want them to run it as a concurrent program.
I created the executable of type SQL*Plus, then created a concurrent program using that executable.
Does that answer your question?
|
|
|
Re: SQL*Plus Script Dropping Column Headings [message #269140 is a reply to message #269131] |
Thu, 20 September 2007 16:25 |
|
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
A concurrent program, as I've understood it, could be a DOS batch file. Let's see an example: batch file which first executes a SQL script and shows spooled result on the screen:REM MAJOR.BAT
sqlplus -s scott/tiger@ora10lp @major.sql
type major.txt
It will call a simple SQL script which creates a TXT file:REM MAJOR.SQL
set termout off
spool major.txt
select ename, job, sal
from emp
where deptno = 10;
spool off;
exit;
OK, let's execute it!C:\TEMP>major
C:\TEMP>sqlplus -s scott/tiger@ora10lp @major.sql
C:\TEMP>type major.txt
ENAME JOB SAL
---------- --------- ----------
CLARK 2450
KING 5000
MILLER 1300
C:\TEMP> Column headings are here.
Now, could you reproduce such an example or, even better, show us what you did (copy-paste if possible), not tell us a story?
|
|
|
|
|
Re: SQL*Plus Script Dropping Column Headings [message #269151 is a reply to message #269150] |
Thu, 20 September 2007 20:01 |
tmajor
Messages: 6 Registered: September 2007
|
Junior Member |
|
|
I am talking about a concurrent program in Oracle applications if that helps explain more what I'm doing.
The user would log onto a certain responsibility and then select reports -> run and choose this report.
Sorry if I wasn't clear on that.
|
|
|
|
|
|