This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Run database compilation within script

Hello,

In order investiguate on issues, we need to copy production database in another environment.

The customer want to create a task to copy the database every day and maintain the two environments with the same data.

We are using RMAN to copy the Oracle database and then we run a SQL script to set some specific values differents on the two environments (mainly obects in the following tables: DialogDatabase, Hardware, JobServer, Server).

Finally we have to run database compilation with database compiler to generate an other database id, before use the second environment.

In order to have a complete automatical procedure, we want to run this last step within a script.

This is why we are looking for information to run database compilation within script.

We found an initial response by analyzing sql request (in v$sql system view)

Generate a new database id:

declare                                                                                                                                                                                               

    v_newPK nvarchar2(38) := newid();                                                                                                                                                                 

begin                                                                                                                                                                                                 

    update dialogdatabase set ...

Run database compilation with a stored procedure:

BEGIN vid_CompileDatabase(); END;

We are really grateful for any help on the subject.

Serge

  • Hello Serge,

    that's not possible.

    We dont's have a cmd version of the DBCompiler.

    So it's not possible to use it unattended.

    The purpose of the mentioned stored procedure "vid_CompileDatabase" is the compilation of the SQL code on the Oracle server but NOT the compilation of the VB code.

    Regards,

    Steffen

  • Since this is one of the top results when searching for the topic of database compilation, I'm going to necro this thread.

    Are there maybe any means of simplifying/automating the DB Compiler functionality in more recent product versions (v7)?
  • Hi Christian,

    we added the command-line compiler in version 7.1.1 to our automation tool-set in the product.

    Developers, project implementer and customers now have a complete tool-chain to automate the deployments of 1IM available.

    • InstallManager.CLI.exe to automate the installation of the binaries packages
    • Quantum.MigratorCMD.exe to automate the database migration of 1IM
    • SoftwareLoaderCMD.exe to automate the upload the complete set of binaries into the database for the Auto-Update feature (parameter -N)
    • DBCompilerCMD.exe to automate the database compilation
    • DBTransporterCMD.exe to automate the import of transport packages
    • SynchronizationEditor.CLI.exe to automate the generation of synchronization projects from synchronization templates.
    • WebDesigner.CompilerCmd.exe allows to compile a file based solution without storing the results into the database. This is extremely helpful when the file based web portal development is used in combination with any kind of source code integration.

    I hope that answers your question.