Alternative TOAD to create ddl for open-ended statements. of objects

Hi friends,
What I usually face, it is the obligation to create instructions for some clues, some tables, some synonyms in a schema.
Manually get the script from the TOAD for each object is an enormous task and involves a lot of time.


=========
For example in a schema TESTSCHEM I tables below:
TAB1
TAB2
TAB 3
TAB4
TAB5

and the index below:

IND1_X
IND2_X
IND3_Y
IND4_D
IND5_M

and below synonyms:

SYN1
SYN2
SYN3
SYN4
SYN5
=========


and I want to get the DDL of:
TAB1
TAB4
TAB5

IND2_X
IND3_Y
IND4_D

SYN4
SYN5


Note: I need the exactly the same kind of scripts that TOAD makes for me. For example a table declaration will all create table, index, synonym, subsidies drawn here.

Can anyone suggest some dynamic queries/views that will help me to get the "true TOAD-LIKE" scripts.


No guidance for the scripts of TYPE TOAD will be a great help.

Thank you
Kunwar.

Discover the DBMS_METADATA package for your version to the http://tahiti.oracle.com

Tags: Database

Similar Questions

  • I bought lightroom and photoshop a week ago and successfully installed on my new iMac.  the iMac box open ends up being a lemon so I had to exchange for a new one.  best buy wiped the old computer.  now I'd like to reinstall lightroom a

    I bought lightroom and photoshop a week ago and successfully installed on my new iMac.  the iMac box open ends up being a lemon so I had to exchange for a new one.  best buy wiped the old computer.  now I'd like reinstall lightroom and photoshop on my new computer, but I don't know how. Help!

    Download and install the trial version of http://www.adobe.com/downloads.html and activate it with your serial number or your Adobe ID.

  • Web site created by Muse. The greats until tweek of today. Web site insists now for open index.html in the tablet. Don't know how product, nor how to change the default value for pc of office/index.html. Would advise. Bob

    Web site created by Muse. The greats until tweek of today. Web site insists now for open index.html in the tablet. Don't know how product, nor how to change the default value for pc of office/index.html. Would advise. Bob

    Hi Bob

    I think that you have found the solution but if still you are facing the question, please give me the url of the site that opens another provision in the tablet.

    Please make sure desktop redirection is checked in the site properties page layout.

    Thank you

    Sanjit

  • I am maing a movie with windows movie maker and you cannot add a song for the end credits. Whenever I get the song imported the system stops... Help!

    I'm doing a movie with windows movie maker and cannot add a song for the end credits. Whenever I get the song imported the system stops... Help!

    I'm doing a movie with windows movie maker and cannot add a song for the end credits. Whenever I get the song imported the system stops... Help!

    ===============================
    If a music file Movie Maker crashes
    in a format that is not compatible. If you convert
    the file to the format of .wma before importing, you
    can have a better result.

    The converter below might be helpful to try:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Format Factory
    http://www.pcfreetime.com/
    (FWIW... you can uncheck
    all the boxes on the last screen)

    After downloading and installing Format Factory...
    Open the program and choose an output folder...
    (this is where you will find your files when they are
    converted)

    Drag and drop your audio clips on the main screen...

    Select "while"WMA"/ OK...

    Click on... Beginning... in the toolbar...

    That should do it...

    Good luck.
    John Inzer - MS - MVP - Digital Media Experience - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • dynamic SQL for OPEN will not take the SQL string in the form of a string variable

    Hello

    I use "OPEN-for", not "EXECUTE IMMEDIATE" because I want to do multi lines request. However, 'OPEN-for' won't take a variable "strSQL' in the clause, it only took fixed ropes?

    create or replace function fnEnumSystemUser
    (
    LogonFilter nvarchar2,
    ...
    AdditionalWhereClause nvarchar2,
    OrderByClause nvarchar2
    )
    RETURN xxxxx.cursorType
    AS
    strSQL nvarchar2 (2000);

    FormatAdditionalWhereClause nvarchar2 (2000);
    FormatOrderByClause nvarchar2 (2000);

    SystemUserCursor xxxxx.cursorType;
    BEGIN

    If AdditionalWhereClause IS NULL THEN
    FormatAdditionalWhereClause: = ' ';
    ON THE OTHER
    FormatAdditionalWhereClause: = TRIM (AdditionalWhereClause);
    END IF;

    If OrderByClause IS NULL THEN
    FormatOrderByClause: = ' ';
    ON THE OTHER
    FormatOrderByClause: = TRIM (OrderByClause);
    END IF;

    strSQL: = 'select Id, FirstName, MiddleName, LastName, PrimaryEmail, PersonType, CreateDate, CreatedBy, LastUpdate, LastUpdateBy, connection, PasswdHash, IsSuspended, had left join SystemUser person on SystemUser.PersonId = Person.Id';
    -It won't work, just says "WARNING: compiled, but with compilation errors" when I tried to create the function
    Open SystemUserCursor for strSQL;

    -This is to call "ORA-01006: bind variable does not exist.
    Open SystemUserCursor
    ' select Id, FirstName, MiddleName, LastName, PrimaryEmail, PersonType, CreateDate, CreatedBy, LastUpdate, LastUpdateBy, connection, PasswdHash, IsSuspended, had left join SystemUser person on SystemUser.PersonId = Person.Id WHERE SystemUser.Logon like: x: y ' using LogonFilter, OrderByClause;

    -This failed also (on call, "ORA-00900: invalid SQL statement")
    Open SystemUserCursor
    ' select Id, FirstName, MiddleName, LastName, PrimaryEmail, PersonType, CreateDate, CreatedBy, LastUpdate, LastUpdateBy, connection, PasswdHash, IsSuspended, had left join SystemUser person on SystemUser.PersonId = Person.Id WHERE SystemUser.Logon like: x' | OrderByClause using LogonFilter;

    RETURN SystemUserCursor;
    END;

    That's how I invoked:
    declare
    Int NumItemsSelected;
    lstResult xxxxx.cursorType;

    TYPE SystemUserRecordType IS RECORD
    (
    ID numeric (19.0),.
    FirstName nvarchar2 (50).
    MiddleName nvarchar2 (50).
    LastName nvarchar2 (50).
    PrimaryEmail nvarchar2 (190),
    PersonType int,
    CreateDate timestamp,
    CreatedBy numeric (19.0),.
    LastUpdate timestamp,
    LastUpdateBy numeric (19.0),.

    Logon nvarchar2 (75).
    PasswdHash int,
    IsSuspended tank,
    Display timestamp
    );
    SystemUserRecordType oUser;
    Start

    lstResult: = fnEnumSystemUser (...) '%',... Person.PrimaryEmail like '% a %', "order by ASC Logon", 0, 10, NumItemsSelected);
    LOOP
    extract lstResult in oUser;
    When the output lstResult % notfound;
    dbms_output.put_line ('Id: ' | oUser.Id);
    END LOOP;
    end;

    I need the ability to add to the SQL string because ultimately say I need to join:
    1. ORDER BY section
    2 call a FUNCTION in WHERE Clause
    3 pagination and ROW_NUMBER() clause

    What can I do? Thank you!

    1. why you use NVARCHAR2 to the SQL string. Use VARCHAR2 or LONG.

    2. use

     tags to preserve formatting of your code.
    
    3. In the bind variable does not exist example it looks like you have one bind, :y, but are trying to bind two variables logonfilter and orderbyclause.
    
    4. In the third example, try logging the sql string in a table or dbms_output and running it in sql - you should get the same error and it might then be easier to diagnose.
    
    Cheers,
    Dominic                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    
  • Creating a background without end

    I'm looking for online tutorials to create a background without end, much like these images below. Can someone tell me please in the right direction?endless2.jpgendless1.jpg

    I would do it with a gradient fill layer

    1. Choose layer/new layer fill / gradient, give a name to your new layer and presso OK.

    2. in the window of gradient fill, choose the Style / thought

    3. drag & drop directly in the scene of the line of the gradient so that it overlapped the horizon line

    4. click on the preset gradient and the gradient editor-enter

    5 play with colors, but don't forget the stop no is opacque and the other is transparent.

  • Why Acrobat Pro DC hangs up after that Create begins to open the source Word file?

    Why Acrobat Pro DC hangs up after that Create begins to open the source Word file?

    I tried. He created a satisfactory smaller file. After discussion with a colleague, I suspect that the file is too big for my laptop to face. My solution is to go to a specialist agency to do the work. I'm happy to close the investigation.

    Sent from my iPad

  • Remove the automatic sequence and trigger the DDL for surrogate keys?

    Is there a way to remove the shutter and the sequence of creation for surrogate keys when export file DDL?

    I know that most of the time the auto sequence and trigger creation is welcome and very convenient.

    However I'm migrating from an old model of Designer and here only the necessary sequences are created.

    They have a different name and logical trigger is personalized (and generated outside of the Designer).

    There is a lot of code package accordingly. So, I prefer to create and use different sequences.

    Is there a way to do this? Tips are welcome. Create

    Hello

    you change preferences - "Data Modeler > model > physics > Oracle"-set "Default auto-increment DDL" and "Identity default DDL" voices against ZERO and generate the DDL for Oracle12c


    Philippe

  • How to change a PDF file that I can only open in Photoshop CC to a file DO I use for sending and for opening Adobe Reader?

    How to change a PDF file that I can only open in Photoshop CC to a file DO I use for sending and for opening Adobe Reader?

    What is the reason to be here?

    Acrobat Reader must be able to open a pdf file created in Photoshop so why involve Illustrator?

    Have you tried to open or convert the file with Illustrator?

  • Skillbuilders modal Page - Open End event

    Hello

    I use Skillbuilders Modal Page 2.0.0. Apex 4.2 plugin and I can't seem to get the end event open to work.
    I came across this thread Skillbuilder Modal Page - dynamic title , but the solution suggested that Tom did not help; nothing happens even if I put an alert on the open end.

    I will be grateful for any advice that you can send my way.

    It's ok, good you have fixed!

  • Reader Adobe XI updates last week. Reinstalled this morning. All previous saved pdf files are now forms of words asking the conversion? Creates problems for my business. Help, please?

    Reader Adobe XI updates last week. Reinstalled this morning. All previous saved pdf files are now forms of words asking the conversion? Creates problems for my business. Help, please?

    See http://windows.microsoft.com/en-us/windows/change-file-open-program#1TC=windows-7

    Another method: http://windows.microsoft.com/en-us/windows/change-default-programs#1TC=windows-7

  • Rapid DDL for table - generated 3 times grants

    Developer SQL version 3.2.20.09

    The table is created as follows:
    create table test_quick_ddl
    (
      column1 varchar2(10 char),
      column2 varchar2(10 char)
    );
    
    grant select, update, insert, delete on test_quick_ddl to scott;
    And "the fast DDL" generated for this table looks like:
    --------------------------------------------------------
    --  DDL for Table TEST_QUICK_DDL
    --------------------------------------------------------
    
      CREATE TABLE "KTRM"."TEST_QUICK_DDL" 
       (     "COLUMN1" VARCHAR2(10 CHAR), 
         "COLUMN2" VARCHAR2(10 CHAR)
       ) SEGMENT CREATION DEFERRED 
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS NOLOGGING
      TABLESPACE "KTRM" ;
      GRANT DELETE, INSERT, SELECT, UPDATE ON "KTRM"."TEST_QUICK_DDL" TO "SCOTT";
    GRANT DELETE, INSERT, SELECT, UPDATE ON "KTRM"."TEST_QUICK_DDL" TO "SCOTT";
    GRANT DELETE, INSERT, SELECT, UPDATE ON "KTRM"."TEST_QUICK_DDL" TO "SCOTT";

    Hello world
    Thanks for your efforts to report/reproduce the problem.

    I am able to reproduce the problem and identified the cause of it. Working on a fix for it now.

    Joyce Scapicchio
    Team SQLDeveloper

    Published by: Joyce Scapicchio on November 29, 2012 12:57

  • Creating cloud App open and close / crash immediately.

    Creating cloud App open and close immediately on the mac pro book.

    There is no error message.

    I just saw icon cloud on the bar at the top for a few seconds and disappear from it and nothing happened.

    What I did:

    • reset and reinstal the CC App several times
    • Uninstall CC App and run a cleaning of Adobe tool and clean CC App. Install it again

    I still installed on Mac CS6 and cannot uninstall this time.

    MacBook Pro

    15-inch, mid-2012

    2.3 GHz Intel Core i7 processor

    8 GB 1600 MHz DDR3 memory

    NVIDIA GeForce GT 650M 512 MB graphics

    Software OS X 10.8.3 (12 D 78)

    Any solution?

    I found what the problem was.

    Another application causing the cc crashing.

    If someone using GROWL for Mac this application has a conflict with CC App.

    I close this application and everything seems to work properly.

    See you soon!

  • Install RMS 13.1 how to add limits given in the ddl for UK files?

    Hello gurus, the retail
    I installed RMS 13.1 without running the partition.ksh script during installation detail for RMS database and it has created some examples of data too, I saw the Guide installation and especially watched the stages of partitioning in the Guide, can someone give a hint, how the data limits are changed in the ddl for UK files? Since I'm a DBA, I'm a little confused, where to get this data? as the installation guide mentions that the RMS_partition_defintion.xls has modified and used for installation of production combined with partition_attributes.cfg for a production facility.
    Thanks in advance
    -Vivek

    Hi Vivek,
    Let's see...

    UK means United Kingdom of great brittain? I think that there is no UK specific DDL instructions associated with RMS.

    If you look at the Installer (unzip the zip to edelivery.oracle.com for example RMS 13.1), order folders

    V16908-01\rms_13.1_install\rms13dbschema\rms\dbschema\dbscripts_rms\examples\part
    V16908-01\rms_13.1_install\rms13dbschema\rms\dbschema\dbscripts_rms\ddl\part

    This package contains a ksh script which is driven by a script configuration and some lists of specific partitions in the data_def folder.
    This script partition.ksh can recreate DOF to other unpartitioned tables to partitioned.

    The XLS file mentioned also in this file and helps defining the number of partitions and make one or for example multidimensional (e.g. range/hash).

    The whole process is explained in a lot of details in the last chapter of the guide to implementation of goods merch-131 - impg.pdf.

    When your system already contains data, this should be saved and re-established.

    Note that indexes on partitioned tables may need too many partitioning, it takes at least some reflection on this and AFAIK the RMS installation program tries to respond to this also.

    Best regards
    Erik Ykema

    Published by: ErikYkema on October 29, 2010 08:05

  • Retrieve the DDL for temporary Table existing global

    HI: I'm on 10.2.0.3.

    Anyone know how to recover the DDL for TWG? For an ordinary table, I select dbms_metadata.get_ddl ('TABLE', '< table_name >', '< OWNER >') of double;

    Does not work for GTT! TIA.

    Can you elaborate a bit on "does not work"? Are you an Oracle error, for example? If so, what is the error?

    Seems to work for me on 10.2.0.1

    SQL> select * from v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    
    SQL> create global temporary table gtt_foo (
      2  col1 number
      3  );
    
    Table created.
    
    SQL> select object_type from user_objects
      2  where object_name = 'GTT_FOO';
    
    OBJECT_TYPE
    -------------------
    TABLE
    
    SQL> select dbms_metadata.get_ddl( 'TABLE', 'GTT_FOO' )
      2    from dual;
    
    DBMS_METADATA.GET_DDL('TABLE','GTT_FOO')
    -----------------------------------------------------------
    
      CREATE GLOBAL TEMPORARY TABLE "SCOTT"."GTT_FOO"
       (    "COL1" NUMBER
       ) ON C
    

    Justin

Maybe you are looking for