Solved

dba_tablespaces

Posted on 2013-01-16
7
655 Views
Last Modified: 2013-01-25
SQL> @dba_tablespaces;
SP2-0310: unable to open file "dba_tablespaces.sql"
SQL>



The expected output is like this format..


--------- ------------------ ------------ ---------- --------- ----------------- ----------------- ---------
ONLINE    UNDOTBS1           UNDO         LOCAL      MANUAL        1,073,741,824         9,109,504         1
ONLINE    SYSAUX             PERMANENT    LOCAL      AUTO          1,073,741,824       545,062,912        51
ONLINE    USERS              PERMANENT    LOCAL      AUTO          1,073,741,824       133,365,760        12
ONLINE    SYSTEM             PERMANENT    LOCAL      MANUAL        1,073,741,824       525,991,936        49
ONLINE    EXAMPLE            PERMANENT    LOCAL      AUTO          1,073,741,824        63,045,632         6
ONLINE    UNDOTBS2           UNDO         LOCAL      MANUAL        1,073,741,824        11,927,552         1
ONLINE    TEMP               TEMPORARY    LOCAL      MANUAL        1,073,741,824        28,311,552         3
                                                               ----------------- ----------------- ---------
avg                                                                                                       18
sum                                                                7,516,192,768     1,316,814,848

7 rows selected.
0
Comment
Question by:walkerdba
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 73

Expert Comment

by:sdstuber
ID: 38784045
you need to include the path to your script  or start sqlplus from within the same directory where the script is located

assuming you execute it, does it produce the correct results?

if not, why not? what is the query in your script?
0
 
LVL 23

Expert Comment

by:David
ID: 38784051
I recommend you fully specify the path for the SQL file.  It apparently is not in the directory from which you started your SQLPLUS session.
0
 

Author Comment

by:walkerdba
ID: 38784243
seriously  I do not know the script for that out put....

I thought that inbuilt..

how to create script for that..
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 73

Expert Comment

by:sdstuber
ID: 38784291
what are the numeric values supposed to be?

are those extents? bytes? data files?



how did you get that output if you don't know where to find the script?
0
 
LVL 23

Accepted Solution

by:
David earned 500 total points
ID: 38784436
A sys-privileged user may execute from a command prompt, SELECT * FROM sys.dba_tablespaces; to see output (without totals).  

If you exit out of your sqlplus session, what directory are you in?
0
 
LVL 34

Expert Comment

by:Mark Geerlings
ID: 38789657
I'm not an expert in SQL Server, but this syntax "@dba_tablespaces;" looks to me like examples I have seen of SQL Server syntax.  Are you possibly familiar with SQL Server but new to Oracle?  If yes, be aware that these two database systems are very different!  Yes, they are both "SQL compliant" and they both store data in tables that contain rows and columns.  But, that is about the limit of their similarities.

There have been a number of postings in this forum over the years highlighting some of their major differences.
0
 

Author Closing Comment

by:walkerdba
ID: 38821443
found
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

Article by: Swadhin
From the Oracle SQL Reference (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm) we are told that a join is a query that combines rows from two or more tables, views, or materialized views. This article provides a glimps…
Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.

707 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

18 Experts available now in Live!

Get 1:1 Help Now