![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
bhd282 (benjamin.i.do... (AT) gmail (DOT) com) wrote: : Is it possible to regenerate database DDLs as one can do with : dbms_metadata.get_ddl? or with some scripts that can pull the : information from the dictionaries? : I have the SQL saved of the original CREATE DATABASE and ALTER : DATABASE statements when using DBCA. * I'd like to be able to see the : exact definition of the database without resorting to saving every : ALTER DATABASE statement that I execute. : (I've found a useful SQL statement online, that will generate the : CREATE TABLESPACE statements.) : -b What is wrong with dbms_metadata.get_ddl itself? |
|
It has various options to get the dll to create many types of objects, not just tables. * |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Is it possible to regenerate database DDLs as one can do with dbms_metadata.get_ddl? or with some scripts that can pull the information from the dictionaries? I have the SQL saved of the original CREATE DATABASE and ALTER DATABASE statements when using DBCA. I'd like to be able to see the exact definition of the database without resorting to saving every ALTER DATABASE statement that I execute. (I've found a useful SQL statement online, that will generate the CREATE TABLESPACE statements.) -b |
|
-createTemplateFromDB \ -sourceDB ora102 \ -sysDBAUserName sys \ -sysDBAPassword oracle \ -templateName ora102.dbt \ -maintainFileLocations true |
|
-generateScripts \ -templateName ora102.dbt \ -gdbName ora102.world \ -scriptDest /home/oracle/scripts Database creation script generation |
![]() |
| Thread Tools | |
| Display Modes | |
| |