Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: tablespaces ddl extract script

Re: tablespaces ddl extract script

From: The Human Fly <sjaffarhussain_at_gmail.com>
Date: Wed, 12 Oct 2005 13:52:17 +0300
Message-ID: <97b7fd2f0510120352k6c07f739mae53931492f6c50a@mail.gmail.com>


When we use dbms_metadata.get_ddl, only one tablespace we can get at a given time. I have 100 tbs and difficult to use this. I have found a good script at metalink. '

'Note:18077.1 Subject: Script: To Create a CREATE TABLESPACE Scrips''

It doesn't create output for TEMP & UNDO tbs, there is where we can use dbms_metadata for these tablespaces.

Thanks everyone.

On 10/12/05, Norman Dunbar <norman.dunbar_at_environment-agency.gov.uk> wrote:
>
> Unfortunately, on my 9.2.0.4 system, it is incomplete :
>
> SQL>select dbms_metadata.get_ddl('TABLESPACE','NORMAN') as fred from
> dual;
>
> FRED
> ----------------------------------------------------------
>
> CREATE TABLESPACE "NORMAN" DATAFILE
> '/u00/oracle/oradata/lccsdev/norman_01
>
> Which is a tad upsetting :o(
>
>
> I would suggest doing a full export with no actual rows etc being
> exported, then run an import with SHOW=YES LOGFILE=SHOW.LOG and
> extracting the commands from SHOW.LOG if the metadata thing doesn't work
> for your system either.
>
>
> Cheers,
> Norman.
>
>
> Norman Dunbar.
> Contract Oracle DBA.
> Rivers House, Leeds.
>
> Internal : 7 28 2051
> External : 0113 231 2051
>
>
> >>> David Sharples <davidsharples_at_gmail.com> 10/12/05 11:29am >>>
> SQL> select dbms_metadata.get_ddl('TABLESPACE','TS_NAME') from dual;
> google and metalink are your friends
>
>
>
> Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else.
>
> We have checked this email and its attachments for viruses. But you should still check any attachment before opening it.
>
> We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes.
>
> If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at www.environment-agency.gov.uk
>

--
Best Regards,
Syed Jaffar Hussain
OCP 8i & 9i DBA,
Banque Saudi Fransi,
Saudi Arabia
----------------------------------------------------------------------------------------
"It is your atittude, not your aptitude that determins your altitude."
--
http://www.freelists.org/webpage/oracle-l
Received on Wed Oct 12 2005 - 05:54:24 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US