O envio de formulários no site de suporte está temporariamente indisponível para manutenção programada. Se precisar assistência imediata, entre em contato com o suporte técnico. Lamentamos o inconveniente.
Generation of change scripts for object types is invalid
Descrição
Toad generates invalid change scripts for object types. Steps to reproduce the issue:
create 2 empty schemas for comparison: in this example, COMP1 (target) and COMP2 (Source)
run this in COMP1
CREATE OR REPLACE TYPE my_type AS OBJECT ( id NUMBER, name VARCHAR2(100) );
create table my_type_table of my_type; run this in the other COMP2
CREATE OR REPLACE TYPE my_type AS OBJECT ( id NUMBER, name VARCHAR2(100) );
create table my_type_table of my_type;
ALTER TYPE my_type ADD ATTRIBUTE (email VARCHAR2(100)) cascade; Note: Oracle tracks the changes to the TYPE in DBA_TYPE_VERSIONS. There you can see the versions of the type before and after the ALTER TYPE statement. Toad uses the version info here to compare and sync
Compare them using COMP2 as source and COMP1 as target.
The only object types you need to include are tables and types
The sync script looks like below.
ALTER TYPE COMP1.my_type ADD ATTRIBUTE (email VARCHAR2(100)) cascade;
CREATE OR REPLACE TYPE COMP1.my_type AS OBJECT ( id NUMBER, name VARCHAR2(100) ) ALTER TYPE my_type ADD ATTRIBUTE (email VARCHAR2(100)) cascade /
SHOW ERRORS;
ALTER TABLE COMP1.MY_TYPE_TABLE ADD (EMAIL VARCHAR2(100 BYTE));
Bug: The only valid statement here is the first one.
The “Create or replace type” is unnecessary because we already altered it.
“Show errors” is actually harmless.
The “Alter table” is invalid because you can’t add columns to type tables.
Login necessário
é necessário estar conectado e ter um contrato de manutenção atual para visualizar os artigos de conhecimento premium.
Criado em: 6/20/2024 Última atualização em: 6/20/2024
Thank you for your feedback for Topic Request
Your Request will be reviewed by our technical reviewer team and, if approved, will be added as a Topic in our Knowledgebase.
Bem-vindo ao Suporte
Você pode encontrar ajuda de suporte on-line para *produto* da Quest em um local de suporte afiliado. Clique em Continue (Continuar) para ser direcionado ao conteúdo de suporte correto e à assistência a *produto*.
Encerramento do suporte aos navegadores IE 8, 9 e 10
O Portal da Quest Software não é mais compatível com IE8, 9 e 10. Recomendamos a atualização do navegador para a versão mais recente do Internet Explorer ou do Chrome.