Export only database structure

Hi
I want export the database sctructure, without data, Is this possible?, somebody can help me?
Thanks and Regards

You can use export with option rows=n (see http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14215/exp_imp.htm#sthref2348)
or package service DBMS_METADATA.GET_DLL (see http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_metada.htm#sthref4253)
Message was edited by:
Pierre Forstmann

Similar Messages

  • Database Structure Dump into SQL file

    I would like to dump the entire structure of my database into an file that will be used later to recreate the same structure. I would like oracle to create almost like a sql file the can be run in another tablespace. I would like to create all the sql commands that would be used to create the tables and sequence generators. Is there a command in oracle that dumps the information?
    Thanks,
    eric

    No there isn't such a command
    But You can use export to export only table structure without data and You can see all CREATE statements there
    Or you can use Oracle Designer, Visio or maybe another free tool to reverse engineer tables and then generate CREATE scripts
    Or You can make Your own script or maybe search for one in internet that creates these DDL statements from data dictionary

  • Export schema table structure only- no procedures

    Hi Friends,
    I try to export a schema structure with rows=n option in exp command. As log records show the procedures had exported too.
    Do we have any way to export a schema tables only?
    Thanks for help!
    Jin

    user589812 wrote:
    Database is 10.2.04 I are not able to use data pump based on system configuration.Please elaborate on what you mean by "I are not able to use data pump based on system configuration"
    We have more one hundred tables. that needs to be include tables option.
    Do you have any simple way to export a schema tables structure without list 120 table's name in exp command?
    Edited by: user589812 on Jan 4, 2012 10:19 AMI do not believe you have a choice. One method could be to get a list of all needed tables (SELECT TABLE_NAME FROM USER_TABLES) and create a par file with this list.
    HTH
    Srini

  • How to write export dump commad with no datable data only table structure.

    How to write export dump commad with no datable data only table structure will there and command for hole schma.
    e.g. export dump command for scott schema and all table within scott schema in it no table data should be exported.

    If I understand the question, it sounds like you just need to add the flag "ROWS=N" to your export command (I assume that you're talking about the old export utility, not the Data Pump version).
    Justin

  • Db Export when database is in read only mode

    Hi All,
    I have to perform a full database export when database is in read only mode. My db version is 9i.
    Kindly let me know whether that export file is valid enough to do full import in new database and make database oprational.
    Thanks.

    rajaryan wrote:
    Hi All,
    I have to perform a full database export when database is in read only mode. My db version is 9i.
    Kindly let me know whether that export file is valid enough to do full import in new database and make database oprational.
    Thanks.Check the log file, if you haven't got any error, then it's valid
    BTW - Why you've taken full export of the database? Why not using RMAN?
    See the following video tutorial:
    http://kamranagayev.wordpress.com/2010/03/29/rman-video-tutorial-series-performing-disaster-recovery-with-rman/

  • EXPORT full database only METADATA

    how to export only metadata of database with out user entered values.
    i want the database with same metadata is it possible to clone only target database metadata.

    Sure - u can use expdp/impdp with CONTENT=METADATA_ONLY option or else exp/imp with rows=n
    http://www.oracle-base.com/articles/10g/oracle-data-pump-10g.php
    ~Y

  • If ur database crash u have only export of database how u create database f

    if ur database crash u have only export of database how u create database from starting with help of export give steps

    What is an "export give steps?"
    If ur's database crashes, how is it u's responsibility to restore it?
    Now, if my database crashes, I just restart it in crash recovery mode and not even worry about the backup or export. It is not needed.

  • Gathering Entire Database Structure

    Hi Geeks,
    I want to gather the entire database structure for our client database, which is outside of our country and it is impossible to send the export dump file since so many formalities are there. I need to gather the information, but not through export dump file. I don't need the datas, but only the structure from A-Z.
    Is there any possible way to do it.
    Kindly help me.
    Thanks,
    Bang.

    Hi,
    If i understood your question correctly then can use RMAN if you have the access. invoke "show schema" command to know the structure of your Database; Eg in my case:
    C:\Documents and Settings\smuthalagan>set oracle_sid=test
    C:\Documents and Settings\smuthalagan>rman
    Recovery Manager: Release 10.1.0.2.0 - Production
    Copyright (c) 1995, 2004, Oracle. All rights reserved.
    RMAN> connect target
    connected to target database: TEST (DBID=1915532430)
    RMAN> report schema;
    using target database controlfile instead of recovery catalog
    Report of database schema
    File K-bytes Tablespace RB segs Datafile Name
    1 460800 SYSTEM *** E:\ORACLE\PRODUCT\10.1.0\ORADATA\TE
    ST\SYSTEM01.DBF
    2 30720 UNDOTBS1 *** E:\ORACLE\PRODUCT\10.1.0\ORADATA\TE
    ST\UNDOTBS01.DBF
    3 245760 SYSAUX *** E:\ORACLE\PRODUCT\10.1.0\ORADATA\TE
    ST\SYSAUX01.DBF
    4 5120 USERS *** E:\ORACLE\PRODUCT\10.1.0\ORADATA\TE
    ST\USERS01.DBF
    5 153600 EXAMPLE *** E:\ORACLE\PRODUCT\10.1.0\ORADATA\TE
    ST\EXAMPLE01.DBF
    RMAN>
    Thanks
    --Raman                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • The database structure has been modified - how to check if it happend?

    Hello,
    I have a question. How to check if the database structure has been modified? I know that there is shown a messagebox after creating table and adding some fields, but sometimes this message appear after some seconds. The problem is that I want to create table and UDO for this table, and until database structure is not modified I got an error message. If I wait and DB strucuture modifies then UDO is creating correctly.
    My question is - does anyone know how to check if database structure has been modified?
    Regards,
    Hmg

    Hi Szymon,
    I guess you are stuck up in a kinda scenario, where in, you will be populating a form with values, before the structure modifies, if this is going to be your problem, I can help you out with a work around.
    In the beginning of the process, before the creation of the UDO or tables, set a boolean value to false, and once all UDO's and Tables are created, only then, should you make it true and only after the boolean becomes true, you should proceed with populating the values from the screen.
    I really ament sure what your problem is, but one of my guys faced this problem, I then, thought even you might have a similar problem.
    Satish.

  • Use same report with same database structure to different database server.

    Hi,
    I have standard crystal reports which needs to be copied to another database server.
    The origin database has exactly same database structure with the data base in other server.
    My only question is how to change the connection of the crystal report file from old database server to new one without affecting the linked tables in the report. Would it be possible?
    Note: origin database and new database has same structure, tables and columns but differ in data on it. and both has different server. (MS SQL)
    Thanks,

    Hi Mark,
    Open the report in the CR Designer > select Database option on the top > select Set Datasource location.
    The pane on the top shows the current connection. Go ahead and create a new connection to the target database from the pane at the bottom. Once created, highlight one table from the top, highlight the corresponding table from the bottom pane and click Update. Do this for each table.
    -Abhilash

  • Automatic Checking of Database Structures

    In OSS note 521870 SAP recommends to perform a weekly
    check of the Database Structures to verify that the
    Maxdb database is not corrupt. Unfortunately this
    OSS note only describes the manual procedure to
    perform this task:
    dbmgui -> Check -> Database Structure
    Is there any way to easily schedule this also via dbmcli?
    The SAP online documentation contains some interesting
    information about integrating the check into the CCMS,
    here I can see whether the database structure check
    was performed recently, but unfortunately I cannot
    schedule it
    http://dev.mysql.com/doc/maxdb/en/30/5ada6e596211d4aa83006094b92fad/content.htm
    All I can find here is to schedule it via DB13,
    but unfortunately my SCM 4.1 system is running on
    Oracle and I want to check the liveCache on Maxdb,
    so I cannot use DB13 for scheduling the check.

    Hello Mark,
    Central DBA Planning Calendar ::
    In the user menu, choose the Central DBA Planning Calendar
    (transaction DB13C).
    If it is not already there, add your liveCache to the list of systems.
    To do this, choose Configuration ® Add System.
    System ID: Enter here the liveCache name that you assigned during the
    integration of the liveCache (using MaxDB/liveCache System Overview).
    Database: Choose SDB/LVC.
    Database Release: Choose the liveCache Version in accordance with the      
     version notation .
    Select No SAP Basis.
    Database Server: Enter the name of the liveCache server.
    Connection Name: Enter the name of the database connection.
    To switch to a local DBA planning calendar, choose Local Calendar and then
    select the system for which you want to edit actions.
    Please also review the SAP notes 940420, 521870 ( you already know this note ).
    And note 820824 FAQ: MaxDB to find the note for the documentation & more -
    For SAP liveCache documentation in English:
    http://help.sap.com/saphelp_nw04/helpdata/en/f2/0271f49770f0498d32844fc0283645/frameset.htm
    ->Database Administration in CCMS: SAP liveCache ->
    -> Central DBA Planning Calendar
    If you are the official SAP customer, I recommend you to create
    the ticket to SAP on 'BC-DB-LVC' queue.
    Thank you and best regards, Natalia Khlopina

  • Oracle database Structure Size

    HI ,
    Can any one tell me how to find the size of a oracle database with out data , meaning only the structure meta data only.
    Thanks
    lbn76

    Hi
    plese explain Youre question
    Do You want to get DDL-statement to recreate objects ?
    The space which You allocated for database is reserved and marked on blocks.
    Free bloks doesn't belong to a reserve of an empty space of operating system .
    I think if You whant to get size of the absolutely empty database
    You need to calculate sizes of minimum necessary files in tablespaces SYSTEM, SYSAUX, Redo-files, control files , password- and controlfiles
    or shrinking every table to a minimum space, move HWM and then calculate the size that Youre database occupy
    Regards,
    Pavel

  • Changing database structure

    I have to add a tabel a mailalerttext and link that to mailalertypes which is linked to mailalerts. I had some problems with the selectlists, underneath you will find something that will solve that problem I thought, but it may be easier to solve it simpler, but thats apex stuff.
    If a default user and default applicationcode would exist, it would be possible to use them in the mailalert table which has following colums:
    MAILALERTID,APPLICATIECD,GEBRUIKERID,MAILALERTTYPEID,SENDMAILIND
    gebruikerid means userid.
    The defaultuser and application code would then be used in the mailalerts table and the column mailalertype would be replaced by mailalerttypecode. These are defined they can't change.
    The reason is that if mailalerttext is linked to maillalerts using the mailalertid as the foreign key, then that allows to find the correct text, or select it straightaway by using the mailtextid. All the selects would then be made on the mailalert table.
    The numbers used as default are just those that are free, a default user can be filled in like that in te gebruikers table, and a default application code in the apps table.
    Only the standard user and the mailalerttypecode are important, the standard applicationcode could be used as an extra check but might not be necessary.
    A select could then be made on that applicationcode, that user, that typecode if not found select standarduser and typecode.
    Applicationcode is only filled in to stick to the table definitions. To solve a problem with a select list on a page in apex i think this is overkill, as it requires more changes then does the first solution, It means changing tables, dropping columns adding them, changing triggers, changing code in apex pages, a lot of work.
    But I was wondering if concerning a database structure, starting from scratch this is something that would be considered good, not so good, bad, something to not do ?
    I'm not sure this is the right group, but it isn't strictly apex, and it isn't really sql/plsql either. More database structure.
    I'm just beginning, so i'd like to know your opinions and why it would be bad, or possibly good.
    Message was edited by: Floris Vermeir
    Removed the spelling mistakes.
    Floris

    I'm still not sure I understand your existing data model properly. The following is my interpretation of what I think your're trying to achieve.
    There are four core data tables -
    * APPLICATIONS - holds information relating to the programs you administer
    * MAIL_TEXT - holds boilerplate text for each type of e-mail (I'm assuming this text can be shared across applications)
    * MAIL_TYPES - the different kinds of e-mail alerts which can be sent
    * USERS - holds information about the support staff.
    I think you need two intersection tables
    * APP_MAIL_TYPES - application X uses text Y for e-mails of type Z (candidate key: app id and type id)
    * USER_MAIL_REGS - user Joe gets e-mails of type Z from application X (candidate key: app id, type id and user id)
    NB If the registration is just done against alert type for all apps, then the USER_MAIL_REGS table shoudl intersect USERS and MAIL_TYPES.
    |                      |
    |  applications        |
    |                      |
           |
           |
          /|\
    |                      |                |                      |
    |  app_mail_types      |>---------------|  mail types          |
    |                      |                |                      |
             \|/     |
              |      |
                |      ---------------------------------          
                |                            |
                |                              /|\
    |                      |                |                      |    
    |  mail text           |                |  user_mail_regs      |    
    |                      |                |                      |    
                                             \|/
                                              |
                                                       |
                                            |                      |                       
                                            |       users          |                       
                                            |                      |                       
                                            ----------------------                        I think USER_MAIL_REGS corresponds to your "overview" table. (It's a good idea to use names which convey as much info as possible. I acknowledge the difficulty of doing this in another language). Changing the users' registrations would simply be a matter of inserting or deleting rows from the USER_MAIL_REGS.
    If this doesn't help you then I'm afraid you will need to give me more info. Specifically, what tables you have, the role they play and the relationships between them.
    Cheers, APC

  • Different Database structure migartion

    In second version of our software we change the database structure.
    Now we need to migrate data from version 1 to version 2 that have different database structure.
    Is Streaming or any other oracle feature provides possibility or I should write code by hand?

    I sugeest you migrate the tables individaully having in mind the DML and DDL statements
    hitting the database from the application end. You need to do a mapping for both the databse.
    Do the events from your old application still update the same tables as the new application
    You need to really think this out to avoid having complications in your new version.
    I dont think stream option is the best at this stage rather export/import of tables would be the best option
    then you can think of stream to update your new version at run time.

  • Create database structure?_

    i want to create a database structure for following :
    1 member can have many groups
    1 group can have only one group member
    1 group can be joined by many members
    please help me to structure these in sql?
    Ashish Fugat (ashuthinksatgmail.com) SE

    Three Tables
    GroupTable (GroupID, Group Desc,.. any other columns)
    MemberTable (memberID,MemberName,...)
    GroupMembershiptable (GroupID,MemberID,..)
    Each record in GroupMembership denotes association between member on to a group
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Maybe you are looking for

  • Windows 7 wont start, only get bluescreen

    Hello I have a problem I have Windows 7 64bit For a game I needed to change my processor limit to one so the game wont have graphic problems, I changed it and rebooted my computer after that I had to options if i chose the option to start windows nor

  • Why can't i transfer contacts from my iPhone to my mac

    I just purchased a Mac pro. my pictures all transfered over, but, I can't get my contacts to transfer. please help Jane

  • Edit ClipboardFormatsPriorities in maker.ini file

    FrameMaker 10 (v. 10.0.2.419), Window 7. When copying text from Word into FrameMaker, I would like "TEXT" to be the first item in the dialog box when using Paste Special. We have edited the ClipboardFormatsPriorities in the maker.ini file by moving T

  • Oracle-servlet-xml

    Hello, i've just installed Oracle database on my pc. I am rather new to web server softwares, so i 'd like to ask you about the ones provided with this installation. Is oracle's servletrunner engine embedded in apache coming along with this version o

  • Files with termination *.SSD in C:\WINDOWS\Temp

    Post Author: Ferran CA Forum: General Hi all, I have Crystal Reports XI installed in a  windows 2003 Server, but now I have a big problem with space disk. Looking to empty the hard drive I found a lot of files ( 29.705 files ) from 1 Kb to 35MB each