Achieved in the production Oracle 9i table and index DDL statement
We all know that before in 9i, in order to get to build the statement table and index is a very troublesome thing. We usually through the practice of export with rows = no to get, but it is because the output format and can not be directly used to use. The other way is to write a complex script to query the data dictionary, but for a slightly complicated object, such as IOT and nested tables, etc., or can not be found. Obtained from the data dictionary is the frequent use DDL statements, especially in the system upgrade / redevelopment. In Oracle 9i, we can directly through the implementation of dbms_metadata investigated from the data dictionary DDL statement. Use this powerful tool, we can get a single object or the entire SCHEMA statement in DDL. But the best is because it is very simple to use. 1, access to a single table and index DDL statement of methods:
The following is the output. As long as we build table / index statements out at the back plus a semi-colon can be directly run.
2, the whole way SCHEMA DDL statement:
Note that the table when we are outside the health (see constraints), we need to determine the order between the light table to ensure that the redevelopment in accordance with a reasonable order. You can query dba_constraints and dba_cons_columns to determine the order between the tables, shall not repeat. |
Related Posts of Achieved in the production Oracle 9i table and index DDL statement
-
ORACLE10G full version centos5 installed (the installation has passed)
ORACLE10G full version centos5 installed (the installation has passed) 1. Centos 5.0 install rn GUI must be installed, it is best not to start selinux rn rn rn 2. . Ready to install the software: (this is very important, is the first installation fai ...
-
SGA extended the principle of 32bit oracle
SGA extended the principle of 32bit oracle From: http://www.itpub.net/247048.html Because the median 32bitrnoracle restrictions can only visit the oracle process 4g (2 of 32 power) following virtual memory address, the time at a lot of people this is ...
-
Dbms_obfuscation_toolkit use of Oracle's encryption and decryption of data (to)
In order to protect sensitive data, oracle start from 8i to provide a data encryption package: dbms_obfuscation_toolkit. Take advantage of this package, our data can be DES, Triple DES or MD5 encryption. This article on the use of this and the use of ...
-
Oracle in the relationship between User and Schema
If we want to know the database and the User What is the relationship between Schema, we must first know about User and Schema database What is the concept in the end. In SQL Server2000 in architecture because of the reason, User and Schema there is ...
-
High Availability Oracle Flashback
Brief introduction Flashback Database is a point in time (PIT) restore the database approach. This incomplete recovery strategy can be used to restore the logic because of human error cause damage to the database. At the introduction of 10g, it is de ...
-
An example of the use of TKPROF
First, view and edit parameters SQL> show parameter max_dump_file_size NAME TYPE VALUE ------------------------------------ ----------- --- --------------------------- max_dump_file_size string UNLIMITED SQL> show parameter user_dump_dest NAME TYPE
-
Diagnosis and principles of order
SQL> select disk.value "Disk", mem.value "Mem", 2 (disk.value / mem.value) * 100 "Ratio" 3 from v $ sysstat mem, v $ sysstat disk 4 where mem.name = 'sorts (memory)' 5 and disk.name = 'sorts (disk)'; D ...
-
ORACLE 10G dataguard configuration Step by Step
oracle dataguard













Leave a Reply