Solved

sqlquery format

Posted on 2014-03-31
4
223 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
[X]
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
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
Via a live example, show how to take different types of Oracle backups using RMAN.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

752 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