Solved

sqlquery format

Posted on 2014-03-31
4
212 Views
Last Modified: 2014-04-08
I want to know the sql query  for my  usertablespace creation..

Is there any way for that?
0
Comment
Question by:tonydba
  • 2
4 Comments
 
LVL 16

Accepted Solution

by:
Wasim Akram Shaik earned 500 total points
Comment Utility
Yes you can refer to this link for full details, just placing the syntax for your reference though

select dbms_metadata.get_ddl('TABLESPACE',tablespace_name) from dba_tablespaces;


http://www.dba-oracle.com/t_1_dbms_metadata.htm
0
 
LVL 23

Expert Comment

by:David
Comment Utility
I recommend in your SQL session, prior to the SELECT command above:

SET LINESIZE 0                          NOTE  no semicolon nor /
0
 
LVL 16

Expert Comment

by:Wasim Akram Shaik
Comment Utility
-->>I recommend in your SQL session, prior to the SELECT command above:

This is needed only if your are using sql*plus , if you are using any other tool, such as toad or sql developer, this is not needed..
0
 

Author Closing Comment

by:tonydba
Comment Utility
Thank you
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

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
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 videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

763 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

15 Experts available now in Live!

Get 1:1 Help Now