Hi all,
I have a database named test on a redhat linux 6.1 enviroment. I need a command to generate the whole DDL of the database. Everything ranging from tables, views, privileges, procedures, triggers, constraints, referential integrity.
Is it possible and if so what will be the command. I know it will use dblook but I have been unable to run it.Also I need to know will this command create DDL of all the tables including the Syscat tables and tablesspaces?
And how will I use it to create the database on the other instance. Will I first manually create a database and then use this ddl or will it automatically create a Database.
Also I need to export all the data of the database. Basically, I need the ddl to create the database in another instance and then use the exported data to populate the newly created database.
I know we can directly export the whole database but I need these perform these 2 steps separately