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
Solved

error here

Posted on 2014-04-09
5
241 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 143

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
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…
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

837 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