Problems in creating Queue tables

Hi I'm trying to create a Queue table. For that I'm creating a new Object, and then a table type of the same Object and then a Queue table of the payload type of the created table type, for which I'm getting an error. I'm using the following list of Queries:
create or replace type CRM_TO_UMS_USR_DATA_TAB as object
PROVISION_ID varchar2(25)
PROVISION_DATE date
ERROR_CODE varchar2(20)
ERROR_MSG varchar2(50)
STATUS char
COMMENTS varchar2(50)
Result => no Error
create or replace type CRM_TO_UMS_USR_DATA_TYP as TABLE of CRM_TO_UMS_USR_DATA_TAB
Result => no Error
begin
dbms_aqadm.create_queue_table(queue_table => 'CRM_TO_UMS_DATA_QUE_TAB',queue_payload_type => 'CRM_TO_UMS_USR_DATA_TAB');
end;
Result =>
Error report:
ORA-00902: invalid datatype
ORA-06512: at "SYS.DBMS_AQADM_SYS", line 2830
ORA-06512: at "SYS.DBMS_AQADM", line 58
ORA-06512: at line 2
00902. 00000 - "invalid datatype"
I've given the following Grants for my schema user, for the purpose.
Grant aq_administrator_role to siebel;
GRANT EXECUTE ON dbms_aq TO siebel;
GRANT RESOURCE TO siebel;
GRANT CONNECT TO siebel;
GRANT EXECUTE ANY PROCEDURE TO siebel;
GRANT aq_administrator_role TO siebel;
GRANT aq_user_role TO siebel;
GRANT EXECUTE ON dbms_aqadm TO siebel;
GRANT EXECUTE ON dbms_aqin TO siebel;
Actually I've successfully created Queues with the above set of Queries in my other Development and UAT environments successfully, but when I'm trying to implement it with Prod I'm getting the Error. Anybody please help.
Thanks & Regards,
Srivathan, T.

The type CRM_TO_UMS_USR_DATA_TAB is invalid because the syntax you're using is incorrect:
SQL> create or replace type CRM_TO_UMS_USR_DATA_TAB as object
  2  (
  3  PROVISION_ID varchar2(25)
  4  PROVISION_DATE date
  5  ERROR_CODE varchar2(20)
  6  ERROR_MSG varchar2(50)
  7  STATUS char
  8  COMMENTS varchar2(50)
  9  );
10  /
Warning: Type created with compilation errors.
SQL> begin
  2  dbms_aqadm.create_queue_table(queue_table => 'CRM_TO_UMS_DATA_QUE_TAB',queue_payload_type => 'CRM_TO_UMS_USR_DATA_TAB');
  3  end;
  4  /
begin
ERROR at line 1:
ORA-00902: invalid datatype
ORA-06512: at "SYS.DBMS_AQADM_SYS", line 2822
ORA-06512: at "SYS.DBMS_AQADM", line 58
ORA-06512: at line 2
SQL> create or replace type CRM_TO_UMS_USR_DATA_TAB as object
  2  (
  3  PROVISION_ID varchar2(25),
  4  PROVISION_DATE date ,
  5  ERROR_CODE varchar2(20),
  6  ERROR_MSG varchar2(50),
  7  STATUS char(1),
  8  COMMENTS varchar2(50)
  9  );
10  /
Type created.
SQL> begin
  2  dbms_aqadm.create_queue_table(queue_table => 'CRM_TO_UMS_DATA_QUE_TAB',queue_payload_type => 'CRM_TO_UMS_USR_DATA_TAB');
  3  end;
  4  /
PL/SQL procedure successfully completed.Max
http://oracleitalia.wordpress.com

Similar Messages

  • Problem in creating Queue Table of 'VARCHAR2'  Payload.

    Hello guys!!
    I am having a problem creating a Queue Table of payload type 'VARCHAR2'. I want to create a queue for simple varchar2
    type of messages. I am using following command:
    dbms_aqadm.create_queue_table(queue_table => 'sh_varchar_queue_table',
    queue_payload_type => 'VARCHAR2');
    I am getting the following error:
    ORA-24000: invalid value VARCHAR2, QUEUE_PAYLOAD_TYPE should be of the form
    [SCHEMA.]NAME
    Please help!!!
    Thanks!!!
    Shalu

    Thanks Brajesh!!
    Actually I have tried with Object Type n that is working fine. But i didn't know that 'VARCHAR2' can't be a payload type. It
    is mentioned in Rel 8.1.5 that it can be a 'VARCHAR2' n I started trying that. didn't know that it's not possible in 9i.
    Anyways, thanx so much!!!
    N Brajesh, few days back on the discussion forum itself, I mentioned my e-mailed to you. I wanted to get in touch with u
    bcoz i need ur help for so many other problems. I have tight deadlines n i am new to all this stuff.
    Once again, can u pls e-mail me at [email protected] Shall look forward to ur e-mail.
    Thanks so much!!
    Shalu

  • Problem in creating queue in Oracle9i Enterprise Edition Release 9.0.1.0.0

    Hi,
    I am facing a problem in creating queue using DBMS_AQADM.CREATE_QUEUE_TABLE, in Oracle 9i.
    Have given the following command
    DBMS_AQADM.CREATE_QUEUE_TABLE ( queue_table=>'ORA_TRIG_TOPIC_TAB',
    queue_payload_type=> 'SYS.AQ$_JMS_TEXT_MESSAGE',
    storage_clause=>'',
    sort_list=>'',
    multiple_consumers=>TRUE,
    message_grouping=>DBMS_AQADM.NONE,
    comment=>'',
    auto_commit=>TRUE,
    primary_instance=>0,
    secondary_instance=>0,
    compatible=>'8.1',
    NON_REPUDIATION=>0);
    and getting the following error message
    -600 ORA-00600: internal error code, arguments: [kcbgtcr_4], [38910], [0], [1],
    Pls. let me know whether there is any work around is there for creating queues in 9i, having multiple_consumers property

    No it is not so simple. This "le signe est sur l'avant dernier octet" means that the sign is last character in number.
    The sign "é" and "I" are just in my example and they are somehow calculated but I don't know how?
    If I take my example there is field with format S9(13)V99 and with value 00000000071049é (and with last sign "é") and I think the last sign is somehow calculated from number. And then from this value I get the number.
    00000000071049é
    FFFFFFFFFFFFFFC
    000000000710490 => +0000000007104,90
    S9999999999999V99
    Everything I try, calculating from binary to hex, or anything other, I don't get the result or the last sign and I wonder if there is some function in PL/SQL that I can use to get the result I want?
    Or if you have some idea how to help me to get from "00000000071049é" to "+0000000007104,90" from example above?
    Here are some other examples, just for help:
    000000204592D
    000000183882D
    000000139441C
    000000182979H
    000000083361F
    000000083361F
    000000083361F
    000000059033F
    000000066273E
    000000069011G
    000000102615B
    000000092362F
    000000138215‚
    000000138215‚
    000000138215‚
    000000138215‚
    000000106760C
    000000106760C
    000000106760C
    000000115024A
    000000115024A
    000000115024A
    000000115024A
    000000115024A
    000000088149B
    000000084459I

  • How to create queue table?

    How to createHow to create queue table?
    Give me step wise instruction to create queue table

    solution
    first you have to create type.
    second you have to CREATE_QUEUE_TABLE with procedure syntax.
    and lastly you have to create CREATE_QUEUE with procedure syntax.
    examples
    SQL> create or replace
    2 TYPE "name of type"
    3 (xxxxx VARCHAR2(10),
    4 xxxx NUMBER,
    5 x_xxx VARCHAR2(50),
    6 MAP MEMBER FUNCTION xxxxxx RETURN VARCHAR2
    7 );
    8 /
    Type created.
    SQL> BEGIN
    2 DBMS_AQADM.CREATE_QUEUE_TABLE( Queue_table => 'owner.name of queue table',
    3 Queue_payload_type => 'owner.type name',
    4 storage_clause => 'PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 TABLESPACE COMP_TB',
    5 Sort_list => 'ENQ_TIME', Compatible => '8.1.3');
    6 END;
    7 /
    PL/SQL procedure successfully completed.
    SQL> BEGIN
    2 DBMS_AQADM.CREATE_QUEUE( Queue_name => 'owner.name of queue',
    3 Queue_table => 'owner.name of queue table', Queue_type => 0, Max_retries => 5,
    4 Retry_delay => 0, dependency_tracking => FALSE);
    5 END;
    6 /
    PL/SQL procedure successfully completed.

  • I got problems in creating a table using java

    ok here's what i want to happen, i have a table named tblField that has 3 columns.
    These 3 columns are:
    1. field_ID
    2. field_Desc
    3. field_Fruit
    The table tblField returns 7 rows in which the values of field_Fruit are:
    1. apple
    2. banana
    3. orange
    4. watermelon
    5. pineapple
    6. mango
    7. lemon
    what i want to do is I want to create a new table named tblNewTable that will get the 7 values of field_Fruit and be the columns of the new table tblNewTable.
    So the result would be: I have this new table named tblNewTable and the column names are:
    1. apple
    2. banana
    3. orange
    4. watermelon
    5. pineapple
    6. mango
    7. lemon
    btw i already know how to create a table with hardcoded values.
    An example of create statement is shown below:
    CREATE TABLE [dbo].[tblNewTable] ({[Column Name] [char] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL)For the problem posted above, the first thing i should do is to get all the values of field_Fruit first and put them all in a vector. After that, i should use the create statement using the vector to return all the values of field_Fruit. I tried to do the code below but it doesnt wrk:
    int x = 0;
    CREATE TABLE [dbo].[tblNewTable] (while(x < vFieldFruitVector.size()){ {[Column Name] [char] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL x = x + 1;})vFieldFruitVector is the vector/values of field_Fruit.
    anyone who can help me solve my problem? thanks in advance! :)

    Unless you are using some special tag library or something, SQL is not, as far as I've ever seen, going to handle while loops within the statements. You want to create the table, then you have to create the CREATE statement string
    String c = "CREATE TABLE [dbo].[tblNewTable] (";
    for(int x = 0; x < vFieldFruitVector.size(); x++) {
       c += vFieldFruitVector.get(x) + " char 50 COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL";
    c += ")";
    int res = stmt.executeUpdate(c);

  • Problem in Creating a table with Default Tablespace

    Hi All,
    1) Can anybody plz tell me the syntax to move a table from one tablespace to another.
    2) Also, plz tell me the Syntax of when creating a table specifying the tablespace name also.
    Regards

    1) Alter table <table_name> move tablespace <tablespace_name>
    2) example of create table is given below
    CREATE TABLE emp123
    ( employee_id NUMBER(6)
    TABLESPACE <tablespace_name>
    STORAGE (INITIAL 600
    NEXT 600
    MINEXTENTS 2
    MAXEXTENTS 100 );
    Read following doc for more details
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/toc.htm
    Cheer,
    Virag

  • Problem in creating a table at runtime

    Hi SDN,
      I am trying to create a Table UI Element at runtime.
    To do So I have written the following code in the "wdDoModifyView" method of the view
    if(firstTime)
             IWDTable table =(IWDTable)view.createElement(IWDTable.class, null);
             table.bindDataSource("TableNode");
             IWDTableColumn column1=(IWDTableColumn)view.createElement(IWDTableColumn.class,null);
         table.addColumn(column1);
         IWDInputField editor=(IWDInputField)view.createElement(IWDInputField.class,null);
         editor.bindValue("TableNode.no");
         column1.setTableCellEditor(editor);
                //   create and add second table column
           IWDTableColumn column2 = (IWDTableColumn) view.createElement(IWDTableColumn.class, null);
          table.addColumn(column2);
           IWDTextView editor1 = (IWDTextView) view.createElement(IWDTextView.class, null);
           editor1.bindText("TableNode.name");
           column2.setTableCellEditor(editor1);
           IWDUIElementContainer root = (IWDUIElementContainer) view.getRootElement();
           root.addChild(table);
    After executing the application the table is created successfully. But both the columns are in TextView mode. What i need is one column should be in input mode and other in TextView mode. So please suggest me what more stuff i have to add to make the field to accept the input.
    Thanks in advance.
    Regards
    Basha

    Hi Armin,
    I need to display a table with 5 rows and 7 columns.
    5 of the columns are drop downs from R/3,
    My requirement is the table should be in editable mode such that the user is allowed to enter some values(rows). on clicking the save button the table values are to be sent to R/3 table through bapi.
    Please help me in resolving this.
    Thanks & Regards,
    Sai Krishna.

  • ORA-00600 problem when create XMLType table with registerd schema

    Hi,
    I am using Oracle9i Enterprise Edition Release 9.2.0.4.0 on RedHat Linux 7.2
    I found a problem when I create table with registered schema with follow content:
         <xs:element name="body">
              <xs:complexType>
                   <xs:sequence>
                   </xs:sequence>
                   <xs:attribute name="id" type="xs:ID"/>
                   <xs:attribute name="class" type="xs:NMTOKENS"/>
                   <xs:attribute name="style" type="xs:string"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="body.content">
              <xs:complexType>
                   <xs:choice minOccurs="0" maxOccurs="unbounded">
                        <xs:element ref="p"/>
                        <xs:element ref="hl2"/>
                        <xs:element ref="nitf-table"/>
                        <xs:element ref="ol"/>
                   </xs:choice>
                   <xs:attribute name="id" type="xs:ID"/>
              </xs:complexType>
         </xs:element>
    Does Oracle not support element reference to other element with dot?
    For instance, body -> body.content
    Thanks for your attention.

    Sorry, amendment on the schema
         <xs:element name="body">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="body.head" minOccurs="0"/>
                        <xs:element ref="body.content" minOccurs="0" maxOccurs="unbounded"/>
                        <xs:element ref="body.end" minOccurs="0"/>
                   </xs:sequence>
                   <xs:attribute name="id" type="xs:ID"/>
                   <xs:attribute name="class" type="xs:NMTOKENS"/>
                   <xs:attribute name="style" type="xs:string"/>
              </xs:complexType>
         </xs:element>

  • Problem in creating XMLTYPE table using schema validation

    Hi All,
    While executing  the follwing script there is an error :
    Script : " CREATE TABLE FINAPI_ONLINE_SEC_LOGIN_TMP1 OF  
                  SYS.XMLTYPE XMLSCHEMA
                  "http://www.finnone.com/xsd/TransactionDataRequest.xsd"
                   ELEMENT "transactiondatarequest"
    Error is :
    ERROR at line 1:
    "ORA-31000: Resource 'http://www.finnone.com/xsd/BaseSchema.xsd' is not an XDB schema document"
    why this problem is coming though transactiondatarequest.xsd is reguisterd
    Regards,
    Vikas Kumar

    Check with XMLSpy, JDeveloper or for instance use http://tools.decisionsoft.com/schemaValidate/
    Some pointers to start:
    SQL> conn marco/marco
    Connected.
    SQL> select * from session_roles;
    -- Quick and Dirty: grant xdbadmin, dba to marco
    ROLE
    XDB_WEBSERVICES
    XDB_WEBSERVICES_WITH_PUBLIC
    XDB_WEBSERVICES_OVER_HTTP
    DBA
    SELECT_CATALOG_ROLE
    HS_ADMIN_ROLE
    EXECUTE_CATALOG_ROLE
    DELETE_CATALOG_ROLE
    EXP_FULL_DATABASE
    IMP_FULL_DATABASE
    DATAPUMP_EXP_FULL_DATABASE
    ROLE
    DATAPUMP_IMP_FULL_DATABASE
    GATHER_SYSTEM_STATISTICS
    SCHEDULER_ADMIN
    WM_ADMIN_ROLE
    JAVA_ADMIN
    JAVA_DEPLOY
    XDBADMIN
    XDB_SET_INVOKER
    OLAP_XS_ADMIN
    OLAP_DBA
    21 rows selected.
    SQL> set pages 5000
    SQL> set long 1000000000
    SQL> set trimspool on
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE    11.1.0.6.0      Production
    TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    SQL> desc dba_xml_schemas
    Name                                      Null?    Type
    OWNER                                              VARCHAR2(30)
    SCHEMA_URL                                         VARCHAR2(700)
    LOCAL                                              VARCHAR2(3)
    SCHEMA                                             SYS.XMLTYPE
    INT_OBJNAME                                        VARCHAR2(4000)
    QUAL_SCHEMA_URL                                    VARCHAR2(2839)
    HIER_TYPE                                          VARCHAR2(11)
    BINARY                                             VARCHAR2(3)
    SCHEMA_ID                                          RAW(16)
    HIDDEN                                             VARCHAR2(3)
    SQL> select OWNER, SCHEMA_URL, BINARY
      2  from dba_xml_schemas
      3 
    SQL> col SCHEMA_URL for a80
    SQL> set lines 200
    SQL> select OWNER, SCHEMA_URL, BINARY
      2  from dba_xml_schemas
      3  ;
    OWNER                          SCHEMA_URL                                                                       BIN
    XDB                            http://xmlns.oracle.com/xdb/XDBStandard.xsd                                      NO
    XDB                            http://xmlns.oracle.com/xdb/log/xdblog.xsd                                       NO
    XDB                            http://xmlns.oracle.com/xdb/log/ftplog.xsd                                       NO
    XDB                            http://xmlns.oracle.com/xdb/log/httplog.xsd                                      NO
    XDB                            http://www.w3.org/2001/xml.xsd                                                   NO
    XDB                            http://xmlns.oracle.com/xdb/xmltr.xsd                                            NO
    XDB                            http://xmlns.oracle.com/xdb/XDBFolderListing.xsd                                 NO
    XDB                            http://www.w3.org/1999/xlink.xsd                                                 NO
    XDB                            http://www.w3.org/1999/csx.xlink.xsd                                             YES
    XDB                            http://www.w3.org/2001/XInclude.xsd                                              NO
    XDB                            http://www.w3.org/2001/csx.XInclude.xsd                                          YES
    XDB                            http://xmlns.oracle.com/xdb/stats.xsd                                            NO
    XDB                            http://xmlns.oracle.com/xdb/xdbconfig.xsd                                        YES
    SYS                            kuscomm.xsd                                                                      NO
    SYS                            kusindxt.xsd                                                                     NO
    SYS                            kusindex.xsd                                                                     NO
    SYS                            kuscnstr.xsd                                                                     NO
    SYS                            kusrlsct.xsd                                                                     NO
    SYS                            kusrlsc.xsd                                                                      NO
    XDB                            http://xmlns.oracle.com/xdb/XDBSchema.xsd                                        NO
    XDB                            http://xmlns.oracle.com/xdb/XDBResource.xsd                                      NO
    XDB                            http://www.w3.org/2001/csx.xml.xsd                                               YES
    XDB                            http://xmlns.oracle.com/xdb/csx.xmltr.xsd                                        YES
    XDB                            http://xmlns.oracle.com/xdb/acl.xsd                                              YES
    XDB                            http://xmlns.oracle.com/xdb/dav.xsd                                              YES
    XDB                            http://xmlns.oracle.com/xdb/XDBResConfig.xsd                                     YES
    SYS                            kusrlsgt.xsd                                                                     NO
    SYS                            kustrigt.xsd                                                                     NO
    SYS                            kustrig.xsd                                                                      NO
    SYS                            kusviewt.xsd                                                                     NO
    SYS                            kusview.xsd                                                                      NO
    SYS                            kususert.xsd                                                                     NO
    SYS                            kususer.xsd                                                                      NO
    SYS                            http://xmlns.oracle.com/streams/schemas/lcr/streamslcr.xsd                       NO
    SYS                            kusrlsg.xsd                                                                      NO
    SYS                            kusrlspt.xsd                                                                     NO
    SYS                            kusrlsp.xsd                                                                      NO
    SYS                            kusrolet.xsd                                                                     NO
    SYS                            kusrole.xsd                                                                      NO
    SYS                            kusseqt.xsd                                                                      NO
    SYS                            kusseq.xsd                                                                       NO
    SYS                            kussynt.xsd                                                                      NO
    SYS                            kussyn.xsd                                                                       NO
    SYS                            kustblst.xsd                                                                     NO
    SYS                            kustbls.xsd                                                                      NO
    SYS                            kustablt.xsd                                                                     NO
    SYS                            kustable.xsd                                                                     NO
    SYS                            kusclust.xsd                                                                     NO
    SYS                            kusclus.xsd                                                                      NO
    SYS                            kusctxt.xsd                                                                      NO
    SYS                            kusctx.xsd                                                                       NO
    SYS                            kusdblkt.xsd                                                                     NO
    SYS                            kusdblk.xsd                                                                      NO
    SYS                            kusfgat.xsd                                                                      NO
    SYS                            kusfga.xsd                                                                       NO
    SYS                            kusmvt.xsd                                                                       NO
    SYS                            kusmv.xsd                                                                        NO
    SYS                            kusmvlt.xsd                                                                      NO
    SYS                            kusmvl.xsd                                                                       NO
    SYS                            kusquet.xsd                                                                      NO
    SYS                            kusque.xsd                                                                       NO
    SYS                            kusquetbt.xsd                                                                    NO
    SYS                            kusquetb.xsd                                                                     NO
    ORDSYS                         http://xmlns.oracle.com/ord/meta/exif                                            NO
    ORDSYS                         http://xmlns.oracle.com/ord/dicom/rpdatatype_1_0                                 NO
    ORDSYS                         http://xmlns.oracle.com/ord/meta/ordimage                                        NO
    ORDSYS                         http://xmlns.oracle.com/ord/dicom/datatype_1_0                                   NO
    ORDSYS                         http://xmlns.oracle.com/ord/dicom/mddatatype_1_0                                 NO
    XDB                            http://xmlns.oracle.com/xs/dataSecurity.xsd                                      YES
    XDB                            http://xmlns.oracle.com/xs/aclids.xsd                                            NO
    XDB                            http://xmlns.oracle.com/xs/principal.xsd                                         YES
    XDB                            http://xmlns.oracle.com/xs/roleset.xsd                                           NO
    XDB                            http://xmlns.oracle.com/xs/securityclass.xsd                                     YES
    ORDSYS                         http://xmlns.oracle.com/ord/meta/dicomImage                                      NO
    EXFSYS                         http://xmlns.oracle.com/rlmgr/rclsprop.xsd                                       NO
    EXFSYS                         http://xmlns.oracle.com/rlmgr/rulecond.xsd                                       NO
    ORDSYS                         http://xmlns.oracle.com/ord/meta/iptc                                            NO
    ORDSYS                         http://xmlns.oracle.com/ord/meta/xmp                                             NO
    ORDSYS                         http://xmlns.oracle.com/ord/dicom/anonymity_1_0                                  NO
    ORDSYS                         http://xmlns.oracle.com/ord/dicom/constraint_1_0                                 NO
    ORDSYS                         http://xmlns.oracle.com/ord/dicom/metadata_1_0                                   NO
    ORDSYS                         http://xmlns.oracle.com/ord/dicom/mapping_1_0                                    NO
    ORDSYS                         http://xmlns.oracle.com/ord/dicom/preference_1_0                                 NO
    ORDSYS                         http://xmlns.oracle.com/ord/dicom/privateDictionary_1_0                          NO
    ORDSYS                         http://xmlns.oracle.com/ord/dicom/standardDictionary_1_0                         NO
    ORDSYS                         http://xmlns.oracle.com/ord/dicom/orddicom_1_0                                   NO
    ORDSYS                         http://xmlns.oracle.com/ord/dicom/UIDdefinition_1_0                              NO
    MDSYS                          http://www.w3.org/1999/xlink/xlinks.xsd                                          NO
    MDSYS                          http://www.opengis.net/gml/geometry.xsd                                          NO
    MDSYS                          http://www.opengis.net/gml/feature.xsd                                           NO
    MDSYS                          http://xmlns.oracle.com/spatial/georaster/georaster.xsd                          NO
    91 rows selected.
    SQL> set lines 80
    SQL> desc path_view
    Name                                      Null?    Type
    PATH                                               VARCHAR2(1024)
    RES                                                SYS.XMLTYPE(XMLSchema "http:
                                                        //xmlns.oracle.com/xdb/XDBRe
                                                        source.xsd" Element "Resourc
                                                        e")
    LINK                                               SYS.XMLTYPE
    RESID                                              RAW(16)
    SQL> desc resource_view
    Name                                      Null?    Type
    RES                                                SYS.XMLTYPE(XMLSchema "http:
                                                        //xmlns.oracle.com/xdb/XDBRe
                                                        source.xsd" Element "Resourc
                                                        e")
    ANY_PATH                                           VARCHAR2(4000)
    RESID                                              RAW(16)
    SQL> select *
      2  from path_view
      3  where rownum <= 1;
    PATH
    RES
    LINK
    RESID
    /OLAP_XDS
    <Resource xmlns="http://xmlns.oracle.com/xdb/XDBResource.xsd">
      <CreationDate>2007-10-29T14:59:01.968000</CreationDate>
      <ModificationDate>2007-10-29T14:59:02.281000</ModificationDate>
      <DisplayName>OLAP_XDS</DisplayName>
      <Language>en-US</Language>
      <CharacterSet>UTF-8</CharacterSet>
      <ContentType>application/octet-stream</ContentType>
      <RefCount>1</RefCount>
    </Resource>
    <LINK>
      <ParentName>/</ParentName>
      <ChildName>OLAP_XDS</ChildName>
      <Name>OLAP_XDS</Name>
      <Flags>AAAABA==
    </Flags>
      <ParentOid>C4LJcGdKQ3+9zJ4w9efpxQ==
    </ParentOid>
      <ChildOid>8yNpXjvxQJeoruzx3GXRlQ==
    </ChildOid>
      <LinkType>Hard</LinkType>
    </LINK>
    F323695E3BF14097A8AEECF1DC65D195
    SQL> select *
      2  from resource_view
      3  where rownum <= 1;
    RES
    ANY_PATH
    RESID
    <Resource xmlns="http://xmlns.oracle.com/xdb/XDBResource.xsd">
      <CreationDate>2007-10-29T14:59:01.968000</CreationDate>
      <ModificationDate>2007-10-29T14:59:02.281000</ModificationDate>
      <DisplayName>OLAP_XDS</DisplayName>
      <Language>en-US</Language>
      <CharacterSet>UTF-8</CharacterSet>
      <ContentType>application/octet-stream</ContentType>
      <RefCount>1</RefCount>
    </Resource>
    /OLAP_XDS
    F323695E3BF14097A8AEECF1DC65D195
    SQL> select any_path from resource_view
      2  where any_path like '%xsd%';
    ANY_PATH
    /public/root.xsd
    /sys/schemas/PUBLIC/www.opengis.net/gml/feature.xsd
    /sys/schemas/PUBLIC/www.opengis.net/gml/geometry.xsd
    SQL> select xdbURIType ('/public/root.xsd').getClob() from dual;
    XDBURITYPE('/PUBLIC/ROOT.XSD').GETCLOB()
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
               xmlns:xdb="http://xmlns.oracle.com/xdb"
        elementFormDefault="qualified" attributeFormDefault="unqualified"
        xdb:storeVarrayAsTable="true">
            <xs:element name="ROOT" xdb:defaultTable="ROOT_TABLE" xdb:maintainDOM="false">
                    <xs:annotation>
                            <xs:documentation>Example XML Schema</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                            <xs:sequence>
                                    <xs:element name="ID" type="xs:integer" xdb:SQLName="ID"/>
                                    <xs:element ref="INFO"/>
                            </xs:sequence>
                    </xs:complexType>
            </xs:element>
            <xs:element name="INFO" xdb:defaultTable="INFO_TABLE" xdb:SQLName="INFO_TYPE">
                    <xs:complexType>
                            <xs:sequence>
                                    <xs:element name="INFO_ID" type="xs:integer" xdb:SQLName="TYPE_INFO_ID"/>
                                    <xs:element name="INFO_CONTENT" xdb:SQLType="CLOB"
                    xdb:SQLName="TYPE_INFO_CONTENT" type="xs:string"/>
                            </xs:sequence>
                    </xs:complexType>
            </xs:element>
    </xs:schema>
    SQL> select s.xmldata.schema_owner, s.xmldata.schema_url, s.xmldata.TARGET_NAMESPACE
      2  from xdb.xdb$schema s
      3  where rownum < 5;
    XMLDATA.SCHEMA_OWNER
    XMLDATA.SCHEMA_URL
    XMLDATA.TARGET_NAMESPACE
    XDB
    http://xmlns.oracle.com/xdb/XDBStandard.xsd
    http://xmlns.oracle.com/xdb/XDBStandard
    XDB
    http://xmlns.oracle.com/xdb/log/xdblog.xsd
    http://xmlns.oracle.com/xdb/log
    XDB
    http://xmlns.oracle.com/xdb/log/ftplog.xsd
    http://xmlns.oracle.com/xdb/log
    XDB
    http://xmlns.oracle.com/xdb/log/httplog.xsd
    http://xmlns.oracle.com/xdb/log
    4 rows selected.
    -- Author     : Mark Drake
    -- Purpose    : Compiling XML Schema
    -- Altered    : Marco Gralike
    -- Date       : 09/02/2007
    -- Alteration : Different, simplified error handling
    -- URL        : http://www.liberidu.com/blog/?p=57
    SET echo ON
    -- spool compileSchemas.log
    -- connect &USERNAME/&PASSWORD
    -- set serveroutput on
    declare
    cursor getSchemaList IS
      SELECT schema_url
      FROM user_xml_schemas;
    begin
    FOR schema IN getSchemaList
    loop
      begin
        dbms_output.put_line('Processing : ' || schema.schema_url);
        dbms_xmlschema.compileSchema(schema.schema_url);
        dbms_output.put_line('Compiled');
      exception when others then
        dbms_output.put_line('Failed ('||SQLCODE||'): ' ||SQLERRM);
      end;
    end loop;
    end;
    -- --------------------------------------------------------etc, etc, etc.
    By the way IMHO there are no stupid questions, only stupid answer, and the learning curve on XMLDB is steep, so if I sometimes look back on my answers...
    Message was edited by:
    Marco Gralike

  • Problem while creating ADF Table

    When I drag view object from data control palette and place it on jspx page as a ADF Table then it does not show any table fields in Edit Table Columns dialog box. I am using JDeveloper 10.1.3.2
    Please Help, its urgent.
    Thanks in advance.

    Hi,
    When you expand your view object in data control can you see those fields?
    Bogdan

  • Problem Creating JMS Queue Tables

    Oracle 9.2.0.1
    Help Please.
    I'm running into problems trying to create a JMS message queue table. following an example in the Oracle9ias containers for j2ee guide chapter 7. i've created a user and granted execute on sys.dbms_aqadm, sys.dbms_aq,
    sys.dbms_aqin and sys.dbms_aqjms.
    I log into SQL Plus as system with sysbda privilege.
    and attempt to create a table using
    DBMS_AQADM.CREATE_QUEUE_TABLE(
    Queue_table          => 'QTque',
    Queue_payload_type     => 'SYS.AQ$_JMS_STREAM_MESSAGE',
    multiple_consumers     => false);
    but SQL Plus responds with an error saying: unknown command beginning 'DBMS_AQADM...' rest of line ignored.
    is this a problem with my system administrator privileges
    I've given it DBA and AQ_ADMINISTRATOR_ROLE.
    In searching for a way around my problem I discovered you can easily create queue tables in the Advanced Queues section of enterprise manager. Problem doing it this way is a can't figure out how to specify payload type. If I select object I can't see how I can then specify the
    SYS.AQ$_JMS_STREAM_MESSAGE type I require.
    Any Tips appreciated.
    Gary.

    try to execute:
    BEGIN
    DBMS_AQADM.CREATE_QUEUE_TABLE(
    Queue_table => 'QTque',
    Queue_payload_type => 'SYS.AQ$_JMS_STREAM_MESSAGE',
    multiple_consumers => false);
    END;
    Regards,
    Alexei

  • Internal Error ORA-0600 when creating multiple consumer queue table

    Hi,
    I tried to create a multiple consumer queue table with the following statements:
    exec DBMS_AQADM.GRANT_TYPE_ACCESS ('system');
    create type Change_History_Trigger_Data as object(Col1 VARCHAR2(255), Col2 VARCHAR2(128), Col3 VARCHAR2(255), Col4 TIMESTAMP, Col5 VARCHAR2(64), Col6 VARCHAR2(64), Col7 NUMBER(8));
    Works fine till this stage. But the following statement produces an ORA-0600 internal error message.
    EXEC DBMS_AQADM.CREATE_QUEUE_TABLE ('change_history_queue_tbl','Change_History_Trigger_Data', 'tablespace my_tblspace','ENQ_TIME',TRUE,DBMS_AQADM.TRANSACTIONAL);
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [kcbgtcr_4], [14392], [0], [1], [], [], [], []
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 2224
    ORA-06512: at "SYS.DBMS_AQADM", line 58
    ORA-06512: at line 1
    I tried creating the same queue table with Multiple consumer = FALSE, and it works fine. But not with multiple consumer = TRUE
    I'm running on Oracle9i Enterprise Edition Release 9.2.0.6.0
    Any possible solutions?

    Problem solved.
    The queue name was too long. Found a post with the same problem.
    Re: Create Queue Table ORA-00600 while dbms_aqadm.create_queue_table
    thanks anyway

  • Problem in creating table maintenance generator for 61 fields in table

    Hi Experts,
    I am facing problem in creating a table maintenance genarator for a ZTABLE which has 61 fields
    i am using below details whicle creating the TMG
    in Maintenance screen
    i am giving maintenance type as two step
    Maint screen no overview screen 2
                              single screen        3
    Dialog Data Transport details
    Recording routine    standard recording routine
    but it is giving following error
    screen SAPL<ZTABLE NAME>    0003 could not be generated
    In DYNPFIELD_ATTR mandatory field LINE has no value
    please let me know how to sort out these errors.
    Is there any limit on the number of fields for which we can create table maintenance generetor.
    Thanks a lot in advance
    Sudipto

    Hi Sudipto,
    There is not limit to the number of fields of the Table which can be used in TMG for generation. But, from the usability point of view this will horrible.
    I created a Z table and added 64 fields and was able to generate the TMG with the screens perfectly. So, I guess there should not be any problem.
    Well, have a look at the Function Group. I guess the screen numbers are already used by some other screens. You can set the system to propose freely available screen numbers from the pool.
    Also, check whether proper authorization is assigned or not.
    And if nothing is working, you can degenerate all the generated screens and then can have a new regeneration of it.
    Hope these tips will work.
    Thanks,
    Samantak

  • Modified "Create error table" from CKM SQL problem

    Hi guys!
    I have a strange problem while creating error table by the CKM. I've changed in the interface from flow control to static control and now the command to create error table looks like:
    create table STG_TMP.E$_I_D_ASSORTMENT_S
    ERR_TYPE VARCHAR2(1 CHAR) NULL,
    ERR_MESS VARCHAR2(250 CHAR) NULL,
    CHECK_DATE DATE NULL,
    ORIGIN VARCHAR2(100 CHAR) NULL,
    CONS_NAME VARCHAR2(35 CHAR) NULL,
    CONS_TYPE VARCHAR2(2 CHAR) NULL
    the create error table(it should create table with all the columns varchar2 and handle the situation when column is number(0,0) => varchar2(255)) step from CKM is:
    <%=snpRef.getColList("<?\t", "int vL[POS]=[LONGC]+[SCALE]; if(\u0022[DEST_DT]\u0022.equals(\u0022DATE\u0022)) {vL[POS]=20;}; if(\u0022[DEST_DT]\u0022.equals(\u0022NUMBER\u0022) && vL[POS]==0) {vL[POS]=255;};", "\n \t", "\n?>", "INS")%>
    create table <%=snpRef.getTable("L","ERR_NAME", "W")%>
    ERR_TYPE <%=snpRef.getDataType("DEST_VARCHAR", "1", "")%> <%=snpRef.getInfo("DEST_DDL_NULL")%>,
    ERR_MESS <%=snpRef.getDataType("DEST_VARCHAR", "250", "")%> <%=snpRef.getInfo("DEST_DDL_NULL")%>,
    CHECK_DATE <%=snpRef.getDataType("DEST_DATE", "", "")%> <%=snpRef.getInfo("DEST_DDL_NULL")%>,
    <%=snpRef.getColList("", "[COL_NAME]\t varchar2 (<?=vL[POS]?>) " + snpRef.getInfo("DEST_DDL_NULL"), ",\n\t", "", "INS")%>,
    ORIGIN <%=snpRef.getDataType("DEST_VARCHAR", "100", "")%> <%=snpRef.getInfo("DEST_DDL_NULL")%>,
    CONS_NAME <%=snpRef.getDataType("DEST_VARCHAR", "35", "")%> <%=snpRef.getInfo("DEST_DDL_NULL")%>,
    CONS_TYPE <%=snpRef.getDataType("DEST_VARCHAR", "2", "")%> <%=snpRef.getInfo("DEST_DDL_NULL")%>
    Do you know whats the problem??
    Thanks in advance :)
    With regards,
    PsmakR

    What version of ODI are you using ?
    Are you still using Sunopsis ?
    Try using ODI 10.1.3.5
    Also, follow the solution in post
    Issue with Create Target Table in CKM Oracle

  • Queue Table on Nested Objects

    Queue Table with Nested Objects
    I need to create a queue table based on nested object
    These are my declarations
    TYPE TESTATATYPE AS OBJECT (
    CODICE VARCHAR2(5),
    DESCRIZIONE VARCHAR2(30)
    TYPE DETTAGLIOTYPE AS OBJECT (
    CODICE VARCHAR2(5),
    DESCRIZIONE VARCHAR2(30),
    VALORE NUMBER
    TYPE DETTAGLITYPE IS TABLE OF DETTAGLIOTYPE
    TYPE MESSAGGIOTYPE AS OBJECT (
    TESTATA TESTATATYPE,
    DETTAGLI DETTAGLITYPE
    Now i'm trying to create queue table
    DBMS_AQADM.CREATE_QUEUE_TABLE(queue_table => 'MsgQTab',
    queue_payload_type => 'MessaggioType',
    storage_clause => 'NESTED TABLE
    dettagli STORE AS dettagli_tab_Q',
    sort_list => 'priority,enq_time'
    but I get
    ORA-00904: invalid column name
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 2012
    ORA-06512: at "SYS.DBMS_AQADM", line 55
    ORA-06512: at line 3
    maybe the problem is storage clause, can you help me ?
    null

    Andrea,
    You cannot currently use a nested table even as an embedded object within a message payload.
    However, you can create an object type that contains one or more VARRAYs, and create a queue table that is founded on this object type. I guess this might be the problem you are facing.

Maybe you are looking for