ORACLE Export (exp) vs Datapump (expdp) ORACLE provides two external utilities to transfer database objects from one database to another database. Traditional exports (exp /imp) are introduced before 10g. Then from 10g, ORACLE introduced datapump (expdp / impdp) as an enhancement to traditional export utility. Traditional Export (exp/ imp) This is an ORACLE database external utility, which is used to transfer database objects from one database server to another database server. It allows transferring the database objects over different platforms, different hardware and software configurations. When an export command is executed on a database, database objects are extracted with their dependency objects. That means if it extracts a table, the dependences like indexes, comments, and grants are extracted and written into an export file (binary format dump file). Following is the command to export a full database, Cmd > exp userid=username/password@exportdb_...
You can create/drop tables in PL/SQL block with Execute immediate command
ReplyDeleteactually any programming language follows pre/post validations for host variable
here pre checking wl be done,so at the time of compilation we have to submit all host variables,but we can't with ddl stms,so where ever we keep Execute immediate stmt that stmt wl be validate at runtime only.
this is nothing but Dynamic SQL.previously we are using in-built pakage ,now execute immediate command .