Unable to create tables through dbms_sql

Hai
I got the below error when i am createing table through dbms_sql package at any user except sys user.Our database is 8.1.6 standard edition
SQL>CONNECT MOHAN/MOHAN;
SQL> CREATE OR REPLACE Procedure EXECUTESQL (SQLStatement IN VARCHAR2) IS cursor
_name INTEGER; ret
2 INTEGER; BEGIN cursor_name := DBMS_SQL.OPEN_CURSOR; DBMS_SQL.PARSE(cursor_n
ame, SQLStatement,
3 DBMS_SQL.native); ret := DBMS_SQL.Execute(cursor_name); DBMS_SQL.CLOSE_CURS
OR(cursor_name); END;
4 /
Procedure created.
SQL> exec EXECUTESQL('create table test(name number)');
BEGIN EXECUTESQL('create table test(name number)'); END;
ERROR at line 1:
ORA-01031: insufficient privileges
ORA-06512: at "SYS.DBMS_SYS_SQL", line 782
ORA-06512: at "SYS.DBMS_SQL", line 32
ORA-06512: at "MOHAN.EXECUTESQL", line 2
ORA-06512: at line 1
Any idea about that
Thanks in advance
mohan

Since you are using Oracle 8.1.6, you can use EXECUTE IMMEDIATE instead of DBMS_SQL. Make sure that the necessary privileges have been granted directly, not through roles. Click on the link below for more about privileges and roles and the error message that you got:
http://osi.oracle.com/~tkyte/Misc/RolesAndProcedures.html
Once you have the privileges granted properly, you should be able to use the code below. I should point out that this is still doing things the hard way. You can just issue the create table statement from the SQL prompt. I must assume that this is just a minimal experiment and that the eventual code involves more.
SQL> CREATE OR REPLACE PROCEDURE executesql
  2    (SQLStatement IN VARCHAR2)
  3  IS
  4  BEGIN
  5    EXECUTE IMMEDIATE SQLStatement;
  6  END executesql;
  7  /
Procedure created.
SQL> EXEC executesql ('CREATE TABLE test (name NUMBER)')
PL/SQL procedure successfully completed.
SQL> DESC test
Name                                      Null?    Type
NAME                                               NUMBER

Similar Messages

  • UCM - Unable to create table 'WebdavUserPaths'.

    Hi,
    we have UCM Version:10.1.3.5.1 (091014) (Build:7.2.4.29). It runs on production environment and also we have a test instance.
    It runs fine for long time. Yesterday I stopped the content server on test environment. Problem is that I am not able to start it anymore. While starting I am receiving this error:
    Unable to create table 'WebdavUserPaths'. ORA-00955: name is already used by an existing object
    ORA-00955: name is already used by an existing object
    intradoc.common.ServiceException: !csDbUnableToPerformAction_create,WebdavUserPaths!$ORA-00955: name is already used by an existing object
    While analyzing this, I found there is the table WebdavUserPaths in the database and it is empty. This table is present in both databases - PROD and also in TEST. In both envs it is empty.
    I found out that when I disable CoreWebdav component in ComponentWizard, then the content server starts up fine, bud WebDav is not working of course...
    I would need to solve this issue, but I do not want to start immediately dropping that tables, etc... without knowing what is it used for, why content server wants to recreate the tables, etc...
    Any body has an ideas?
    Thanks.

    Thanks for pointing me towards dba_lobs
    SQL> select TABLE_NAME,INDEX_NAME from dba_lobs where OWNER='AEE' and index_name like 'LI_AURULD%';
    TABLE_NAME INDEX_NAME
    BIN$XdjCvAyQhMrgQBCsZat/dQ==$0 LI_AURULD_RULEDATA
    I purged the recyclebin and all was ok

  • Unable to created users through UME on portal with AS ABAP as its data sorc

    Hi,
    Unable to created users through UME on portal with AS ABAP as its data source.
    I have assigned SAP_BC_JSF_COMMUNICATION to the user SAPJSF but this only helps in editing the already existing users but not in creating new users on portal.
    I have checked that that the role SAP_BC_JSF_COMMUNICATION is properly generated and has *  in all authorizations. I have even assigned SAP_ALL and SAP_NEW to SAPJSF and another ID.
    DO we need to make any config changes to make the database writable from portal. Please advise.
    Thanks,

    Hi,
    If your system is a AS ABAP + +JAVA System,, you have to do the following
    1. Login to Client 001 using SAP GUI
    2. Create a user id
    3. Login to portal and you will be able to see the user.
    4.Assign him the portal rights
    If you want the portal to use seperate Database for USers, there is a setting in Visual admin, that you can change for the same, but i dont remember that

  • Unable to create table because object exists. Where do I find object ?? :-0

    Hi,
    I deployed some scripts to a database, had to roll it back and then deployed again but I'm unable to create a particular table. The error says an object already exists but I can't find it. Hope this isn't a dumb question. Oracle 10.2.0.4 2 node RAC on Linux
    I have looked through dba_objects for anything called LS_AURULD_RULEDATA or LI_AURULD_RULEDATA.
    Here is the command and error..........
    CREATE TABLE aee.T_AUDITRULEDEFINITION
    2 (
    OBID RAW(16) CONSTRAINT NN_AURULD_OBID NOT NULL,
    SECURE_COMPANY_FK RAW(16) CONSTRAINT NN_AURULD_SCFK NOT NULL,
    AUDITRULESET_FK RAW(16),
    AUDITRULECLASST_FK NUMBER(2,0),
    DESCRIPTION NVARCHAR2(128),
    FAILUREACTION_FK NUMBER(2,0),
    RULEDATA NCLOB,
    RULETYPE NVARCHAR2(50),
    SEQUENCENUMBER NUMBER(10,0),
    TAG NVARCHAR2(64)
    LOB(RULEDATA) STORE AS LS_AURULD_RULEDATA (INDEX LI_AURULD_RULEDATA)
    15 TABLESPACE MOTOR_TABLES;
    LOB(RULEDATA) STORE AS LS_AURULD_RULEDATA (INDEX LI_AURULD_RULEDATA) *
    ERROR at line 14:
    ORA-00955: name is already used by an existing object
    Any help appreciated

    Thanks for pointing me towards dba_lobs
    SQL> select TABLE_NAME,INDEX_NAME from dba_lobs where OWNER='AEE' and index_name like 'LI_AURULD%';
    TABLE_NAME INDEX_NAME
    BIN$XdjCvAyQhMrgQBCsZat/dQ==$0 LI_AURULD_RULEDATA
    I purged the recyclebin and all was ok

  • Create Table using DBMS_SQL package and size not exceeding 64K

    I have a size contraint that my SQL size should not exceed 64K.
    Now I would appriciate if some one could tell me how to create a table using
    Dynamic sql along with usage of DBMS_SQL package.
    Brief Scenario: Users at my site are not given permission to create table.
    I need to write a procedure which the users could use to create a table .ALso my SQL size should not exceed 64K. Once this Procedure is created using DBMS_SQL package ,user should pass the table name to create a table.
    Thanks/

    "If a user doesn't have permission to create a table then how do you expect they will be able to do this"
    Well, it depends on what you want to do. I could write a stored proc that creates a table in my schema and give some other user execute privilege on it. They would then be able to create a able in my schema without any explicitly granted create table privilege.
    Similarly, assuming I have CREATE ANY TABLE granted directly to me, I could write a stroe proc that would create a table in another users schema. As long as they have quota on their default tablespace, they do not need CREATE TABLE privileges.
    SQL> CREATE USER a IDENTIFIED BY a
      2  DEFAULT TABLESPACE users TEMPORARY TABLESPACE temp;
    User created.
    SQL> GRANT CREATE SESSION TO a;
    Grant succeeded.
    SQL> CREATE TABLE a.t (id NUMBER, descr VARCHAR2(10));
    CREATE TABLE a.t (id NUMBER, descr VARCHAR2(10))
    ERROR at line 1:
    ORA-01950: no privileges on tablespace 'USERS'So, give them quota on the tablespace and try again
    SQL> ALTER USER a QUOTA UNLIMITED ON users;
    User altered.
    SQL> CREATE TABLE a.t (id NUMBER, descr VARCHAR2(10));
    Table created.Now lets see if it really belongs to a:
    SQL> connect a/a
    Connected.
    SQL> SELECT table_name FROM user_tables;
    TABLE_NAME
    T
    SQL> INSERT INTO t VALUES (1, 'One');
    1 row created.Yes, it definitely belongs to a. Just to show that ther is nothing up my sleeve:
    SQL> create table t1 (id NUMBER, descr VARCHAR2(10));
    create table t1 (id NUMBER, descr VARCHAR2(10))
    ERROR at line 1:
    ORA-01031: insufficient privilegesI can almost, but not quite, see a rationale for the second case if you want to enforce some sort of naming or location standards but the whole thing seems odd to me.
    Users cannot create tables, so lets give them a procedure to create tables?
    John

  • Creating tables through Jdeveloper

    Hi,
    I believe the following is the way to create a database table in Jdeveloper 10g and Oracle BPEL process Manager 10.1.3.1.0
    1.Created bpel project--> right click project ---> create schema---> right click schema---> create table(completed the wizard and created schema and table)
    2.Right click schema ---> new---> database tier---> offline database objects ----> SQL generated from offline database objects(and then complete the wizard)
    If the above is the correct approach to create the table, then I am facing two situations.
    a. In the project properties(offline database), if the 'database to emulate' is set to oracle lite 10g release 1, then "SQL generated from offline database objects" option is not enabled to choose in the step 2 above. So I cannot proceed further.
    b. If the 'database to emulate' is set to oracle database 10g release 2 (this is default), "SQL generated from offline database objects" in step 2 is enabled, but in the wizard that follows, when I tick 'perform operation against the database' it asks me for oracle database connection settings. But I only have the Oracle 10g Lite version and not Oracle database 10g. So I am not able proceed further.
    All I need is to create tables in the Oracle Lite database that I have.
    Any help on this issue will be greatly appreciated.
    -Sagar

    Generally, you create a sequence and a trigger for a particular table. The trigger is called on
    each insert which then calls on the sequence to get the next increment in the progression. You can create both of these entities in JDeveloper through our SQL interface. However, you will find more features in SQLDeveloper including the ability to generate triggers.
    http://www.oracle.com/technology/software/products/sql/index.html

  • Unable to create table in Dictionary DC

    Hi All,
    I m trying to add one more table to my Dictionary DC.
    I created table and nothing is getting attached to the Activity that I created for this !!!
    So when m adding it to DTR manually (right click -> add to DTR),  it is showing error pop up msg saying
    "BIT_ROLEDESC: Could not connect to name server" 
    and in error log following is the error displayed:-
    com.sap.dictionary.tools.nameserver.ReservationException: BIT_ROLEDESC: Could not connect to name server
         at com.sap.dictionary.tools.nameserver.DtrPropertySetter.createProperties(DtrPropertySetter.java:115)
         at com.tssap.dii.dtri.actions.file.FileAddAction.run(FileAddAction.java:144)
         at com.tssap.selena.model.extension.action.SelenaActionCollector$GenericElementActionWrapper.run(SelenaActionCollector.java:229)
         at com.tssap.util.ui.menu.MenuFactory$MuSiAction.saveRunAction(MenuFactory.java:1425)
         at com.tssap.util.ui.menu.MenuFactory$MuSiAction.run(MenuFactory.java:1391)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction.processInternal(MenuFactory.java:616)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction.access$100(MenuFactory.java:586)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction$BusyProcessWorker.run(MenuFactory.java:716)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction.process(MenuFactory.java:610)
         at com.tssap.util.ui.menu.internal.MenuListenerFactory$ProcessAdapter.widgetSelected(MenuListenerFactory.java:172)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
         at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
         at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:79)
         at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
         at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
         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:324)
         at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:286)
         at com.sap.ide.eclipse.startup.Main.run(Main.java:795)
         at com.sap.ide.eclipse.startup.Main.main(Main.java:602)
    Why is this happening?? What shud be done to get it rite??
    Pls help as my work is stuck in table creation !!!
    regards,
    Amey

    Ok...
    So if I set this property then it will work fine right? Can you pls elaborate the procedure ??
    But one thing I dont understand is how come all other tables got generated properly and got attached to their activities ???
    Why problem is coming with this particular table?
    regards,
    Amey
    Edited by: Amey Mogare on May 27, 2008 5:58 AM

  • Unable to create Tables in design view

    One of the two problems I am having (the other will also be
    posted) is that I am no longer able to use Design View to Insert
    Tables at all - I get the following error message: (I made a
    printscreen of the error but not sure how to embed the picture in
    this post so here is the message verbatim).
    "While executing objectTag, the following JavaScript error(s)
    occured:
    At line 26 of file "Macintosh HD:Applications:Macromedia
    Dreaweaver 8:Configuration
    bjects:Common:Table.htm":
    Type Error: cmdDOM.parentWindow.createTableStr is not a
    function"
    I can create tables only if I type the html for them by hand
    into the code pane. The file that the error message references does
    exist, and appears to look fine (code-wise). I've also tried
    uninstalling and reinstalling DW8, removing and recreating the
    Configuration Folder as well as the site prefs and site definitions
    - nothing has cured this problem.
    I am using DW8 v. 8.0.2 on a Mac Quad G5 running OS X 10.4.6.
    I am positive that I did not have this problem, or any of the other
    current problems, with DW MX , and I installed DW8 as a stand-alone
    app so that I could still use MX if needed. This and the other
    problems don't occur with MX but I would really like to get them
    solved because 8 offers other benefits that I want to be able to
    use.
    I'm wondering if anyone else has had this problem and managed
    to find a fix for it.

    One of the two problems I am having (the other will also be
    posted) is that I am no longer able to use Design View to Insert
    Tables at all - I get the following error message: (I made a
    printscreen of the error but not sure how to embed the picture in
    this post so here is the message verbatim).
    "While executing objectTag, the following JavaScript error(s)
    occured:
    At line 26 of file "Macintosh HD:Applications:Macromedia
    Dreaweaver 8:Configuration
    bjects:Common:Table.htm":
    Type Error: cmdDOM.parentWindow.createTableStr is not a
    function"
    I can create tables only if I type the html for them by hand
    into the code pane. The file that the error message references does
    exist, and appears to look fine (code-wise). I've also tried
    uninstalling and reinstalling DW8, removing and recreating the
    Configuration Folder as well as the site prefs and site definitions
    - nothing has cured this problem.
    I am using DW8 v. 8.0.2 on a Mac Quad G5 running OS X 10.4.6.
    I am positive that I did not have this problem, or any of the other
    current problems, with DW MX , and I installed DW8 as a stand-alone
    app so that I could still use MX if needed. This and the other
    problems don't occur with MX but I would really like to get them
    solved because 8 offers other benefits that I want to be able to
    use.
    I'm wondering if anyone else has had this problem and managed
    to find a fix for it.

  • Unable to create table with column default value with date interval

    Please help to create table with calculated date defaullt value:
    CREATE TABLE emp (
      birth_date  DATE  DEFAULT sysdate + interval '3' day NOT NULL
    or
    CREATE TABLE emp (
      some_date DATE,
      birth_date  DATE  DEFAULT some_date NOT NULL
    or
    CREATE TABLE emp (
      some_date DATE,
      birth_date  DATE  DEFAULT some_date + interval '3' day NOT NULL
    below syntax error:
    TT1001: Syntax error in SQL statement before or at: "+"

    I'm afraid this is not possible; as per the SQL Reference, TimesTen only supports 'constant expressions' for the DEFAULT clause and none of these are constant expressions.
    Chris

  • Help...Unable to create table.

    I'm trying to create a table using following syntax and it's throwing "ORA-22809: nonexistent attribute" error. I've used the same script before on 10gR1 and it was fine. Now, I'm trying to test this on 10gR2 and it's not working. Any ideas?
    Schema
    DECLARE
    xmlblurb CLOB
    := '<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" version="1.0" xdb:storeVarrayAsTable="true">
    <xs:element name="docattribs" type="DocAttribsType"/>
    <xs:complexType name="DocAttribsType" xdb:SQLType="DOCATTRIBS_T">
    <xs:sequence>
    <xs:element name="brandgroups" type="BrandGroupsType" xdb:SQLName="BRANDGROUPS"/>
    <xs:element name="messagegroups" type="MessageGroupsType" xdb:SQLName="MESSAGEGROUPS"/>
    <xs:element name="sources" type="SourcesType" xdb:SQLName="SOURCES"/>
    <xs:element name="contentgroups" type="ContentGroupsType" xdb:SQLName="CONTENTGROUPS"/>
    <xs:element name="authors" type="AuthorsType" xdb:SQLName="AUTHORS"/>
    <xs:element name="themes" type="ThemesType" xdb:SQLName="THEMES"/>
    <xs:element name="entities" type="EntitiesType" xdb:SQLName="ENTITIES"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="BrandGroupsType" xdb:SQLType="BRANDGROUPS_T">
    <xs:sequence>
    <xs:element name="bg" type="IdMentionsToneType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="BG" xdb:SQLCollType="IDMENTIONSTONE_COLL"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="MessageGroupsType" xdb:SQLType="MESSAGEGROUPS_T">
    <xs:sequence>
    <xs:element name="mg" type="MessageGroupType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="MG" xdb:SQLCollType="MG_COLL"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="MessageGroupType" xdb:SQLType="MESSAGEGROUP_T">
    <xs:sequence>
    <xs:element name="bg" type="IdType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="BG" xdb:SQLCollType="ID_COLL"/>
    </xs:sequence>
    <xs:attribute name="id" type="xs:integer" xdb:SQLName="ID"/>
    </xs:complexType>
    <xs:complexType name="SourcesType" xdb:SQLType="SOURCES_T">
    <xs:sequence>
    <xs:element name="source" type="IdType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="SOURCE" xdb:SQLCollType="ID_COLL"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="ContentGroupsType" xdb:SQLType="CONTENTGROUPS_T">
    <xs:sequence>
    <xs:element name="pcg" type="ParentContentGroupType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="PCG" xdb:SQLCollType="PCG_COLL"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="ParentContentGroupType" xdb:SQLType="PARENTCONTENTGROUP_T">
    <xs:sequence>
    <xs:element name="cg" type="IdType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="CG" xdb:SQLCollType="ID_COLL"/>
    </xs:sequence>
    <xs:attribute name="id" type="xs:integer" xdb:SQLName="ID"/>
    </xs:complexType>
    <xs:complexType name="AuthorsType" xdb:SQLType="AUTHORS_T">
    <xs:sequence>
    <xs:element name="author" type="NameType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="AUTHOR" xdb:SQLCollType="NAME_COLL"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="ThemesType" xdb:SQLType="THEMES_T">
    <xs:sequence>
    <xs:element name="theme" type="IdType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="THEME" xdb:SQLCollType="ID_COLL"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="EntitiesType" xdb:SQLType="ENTITIES_T">
    <xs:sequence>
    <xs:element name="af" type="IdMentionsType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="ANALYST_FIRMS" xdb:SQLCollType="IDMENTIONS_COLL"/>
    <xs:element name="a" type="IdMentionsType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="ANALYSTS" xdb:SQLCollType="IDMENTIONS_COLL"/>
    <xs:element name="b" type="IdMentionsType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="BRANDS" xdb:SQLCollType="IDMENTIONS_COLL"/>
    <xs:element name="c" type="IdMentionsType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="COMPANIES" xdb:SQLCollType="IDMENTIONS_COLL"/>
    <xs:element name="l" type="IdMentionsType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="LOCATIONS" xdb:SQLCollType="IDMENTIONS_COLL"/>
    <xs:element name="m" type="IdMentionsType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="MESSAGES" xdb:SQLCollType="IDMENTIONS_COLL"/>
    <xs:element name="p" type="IdMentionsType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="PEOPLE" xdb:SQLCollType="IDMENTIONS_COLL"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="IdMentionsType" xdb:SQLType="IDMENTIONS_T">
    <xs:attribute name="id" type="xs:integer" xdb:SQLName="ID"/>
    <xs:attribute name="mentions" type="xs:integer" xdb:SQLName="MENTIONS"/>
    </xs:complexType>
    <xs:complexType name="IdMentionsToneType" xdb:SQLType="IDMENTIONSTONE_T">
    <xs:attribute name="id" type="xs:integer" xdb:SQLName="ID"/>
    <xs:attribute name="mentions" type="xs:integer" xdb:SQLName="MENTIONS"/>
    <xs:attribute name="toneid" type="xs:integer" xdb:SQLName="TONEID"/>     
    </xs:complexType>
    <xs:complexType name="IdType" xdb:SQLType="ID_T">
    <xs:attribute name="id" type="xs:integer" xdb:SQLName="ID"/>
    </xs:complexType>     
    <xs:complexType name="NameType" xdb:SQLType="NAME_T">
    <xs:attribute name="name" type="xs:string" xdb:SQLName="NAME"/>
    </xs:complexType>
    </xs:schema>';
    BEGIN
    dbms_xmlschema.registerschema ('cymfony_docattribs.xsd',
    xmlblurb,
    TRUE,
    TRUE,
    FALSE,
    FALSE
    END;
    Create table syntax:
    CREATE TABLE xml_docattributes (
    docid NUMBER,
    docdate DATE,
    statusid NUMBER)
    TABLESPACE data_10m_a
    ALTER TABLE xml_docattributes
    ADD (docattributes XMLTYPE)
    XMLTYPE COLUMN docattributes STORE AS OBJECT RELATIONAL
    XMLSCHEMA "cymfony_docattribs.xsd" ELEMENT "docattribs"
    VARRAY docattributes."XMLDATA"."brandgroups"."bg" STORE AS TABLE xml_brandgroups
    ((constraint pk_xml_brandgroups PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    ORGANIZATION INDEX)
    VARRAY docattributes."XMLDATA"."messagegroups"."mg" STORE AS TABLE xml_messagegroups
    ((CONSTRAINT pk_xml_messagegroups PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    ORGANIZATION INDEX)
    VARRAY "bg" STORE AS TABLE xml_brandgroup
    ((CONSTRAINT pk_xml_brandgroup PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
         ORGANIZATION INDEX)
    VARRAY docattributes."XMLDATA"."sources"."source" STORE AS TABLE xml_sources
    ((CONSTRAINT pk_xml_sources PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    ORGANIZATION INDEX)
    VARRAY docattributes."XMLDATA"."contentgroups"."pcg" STORE AS TABLE xml_contentgroups
    ((CONSTRAINT pk_xml_contentgroups PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
         ORGANIZATION INDEX)
    VARRAY "cg" STORE AS TABLE xml_contentgroup
    ((CONSTRAINT pk_xml_contentgroup PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
              ORGANIZATION INDEX)
    VARRAY docattributes."XMLDATA"."authors"."author" STORE AS TABLE xml_authors
    ((CONSTRAINT pk_xml_authors PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
         ORGANIZATION INDEX)
    VARRAY docattributes."XMLDATA"."themes"."theme" STORE AS TABLE xml_themes
    ((CONSTRAINT pk_xml_themes PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    ORGANIZATION INDEX)
    VARRAY docattributes."XMLDATA"."entities"."a" STORE AS TABLE xml_analysts
    ((constraint pk_xml_analysts PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    ORGANIZATION INDEX)
    VARRAY docattributes."XMLDATA"."entities"."af" STORE AS TABLE xml_analystfirms
    ((constraint pk_xml_analystfirms PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    ORGANIZATION INDEX)
    VARRAY docattributes."XMLDATA"."entities"."b" STORE AS TABLE xml_brands
    ((constraint pk_xml_brands PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    ORGANIZATION INDEX)
    VARRAY docattributes."XMLDATA"."entities"."c" STORE AS table xml_companies
    ((constraint pk_xml_companies primary key (NESTED_TABLE_ID, ARRAY_INDEX))
    ORGANIZATION INDEX)
    VARRAY docattributes."XMLDATA"."entities"."l" STORE AS table xml_locations
    ((constraint pk_xml_locations primary key (NESTED_TABLE_ID, ARRAY_INDEX))
    ORGANIZATION INDEX)
    VARRAY docattributes."XMLDATA"."entities"."m" STORE AS table xml_messages
    ((constraint pk_xml_messages primary key (NESTED_TABLE_ID, ARRAY_INDEX))
    ORGANIZATION INDEX)
    VARRAY docattributes."XMLDATA"."entities"."p" STORE AS table xml_people
    ((constraint pk_xml_people primary key (NESTED_TABLE_ID, ARRAY_INDEX))
    ORGANIZATION INDEX)
    /

    At the end of the day there were a number of typos in the ALTER TABLE ADD statement. Here's a debugged version based on the orignal annotated XML Schema..
    SQL> var schemaURL varchar2(256)
    SQL> var schemaPath varchar2(256)
    SQL> --
    SQL> begin
      2    :schemaURL := 'cymfony_docattribs.xsd';
      3    :schemaPath := '/public/cymfony_docattribs.xsd';
      4  end;
      5  /
    PL/SQL procedure successfully completed.
    SQL> call dbms_xmlSchema.deleteSchema(:schemaURL,4)
      2  /
    Call completed.
    SQL> declare
      2    res boolean;
      3    xmlSchema xmlType := xmlType(
      4  '<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" version="1.0" xdb:storeVarrayAsTable="t
    rue">
      5     <xs:element name="docattribs" type="DocAttribsType"/>
      6     <xs:complexType name="DocAttribsType" xdb:SQLType="DOCATTRIBS_T">
      7             <xs:sequence>
      8                     <xs:element name="brandgroups" type="BrandGroupsType" xdb:SQLName="BRANDGROUPS"/>
      9                     <xs:element name="messagegroups" type="MessageGroupsType" xdb:SQLName="MESSAGEGROUPS"/>
    10                     <xs:element name="sources" type="SourcesType" xdb:SQLName="SOURCES"/>
    11                     <xs:element name="contentgroups" type="ContentGroupsType" xdb:SQLName="CONTENTGROUPS"/>
    12                     <xs:element name="authors" type="AuthorsType" xdb:SQLName="AUTHORS"/>
    13                     <xs:element name="themes" type="ThemesType" xdb:SQLName="THEMES"/>
    14                     <xs:element name="entities" type="EntitiesType" xdb:SQLName="ENTITIES"/>
    15             </xs:sequence>
    16     </xs:complexType>
    17     <xs:complexType name="BrandGroupsType" xdb:SQLType="BRANDGROUPS_T">
    18             <xs:sequence>
    19                     <xs:element name="bg" type="IdMentionsToneType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="BG" xdb:SQLCollType
    ="IDMENTIONSTONE_COLL"/>
    20             </xs:sequence>
    21     </xs:complexType>
    22     <xs:complexType name="MessageGroupsType" xdb:SQLType="MESSAGEGROUPS_T">
    23             <xs:sequence>
    24                     <xs:element name="mg" type="MessageGroupType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="MG" xdb:SQLCollType="
    MG_COLL"/>
    25             </xs:sequence>
    26     </xs:complexType>
    27     <xs:complexType name="MessageGroupType" xdb:SQLType="MESSAGEGROUP_T">
    28             <xs:sequence>
    29                     <xs:element name="bg" type="IdType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="BG" xdb:SQLCollType="ID_COLL"/>
    30             </xs:sequence>
    31             <xs:attribute name="id" type="xs:integer" xdb:SQLName="ID"/>
    32     </xs:complexType>
    33     <xs:complexType name="SourcesType" xdb:SQLType="SOURCES_T">
    34             <xs:sequence>
    35                     <xs:element name="source" type="IdType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="SOURCE" xdb:SQLCollType="ID
    _COLL"/>
    36             </xs:sequence>
    37     </xs:complexType>
    38     <xs:complexType name="ContentGroupsType" xdb:SQLType="CONTENTGROUPS_T">
    39             <xs:sequence>
    40                     <xs:element name="pcg" type="ParentContentGroupType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="PCG" xdb:SQLCo
    llType="PCG_COLL"/>
    41             </xs:sequence>
    42     </xs:complexType>
    43     <xs:complexType name="ParentContentGroupType" xdb:SQLType="PARENTCONTENTGROUP_T">
    44             <xs:sequence>
    45                     <xs:element name="cg" type="IdType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="CG" xdb:SQLCollType="ID_COLL"/>
    46             </xs:sequence>
    47             <xs:attribute name="id" type="xs:integer" xdb:SQLName="ID"/>
    48     </xs:complexType>
    49     <xs:complexType name="AuthorsType" xdb:SQLType="AUTHORS_T">
    50             <xs:sequence>
    51                     <xs:element name="author" type="NameType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="AUTHOR" xdb:SQLCollType="
    NAME_COLL"/>
    52             </xs:sequence>
    53     </xs:complexType>
    54     <xs:complexType name="ThemesType" xdb:SQLType="THEMES_T">
    55             <xs:sequence>
    56                     <xs:element name="theme" type="IdType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="THEME" xdb:SQLCollType="ID_C
    OLL"/>
    57             </xs:sequence>
    58     </xs:complexType>
    59     <xs:complexType name="EntitiesType" xdb:SQLType="ENTITIES_T">
    60             <xs:sequence>
    61                     <xs:element name="af" type="IdMentionsType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="ANALYST_FIRMS" xdb:SQLC
    ollType="IDMENTIONS_COLL"/>
    62                     <xs:element name="a" type="IdMentionsType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="ANALYSTS" xdb:SQLCollTyp
    e="IDMENTIONS_COLL"/>
    63                     <xs:element name="b" type="IdMentionsType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="BRANDS" xdb:SQLCollType=
    "IDMENTIONS_COLL"/>
    64                     <xs:element name="c" type="IdMentionsType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="COMPANIES" xdb:SQLCollTy
    pe="IDMENTIONS_COLL"/>
    65                     <xs:element name="l" type="IdMentionsType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="LOCATIONS" xdb:SQLCollTy
    pe="IDMENTIONS_COLL"/>
    66                     <xs:element name="m" type="IdMentionsType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="MESSAGES" xdb:SQLCollTyp
    e="IDMENTIONS_COLL"/>
    67                     <xs:element name="p" type="IdMentionsType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="PEOPLE" xdb:SQLCollType=
    "IDMENTIONS_COLL"/>
    68             </xs:sequence>
    69     </xs:complexType>
    70     <xs:complexType name="IdMentionsType" xdb:SQLType="IDMENTIONS_T">
    71             <xs:attribute name="id" type="xs:integer" xdb:SQLName="ID"/>
    72             <xs:attribute name="mentions" type="xs:integer" xdb:SQLName="MENTIONS"/>
    73     </xs:complexType>
    74     <xs:complexType name="IdMentionsToneType" xdb:SQLType="IDMENTIONSTONE_T">
    75             <xs:attribute name="id" type="xs:integer" xdb:SQLName="ID"/>
    76             <xs:attribute name="mentions" type="xs:integer" xdb:SQLName="MENTIONS"/>
    77             <xs:attribute name="toneid" type="xs:integer" xdb:SQLName="TONEID"/>
    78     </xs:complexType>
    79     <xs:complexType name="IdType" xdb:SQLType="ID_T">
    80             <xs:attribute name="id" type="xs:integer" xdb:SQLName="ID"/>
    81     </xs:complexType>
    82     <xs:complexType name="NameType" xdb:SQLType="NAME_T">
    83             <xs:attribute name="name" type="xs:string" xdb:SQLName="NAME"/>
    84     </xs:complexType>
    85  </xs:schema>');
    86  begin
    87    if (dbms_xdb.existsResource(:schemaPath)) then
    88      dbms_xdb.deleteResource(:schemaPath);
    89    end if;
    90    res := dbms_xdb.createResource(:schemaPath,xmlSchema);
    91  end;
    92  /
    PL/SQL procedure successfully completed.
    SQL> begin
      2    dbms_xmlschema.registerSchema
      3    (
      4      :schemaURL,
      5      xdbURIType(:schemaPath).getClob(),
      6      TRUE,TRUE,FALSE,FALSE
      7    );
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SQL> set pages 0 lines 150
    SQL> --
    SQL> column column_name format A20
    SQL> column data_type format A20
    SQL> column qualified_col_name format A60
    SQL> --
    SQL> DROP TABLE DOCATTRIBUTES
      2  /
    Table dropped.
    SQL> CREATE TABLE docattributes
      2  (
      3    docid NUMBER,
      4    docdate DATE,
      5    statusid NUMBER
      6  )
      7  TABLESPACE USERS
      8  /
    Table created.
    SQL> ALTER TABLE docattributes ADD
      2  (
      3    docattributes XMLTYPE
      4  )
      5  XMLTYPE COLUMN docattributes
      6  XMLSCHEMA "cymfony_docattribs.xsd"
      7  ELEMENT "docattribs"
      8  VARRAY docattributes."XMLDATA"."BRANDGROUPS"."BG"
      9         STORE AS TABLE xml_brandgroups
    10         (
    11           (CONSTRAINT pk_xml_brandgroups PRIMARY KEY (NESTED_TABLE_ID, SYS_NC_ARRAY_INDEX$))
    12            ORGANIZATION INDEX OVERFLOW
    13         )
    14  VARRAY docattributes."XMLDATA"."MESSAGEGROUPS"."MG"
    15         STORE AS TABLE xml_messagegroups
    16         (
    17           (CONSTRAINT pk_xml_messagegroups PRIMARY KEY (NESTED_TABLE_ID, SYS_NC_ARRAY_INDEX$))
    18           ORGANIZATION INDEX OVERFLOW
    19           VARRAY "BG"
    20           STORE AS TABLE XML_BRANDGROUP
    21           (
    22             (CONSTRAINT pk_xml_brandgroup PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    23             ORGANIZATION INDEX OVERFLOW
    24           )
    25         )
    26  VARRAY docattributes."XMLDATA"."SOURCES"."SOURCE"
    27         STORE AS TABLE xml_sources
    28         (
    29           (CONSTRAINT pk_xml_sources PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    30           ORGANIZATION INDEX OVERFLOW
    31         )
    32  VARRAY docattributes."XMLDATA"."CONTENTGROUPS"."PCG"
    33         STORE AS TABLE xml_contentgroups
    34         (
    35           (CONSTRAINT pk_xml_contentgroups PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    36            ORGANIZATION INDEX OVERFLOW
    37            VARRAY "CG"
    38            STORE AS TABLE xml_contentgroup
    39            (
    40              (CONSTRAINT pk_xml_contentgroup PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    41              ORGANIZATION INDEX OVERFLOW
    42            )
    43         )
    44  VARRAY docattributes."XMLDATA"."AUTHORS"."AUTHOR"
    45         STORE AS TABLE xml_authors
    46         (
    47           (CONSTRAINT pk_xml_authors PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    48           ORGANIZATION INDEX OVERFLOW
    49         )
    50  VARRAY docattributes."XMLDATA"."THEMES"."THEME"
    51         STORE AS TABLE xml_themes
    52         (
    53           (CONSTRAINT pk_xml_themes PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    54           ORGANIZATION INDEX OVERFLOW
    55         )
    56  VARRAY docattributes."XMLDATA"."ENTITIES"."ANALYSTS"
    57         STORE AS TABLE xml_analysts
    58         (
    59           (constraint pk_xml_analysts PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    60           ORGANIZATION INDEX OVERFLOW
    61         )
    62  VARRAY docattributes."XMLDATA"."ENTITIES"."ANALYST_FIRMS"
    63         STORE AS TABLE xml_analystfirms
    64         (
    65           (constraint pk_xml_analystfirms PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    66           ORGANIZATION INDEX OVERFLOW
    67         )
    68  VARRAY docattributes."XMLDATA"."ENTITIES"."BRANDS"
    69         STORE AS TABLE xml_brands
    70         (
    71           (constraint pk_xml_brands PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
    72           ORGANIZATION INDEX
    73         )
    74  VARRAY docattributes."XMLDATA"."ENTITIES"."COMPANIES"
    75         STORE AS table xml_companies
    76         (
    77           (constraint pk_xml_companies primary key (NESTED_TABLE_ID, ARRAY_INDEX))
    78           ORGANIZATION INDEX
    79         )
    80  VARRAY docattributes."XMLDATA"."ENTITIES"."LOCATIONS"
    81         STORE AS table xml_locations
    82         (
    83           (constraint pk_xml_locations primary key (NESTED_TABLE_ID, ARRAY_INDEX))
    84           ORGANIZATION INDEX
    85         )
    86  VARRAY docattributes."XMLDATA"."ENTITIES"."MESSAGES"
    87         STORE AS table xml_messages
    88         (
    89           (constraint pk_xml_messages primary key (NESTED_TABLE_ID, ARRAY_INDEX))
    90           ORGANIZATION INDEX
    91         )
    92  VARRAY docattributes."XMLDATA"."ENTITIES"."PEOPLE"
    93         STORE AS table xml_people
    94         (
    95           (constraint pk_xml_people primary key (NESTED_TABLE_ID, ARRAY_INDEX))
    96           ORGANIZATION INDEX
    97         )
    98  /
    Table altered.
    SQL>and here's the actual alter table statement source
    CREATE TABLE docattributes
      docid NUMBER,
      docdate DATE,
      statusid NUMBER
    TABLESPACE USERS
    ALTER TABLE docattributes ADD
      docattributes XMLTYPE
    XMLTYPE COLUMN docattributes
    XMLSCHEMA "cymfony_docattribs.xsd"
    ELEMENT "docattribs"
    VARRAY docattributes."XMLDATA"."BRANDGROUPS"."BG"
           STORE AS TABLE xml_brandgroups
             (CONSTRAINT pk_xml_brandgroups PRIMARY KEY (NESTED_TABLE_ID, SYS_NC_ARRAY_INDEX$))
              ORGANIZATION INDEX OVERFLOW
    VARRAY docattributes."XMLDATA"."MESSAGEGROUPS"."MG"
           STORE AS TABLE xml_messagegroups
             (CONSTRAINT pk_xml_messagegroups PRIMARY KEY (NESTED_TABLE_ID, SYS_NC_ARRAY_INDEX$))
             ORGANIZATION INDEX OVERFLOW
             VARRAY "BG"
             STORE AS TABLE XML_BRANDGROUP
               (CONSTRAINT pk_xml_brandgroup PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
               ORGANIZATION INDEX OVERFLOW
    VARRAY docattributes."XMLDATA"."SOURCES"."SOURCE"
           STORE AS TABLE xml_sources
             (CONSTRAINT pk_xml_sources PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
             ORGANIZATION INDEX OVERFLOW
    VARRAY docattributes."XMLDATA"."CONTENTGROUPS"."PCG"
           STORE AS TABLE xml_contentgroups
             (CONSTRAINT pk_xml_contentgroups PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
              ORGANIZATION INDEX OVERFLOW
              VARRAY "CG"
              STORE AS TABLE xml_contentgroup
                (CONSTRAINT pk_xml_contentgroup PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
                ORGANIZATION INDEX OVERFLOW
    VARRAY docattributes."XMLDATA"."AUTHORS"."AUTHOR"
           STORE AS TABLE xml_authors
             (CONSTRAINT pk_xml_authors PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
             ORGANIZATION INDEX OVERFLOW
    VARRAY docattributes."XMLDATA"."THEMES"."THEME"
           STORE AS TABLE xml_themes
             (CONSTRAINT pk_xml_themes PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
             ORGANIZATION INDEX OVERFLOW
    VARRAY docattributes."XMLDATA"."ENTITIES"."ANALYSTS"
           STORE AS TABLE xml_analysts
             (constraint pk_xml_analysts PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
             ORGANIZATION INDEX OVERFLOW
    VARRAY docattributes."XMLDATA"."ENTITIES"."ANALYST_FIRMS"
           STORE AS TABLE xml_analystfirms
             (constraint pk_xml_analystfirms PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
             ORGANIZATION INDEX OVERFLOW
    VARRAY docattributes."XMLDATA"."ENTITIES"."BRANDS"
           STORE AS TABLE xml_brands
             (constraint pk_xml_brands PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX))
             ORGANIZATION INDEX
    VARRAY docattributes."XMLDATA"."ENTITIES"."COMPANIES"
           STORE AS table xml_companies
             (constraint pk_xml_companies primary key (NESTED_TABLE_ID, ARRAY_INDEX))
             ORGANIZATION INDEX
    VARRAY docattributes."XMLDATA"."ENTITIES"."LOCATIONS"
           STORE AS table xml_locations
             (constraint pk_xml_locations primary key (NESTED_TABLE_ID, ARRAY_INDEX))
             ORGANIZATION INDEX
    VARRAY docattributes."XMLDATA"."ENTITIES"."MESSAGES"
           STORE AS table xml_messages
             (constraint pk_xml_messages primary key (NESTED_TABLE_ID, ARRAY_INDEX))
             ORGANIZATION INDEX
    VARRAY docattributes."XMLDATA"."ENTITIES"."PEOPLE"
           STORE AS table xml_people
             (constraint pk_xml_people primary key (NESTED_TABLE_ID, ARRAY_INDEX))
             ORGANIZATION INDEX
    /

  • Unable to import tables through ODBC in obiee 11g

    Hi all,
    In obiee 11g,
    OBIEE 11g is successfully installed but when i am trying to import the tables in RPD through odbc then it is giving a problem.
    I have tried using the OCI and it is working fine but can anyone tell me why it is not happening through odbc.
    created the dSN for it and it is working fine.
    any help would be appreciated.
    thanks in advance.

    Hi,
    You need do full installation of obiee11g.
    Go through this..May help you.Not getting connected to a data source in obiee 11g
    How to install 11g ODBC client drivers to access OBIEE 11g server?
    Regards,
    Srikanth

  • Unable to create Table Bean advanced search criteria

    Hi,
    I want to create new search criteria for advanced search region. The reason being new search criteria i tried to add by personalization it didnt worked may be guessing construction mode is autocustomization mode. Somewhere i have seen if resultsbased it will work. Can someone confirm on this??
    I'm trying to create new bean for search criteria at the specified location under <oa:table akRegionCode="EAM_AD_ASSET_RESULTS_TABLE" but unable to do so:
    Here is the part of the page
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <!-- dbdrv: exec java oracle/jrad/tools/xml/importer XMLImporter.class java &phase=dat+24 checkfile(120.15.12000000.2=120.18)(115.26=120.1):~PROD:~PATH:~FILE &fullpath_~PROD_~PATH_~FILE -username &un_apps -password &pw_apps -dbconnection &jdbc_db_addr -userId "1" -rootPackage /oracle/apps/~PROD -rootdir &fullpath_~PROD_mds_directory -->
    <page xmlns="http://xmlns.oracle.com/jrad" xmlns:ui="http://xmlns.oracle.com/uix/ui" xmlns:oa="http://xmlns.oracle.com/oa" xmlns:user="http://xmlns.oracle.com/jrad/user" file-version="$Header: EAM_AD_ADVSEARCH_PAGE.xml 120.18.12010000.3 2009/02/11 09:21:55 smrsharm ship $" version="10.1.3_1147" xml:lang="en-US" xmlns:jrad="http://xmlns.oracle.com/jrad">
    <content>
    <oa:pageLayout id="EAM_AD_ADVSEARCH_PAGE" akRegionCode="EAM_AD_ADVSEARCH_PAGE" regionName="Asset Search" amDefName="oracle.apps.eam.asset.server.AdvSearchAM" controllerClass="oracle.apps.eam.asset.webui.AdvSearchPageCO" appMenu="EAM_MAIN_SS" amStateRequired="false" helpTarget="EAM_AD_ADVSEARCH_PAGE">
    <ui:corporateBranding>
    <oa:image id="corporateBranding" source="/OA_MEDIA/FNDSSCORP.gif" shortDesc="Oracle"/>
    </ui:corporateBranding>
    <ui:productBranding>
    <oa:image id="productBranding" source="/OA_MEDIA/EAMBRAND.gif" shortDesc="Asset Management"/>
    </ui:productBranding>
    <ui:contents>
    <oa:query id="EamAssetQueryRegion" mode="autoCustomizationCriteria" dispSimple="true" dispCustomized="true" dispAdvanced="true" defaultPanel="customized" controllerClass="oracle.apps.eam.asset.webui.AdvSearchSearchCO" simpleSearchPanelButtonLabel="Simple Search" viewConfPanelButtonLabel="Views" advSearchPanelButtonLabel="Advanced Search" customizePanelTitle="Views" saveSearchButtonText="Save Search">
    <oa:simpleSearchPanel>
    <oa:defaultSingleColumn id="AssetSimpleSearchRegion" headerDisabled="false" text="Simple Search">
    <ui:contents>
    <oa:messageTextInput readOnly="false" columns="25" prompt="Asset Number" rows="1" secret="false" maximumLength="30" shortDesc="Asset Serial Number" id="EamAssetNumber" promptTranslationExpansion="100%" user:akAttributeCode="EAM_ASSET_NUMBER" user:akAttributeApplicationId="426" required="no" selectiveSearchCriteria="true"/>
    <oa:messageLovInput externalListOfValues="/oracle/apps/eam/lov/webui/EAM_ASSET_CATEGORY_LOV" readOnly="false" columns="25" prompt="Category" rows="1" secret="false" id="EamAssetCategory" promptTranslationExpansion="100%" user:akAttributeCode="EAM_ASSET_CATEGORY" user:akAttributeApplicationId="426" selectiveSearchCriteria="true" shortDesc="Category">
    <lovMappings>
    <lovMap criteriaFrom="EamAssetCategory" lovItem="EamAssetCategory" id="lovMap1"/>
    <lovMap resultTo="EamAssetCategory" lovItem="EamAssetCategory" id="lovMap2"/>
    <lovMap id="lovMap39" lovItem="EamAssetCategoryId" resultTo="EamAssetCategoryId"/>
    </lovMappings>
    </oa:messageLovInput>
    <oa:messageChoice readOnly="false" prompt="Asset Route" pickListViewDef="oracle.apps.eam.asset.server.PicklistYesNoVO" pickListDispAttr="Meaning" pickListValAttr="LookupCode" id="EamNetworkAsset" promptTranslationExpansion="100%" user:akAttributeCode="EAM_NETWORK_ASSET" user:akAttributeApplicationId="426" shortDesc="Asset Route" allowBlankValue="false" defaultValue="N"/>
    <oa:formValue id="EamAssetCategoryId" dataType="NUMBER"/>
    </ui:contents>
    </oa:defaultSingleColumn>
    </oa:simpleSearchPanel>
    <oa:simpleSearchMappings>
    <oa:queryCriteriaMap id="AssetNumberMapSS" criteriaItem="EamAssetNumber" resultsItem="AssetNumber1"/>
    <oa:queryCriteriaMap id="AssetCategoryMapSS" criteriaItem="EamAssetCategory" resultsItem="AssetCategory1"/>
    <oa:queryCriteriaMap id="AssetRouteMapSS" criteriaItem="EamNetworkAsset" resultsItem="AssetRoute"/>
    <oa:queryCriteriaMap id="AssetCategoryIdMapSS" criteriaItem="EamAssetCategoryId" resultsItem="AssetCategoryId"/>
    </oa:simpleSearchMappings>
    <ui:contents>
    <oa:tableLayout akRegionCode="EAM_AD_ADVSEARCH_RESULTS" regionName="Results" controllerClass="oracle.apps.eam.asset.webui.AssetResultsCO" addChildren="true" id="EamResultsNr" user:akAttributeCode="EAM_RESULTS_NR" user:akAttributeApplicationId="426">
    <ui:contents>
    <oa:tableLayout id="ResultsTableLayout2" width="100%" rendered="true">
    <ui:contents>
    <oa:rowLayout id="RowLayoutRegion2">
    <ui:contents>
    <oa:cellFormat id="CellFormatRegion2">
    <ui:contents>
    <oa:switcher id="MappedTableRegion">
    <ui:case name="ShowTable" id="ShowTable">
    <oa:table akRegionCode="EAM_AD_ASSET_RESULTS_TABLE" regionName="Asset Search" blockSize="25" standalone="true" height="1" id="MappedTable" user:akAttributeCode="EAM_RESULTS_NR" user:akAttributeApplicationId="426" width="100%" rendered="true" userCustomizable="true" shortDesc="Mapped Table">
    <ui:contents>
    <oa:messageStyledText id="AssetNumber1" viewName="AdvSearchVO" viewAttr="InstanceNumber" shortDesc="Serial Number" prompt="Asset Number"/>
    <oa:messageStyledText id="AssetDescription1" viewName="AdvSearchVO" viewAttr="DescriptiveText" shortDesc="Asset Description" prompt="Asset Description"/>
    <oa:messageStyledText id="AssetCategory1" viewName="AdvSearchVO" viewAttr="AssetCategory" shortDesc="Asset Category" prompt="Asset Category"/>
    I tried several ways :
    OAPageLayoutBean pageLayout = oapagecontext.getPageLayoutBean();
    OAQueryBean query=(OAQueryBean)pageLayout.findChildRecursive("EamAssetQueryRegion");
    OATableBean oawebbeantb = (OATableBean)query.findChildRecursive("EAM_AD_ASSET_RESULTS_TABLE");
    OAMessageLovInputBean ccidbean = (OAMessageLovInputBean)oapagecontext.getWebBeanFactory().createWebBean(oapagecontext, OAWebBeanConstants.LOV_TEXT, null, "xxValidation");
    if (oawebbeantb==null){                    
    throw new OAException("Error this is a test!", OAException.ERROR);
    oawebbeantb.addIndexedChild(ccidbean); --here it getting null
    OR
    OATableBean oawebbeantb = (OATableBean)oawebbean.findIndexedChildRecursive("EAM_AD_ASSET_RESULTS_TABLE");
    OAMessageLovInputBean ccidbean = (OAMessageLovInputBean)oapagecontext.getWebBeanFactory().createWebBean(oapagecontext, OAWebBeanConstants.LOV_TEXT, null, "xxValidation");
    oawebbeantb.addIndexedChild(ccidbean); --here it getting null
    Please someone help me on this..
    thanks,
    mallik

    1) Search panel textinput item should be search allowed true and prompt is need. no other property need to set.
    HERE YOU DONT WANT TO SET VIEW INSTANCE AND ATTRIBUTE SINCE WE ARE DOING FOR EXTENDED VO ITEM AS SEARCH ITEM.THAT'S OK. I TRIED WITH YOUR COMMENTS FOR TEXTINPUT ITEM TOO.
    Comment--
    textinput item created is a simple item without any VO instance , etc.
    There is no question of extended VO item, its a simple textinput item.
    value in this field is going to compare with the values in result table.
    2) Search mapping, only search item id and result item id need to set.
    I'M DOING HERE MAPPING FOR ABOVE SEARCH ITEM ID AND RESULT ITEM ID
    Comment-- Perfect !!
    3) Item created in table , after you extended Vo, view instance and attribute needs to set.
    WHERE DO YOU WANT THIS TO BE SET?? CAN YOU ELABORATE THIS MORE PLEASE.MAY BE I'M MISSING HERE SOMETHING.
    Comment-- you must have created message styled text item in adv table bean, assign VO instance and attribute to it, right?
    4) One more thing Parag, do i need to include where clause for extended VO item in view object??
    for ex:
    where attribute(this is extended vo item)=:4
    Comment-- No need. this will be handled by point#2 above, i.e. criteria and result items.
    --Parag Narkhede                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Unable to create table in Oracle EX 11g

    I am new user without any background to Db or SQL. Recently I have installed Orale EX 11g and was trying to create new tables using script menu. Please guide me further as I am unable to do it. Error is Invalid Identifier.

    I have installed Orale EX 11g and was trying to create new tables using script menu.
    Which "script menu" ? How can we help you if we don't know what you're doing exactly ?
    And please post the exact Oracle error code you get ("Invalid Identifier" is too generic).

  • Unable to create table maintance generator

    Hi all,
    I created  z table and trying to generate table maintance but it is giving below error.
    The maintenance object description has no transportable package
    Message no. SV415
    Diagnosis
    You want to generate the maintenance modules for object ZFI10. The correction system is not active for the package $TMP, to which the corresponding maintenance object description is assigned. The function group assigned for the generation has a package which can be corrected.
    System response
    The generation is not performed.
    Procedure
    Either assign the maintenance object description for object ZFI10 to a correctable package, or assign the table for the generation of the maintenance module to a function group with non-correctable packages.
    please suggest me how to assign correctable package.
    Regards,
    Ramprasad

    go to se11 utilities
    ->table Maintaince Genrater
    give your function Group name or make new Function group
    give maintaince screen one or two 
    after that click on create
    the check it on table contents and create Entries .
    or u can check in se80
    gice your function group  name and check the screen or u can change heding of the field title from here

  • Unable to Create Table entries

    Hi All,
    I have create a table, when I wanted to create data records from the maintenance screen under Utilities --> Table Contents --> I noticed Create Entries is disabled why is it so ... how can make it enable it ?
    Please advise
    TQ
    Nathan

    display maintenance should be in allowed  mode .. in ur tables delivery and maintenance ..
    delivery /maintenace..
    Data Browser/Table View       Display / mainternace allowed " <----  chk this
    and make sure u have maintained table maintenance for the table

Maybe you are looking for

  • Confused about color profile support in PNG

    NOTE -- you have to hover over the image to see the real images.  The images embedded in the webpage have their profiles stripped -- just like photoshop does!  Interesting. I ask a similar question on this before, but couldn't give a satisfactory dem

  • Import eps created in inkscape (cairo)

    Hello, I have an eps created in Inkscape. I have the following issue: Illustrator opens it without an error, but it rasterizes the gradient. It is a non transparent gradient, from red to blue, a bit oblique. Weirdly, the eps is opened back fine in In

  • After software update I cannot open outlook express

    after software update I cannot open outlook express

  • LESS file entries isnt reflecting on UI5 control in widget.

    Hi , I have created a widget out of a SAP UI5 application. Basically its calling a label with a text. I have updated the LESS file with the updated parameter values as: @SiteFontColor: #FF0000; @SiteFontFamily: Comic Sans MS, cursive, sans-serif; 1)T

  • Working with photography

    Hi All, I often work with images in Illustrator when creating adverts, I know it's not the best programme for this task but I love it and use it for almost everything these days. When working with CMYK document I import a beautiful bright image do th