Solved

Need to set format for this output

Posted on 2011-02-22
6
261 Views
Last Modified: 2012-05-11
Name
--------------------------------------------------------------------------------
Last Submitted
------------------------
Requestor
--------------------------------------------------------------------------------
Next Scheduled Run         INTERVAL UNIT
------------------------ ---------- ------------------------------
From Previous CCR              S Print to                           Copies
------------------------------ - ------------------------------ ----------
    Req id Parent Req ID
---------- -------------
STATUS
--------------------------------------------------------------------------------
CCR Parameters
--------------------------------------------------------------------------------
 Normal
0
Comment
Question by:columbus131
  • 3
  • 2
6 Comments
 
LVL 73

Expert Comment

by:sdstuber
ID: 34952823
are you looking for a sql*plus line length limit ?

if so...

set linesize 80
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 34953228
What 'format' do you want and from what product?
0
 

Author Comment

by:columbus131
ID: 34953273
SELECT
  user_concurrent_program_name "Name",
  to_char(request_date, 'DD-MON-RR HH24:MI:SS') "Last Submitted",
  u.user_name "Requestor",
  to_char(requested_start_date, 'DD-MON-RR HH24:MI:SS') "Next Scheduled Run",
  fcr.resubmit_interval Interval,
  fcr.resubmit_interval_unit_code Unit,
  fcr.resubmit_interval_type_code "From Previous CCR",
  fcr.save_output_flag "Save Output Files",
  fcr.printer "Print to",
  fcr.number_of_copies "Copies",
  request_id "Req id",
  fcr.parent_request_id "Parent Req ID",
  nvl(meaning, 'UNKNOWN') Status,
  fcr.ARGUMENT_TEXT "CCR Parameters"
FROM
  fnd_concurrent_requests fcr,
  fnd_lookups fl,
  fnd_concurrent_programs_vl fcpv,
  fnd_user u
WHERE
  phase_code = 'P' AND
  (fcr.requested_start_date >= sysdate OR
    status_code = 'P') AND
  LOOKUP_TYPE = 'CP_STATUS_CODE' AND
  lookup_code = status_code AND
  fcr.concurrent_program_id = fcpv.concurrent_program_id AND
  fcr.program_application_id = fcpv.application_id and
  u.user_id=fcr.requested_by
ORDER BY
  request_date,
  request_id;
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 34953309
That doesn't tell us what format you want the output in or what product/program is to generate it.
0
 

Author Comment

by:columbus131
ID: 34953380
I need to spool this and sent i need
to know
what colsize
linesize
pages
i need to set for this query
0
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 34953421
set lines 100000
set trimspool on
set pages 0
set feedback off
col somecolumnname format a500
--the individual columns need to be set to their max values.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Export BLOB data from Oracle 10g 4 34
case statement in where clause with not exist 15 46
SQL Query 34 80
Oracle Listener Not Starting 11 23
Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
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

911 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now