Solved

error here

Posted on 2014-04-09
5
239 Views
Last Modified: 2014-06-10
What  is the error here


select
  2     fs.tablespace_name                          "TABLESPACE_NAME",
  3     (df.totalspace - fs.freespace)              "USED MB",
  4     fs.freespace                                "FREE MB",
  5     df.totalspace                               "TOTAL MB",
  6     round(100 * (fs.freespace / df.totalspace)) "PCT FREE"
from
   (select
      tablespace_name,
      round(sum(bytes) / 1048576) TotalSpace
  7    8    9   10   11     from dba_data_files
 12     group by tablespace_name) df,
 13     (select
 14        tablespace_name,
 15        round(sum(bytes) / 1048576) FreeSpace
 16     from dba_free_space
 17     group by tablespace_name) fs
 18  where
 19     df.tablespace_name = fs.tablespace_name
 20  and df.tablespace_name IN ('SYSTEM','SYSAUX','UNDOTBS1','TEMP','TOOLS','AUDIT_DATA','USERS','ITG_CLOB','ITG_DATA,'ITG_TEMP','CWMLITE')
 21  order by fs.tablespace_name;
ERROR:
ORA-01756: quoted string not properly terminated
0
Comment
Question by:tonydba
5 Comments
 
LVL 34

Accepted Solution

by:
johnsone earned 500 total points
ID: 39988964
You have no closing quote on ITG_DATA in you inlist.
0
 
LVL 23

Expert Comment

by:David
ID: 39988966
Always deconstruct a problem down to its simplest level, for example, I don't see any thing wrong with your quoted strings.  But I erased the string except for 'SYSTEM' and volia:

 20*  and df.tablespace_name IN ('SYSTEM')
SQL> /

TABLESPACE_NAME                   USED MB    FREE MB   TOTAL MB   PCT FREE
------------------------------ ---------- ---------- ---------- ----------
SYSTEM                                517       1283       1800         71
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 39988967
indeed, you omitted a closing quote here:
...,'ITG_DATA,'I...

it should be:
...,'ITG_DATA','I...
0
 
LVL 22

Expert Comment

by:Steve Wales
ID: 40124037
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

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.

Question has a verified solution.

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

This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…

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

16 Experts available now in Live!

Get 1:1 Help Now