top of page

Program modules

Открытая·3 пользователя

Oracle: Compile invalid objects (wizard)


CerebroSQL: Oracle compile invalid onject

[EN]

The compiler allows you to fix errors, fix errors in the code, as well as view a list of errors for all objects.


Object tree (queries)

The tree of objects with the Invalid status. 

  • Root nodes are the name of the schema

select owner "Owner",

      count(*) "Count"

 from ALL_OBJECTS where status='INVALID'

group by owner order by 1

  • Child nodes of the first level - types of objects

select object_type "Type",

       count(*) "Count"

  from ALL_OBJECTS

where status='INVALID' and owner='$$SCHEMA_NAME'

group by object_type

order by 1

  • Child nodes of the second level are objects with the 'Invalid' status

select object_name "Name"

  from ALL_OBJECTS

 where status='INVALID'

   and object_type='$$OBJECT_TYPE'

   and owner = '$$SCHEMA_NAME'

group by object_name

order by 1


Object Code Editor

  • Select an object in the "Tree invalid object" tree

  • Click the "Show code selected object" button


IMPORTANT: the create or replace construct must be missing from the text in the "Code edit" field.

​

The "Error list" contains one line for each error in the object text. When clicked, the cursor is moved to the line with the error in the "Code edit" field

​

The "List all errors" tab

It is used to view information about errors in database objects. The list can be sorted by scheme, object type 

​

​

Compiling objects

  • In the "Tree invalid object" tree, select the desired level (schema, object type, object)

  • Click the "Run compile" button


The compilation process is monitored in the Program Monitor



[RU]

Компилятор позволяет исправить ошибки, исправить ошибки в коде, а так же просмотреть список ошибок по всем объектам.


Дерево объектов (запросы)

Дерево объектов в статусе Invalid. 

  • Корневые узлы - имя схемы

select owner "Owner",

count(*) "Count"

from ALL_OBJECTS where status='INVALID'

group by owner order by 1

  • Дочерние узлы первого уровня - типы объектов

select object_type "Type",

count(*) "Count"

from ALL_OBJECTS

where status='INVALID' and owner='$$SCHEMA_NAME'

group by object_type

order by 1

  • Дочерние узлы второго уровня - объекты в статусе 'Invalid'

select object_name "Name"

from ALL_OBJECTS

where status='INVALID'

and object_type='$$OBJECT_TYPE'

and owner = '$$SCHEMA_NAME'

group by object_name

order by 1


Редактор кода объекта

  • В дереве "Tree invalid object" выделить объект

  • Нажать кнопку "Show code selected object"

​

      ВАЖНО: конструкция create or replace должна отсутствовать в тексте в поле "Code edit".

​

Список "Error list" - содержит по одной строчке для каждой ошибки в тексте объекта. При клике курсор переводится на строку с ошибкой в поле "Code edit"

​

Вкладка "List all errors"

Служит для просмотра информации по ошибкам в объектах БД. Список можно сортировать по схеме, типу объекта 

​

​

Компиляция объектов
  • В дереве "Tree invalid object" выделить нужный уровень (схема, тип объекта, объект)

  • Нажать кнопку "Run compile"

Мониторинг процесса компиляции осуществляется в "Мониторе программы"


20 просмотров

Участники

  • Hemant Kolhe
    Hemant Kolhe
  • Admin
  • Admin
bottom of page