03-05-2013
It gives me long details rather the the sum, so it doesn't work for me.
1)
PHP Code:
select to_char(sysdate, 'mm/dd/yyy') "DATE", to_char(sysdate, 'HH24:MI AM') "TIME", sum(bytes)/1024/1024/1024 "TOTAL_GB"
from dba_data_files
2)
PHP Code:
select sum(bytes)/1024/1024/1024 "USED_GB"
from dba_segments
With scripts, if we put the output of Query 2 right next to Query 1, then that will be the perfect output.
It seems hard to get the output through a single query.
AM/PM is not needed with 24 Hour Format.
Please advise.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i have created a new printer in the printcab file.
when i use lpc and the status command it says:
LMAPFE20:
printer is on remote host lpt1:
queuing is enabled
printing is enabled
cannot examine spool directory
What ive... (1 Reply)
Discussion started by: JuergenW
1 Replies
2. UNIX for Dummies Questions & Answers
hi every body,
is there any possibles to spool the commads with output(like oracle spool file) (1 Reply)
Discussion started by: kskumar
1 Replies
3. UNIX for Dummies Questions & Answers
Hi:
At every month end I would like to collect the information of a spool.
Every Spool has more then one job, below is the individual job information, I really want to collect into a text file.
Sp-id Proc User Printer Id Pty Form Copy Total
SP7494 MONTHEND SYED R123 P2 1 WIDE ... (3 Replies)
Discussion started by: shah2
3 Replies
4. Shell Programming and Scripting
Hi everyone
I'm new in this forum, I have a question:
I have a script with many sql staments and I have the spool command at the beginning and the 'spool off' at the end of the script. But, I want to write after each sql stament to a log file not at the end. How can I do it?
Thanks (0 Replies)
Discussion started by: edzela
0 Replies
5. UNIX for Dummies Questions & Answers
Hi,
Is there any command in unix similar to spool command in oracle. (6 Replies)
Discussion started by: manosubsulo
6 Replies
6. Solaris
hi all,
I have unix box
I install 2 zone on it
I want to make spool directory and assign one to each zone
How can I do that ? (5 Replies)
Discussion started by: coxmanchester
5 Replies
7. UNIX for Dummies Questions & Answers
Hi,
Can you please help me how to spool the unix commands executed in my client and its output to a file in local machine.
Basically, I want to save all OS commands executed in my session and its output into a file from my client something like we do oracle with "SPOOL".
Thanks in advance.... (2 Replies)
Discussion started by: pointers
2 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I use SunOS and i connect to database via isql. When tried using SPOOL command to extract the report from database, system thrown me saying "Spoool command not found".
Please advise. (3 Replies)
Discussion started by: kusathy
3 Replies
9. Shell Programming and Scripting
I am using a unix shell script to create and then FTP the file to a mainframe application.
The unix script uses spool to extract data from a Oracle database. The data is extracted into a text file.
The text file is having all the data I need but not in the correct format. The rows of... (1 Reply)
Discussion started by: rameez
1 Replies
10. Shell Programming and Scripting
SQL*Plus version : 11.2.0.4
OS : Oracle Linux 6.5
SQL*Plus is a client application to connect to oracle database. The log file for this tool is generated via spool command as shown below.
I am trying to append date ( $dateString ) to spool file as shown below.
$ cat test2.sh
#!/bin/bash... (4 Replies)
Discussion started by: kraljic
4 Replies
LEARN ABOUT OPENDARWIN
vdltodmx
vdltodmx(1) General Commands Manual vdltodmx(1)
NAME
vdltodmx - dmx configuration file parser and printer
SYNOPSIS
vdltodmx infile outfile
DESCRIPTION
vdltodmx reads the input file, which should be in VDL configuration file format. After a successful parse, a file in Xdmx configuration
file format is written to the output file.
The VDL file format is used with xmovie, which is available from http://www.llnl.gov/icc/lc/img/xmovie/xmovie.html
EXAMPLE
Given the following VDL-format file:
0
2
#
#
2560 2048 Left two-thirds [restrict=*:2]
2
:2.1 1280 2048 0 0 0 0
:2.2 1280 2048 1280 0 0 0
4
1280 1024 0 0
1280 1024 0 1024
1280 1024 1280 0
1280 1024 1280 1024
#
2560 2048 Right two-thirds [restrict=*:2]
2
:2.2 1280 2048 0 0 0 0
:2.3 1280 2048 1280 0 0 0
4
1280 1024 1280 0
1280 1024 1280 1024
1280 1024 2560 0
1280 1024 2560 1024
the following DMX-format file will be produced:
#
#
virtual "Left two-thirds" 2560x2048 {
display :2.1 1280x2048;
display :2.2 1280x2048 @1280x0;
}
#
virtual "Right two-thirds" 2560x2048 {
display :2.2 1280x2048;
display :2.3 1280x2048 @1280x0;
}
BUGS
If the VDL file is not in the expected format, the program will probably dump core.
SEE ALSO
Xdmx(1), xdmxconfig(1), vdl(3), xmovie(1)
X Version 11 xorg-server 1.12.4 vdltodmx(1)