Solved

sqlquery format

Posted on 2014-03-31
4
218 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
ID: 39968442
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
ID: 39978373
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
ID: 39978538
-->>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
ID: 39986470
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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Oracle - Stored Procedure Privilge access 3 53
Query Records that don't match 8 42
Can i Import Access Table Into Oracle Using Toad 36 174
SQL Query 34 99
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
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…

778 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