You will need to make slight changes of function REByAlias(Alias) as follows:
function REByAlias(Alias)
{
var REDataMigrator = Alias.REDataMigrator;
REDataMigrator.InitiateREDataMigrator();
REDataMigrator.InitObjects();
var List = Alias.REStruct.Tables;
var i;
//Select some objects to RE, only example
for (i=0;i<List.Count;i++)
{
List.GetObject(I).Selected = true;
}
Thanks for the suggestion! This does make the “Database unavailable” message go away and run through the reverse engineering. However, I end up with with only tablespaces and directories reverse engineered, no tables etc. The list returned from Alias.REStruct.Tables has zero objects in it while the database has 67 tables. What else might I need to do in order to reverse engineer my tables? (When using the same alias for manual RE, I get all expected objects)
Sorry for incomplete solution! REcently we made some speed improvements and they caused that scripts need changes.
Script to load tables/objects correctly:
function REByAlias(Alias)
{
var REDataMigrator = Alias.REDataMigrator;
REDataMigrator.InitiateREDataMigrator();
REDataMigrator.LoadObjectFamilies();//NEW FOR ORACLE
REDataMigrator.InitObjects();
var List = Alias.REStruct.Tables;
var i;
//Select some objects to RE, only example
for (i=0;i<List.Count;i++)
{
List.GetObject(I).Selected = true;
}