Die Funktion zum Senden von Formularen auf der Support-Website ist aufgrund planmäßiger Wartungsarbeiten vorübergehend nicht verfügbar. Wenn Sie sofort Unterstützung benötigen, wenden Sie sich an den technischen Support. Wir bitten, jegliche Unannehmlichkeiten zu entschuldigen.
Konnten Sie mithilfe dieses Artikels ein Problem lösen?
Bewertung auswählen
Titel
NOT NULL constraints are not visible for object tables
Beschreibung
NOT NULL constraints excluded from object table scripts. Steps to reproduce the issue:
Run the script below: CREATE TYPE test_object_t AS OBJECT ( id NUMBER, hiredate DATE, desc_t VARCHAR2 (255), MEMBER FUNCTION f_test RETURN VARCHAR2 ) NOT FINAL /
CREATE OR REPLACE TYPE BODY test_object_t IS MEMBER FUNCTION f_test RETURN VARCHAR2 AS BEGIN RETURN 'V1.0.0'; END; END; /
CREATE TABLE test_objects OF test_object_t NOT SUBSTITUTABLE AT ALL LEVELS ( CONSTRAINT test_objects_pk PRIMARY KEY (id) ) OBJECT ID PRIMARY KEY /
ALTER TABLE test_objects MODIFY (hiredate CONSTRAINT hiredate_nn NOT NULL) /
ALTER TABLE test_objects MODIFY (desc_t CONSTRAINT desc_nn NOT NULL) /
If you run describe test_objects; you see
TABLE test_objects Name Null? Type ----------------------------------------- -------- ---------------------------- ID NOT NULL NUMBER HIREDATE NOT NULL DATE DESC_T NOT NULL VARCHAR2(255)
notice the not nulls created before with the alter statements for HIREDATE and DESC_T.
The not nulls can be seen in the constrains and column tabs in schema browser. The problem is that Toad does not show this information(not null) in any script anywhere (f4 , schema browser, schema compare or extract dll.)
Ursache
This is a bug.
Toad is filtering them out of the script because for non-object tables, those constraints are in-line with the table definition as NOT NULL keywords, so we leave them out of separate constraint commands to avoid duplication.
Lösung
WORKAROUND
None
STATUS
Issue fixed in Toad for Oracle 2024 R2 - v24.2.275.4664 (Released on Nov 4th 2024).
The latest version of Toad can be downloaded here:
Your Request will be reviewed by our technical reviewer team and, if approved, will be added as a Topic in our Knowledgebase.
Empfohlener Inhalt
Produkt(e):
Toad for Oracle
17.1, 17.0, 16.3
Thema/Themen:
Troubleshooting
Artikelhistorie:
Erstellt am: 6/3/2024 Letzte Aktualisierung am: 11/21/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.
Willkommen beim Support!
Online-Support-Hilfe für Quest *Produkt* finden Sie auf einer zugehörigen Support-Seite. Klicken Sie auf "Weiter", um zum entsprechenden Support-Inhalt und zur entsprechenden Unterstützung für *Produkt* weitergeleitet zu werden.
Alle Artikel durchsuchen
Die Internet Explorer Versionen 8, 9 und 10 werden nicht mehr unterstützt.
Die Internet Explorer Versionen 8, 9 und 10 werden vom Quest Software Portal nicht mehr unterstützt. Wir empfehlen Ihnen, Ihren Browser auf die neueste Version von Internet Explorer oder Chrome zu aktualisieren.
Zum Upgraden auf Internet Explorer 11 hier klicken