Solved

error here

Posted on 2014-04-09
5
238 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
Comment Utility
You have no closing quote on ITG_DATA in you inlist.
0
 
LVL 23

Expert Comment

by:David
Comment Utility
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]
Comment Utility
indeed, you omitted a closing quote here:
...,'ITG_DATA,'I...

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

Expert Comment

by:Steve Wales
Comment Utility
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.

Join & Write a Comment

Suggested Solutions

Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
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…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

762 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

6 Experts available now in Live!

Get 1:1 Help Now