DICOM table not getting created

Hi,
I hope I am posting this in the right forum.
I am trying to create a DICOM table. It is an XML Schema. Here is the error that I am getting when I try to create it:
SYS@FPRCDEV> CREATE TABLE "DAVE"."DOCUMENT"
(ID NUMBER,
FILENAME VARCHAR2(400),
DICOM_IMAGE ORDIMAGE ,
THUMB ORDIMAGE ,
DICOM_METADATA XMLTYPE)
XMLTYPE COLUMN DICOM_METADATA
XMLSCHEMA "http://xmlns.oracle.com/ord/meta/dicomImage"
ELEMENT "<ROOT ELEMENT>"PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 81920 NEXT 1048576 MINEXTENTS 1
MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "USERS"
LOB (DICOM_IMAGE)
STORE AS ( TABLESPACE "USERS" ENABLE
STORAGE IN ROW CHUNK 16384 PCTVERSION 10 NOCACHE LOGGING
STORAGE(INITIAL 81920 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT))
LOB (THUMB)
STORE AS ( TABLESPACE "USERS" ENABLE
STORAGE IN ROW CHUNK 16384 PCTVERSION 10 NOCACHE LOGGING
STORAGE(INITIAL 81920 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)); CREATE TABLE "DAVE"."DOCUMENT"
ERROR at line 1:
ORA-31043: Element '<ROOT ELEMENT>' not globally defined in schema 'http://xmlns.oracle.com/ord/meta/dicomImage'

Ok, here it is. It is very long.
<?xml version="1.0" encoding="ISO-8859-1" ?>
- <xs:schema xmlns="http://xmlns.oracle.com/ord/meta/dicomImage" targetNamespace="http://xmlns.oracle.com/ord/meta/dicomImage" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" elementFormDefault="qualified" attributeFormDefault="unqualified" xdb:flags="307" xdb:schemaURL="http://xmlns.oracle.com/ord/meta/dicomImage" xdb:schemaOwner="ORDSYS" xdb:numProps="124">
- <xs:annotation>
<xs:documentation>Date: 21 Sept 2005 Version: 10gR2_release_10.2.0.2 Name: dicomImage.xsd Author: Dongbai Guo Introduction This schema defines the set of DICOM metadata published by Oracle interMedia ORDImage function getDicomMetadata(). The purpose of this set of functions is to extract from a DICOM image a set of attributes to describe the image in XML, allowing easy browsing and retrieval. Question mark "?" means optional items The DICOM schema does not enforce the DICOM standard. By default, conformance is enforced by the interMedia code. If DICOM conformance is disabled by invoking the setDicomValidation method, interMedia will extract metadata from images with missing or null mandatory DICOM attributes, and/or non-conformant DICOM attributes. For attributes with non-conformant values, the raw data will be placed in the rawValue attribute of the tag. Structure Overview DICOM_IMAGE ORD_DICOM_HEADER VERSION DICOM_STANDARD_VERSION DICOM_STANDARD_RELEASE FILE_META_HEADER MEDIA_STORAGE_SOP_CLASS_UID MEDIA_STORAGE_SOP_INSTANCE_UID TRANSFER_SYNTAX_UID IMPLEMENTATION_CLASS_UID IMPLEMENTATION_VERSION_NAME SOURCE_APPLICATION_ENTITY_TITLE PATIENT NAME ID BIRTH_DATE SEX GENERAL_STUDY INSTANCE_UID DATE TIME REFERING_PHYSICIANS_NAME ID ACCESSION_NUMBER DESCRIPTION? PATIENT_STUDY? ADMITTING_DIAGNOSES_DESCRIPTION ADMITTING_DIAGNOSES_CODE_SEQUENCE GENERAL_SERIES MODALITY INSTANCE_UID DATE TIME PERFORMING_PHYSICIANS_NAME BODY_PART_EXAMINED PATIENT_POSITION PERFORMED_PROCEDURE_STEP_ID PERFORMED_PROCEDURE_STEP_START_DATE PERFORMED_PROCEDURE_STEP_START_TIME PERFORMED_PROCEDURE_STEP_DESCRIPTION PERFORMED_PROTOCOL_CODE_SEQUENCE GENERAL_EQUIPMENT? MANUFACTURER GENERAL_IMAGE? INSTANCE_NUMBER ACQUISITION_NUMBER ACQUISITION_DATE ACQUISITION_TIME ACQUISITION_DATETIME PATIENT_ORIENTATION FRAME_LATERALITY ANATOMIC_REGION IMAGE_PIXEL? SAMPLES_PER_PIXEL PHOTOMETRIC_INTERPRETATION ROWS COLUMNS BIT_ALLOCATED BIT_STORED HIGH_BIT PIXEL_REPRESENTATION PLANAR_CONFIGURATION PIXEL_ASPECT_RATIO SOP_COMMON CLASS_UID INSTANCE_UID SPECIFIC_CHARACTER_SET List of DICOM attribute tags appeared in this schema (0002, 0002) MEDIA_STORAGE_SOP_CLASS_UID (0002, 0003) MEDIA_STORAGE_SOP_INSTANCE_UID (0002, 0010) TRANSFER_SYNTAX_UID (0002, 0012) IMPLEMENTATION_CLASS_UID (0002, 0013) IMPLEMENTATION_VERSION_NAME (0002, 0016) SOURCE_APPLICATION_ENTITY_TITLE (0008, 0005) SPECIFIC_CHARACTER_SET (0008, 0016) SOP CLASS_UID (0008, 0018) SOP INSTANCE_UID (0008, 0020) STUDY DATE (0008, 0021) SERIES DATE (0008, 0022) ACQUISITION_DATE (0008, 002A) ACQUISITION_DATETIME (0008, 0030) STUDY TIME (0008, 0031) SERIES TIME (0008, 0032) ACQUISITION_TIME (0008, 0050) ACCESSION_NUMBER (0008, 0060) MODALITY (0008, 0070) MANUFACTURER (0008, 0090) REFERING_PHYSICIANS_NAME (0008, 1030) STUDY DESCRIPTION (0008, 1050) PERFORMING_PHYSICIANS_NAME (0008, 1080) ADMITTING_DIAGNOSES_DESCRIPTION (0008, 1084) ADMITTING_DIAGNOSES_CODE_SEQUENCE (0008, 2218) ANATOMIC_REGION (0010, 0010) PATIENT NAME (0010, 0020) PATIENT ID (0010, 0030) PATIENT BIRTH_DATE (0010, 0040) PATIENT SEX (0018, 0015) BODY_PART_EXAMINED (0018, 5100) PATIENT_POSITION (0020, 000D) STUDY INSTANCE_UID (0020, 000E) SERIES INSTANCE_UID (0020, 0010) STUDY ID (0020, 0012) ACQUISITION_NUMBER (0020, 0013) INSTANCE_NUMBER (0020, 0020) PATIENT_ORIENTATION (0020, 9072) FRAME_LATERALITY (0028, 0002) SAMPLES_PER_PIXEL (0028, 0004) PHOTOMETRIC_INTERPRETATION (0028, 0006) PLANAR_CONFIGURATION (0028, 0010) ROWS (0028, 0011) COLUMNS (0028, 0034) PIXEL_ASPECT_RATIO (0028, 0100) BIT_ALLOCATED (0028, 0101) BIT_STORED (0028, 0102) HIGH_BIT (0028, 0103) PIXEL_REPRESENTATION (0040, 0244) PERFORMED_PROCEDURE_STEP_START_DATE (0040, 0245) PERFORMED_PROCEDURE_STEP_START_TIME (0040, 0253) PERFORMED_PROCEDURE_STEP_ID (0040, 0254) PERFORMED_PROCEDURE_STEP_DESCRIPTION (0040, 0260) PERFORMED_PROTOCOL_CODE_SEQUENCE</xs:documentation>
</xs:annotation>
- <xs:element name="DICOM_IMAGE" xdb:defaultTable="" xdb:propNumber="2514" xdb:global="true" xdb:SQLName="DICOM_IMAGE" xdb:SQLType="DICOM_IMAGE105_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:defaultTableSchema="ORDSYS">
- <xs:complexType xdb:SQLType="DICOM_IMAGE105_T" xdb:SQLSchema="ORDSYS">
- <xs:sequence>
- <xs:element name="ORD_DICOM_HEADER" xdb:propNumber="2401" xdb:global="false" xdb:SQLName="ORD_DICOM_HEADER" xdb:SQLType="ORD_DICOM_HEADER106_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="ORD_DICOM_HEADER106_T" xdb:SQLSchema="ORDSYS">
- <xs:sequence>
- <!-- XML document version number is "1.0" for database release 10gR2
-->
<xs:element name="VERSION" type="SH" xdb:propNumber="2398" xdb:global="false" xdb:SQLName="VERSION" xdb:SQLType="VARCHAR2" xdb:memType="1" xdb:SQLInline="true" xdb:MemInline="true" xdb:JavaInline="true" />
- <!-- DICOM standard version this XML document is based on, for database 10gR2, it is "3"
-->
<xs:element name="DICOM_STANDARD_VERSION" type="SH" xdb:propNumber="2399" xdb:global="false" xdb:SQLName="DICOM_STANDARD_VERSION" xdb:SQLType="VARCHAR2" xdb:memType="1" xdb:SQLInline="true" xdb:MemInline="true" xdb:JavaInline="true" />
- <!-- DICOM standard release this XML document is based on, for database 10gR2, it is "2003"
-->
<xs:element name="DICOM_STANDARD_RELEASE" type="SH" xdb:propNumber="2400" xdb:global="false" xdb:SQLName="DICOM_STANDARD_RELEASE" xdb:SQLType="VARCHAR2" xdb:memType="1" xdb:SQLInline="true" xdb:MemInline="true" xdb:JavaInline="true" />
</xs:sequence>
</xs:complexType>
</xs:element>
- <xs:element name="FILE_META_HEADER" minOccurs="0" xdb:propNumber="2414" xdb:global="false" xdb:SQLName="FILE_META_HEADER" xdb:SQLType="FILE_META_HEADER107_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="FILE_META_HEADER107_T" xdb:SQLSchema="ORDSYS">
- <xs:sequence>
- <!-- (0002, 0002), mandatory
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="MEDIA_STORAGE_SOP_CLASS_UID" minOccurs="0" nillable="true" xdb:propNumber="2403" xdb:global="false" xdb:SQLName="MEDIA_STORAGE_SOP_CLASS_UID" xdb:SQLType="MEDIA_STORAGE_SOP_CLASS108_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="MEDIA_STORAGE_SOP_CLASS108_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="UI">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2402" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0002, 0003), mandatory
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="MEDIA_STORAGE_SOP_INSTANCE_UID" minOccurs="0" nillable="true" xdb:propNumber="2405" xdb:global="false" xdb:SQLName="MEDIA_STORAGE_SOP_INSTANCE_UID" xdb:SQLType="MEDIA_STORAGE_SOP_INSTA109_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="MEDIA_STORAGE_SOP_INSTA109_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="UI">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2404" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0002, 0010), mandatory
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="TRANSFER_SYNTAX_UID" minOccurs="0" nillable="true" xdb:propNumber="2407" xdb:global="false" xdb:SQLName="TRANSFER_SYNTAX_UID" xdb:SQLType="TRANSFER_SYNTAX_UID110_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="TRANSFER_SYNTAX_UID110_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="UI">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2406" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0002, 0012), mandatory
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="IMPLEMENTATION_CLASS_UID" minOccurs="0" nillable="true" xdb:propNumber="2409" xdb:global="false" xdb:SQLName="IMPLEMENTATION_CLASS_UID" xdb:SQLType="IMPLEMENTATION_CLASS_UI111_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="IMPLEMENTATION_CLASS_UI111_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="UI">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2408" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0002, 0013), nullable
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="IMPLEMENTATION_VERSION_NAME" minOccurs="0" nillable="true" xdb:propNumber="2411" xdb:global="false" xdb:SQLName="IMPLEMENTATION_VERSION_NAME" xdb:SQLType="IMPLEMENTATION_VERSION_112_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="IMPLEMENTATION_VERSION_112_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="SH">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2410" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0002, 0016), nullable
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="SOURCE_APPLICATION_ENTITY_TITLE" minOccurs="0" nillable="true" xdb:propNumber="2413" xdb:global="false" xdb:SQLName="SOURCE_APPLICATION_ENTITY114" xdb:SQLType="SOURCE_APPLICATION_ENTI113_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="SOURCE_APPLICATION_ENTI113_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="AE">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2412" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
- <xs:element name="PATIENT" minOccurs="0" xdb:propNumber="2423" xdb:global="false" xdb:SQLName="PATIENT" xdb:SQLType="PATIENT115_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="PATIENT115_T" xdb:SQLSchema="ORDSYS">
- <xs:sequence>
- <!-- (0010, 0010), nullable
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="NAME" minOccurs="0" nillable="true" xdb:propNumber="2416" xdb:global="false" xdb:SQLName="NAME" xdb:SQLType="NAME116_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="NAME116_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="PN">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2415" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0010, 0020), nullable
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="ID" minOccurs="0" nillable="true" xdb:propNumber="2418" xdb:global="false" xdb:SQLName="ID" xdb:SQLType="ID117_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="ID117_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="LO">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2417" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0010, 0030), nullable
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="BIRTH_DATE" minOccurs="0" nillable="true" xdb:propNumber="2420" xdb:global="false" xdb:SQLName="BIRTH_DATE" xdb:SQLType="BIRTH_DATE118_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="BIRTH_DATE118_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="DA">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2419" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0010, 0040), nullable
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="SEX" minOccurs="0" nillable="true" xdb:propNumber="2422" xdb:global="false" xdb:SQLName="SEX" xdb:SQLType="SEX119_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="SEX119_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="CS">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2421" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
- <xs:element name="GENERAL_STUDY" minOccurs="0" xdb:propNumber="2438" xdb:global="false" xdb:SQLName="GENERAL_STUDY" xdb:SQLType="GENERAL_STUDY120_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="GENERAL_STUDY120_T" xdb:SQLSchema="ORDSYS">
- <xs:sequence>
- <!-- (0020, 000D) mandatory
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="INSTANCE_UID" minOccurs="0" nillable="true" xdb:propNumber="2425" xdb:global="false" xdb:SQLName="INSTANCE_UID" xdb:SQLType="INSTANCE_UID121_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="INSTANCE_UID121_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="UI">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2424" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0008, 0020), nullable
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="DATE" minOccurs="0" nillable="true" xdb:propNumber="2427" xdb:global="false" xdb:SQLName="DATE123" xdb:SQLType="DATE122_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="DATE122_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="DA">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2426" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0008, 0030), nullable
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="TIME" minOccurs="0" nillable="true" xdb:propNumber="2429" xdb:global="false" xdb:SQLName="TIME" xdb:SQLType="TIME124_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="TIME124_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="TM">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2428" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0008, 0090), nullable
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="REFERING_PHYSICIANS_NAME" minOccurs="0" nillable="true" xdb:propNumber="2431" xdb:global="false" xdb:SQLName="REFERING_PHYSICIANS_NAME" xdb:SQLType="REFERING_PHYSICIANS_NAM125_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="REFERING_PHYSICIANS_NAM125_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="PN">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2430" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0020, 0010), nullable
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="ID" minOccurs="0" nillable="true" xdb:propNumber="2433" xdb:global="false" xdb:SQLName="ID" xdb:SQLType="ID126_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="ID126_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="SH">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2432" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0008, 0050), nullable
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="ACCESSION_NUMBER" minOccurs="0" nillable="true" xdb:propNumber="2435" xdb:global="false" xdb:SQLName="ACCESSION_NUMBER" xdb:SQLType="ACCESSION_NUMBER127_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="ACCESSION_NUMBER127_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="SH">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2434" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0008, 1030) optional
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="DESCRIPTION" minOccurs="0" nillable="true" xdb:propNumber="2437" xdb:global="false" xdb:SQLName="DESCRIPTION" xdb:SQLType="DESCRIPTION128_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="DESCRIPTION128_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="LO">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2436" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
- <xs:element name="PATIENT_STUDY" minOccurs="0" xdb:propNumber="2442" xdb:global="false" xdb:SQLName="PATIENT_STUDY" xdb:SQLType="PATIENT_STUDY129_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="PATIENT_STUDY129_T" xdb:SQLSchema="ORDSYS">
- <xs:sequence>
- <!-- (0008, 1080), optional
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="ADMITTING_DIAGNOSES_DESCRIPTION" minOccurs="0" maxOccurs="unbounded" nillable="true" xdb:propNumber="2440" xdb:global="false" xdb:SQLName="ADMITTING_DIAGNOSES_DESCR131" xdb:SQLType="ADMITTING_DIAGNOSES_DES130_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false" xdb:SQLCollType="ADMITTING_DIAGNOSES_132_COLL" xdb:SQLCollSchema="ORDSYS">
- <xs:complexType xdb:SQLType="ADMITTING_DIAGNOSES_DES130_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="LO">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2439" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0008, 1084), optional
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
<xs:element name="ADMITTING_DIAGNOSES_CODE_SEQUENCE" minOccurs="0" nillable="true" type="CODE_SQ" xdb:propNumber="2441" xdb:global="false" xdb:SQLName="ADMITTING_DIAGNOSES_CODE_133" xdb:SQLType="CODE_SQ103_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false" />
</xs:sequence>
</xs:complexType>
</xs:element>
- <xs:element name="GENERAL_SERIES" minOccurs="0" xdb:propNumber="2466" xdb:global="false" xdb:SQLName="GENERAL_SERIES" xdb:SQLType="GENERAL_SERIES134_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="GENERAL_SERIES134_T" xdb:SQLSchema="ORDSYS">
- <xs:sequence>
- <!-- (0008, 0060), mandatory
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="MODALITY" minOccurs="0" nillable="true" xdb:propNumber="2444" xdb:global="false" xdb:SQLName="MODALITY" xdb:SQLType="MODALITY135_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="MODALITY135_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="CS">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2443" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0020, 000E), mandatory
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="INSTANCE_UID" minOccurs="0" nillable="true" xdb:propNumber="2446" xdb:global="false" xdb:SQLName="INSTANCE_UID" xdb:SQLType="INSTANCE_UID136_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="INSTANCE_UID136_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="UI">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2445" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0008, 0021), optional
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="DATE" minOccurs="0" nillable="true" xdb:propNumber="2448" xdb:global="false" xdb:SQLName="DATE138" xdb:SQLType="DATE137_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="DATE137_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="DA">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2447" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0008, 0031), optional
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="TIME" minOccurs="0" nillable="true" xdb:propNumber="2450" xdb:global="false" xdb:SQLName="TIME" xdb:SQLType="TIME139_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="TIME139_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="TM">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2449" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0008, 1050), optional
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="PERFORMING_PHYSICIANS_NAME" minOccurs="0" maxOccurs="unbounded" nillable="true" xdb:propNumber="2452" xdb:global="false" xdb:SQLName="PERFORMING_PHYSICIANS_NAME" xdb:SQLType="PERFORMING_PHYSICIANS_N140_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false" xdb:SQLCollType="PERFORMING_PHYSICIAN141_COLL" xdb:SQLCollSchema="ORDSYS">
- <xs:complexType xdb:SQLType="PERFORMING_PHYSICIANS_N140_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="PN">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2451" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0018, 0015), optional
-->
- <!-- Note will not replace with modality specific values
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="BODY_PART_EXAMINED" minOccurs="0" nillable="true" xdb:propNumber="2454" xdb:global="false" xdb:SQLName="BODY_PART_EXAMINED" xdb:SQLType="BODY_PART_EXAMINED142_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="BODY_PART_EXAMINED142_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="CS">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2453" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0018, 5100), conditional
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="PATIENT_POSITION" minOccurs="0" nillable="true" xdb:propNumber="2456" xdb:global="false" xdb:SQLName="PATIENT_POSITION" xdb:SQLType="PATIENT_POSITION143_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="PATIENT_POSITION143_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="CS">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2455" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0040, 0253), optional
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="PERFORMED_PROCEDURE_STEP_ID" minOccurs="0" nillable="true" xdb:propNumber="2458" xdb:global="false" xdb:SQLName="PERFORMED_PROCEDURE_STEP_ID" xdb:SQLType="PERFORMED_PROCEDURE_STE144_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="PERFORMED_PROCEDURE_STE144_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="SH">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2457" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0040, 0244), optional
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="PERFORMED_PROCEDURE_STEP_START_DATE" minOccurs="0" nillable="true" xdb:propNumber="2460" xdb:global="false" xdb:SQLName="PERFORMED_PROCEDURE_STEP_146" xdb:SQLType="PERFORMED_PROCEDURE_STE145_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="PERFORMED_PROCEDURE_STE145_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="DA">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2459" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0040, 0245), optional
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="PERFORMED_PROCEDURE_STEP_START_TIME" minOccurs="0" nillable="true" xdb:propNumber="2462" xdb:global="false" xdb:SQLName="PERFORMED_PROCEDURE_STEP_148" xdb:SQLType="PERFORMED_PROCEDURE_STE147_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="PERFORMED_PROCEDURE_STE147_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="TM">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2461" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0040, 0254), optional
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="PERFORMED_PROCEDURE_STEP_DESCRIPTION" minOccurs="0" nillable="true" xdb:propNumber="2464" xdb:global="false" xdb:SQLName="PERFORMED_PROCEDURE_STEP_150" xdb:SQLType="PERFORMED_PROCEDURE_STE149_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="PERFORMED_PROCEDURE_STE149_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="LO">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2463" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0040, 0260), optional
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
<xs:element name="PERFORMED_PROTOCOL_CODE_SEQUENCE" minOccurs="0" nillable="true" type="CODE_SQ" xdb:propNumber="2465" xdb:global="false" xdb:SQLName="PERFORMED_PROTOCOL_CODE_S151" xdb:SQLType="CODE_SQ103_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false" />
</xs:sequence>
</xs:complexType>
</xs:element>
- <xs:element name="GENERAL_EQUIPMENT" minOccurs="0" xdb:propNumber="2469" xdb:global="false" xdb:SQLName="GENERAL_EQUIPMENT" xdb:SQLType="GENERAL_EQUIPMENT152_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="GENERAL_EQUIPMENT152_T" xdb:SQLSchema="ORDSYS">
- <xs:sequence>
- <!-- (0008, 0070), nullable
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="MANUFACTURER" minOccurs="0" nillable="true" xdb:propNumber="2468" xdb:global="false" xdb:SQLName="MANUFACTURER" xdb:SQLType="MANUFACTURER153_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="MANUFACTURER153_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="LO">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2467" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
- <xs:element name="GENERAL_IMAGE" minOccurs="0" xdb:propNumber="2485" xdb:global="false" xdb:SQLName="GENERAL_IMAGE" xdb:SQLType="GENERAL_IMAGE154_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="GENERAL_IMAGE154_T" xdb:SQLSchema="ORDSYS">
- <xs:sequence>
- <!-- (0020, 0013), nullable
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="INSTANCE_NUMBER" minOccurs="0" nillable="true" xdb:propNumber="2471" xdb:global="false" xdb:SQLName="INSTANCE_NUMBER" xdb:SQLType="INSTANCE_NUMBER155_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="INSTANCE_NUMBER155_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="IS">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2470" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0020, 0012), optional
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="ACQUISITION_NUMBER" minOccurs="0" nillable="true" xdb:propNumber="2473" xdb:global="false" xdb:SQLName="ACQUISITION_NUMBER" xdb:SQLType="ACQUISITION_NUMBER156_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="ACQUISITION_NUMBER156_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="IS">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2472" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0008, 0022), optional
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="ACQUISITION_DATE" minOccurs="0" nillable="true" xdb:propNumber="2475" xdb:global="false" xdb:SQLName="ACQUISITION_DATE" xdb:SQLType="ACQUISITION_DATE157_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="ACQUISITION_DATE157_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="DA">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2474" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0008, 0032), optional
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="ACQUISITION_TIME" minOccurs="0" nillable="true" xdb:propNumber="2477" xdb:global="false" xdb:SQLName="ACQUISITION_TIME" xdb:SQLType="ACQUISITION_TIME158_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="ACQUISITION_TIME158_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="TM">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2476" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0008, 002A), optional
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="ACQUISITION_DATETIME" minOccurs="0" nillable="true" xdb:propNumber="2479" xdb:global="false" xdb:SQLName="ACQUISITION_DATETIME" xdb:SQLType="ACQUISITION_DATETIME159_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="ACQUISITION_DATETIME159_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="DT">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2478" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0020, 0020), conditional
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="PATIENT_ORIENTATION" minOccurs="0" maxOccurs="2" nillable="true" xdb:propNumber="2481" xdb:global="false" xdb:SQLName="PATIENT_ORIENTATION" xdb:SQLType="PATIENT_ORIENTATION160_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false" xdb:SQLCollType="PATIENT_ORIENTATION161_COLL" xdb:SQLCollSchema="ORDSYS">
- <xs:complexType xdb:SQLType="PATIENT_ORIENTATION160_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="CS">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2480" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0020, 9072) conditional
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="FRAME_LATERALITY" minOccurs="0" nillable="true" xdb:propNumber="2483" xdb:global="false" xdb:SQLName="FRAME_LATERALITY" xdb:SQLType="FRAME_LATERALITY162_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="FRAME_LATERALITY162_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="CS">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2482" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0008, 2218) Frame anatomy macro, conditional
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
<xs:element name="ANATOMIC_REGION" minOccurs="0" nillable="true" type="CODE_SQ" xdb:propNumber="2484" xdb:global="false" xdb:SQLName="ANATOMIC_REGION" xdb:SQLType="CODE_SQ103_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false" />
</xs:sequence>
</xs:complexType>
</xs:element>
- <xs:element name="IMAGE_PIXEL" minOccurs="0" xdb:propNumber="2506" xdb:global="false" xdb:SQLName="IMAGE_PIXEL" xdb:SQLType="IMAGE_PIXEL163_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="IMAGE_PIXEL163_T" xdb:SQLSchema="ORDSYS">
- <xs:sequence>
- <!-- (0028, 0002), mandatory
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="SAMPLES_PER_PIXEL" minOccurs="0" nillable="true" xdb:propNumber="2487" xdb:global="false" xdb:SQLName="SAMPLES_PER_PIXEL" xdb:SQLType="SAMPLES_PER_PIXEL164_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="SAMPLES_PER_PIXEL164_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="US">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2486" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0028, 0004), mandatory
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="PHOTOMETRIC_INTERPRETATION" minOccurs="0" nillable="true" xdb:propNumber="2489" xdb:global="false" xdb:SQLName="PHOTOMETRIC_INTERPRETATION" xdb:SQLType="PHOTOMETRIC_INTERPRETAT165_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="PHOTOMETRIC_INTERPRETAT165_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="CS">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2488" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0028, 0010), mandatory
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="ROWS" minOccurs="0" nillable="true" xdb:propNumber="2491" xdb:global="false" xdb:SQLName="ROWS167" xdb:SQLType="ROWS166_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="ROWS166_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="US">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2490" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0028, 0011), mandatory
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="COLUMNS" minOccurs="0" nillable="true" xdb:propNumber="2493" xdb:global="false" xdb:SQLName="COLUMNS" xdb:SQLType="COLUMNS168_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="COLUMNS168_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="US">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2492" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0028, 0100), mandatory
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="BIT_ALLOCATED" minOccurs="0" nillable="true" xdb:propNumber="2495" xdb:global="false" xdb:SQLName="BIT_ALLOCATED" xdb:SQLType="BIT_ALLOCATED169_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="BIT_ALLOCATED169_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="US">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2494" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0028, 0101), mandatory
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="BIT_STORED" minOccurs="0" nillable="true" xdb:propNumber="2497" xdb:global="false" xdb:SQLName="BIT_STORED" xdb:SQLType="BIT_STORED170_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="BIT_STORED170_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="US">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2496" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0028, 0102), mandatory
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="HIGH_BIT" minOccurs="0" nillable="true" xdb:propNumber="2499" xdb:global="false" xdb:SQLName="HIGH_BIT" xdb:SQLType="HIGH_BIT171_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="HIGH_BIT171_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="US">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2498" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0028, 0103), mandatory
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="PIXEL_REPRESENTATION" minOccurs="0" nillable="true" xdb:propNumber="2501" xdb:global="false" xdb:SQLName="PIXEL_REPRESENTATION" xdb:SQLType="PIXEL_REPRESENTATION172_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="PIXEL_REPRESENTATION172_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="US">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2500" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (7FE0, 0010) PIXEL_DATA, not included
-->
- <!-- (0028, 0006), conditional
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="PLANAR_CONFIGURATION" minOccurs="0" nillable="true" xdb:propNumber="2503" xdb:global="false" xdb:SQLName="PLANAR_CONFIGURATION" xdb:SQLType="PLANAR_CONFIGURATION173_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="PLANAR_CONFIGURATION173_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="US">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2502" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0028, 0034), conditional
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="PIXEL_ASPECT_RATIO" minOccurs="0" maxOccurs="2" nillable="true" xdb:propNumber="2505" xdb:global="false" xdb:SQLName="PIXEL_ASPECT_RATIO" xdb:SQLType="PIXEL_ASPECT_RATIO174_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false" xdb:SQLCollType="PIXEL_ASPECT_RATIO175_COLL" xdb:SQLCollSchema="ORDSYS">
- <xs:complexType xdb:SQLType="PIXEL_ASPECT_RATIO174_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="IS">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2504" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
- <xs:element name="SOP_COMMON" minOccurs="0" xdb:propNumber="2513" xdb:global="false" xdb:SQLName="SOP_COMMON" xdb:SQLType="SOP_COMMON176_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="SOP_COMMON176_T" xdb:SQLSchema="ORDSYS">
- <xs:sequence>
- <!-- (0008, 0016), mandatory
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="CLASS_UID" minOccurs="0" nillable="true" xdb:propNumber="2508" xdb:global="false" xdb:SQLName="CLASS_UID" xdb:SQLType="CLASS_UID177_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="CLASS_UID177_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="UI">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2507" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0008, 0018), mandatory
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="INSTANCE_UID" minOccurs="0" nillable="true" xdb:propNumber="2510" xdb:global="false" xdb:SQLName="INSTANCE_UID" xdb:SQLType="INSTANCE_UID178_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false">
- <xs:complexType xdb:SQLType="INSTANCE_UID178_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="UI">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2509" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
- <!-- (0008, 0005)
-->
- <!-- DICOM standard requires this attribute to be mandatory and not null
-->
- <xs:element name="SPECIFIC_CHARACTER_SET" minOccurs="0" maxOccurs="unbounded" nillable="true" xdb:propNumber="2512" xdb:global="false" xdb:SQLName="SPECIFIC_CHARACTER_SET" xdb:SQLType="SPECIFIC_CHARACTER_SET179_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false" xdb:SQLCollType="SPECIFIC_CHARACTER_S180_COLL" xdb:SQLCollSchema="ORDSYS">
- <xs:complexType xdb:SQLType="SPECIFIC_CHARACTER_SET179_T" xdb:SQLSchema="ORDSYS">
- <xs:simpleContent>
- <xs:extension base="CS">
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2511" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
- <!-- Complex data type
-->
- <!-- code sequence
-->
- <xs:complexType name="CODE_SQ" xdb:SQLType="CODE_SQ103_T" xdb:SQLSchema="ORDSYS">
- <xs:sequence>
<xs:element name="CODE_SEQUENCE" type="CODE_SEQUENCE" maxOccurs="unbounded" xdb:propNumber="2516" xdb:global="false" xdb:SQLName="CODE_SEQUENCE" xdb:SQLType="CODE_SEQUENCE102_T" xdb:SQLSchema="ORDSYS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false" xdb:SQLCollType="CODE_SEQUENCE104_COLL" xdb:SQLCollSchema="ORDSYS" />
</xs:sequence>
<xs:attribute name="rawValue" type="xs:string" xdb:propNumber="2515" xdb:global="false" xdb:SQLName="rawValue" xdb:SQLType="VARCHAR2" xdb:memType="1" />
</xs:complexType>
- <xs:complexType name="CODE_SEQUENCE" xdb:SQLType="CODE_SEQUENCE102_T" xdb:SQLSchema="ORDSYS">
- <xs:sequence>
<xs:element name="ITEM_NUMBER" type="xs:positiveInteger" xdb:propNumber="2517" xdb:global="false" xdb:SQLName="ITEM_NUMBER" xdb:SQLType="NUMBER" xdb:memType="2" xdb:SQLInline="true" xdb:MemInline="true" xdb:JavaInline="true" />
<xs:element name="CODE_VALUE" type="xs:string" xdb:propNumber="2518" xdb:global="false" xdb:SQLName="CODE_VALUE" xdb:SQLType="VARCHAR2" xdb:memType="1" xdb:SQLInline="true" xdb:MemInline="true" xdb:JavaInline="true" />
<xs:element name="CODING_SCHEME" type="xs:string" xdb:propNumber="2519" xdb:global="false" xdb:SQLName="CODING_SCHEME" xdb:SQLType="VARCHAR2" xdb:memType="1" xdb:SQLInline="true" xdb:MemInline="true" xdb:JavaInline="true" />
<xs:element name="CODING_SCHEME_VERSION" type="xs:string" minOccurs="0" xdb:propNumber="2520" xdb:global="false" xdb:SQLName="CODING_SCHEME_VERSION" xdb:SQLType="VARCHAR2" xdb:memType="1" xdb:SQLInline="true" xdb:MemInline="true" xdb:JavaInline="true" />
<xs:element name="CODING_MEANING" type="xs:string" minOccurs="0" xdb:propNumber="2521" xdb:global="false" xdb:SQLName="CODING_MEANING" xdb:SQLType="VARCHAR2" xdb:memType="1" xdb:SQLInline="true" xdb:MemInline="true" xdb:JavaInline="true" />
</xs:sequence>
</xs:complexType>
- <!-- Simple data types
-->
- <!-- Application Entity
-->
- <xs:simpleType name="AE">
- <xs:restriction base="xs:string">
<xs:maxLength value="16" />
</xs:restriction>
</xs:simpleType>
- <!-- Coded String
-->
- <xs:simpleType name="CS">
- <xs:restriction base="xs:token">
<xs:maxLength value="16" />
</xs:restriction>
</xs:simpleType>
- <!-- DAte
-->
- <xs:simpleType name="DA">
<xs:restriction base="xs:date" />
</xs:simpleType>
- <!-- DateTime
-->
- <xs:simpleType name="DT">
<xs:restriction base="xs:dateTime" />
</xs:simpleType>
- <!-- Integer String
-->
- <xs:simpleType name="IS">
<xs:restriction base="xs:integer" />
</xs:simpleType>
- <!-- LOng string
-->
- <xs:simpleType name="LO">
- <xs:restriction base="xs:string">
<xs:maxLength value="64" />
</xs:restriction>
</xs:simpleType>
- <!-- Person Name
-->
- <xs:simpleType name="PN">
- <xs:restriction base="xs:token">
<xs:maxLength value="64" />
</xs:restriction>
</xs:simpleType>
- <!-- SHort String
-->
- <xs:simpleType name="SH">
- <xs:restriction base="xs:string">
<xs:maxLength value="16" />
</xs:restriction>
</xs:simpleType>
- <!-- Short String
-->
- <xs:simpleType name="SS">
<xs:restriction base="xs:short" />
</xs:simpleType>
- <!-- TiMe
-->
- <xs:simpleType name="TM">
<xs:restriction base="xs:time" />
</xs:simpleType>
- <!-- UId
-->
- <xs:simpleType name="UI">
- <xs:restriction base="xs:token">
<xs:maxLength value="64" />
<xs:pattern value="([0-9]+\.)*[0-9]+" />
</xs:restriction>
</xs:simpleType>
- <!-- Unsigned Short
-->
- <xs:simpleType name="US">
<xs:restriction base="xs:unsignedShort" />
</xs:simpleType>
</xs:schema>

Similar Messages

  • ZL table not getting created

    Hi Friends, Under schema UT00 under IF PDC and IMPRT B2 ZL table is not being created. Could you please let me know the resolution.
    Thanks,

    create new lines with
    IF PDC
    IMPRT           B2          --  Import cluster B2
    PRINT  NP     ZL           -- Print table of time wage types
    ENDIF

  • EJB 3.0 entity tables not getting created

    I'm trying to use EJB 3.0 and can't seem to get JDeveloper to create a table in the database for an EJB 3.0 entity.
    I'm using JDeveloper Studio Edition Version 10.1.3.1.0.3914 on WinXP SP 2, Java 1.5.0_06, with Oracle Express, running in the debugger using the embedded OC4J server.
    I have created 1 entity (Customer), 1 stateless session bean (CustomerFacade), and 1 JSF (index.jspx, which allows data entry to create a Customer entity). I'm able to input fields for a Customer instance on the index.jspx form, and transmit that to the CustomerFacadeBean to persist. The call to em.persist(entity) returns without error, however, when the transaction is committed, I get the following exception indicating that the table CUSTOMER does not exist.
    Partial Exception Trace:
    javax.faces.FacesException: #{customer.saveCustomer}: javax.faces.el.EvaluationException: javax.ejb.EJBException: An exception occurred during transaction completion: ; nested exception is:
         javax.transaction.RollbackException: returning error in transaction: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.7 (Build 060720)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-00942: table or view does not exist
    Error Code: 942
    Call:INSERT INTO CUSTOMER (ID, EMAILADDR, LASTNAME, VERSION, FIRSTNAME) VALUES (?, ?, ?, ?, ?)
         bind => [null, [email protected], Hart, 1, Rick]
    Query:InsertObjectQuery(com.toolcafe.model.Customer@11ca701); nested exception is: oracle.oc4j.rmi.OracleRemoteException: An exception occurred during transaction completion: ; nested exception is:
         javax.transaction.RollbackException: returning error in transaction: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.7 (Build 060720)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-00942: table or view does not exist
    Error Code: 942
    The full stack trace is at the bottom of this message if that will help.
    I want to generate the database schema from the EJB entities, and have setup persistence.xml to do so -- at least I think so.
    Following is all the relevant data. I sure hope someone can help with this. I've been struggling with various problems for days (for something that should just easily work) and I'm on a tight schedule. Please help!!
    persisence.xml:
    <?xml version="1.0" encoding="windows-1252" ?>
    <persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
    version="1.0" xmlns="http://java.sun.com/xml/ns/persistence">
    <persistence-unit name="SmashPU">
    <properties>
    <property name="toplink.logging.level" value="FINEST"/>
    <property name="toplink.ddl-generation" value="drop-and-create-tables"/>
    </properties>
    </persistence-unit>
    </persistence>
    Customer.java
    package com.toolcafe.model;
    import java.io.Serializable;
    import javax.persistence.Entity;
    import javax.persistence.GeneratedValue;
    import javax.persistence.GenerationType;
    import javax.persistence.Id;
    import javax.persistence.NamedQuery;
    import javax.persistence.SequenceGenerator;
    import javax.persistence.TableGenerator;
    import javax.persistence.Version;
    @Entity
    @NamedQuery(name = "Customer.findAll", query = "select o from Customer o")
    @SequenceGenerator(name="myseq")
    public class Customer implements Serializable {
    private Integer id;
    private Integer version;
    private String firstName;
    private String lastName;
    private String emailAddr;
    public Customer() {
    @Id
    public Integer getId() {
    return id;
    public void setId(Integer id) {
    this.id = id;
    @Version
    public Integer getVersion() {
    return version;
    public void setVersion(Integer version) {
    this.version = version;
    public String getFirstName() {
    return firstName;
    public void setFirstName(String firstName) {
    this.firstName = firstName;
    public String getLastName() {
    return lastName;
    public void setLastName(String lastName) {
    this.lastName = lastName;
    public String getEmailAddr() {
    return emailAddr;
    public void setEmailAddr(String emailAddr) {
    this.emailAddr = emailAddr;
    Database Info:
    I created a schema called, "SMASH", in Oracle Express.
    he Offline Database Sources contain the Customer table, but only the ID and VERSION columns, as does the Oracle Express schema.
    Exception Trace:
    javax.faces.FacesException: #{customer.saveCustomer}: javax.faces.el.EvaluationException: javax.ejb.EJBException: An exception occurred during transaction completion: ; nested exception is:
         javax.transaction.RollbackException: returning error in transaction: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.7 (Build 060720)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-00942: table or view does not exist
    Error Code: 942
    Call:INSERT INTO CUSTOMER (ID, EMAILADDR, LASTNAME, VERSION, FIRSTNAME) VALUES (?, ?, ?, ?, ?)
         bind => [null, [email protected], Hart, 1, Rick]
    Query:InsertObjectQuery(com.toolcafe.model.Customer@11ca701); nested exception is: oracle.oc4j.rmi.OracleRemoteException: An exception occurred during transaction completion: ; nested exception is:
         javax.transaction.RollbackException: returning error in transaction: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.7 (Build 060720)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-00942: table or view does not exist
    Error Code: 942
    Call:INSERT INTO CUSTOMER (ID, EMAILADDR, LASTNAME, VERSION, FIRSTNAME) VALUES (?, ?, ?, ?, ?)
         bind => [null, [email protected], Hart, 1, Rick]
    Query:InsertObjectQuery(com.toolcafe.model.Customer@11ca701)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:98)
         at javax.faces.component.UICommand.broadcast(UICommand.java:332)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:287)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:401)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:105)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.faces.el.EvaluationException: javax.ejb.EJBException: An exception occurred during transaction completion: ; nested exception is:
         javax.transaction.RollbackException: returning error in transaction: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.7 (Build 060720)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-00942: table or view does not exist
    Error Code: 942
    Call:INSERT INTO CUSTOMER (ID, EMAILADDR, LASTNAME, VERSION, FIRSTNAME) VALUES (?, ?, ?, ?, ?)
         bind => [null, [email protected], Hart, 1, Rick]
    Query:InsertObjectQuery(com.toolcafe.model.Customer@11ca701); nested exception is: oracle.oc4j.rmi.OracleRemoteException: An exception occurred during transaction completion: ; nested exception is:
         javax.transaction.RollbackException: returning error in transaction: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.7 (Build 060720)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-00942: table or view does not exist
    Error Code: 942
    Call:INSERT INTO CUSTOMER (ID, EMAILADDR, LASTNAME, VERSION, FIRSTNAME) VALUES (?, ?, ?, ?, ?)
         bind => [null, [email protected], Hart, 1, Rick]
    Query:InsertObjectQuery(com.toolcafe.model.Customer@11ca701)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:150)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:92)
         ... 25 more
    Caused by: javax.ejb.EJBException: An exception occurred during transaction completion: ; nested exception is:
         javax.transaction.RollbackException: returning error in transaction: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.7 (Build 060720)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-00942: table or view does not exist
    Error Code: 942
    Call:INSERT INTO CUSTOMER (ID, EMAILADDR, LASTNAME, VERSION, FIRSTNAME) VALUES (?, ?, ?, ?, ?)
         bind => [null, [email protected], Hart, 1, Rick]
    Query:InsertObjectQuery(com.toolcafe.model.Customer@11ca701); nested exception is: oracle.oc4j.rmi.OracleRemoteException: An exception occurred during transaction completion: ; nested exception is:
         javax.transaction.RollbackException: returning error in transaction: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.7 (Build 060720)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-00942: table or view does not exist
    Error Code: 942
    Call:INSERT INTO CUSTOMER (ID, EMAILADDR, LASTNAME, VERSION, FIRSTNAME) VALUES (?, ?, ?, ?, ?)
         bind => [null, [email protected], Hart, 1, Rick]
    Query:InsertObjectQuery(com.toolcafe.model.Customer@11ca701)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.ejb.EJBUtils.createEJBException(EJBUtils.java:365)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.ejb.EJBUtils.createEJBException(EJBUtils.java:356)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.ejb.AbstractEJBObject.OC4J_handleUncheckedException(AbstractEJBObject.java:396)
         at CustomerFacade_RemoteProxy_51ldkeg.persistEntity(Unknown Source)
         at form.CustomerForm.saveCustomer(CustomerForm.java:66)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
         ... 26 more
    Caused by: oracle.oc4j.rmi.OracleRemoteException: An exception occurred during transaction completion: ; nested exception is:
         javax.transaction.RollbackException: returning error in transaction: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.7 (Build 060720)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-00942: table or view does not exist
    Error Code: 942
    Call:INSERT INTO CUSTOMER (ID, EMAILADDR, LASTNAME, VERSION, FIRSTNAME) VALUES (?, ?, ?, ?, ?)
         bind => [null, [email protected], Hart, 1, Rick]
    Query:InsertObjectQuery(com.toolcafe.model.Customer@11ca701)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.ejb.EJBTransactionManager.end(EJBTransactionManager.java:141)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:57)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         ... 33 more
    Caused by: javax.transaction.RollbackException: returning error in transaction: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.7 (Build 060720)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-00942: table or view does not exist
    Error Code: 942
    Call:INSERT INTO CUSTOMER (ID, EMAILADDR, LASTNAME, VERSION, FIRSTNAME) VALUES (?, ?, ?, ?, ?)
         bind => [null, [email protected], Hart, 1, Rick]
    Query:InsertObjectQuery(com.toolcafe.model.Customer@11ca701)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.ApplicationServerTransaction.checkForRollbackOnlyWhileInCommit(ApplicationServerTransaction.java:582)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.ApplicationServerTransaction.doCommit(ApplicationServerTransaction.java:247)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.ApplicationServerTransaction.commit(ApplicationServerTransaction.java:130)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.ApplicationServerTransactionManager.commit(ApplicationServerTransactionManager.java:433)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.ejb.EJBTransactionManager.end(EJBTransactionManager.java:132)
         ... 39 more
    Caused by: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.7 (Build 060720)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-00942: table or view does not exist
    Error Code: 942
    Call:INSERT INTO CUSTOMER (ID, EMAILADDR, LASTNAME, VERSION, FIRSTNAME) VALUES (?, ?, ?, ?, ?)
         bind => [null, [email protected], Hart, 1, Rick]
    Query:InsertObjectQuery(com.toolcafe.model.Customer@11ca701)
         at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:295)
         at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:639)
         at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:688)
         at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:477)
         at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:437)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.executeCall(AbstractSession.java:675)
         at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:213)
         at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:199)
         at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.insertObject(DatasourceCallQueryMechanism.java:331)
         at oracle.toplink.essentials.internal.queryframework.StatementQueryMechanism.insertObject(StatementQueryMechanism.java:176)
         at oracle.toplink.essentials.internal.queryframework.StatementQueryMechanism.insertObject(StatementQueryMechanism.java:192)
         at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.insertObjectForWrite(DatabaseQueryMechanism.java:457)
         at oracle.toplink.essentials.queryframework.InsertObjectQuery.executeCommit(InsertObjectQuery.java:74)
         at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.performUserDefinedWrite(DatabaseQueryMechanism.java:635)
         at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.performUserDefinedInsert(DatabaseQueryMechanism.java:599)
         at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.insertObjectForWriteWithChangeSet(DatabaseQueryMechanism.java:495)
         at oracle.toplink.essentials.queryframework.WriteObjectQuery.executeCommitWithChangeSet(WriteObjectQuery.java:130)
         at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.executeWriteWithChangeSet(DatabaseQueryMechanism.java:283)
         at oracle.toplink.essentials.queryframework.WriteObjectQuery.executeDatabaseQuery(WriteObjectQuery.java:67)
         at oracle.toplink.essentials.queryframework.DatabaseQuery.execute(DatabaseQuery.java:609)
         at oracle.toplink.essentials.queryframework.DatabaseQuery.executeInUnitOfWork(DatabaseQuery.java:536)
         at oracle.toplink.essentials.queryframework.ObjectLevelModifyQuery.executeInUnitOfWorkObjectLevelModifyQuery(ObjectLevelModifyQuery.java:123)
         at oracle.toplink.essentials.queryframework.ObjectLevelModifyQuery.executeInUnitOfWork(ObjectLevelModifyQuery.java:95)
         at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2218)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:937)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:894)
         at oracle.toplink.essentials.internal.sessions.CommitManager.commitNewObjectsForClassWithChangeSet(CommitManager.java:254)
         at oracle.toplink.essentials.internal.sessions.CommitManager.commitAllObjectsWithChangeSet(CommitManager.java:175)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.writeAllObjectsWithChangeSet(AbstractSession.java:2638)
         at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.commitToDatabase(UnitOfWorkImpl.java:1030)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork.commitToDatabase(RepeatableWriteUnitOfWork.java:353)
         at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.commitToDatabaseWithChangeSet(UnitOfWorkImpl.java:1112)
         at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.issueSQLbeforeCompletion(UnitOfWorkImpl.java:2428)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork.issueSQLbeforeCompletion(RepeatableWriteUnitOfWork.java:177)
         at oracle.toplink.essentials.transaction.AbstractSynchronizationListener.beforeCompletion(AbstractSynchronizationListener.java:116)
         at oracle.toplink.essentials.transaction.JTASynchronizationListener.beforeCompletion(JTASynchronizationListener.java:76)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.ApplicationServerTransaction.callBeforeCompletion(ApplicationServerTransaction.java:1019)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.ApplicationServerTransaction.doCommit(ApplicationServerTransaction.java:246)
         ... 42 more
    Caused by: java.sql.SQLException: ORA-00942: table or view does not exist
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:633)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1161)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3001)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3074)
         at oracle.oc4j.sql.proxy.PreparedStatementBCELProxy.executeUpdate(PreparedStatementBCELProxy.java:37)
         at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:632)
         ... 78 more

    You have to add the property toplink.ddl-generation.output-mode to your persistence.xml file, for example:
    <?xml version="1.0" encoding="windows-1252" ?>
    <persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
    version="1.0" xmlns="http://java.sun.com/xml/ns/persistence">
    <persistence-unit name="model">
    <jta-data-source>jdbc/jdm-akoDS</jta-data-source>
    <properties>
    <property name="toplink.logging.level" value="INFO"/>
    <property name="toplink.target-database" value="Oracle"/>
    <property name="toplink.ddl-generation" value="drop-and-create-tables"/>
    <property name="toplink.ddl-generation.output-mode" value="database"/>
    </properties>
    </persistence-unit>
    </persistence>

  • Help Pls Table is not getting created

    Hi,
    DECLARE
       CURSOR c
       IS
          SELECT * FROM emp;
        v_count NUMBER;
    BEGIN
       BEGIN
          SELECT COUNT (*)
            INTO V_COUNT
            FROM all_tables
           WHERE table_name = 'EMP_BKP';
          IF V_COUNT = 0
          THEN
             EXECUTE IMMEDIATE 'CREATE TABLE EMP_BKP AS SELECT * FROM EMP';
          ELSE
             DBMS_OUTPUT.put_line ('Table already created');
          END IF;
       END;
       BEGIN
          FOR i IN c
          LOOP
             INSERT INTO EMP_BKP
                SELECT *
                  FROM EMP
                 WHERE empno = i.empno;
          END LOOP;
       END;
    END;
    Error report:
    ORA-06550: line 15, column 13:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 15, column 1:
    PL/SQL: SQL Statement ignored
    06550. 00000 -  "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:i don't understand why table is not getting created
    Edited by: 924575 on Apr 23, 2013 12:35 PM

    Frank Kulash wrote:
    Hi,
    924575 wrote:
    Hi,
    DECLARE
    CURSOR c
    IS
    SELECT * FROM emp;
    v_count NUMBER;
    BEGIN
    BEGIN
    SELECT COUNT (*)
    INTO V_COUNT
    FROM all_tables
    WHERE table_name = 'EMP_BKP';
    You probaly want to check <b>USER</b>tables, not  <b>ALL</b>tables.
    IF V_COUNT = 0
    THEN
    EXECUTE IMMEDIATE 'CREATE TABLE EMP_TEST AS SELECT * FROM EMP';Is this right: you want to create a table called emp_<b>TEST</b>, but only a table called emp_<b>BKP</b> does not already exst?
    ELSE
    DBMS_OUTPUT.put_line ('Table already created');
    END IF;
    END;
    BEGIN
    FOR i IN c
    LOOP
    INSERT INTO EMP_BKP
    SELECT *
    FROM EMP
    WHERE empno = i.empno;
    END LOOP;
    END;
    END;
    Error report:
    ORA-06550: line 15, column 13:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 15, column 1:
    PL/SQL: SQL Statement ignored
    06550. 00000 -  "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:i don't understand why table is not getting createdWhat are you trying to do?
    Creating tables in PL/SQL is rarely a good idea.
    What can't you create the table, once for all, and TRUNCATE or DELETE the rows when necessary?Frank ,
    thank you so much for ur reply.
    Even user_tables also not working .i modifed as EMP_BKP that also not working.
    Yea. i agree. but requirement is i want to create dynamically. if same table already exists no need to create table.
    modified code is
    DECLARE
       CURSOR c
       IS
          SELECT * FROM emp;
        v_count NUMBER;
    BEGIN
       BEGIN
          SELECT COUNT (*)
            INTO V_COUNT
            FROM user_tables
           WHERE table_name = 'EMP_BKP';
          IF V_COUNT = 0
          THEN
             EXECUTE IMMEDIATE 'CREATE TABLE EMP_BKP AS SELECT * FROM EMP';
          ELSE
             DBMS_OUTPUT.put_line ('Table already created');
          END IF;
       END;
       BEGIN
          FOR i IN c
          LOOP
             INSERT INTO EMP_BKP
                SELECT *
                  FROM EMP
                 WHERE empno = i.empno;
          END LOOP;
       END;
    END;
    ORA-06550: line 24, column 22:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 24, column 10:
    PL/SQL: SQL Statement ignored
    06550. 00000 -  "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:

  • File not getting created in a different server

    My requirement.
    I have written a code in the BI system and now need to write an empty file (say a.done)in a directory /interfaces of PI system.
    I wrote using open data set and close data set however the file (a.done) is not getting created in the PI system even though the directory /interfaces exist.
    When I give any directory of that of BI system ,the file(a.done) is getting created i.e the file is getting created on the same server and not on the different server.
    Is there any function module or any other way for the file to get generated in the PI system.
    Please explain with an example.
    Regards,
    Vish

    Try to use  search FTP in se37 or checkout the below FM
    CALL FUNCTION 'EPS_FTP_MPUT'
      EXPORTING
        RFC_DESTINATION            =
    *   FILE_MASK                  = ' '
    *   LOCAL_DIRECTORY            = ' '
    *   REMOTE_DIRECTORY           = ' '
    *   OVERWRITE_MODE             = ' '
    *   TEXT_MODE                  = ' '
    *   TRANSMISSION_MONITOR       = 'X'
    *   RECORDS_PER_TRANSFER       = 10
    *   MONITOR_TITLE              =
    *   MONITOR_TEXT1              =
    *   MONITOR_TEXT2              =
    *   PROGRESS_TEXT              =
    * IMPORTING
    *   LOCAL_DIRECTORY            =
    *   REMOTE_DIRECTORY           =
    *   LOCAL_SYSTEM_INFO          =
    *   REMOTE_SYSTEM_INFO         =
    * TABLES
    *   FILE_LIST                  =
    * EXCEPTIONS
    *   CONNECTION_FAILED          = 1
    *   INVALID_VERSION            = 2
    *   INVALID_ARGUMENTS          = 3
    *   GET_DIR_LIST_FAILED        = 4
    *   FILE_TRANSFER_FAILED       = 5
    *   STOPPED_BY_USER            = 6
    *   OTHERS                     = 7
    IF SY-SUBRC <> 0.
    * Implement suitable error handling here
    ENDIF.

  • Accounting doucment not get created for Credit Memo

    Hi
        When creating a cancellation doucment(vf11) for credit memo accounting document not get created.While I go for analysis then it is determining the G/L account.But not getting created the accounting doucment.
    When i select "Release to accounting" then it is giving a message like this:
    "Automatic clearing of billing document 951
    and canc. doc. 90000572 not poss."  as informatiion first
    and then later it is throwing an error message that "maintain correct number range"
    While for the same material or earlier cancellation happened and accounting doucment get created.
    Please help me out;How would i get this solved?
    Thanks in advance

    Hi,
    You may also check for Number Range - Maintainance & Assignment.
    T. Code: SNRO
    Table/ View: RV_BELEG
    Here, Mantain Number Range.
    To Assign,
    T. Code: SM30
    T.Code: Bill_Num (or select if different in your case)
    Assign No. range to your combination of Sales OrgDist.ChannelBill Type i.e. for Cancelled Billing Doc. Type
    To Maintain Number Range for Accounting Documents,
    T. Code: FBN1
    Best Regards,
    Amit

  • SRM PR is not getting created in ECC backend

    Hello Experts,
    We are running SRM 7.0 with SRM-MDM Catalog, we are using SRM for shopping.  We do have PI 7.11 running in the Environment as well.
    We are on ECC 6.0 with Ehp 4.0
    Purchase Order:
    However we can see the PO creating successfully using PI.
    Question, in the SRM table (BBP_FUNCTION_MAP), we see the object type: BUS2012 for ERP 4.0 has adapter name: /SAPSRM/CL_SOA_ADPT_PO_CRT_ERP for when creating PO. Please see teh screen shot.
    is this the reason that we need PI?
    Purchase Requisition:
    PR Creation is not working:
    PR is not getting created in the ERP, PR uses Object type: BUS2105, Adpater CL_BBP_BS_ADAPTER_RQ_CRT_470 for ERP 4.0 System type, can you please tell me if the adapter is correct for ERP 4.0 system type?
    I also have a question to ask:
    1) Where did you see that PR/PO was send to PI System (PI1)? My understanding is that since ERP amd SRM are 2 ABAP Systems, why we cannot send the PR/PO directly to ERP system from SRM? Why do we need a middleware(PI) in between for this process? We should be able to USE BAPI function to do it correct?
    Please advice.
    Thanks
    Kumar

    yes, i could see a PR number with all this additional details as below.
    Table   BBP_PDBEI
    CLIENT                       453                                                              Client
    GUID                         4CAEFA58EB9D005CE1008000AC1C2031                                 Globally Unique identifier
    BE_LOG_SYSTEM                QA1400                                                           Logical System of Logistics Backend
    BE_OBJ_ITEM                                                                                Follow-On Object Item in Back-End System
    BE_OBJECT_TYPE               BUS2105                                                          Follow-On Document Object Type in Back-End System
    BE_OBJECT_ID                 2000000167                                                       Follow-On Document Object ID in Back-End System
    BE_REFOBJ_TYPE                                                                                Reference Object Type in Back-End System
    BE_REFOBJ                                                                                Reference Object in Back-End System
    BE_REFOBJ_ITEM                                                                                Reference Object Item in Back-End System
    BE_REFOBJ_SBITM                                                                               Reference Object Sub-Position in Backend System
    BE_REFOBJ_TYPE2                                                                               Reference Object Type in Back-End System
    BE_REFOBJ2                                                                                Reference Object in Back-End System
    BE_REFOBJ_ITEM2                                                                               Reference Object Item in Back-End System
    BE_REFOBJ_FYEAR2             0000                                                             Reference Document Object - Fiscal Year in Back-End System
    BE_STGE_LOC                                                                                Storage location
    BE_PLANT                     2016                                                             Plant
    BE_BATCH                                                                                Batch Number
    BE_VAL_TYPE                                                                                Valuation type
    BE_MOVE_REAS                 0000                                                             Reason for Movement
    BE_EXPERYDATE                00000000                                                         Shelf Life Expiration Date
    BE_PUR_GROUP                 206                                                              Purchasing group
    BE_PUR_ORG                   2000                                                             Purchasing organization
    BE_CO_CODE                   2000                                                             Company Code
    BE_DOC_TYPE                  CLRQ                                                             Purchase Requisition Document Type
    BE_ACCREQUIRED                                                                                Account Assignment for Logical Backend Required
    BE_SP_STK_IND                                                                                Key for Special Stock Section
    BE_INFO_REC                                                                                Number of purchasing info record
    BE_MOVE_TYPE                 201                                                              Movement type (inventory management)
    BE_PACKNO                    0000000000                                                       Package number
    BE_INTROW                    0000000000                                                       Internal line number for limits
    BE_ITEM_TEXT                                                                                Short Text of a Service Purchase Order Item
    BE_PO_PRICE                  1                                                                Price from Backend
    BE_UNLOAD_PT                 200                                                              Unloading Point in Backend
    BE_DEL_IND                                                                                Deletion Indicator in Backend Documents
    BE_TRACKING_NO                                                                                Requirement Tracking Number
    BE_COND_TYPE                                                                                Condition Key
    BE_COND_STEP                 000                                                              Level Number
    BE_COND_COUNTER              00                                                               Condition counter

  • WBS Elements not getting created in ECC Project System from CRM 7.0

    Dear all,
    We are trying to integrate SAP CRM 7.0 with SAP ECC-PS module. The objective is to bring in the marketing plan and elements data from the CRM system, and to create the corresponding WBS in project system. We have done most of the configuration as recommended by SAP in both the systems, and we see that the BDOCS are getting generated and sent to the ECC system. The following steps have been successfully completed:
    1.       Set up the RFC connections between the two systems
    2.       Selected the connection type as Middleware in CRM system.
    3.       Installed the cProject Add on in CRM box.
    4.       Created a project scenario (with project and network profiles) in the PS system and assigned the same in the CRM system.
    5.       The Project Scenario in PS config has the same name as the Project Type in CRM config.
    6.       Created and released the campaign ids being created in the CRM system.
    As already mentioned, we can see that the BDOCS are coming to the ECC system and are getting stored in BDOC_TRACK table. However the issue is that the corresponding WBS elements are not getting generated in the ECC system. Is there anything that that we are missing in the ECC box which would trigger the WBS element creation?
    Request you all to share your inputs which would be immensely beneficial for us in achieving this integration.
    Thanks and Kind Regards,
    Aditya Shrivastava

    Hello Aditya,
    We too are facing this issue.. if you have resolved the issue could you please let us know the solution ?
    Some inputs related to our system,
    We have upgrade from CRM 4.0 to CRM 7.0 SP07 and R/3 backend system is on 4.7 SP27, earlier we have completed the upgrade on sandbox without any issues which was upgrade to CRM 7.0 SP04 but with SP07 we are facing the problem of WBS Element not getting created in R/3.
    Your help is highly appreciated.
    Thanks & Regards,
    Sumukh Kapoor.

  • Attachment not getting created in PI from CRM

    Hi Everyone,
    I am trying to create attachments in PI from CRM but it is not getting created there. I am executing the following steps:
    By default I am getting the attachment data in Binary format so I am using this function module to convert it into XSTRING format.
              CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
                              EXPORTING
                         input_length = lv_input_length
                         first_line   = lv_first_line
                         last_line    = lv_last_line
                       IMPORTING
                         buffer       = lv_xbuffer
                       TABLES
                         binary_tab   = file_content_binary.
       2. Then I am getting the server context and the protocol.
                           obj_server_context = cl_proxy_access=>get_server_context( ).
                           obj_attch_protocol ?= obj_server_context->get_protocol( if_wsprotocol=>attachments ).
    * Assign File naame to STRING Variable
                           lv_name =  lv_filename.
    * Attach file to the service response.
                           obj_attachment = obj_attch_protocol->get_attachment_from_binary(
                                      data = lv_xbuffer
                                      type = if_ai_attachment=>c_mimetype_pdf
                                      name = lv_name ).
                           APPEND obj_attachment TO t_prx_attach.
                           obj_attch_protocol->set_attachments( t_prx_attach ).
       3. Then I am using a proxy class which has Input and Output structures for sending data to PI and getting the response respectively. And then in the end I am calling the proxy and passing the structures.
         With this I am unable to see the attachmenmts in sxmb_moni transaction. Please help.

    Hi Gurus,
    Can you please help with some pointers on this.
    I have used below links as reference for coding.
    Link 1 :
    http://help.sap.com/saphelp_nw04/helpdata/en/a7/3b2a2d45a34a23b75e3b18745c63bc/content.htm
    Link 2:
    http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/10/19/abap-proxy-protocols-use-cases-and-examples
    After setting attachment(Method SET_ATTACHMENTS) i am not getting any exceptions,but still i am not able to see any attachment created in SXMB_MONI.
    Thanks in Advance,
    Manil.

  • ChaRM transport not getting created

    Hi Experts,
    I am in SP20 EHP1. I am configuring ChRm flow. I have made the copy of SDHF to ZSHF. I have completed all the configurations.  I have made the copy of all the actions & statuses.
    I am having two actions in ZSHF while creating the transport requests as below.
    Option 1: Click the standard action "Set in Development". (copy of standard action). At that time the transport is getting created successfully.
    Option 2: Click the action "Create New Transport request" (Copy of standard action). At that time the transport is NOT getting created. Why i couldn't able create the transport using this copied action? In the transaction data tab ---> Actions tab, the details says that action "Processing HF_EXECUTE_ACTION Is Started" & @5C\QError@     Action could not be successfully executed
    Note:
    But if i use the standard transaction type SDHF, at that time using both standard actions, i could able to create transports.
    Need your valuable input

    Hi,
    Please check for the configurational table for which you are facing problem, its delivery class should be "C" under delivery & maintenance.
    You can get it checked by your ABAP team.
    hope this will help.
    Regards,
    AK

  • Temporary tables are getting created, name starting  with BIN$.....

    Hi,
    I am using Oracle 10.2 and am experiencing an issue that doing some operations on existing tables, some temporary tables are getting created starting with BIN$.
    For ex: BIN$HULdSlmnRZmbCXAl/pkA9w==$0
    But I dont see these tables in the database after two or three days. I found that these temporary tables are a replica of existing tables and these contain only the table structure but not the data. I even not able to drop them from database.
    Can anyone throw some pointers on this?
    Thanks and Regards,
    Siva

    These tables are in the Oracle recycle bin. When you drop a table, Oracle just renames it to BIN$xxx so that you can undrop the table if you made a mistake.
    - You can ignore tables in the recycle bin if you would like. Oracle will automatically purge them when it needs the space.
    - You can prevent a table from going in to the recycle bin by adding the purge command to the drop, i.e.
    DROP TABLE table_name PURGE- You can empty out the recycle bin using the command
    SQL> purge dba_recyclebin(or just recyclebin if you only want to clear out the objects you own from the recyclebin).
    Justin

  • Inbound Activity not getting created with Campaign Response

    Dear Experts,
    I am working in a scenario where we are using Campaign Automation for sending Email Survey to business partners.
    Mails are reaching the BPs, survey response also coming to the survey tables, But the Inbound activity is not getting created in the system.
    I am using standard Transaction type ''0000'' for inbound activity. . which is ''Appointment'' and Category type ''Date'',  direction  ''inbound''
    The Action profile for this activity is Campaign_Automation_Activity. . .
    I have done questionnaire determination is customizing too.. .
    Am I missing a something??
    Some linking of this Activity with Campaign element?
    Please suggest!!

    Hello Naresh,
    Thanks for the reply, but can u explain me in details.
    1. I am using the MKTCA PBO n PAI,
    2.I have checked the BAdI CRM_SVY_MKTCA_PAI and checked the Transaction type ''0000'' hardcoded, so using the same Transaction type,  the Category is hrdcoded as ''002''
    3. Transaction type ''0000'' is active.
    Please suggest?

  • Excise invoice should not get created without PGI

    Hi,
    I have a scenario where the billing document is being generated by the customer without PGI after creation of outbound delivery for exports. (This is as per customer's requirement - Copy control maintained in VTFL for the same - copying requirements 11 )
    This creates a situation - excise invoice can be created without PGI - which creates problems for customer. This should not happen.
    Customer wants a check during the excise invoice creation - excise invoice should not get created if PGI has not been done.
    Kindly advise as to how this can be done.
    Regards,
    T Saravanan

    Dear Saravanan
    Two options are there
    -  in your existing routine itself, you can specify the control in such a way that unless the preceding document is PGId
    -  apply excise user exits like J_1I7_USEREXIT_EXCISE_BEF_SAVE to achieve the requirement.
    thanks
    G. Lakshmipathi

  • Invoice is not getting created in Order related billing

    Dear all,
    I am trying to do a Order related billing. After creating the order i am going to VF01 and selecting the billing type i have created and trying to create the invoice. I am getting the error "No billing documents were generated. See log" when i am checking the Log its showing now errors.
    In case if my account determination procedure is wrong, system should allow me to create a Sales invoice and accounting document will not be generated. But in this case even the sales invoice is also not getting created.
    Please suggest me if there are any configuration changes i need to do to overcome this problem.

    Apart from the suggestion already given, also ensure that
    the order is not showing in incomplete log
    the order is not blocked for credit limit
    You can also cross check in VF04 whether system is fetching that sale order.  For information, once you execute VF04, by default, system will check only "Delivery related" check box.  You have to manually select "Order related" check box.
    G. Lakshmipathi

  • Weblogic Domain not getting created in SOA Suite 11g R2

    I have installed the components of SOA Suite 11g R2 (11.1.1.3) on a single Windows XP SP3 machine (32 bit) following recommended procedures. I tried to configure Weblogic server using Domain Configuration utility. After navigating hrough the wizard, no Weblogic server profile is getting created in the doamin folder. Even the WL Admin server is not getting created. The Domain Configuration utility did not throw any errors.
    1) Is this problem related to Oracle repository for SOA suite 11g?
    2) Can the repository schemas (Oracle) hold multiple weblogic SOA domain information?

    Hi,
    Weblogic servers directory do not gets created after domain creation or even managed server configuration. It will present itself only when you start the managed server for the first time, that is when it initializes all security attributes, diagnostic attributes (if configured) , etc..
    Perform server start and then check if it gets created or not.
    ## rank answer if it is helpful ##
    Thanks,
    Ranjan

Maybe you are looking for