DBMS_METADATA Dependent Object name filters

Hello "Every One",
I'm having trouble using the BASE_OBJECT_NAME filter to extract metadata for dependent objects.
Never mind, I was having trouble doing this. However, I still have a question. Why am can I extract metadata for dependent objects using a filter combination of SCHEMA and BASE_OBEJCT_NAME_EXPR, or BASE_OBJECT_SCHEMA and BASE_OBJECT_NAME, but not SCHEMA and BASE_OBJECT_NAME?
I've included an example below which attempts to extract constraints on a specific table using the filters mentioned above.
SQL> DECLARE
  2    h NUMBER;
  3    th NUMBER;
  4    ddl CLOB;
  5  BEGIN
  6    FOR i IN 1..105 LOOP
  7      DBMS_OUTPUT.PUT('-');
  8    END LOOP;
  9    DBMS_OUTPUT.PUT_LINE('-');
10
11    h := DBMS_METADATA.OPEN('CONSTRAINT');
12    DBMS_METADATA.SET_FILTER(h, 'SCHEMA', 'LAB315JUNE06');
13    DBMS_METADATA.SET_FILTER(h, 'BASE_OBJECT_NAME', 'XCASE');
14    th := DBMS_METADATA.ADD_TRANSFORM(h, 'DDL');
15    DBMS_METADATA.SET_TRANSFORM_PARAM(th, 'SEGMENT_ATTRIBUTES', false);
16    LOOP
17      ddl := DBMS_METADATA.FETCH_CLOB(h);
18      EXIT WHEN ddl IS NULL;
19      DBMS_OUTPUT.PUT_LINE(ddl);
20    END LOOP;
21    DBMS_METADATA.CLOSE(h);
22
23    FOR i IN 1..105 LOOP
24      DBMS_OUTPUT.PUT('-');
25    END LOOP;
26    DBMS_OUTPUT.PUT_LINE('-');
27
28    h := DBMS_METADATA.OPEN('CONSTRAINT');
29    DBMS_METADATA.SET_FILTER(h, 'SCHEMA', 'LAB315JUNE06');
30    DBMS_METADATA.SET_FILTER(h, 'BASE_OBJECT_NAME_EXPR', 'IN (''XCASE'')');
31    th := DBMS_METADATA.ADD_TRANSFORM(h, 'DDL');
32    DBMS_METADATA.SET_TRANSFORM_PARAM(th, 'SEGMENT_ATTRIBUTES', false);
33    LOOP
34      ddl := DBMS_METADATA.FETCH_CLOB(h);
35      EXIT WHEN ddl IS NULL;
36      DBMS_OUTPUT.PUT_LINE(ddl);
37    END LOOP;
38    DBMS_METADATA.CLOSE(h);
39
40    FOR i IN 1..105 LOOP
41      DBMS_OUTPUT.PUT('-');
42    END LOOP;
43    DBMS_OUTPUT.PUT_LINE('-');
44
45    h := DBMS_METADATA.OPEN('CONSTRAINT');
46    DBMS_METADATA.SET_FILTER(h, 'BASE_OBJECT_SCHEMA', 'LAB315JUNE06');
47    DBMS_METADATA.SET_FILTER(h, 'BASE_OBJECT_NAME', 'XCASE');
48    th := DBMS_METADATA.ADD_TRANSFORM(h, 'DDL');
49    DBMS_METADATA.SET_TRANSFORM_PARAM(th, 'SEGMENT_ATTRIBUTES', false);
50    LOOP
51      ddl := DBMS_METADATA.FETCH_CLOB(h);
52      EXIT WHEN ddl IS NULL;
53      DBMS_OUTPUT.PUT_LINE(ddl);
54    END LOOP;
55    DBMS_METADATA.CLOSE(h);
56
57    FOR i IN 1..105 LOOP
58      DBMS_OUTPUT.PUT('-');
59    END LOOP;
60    DBMS_OUTPUT.PUT_LINE('-');
61  END;
62  /
  ALTER TABLE "LAB315JUNE06"."XCASE" ADD CONSTRAINT "XCASE_PK" PRIMARY KEY ("USPECID", "REL_INDEX") ENABLE
  ALTER TABLE "LAB315JUNE06"."XCASE" ADD CONSTRAINT "XCASE_PK" PRIMARY KEY ("USPECID", "REL_INDEX") ENABLE
PL/SQL procedure successfully completed.
SQL>Message was edited by:
Will Krause

If you ask questions related to dbms_metadata, it would add value if you provide your database version ( because there are a lot differences even between patchsets).
If you put dbms_metadata.get_query() calls in your block, you would see, which calls are made to the database. I did it ( as user sys and on my development schema/tables, so in your case the names may vary, but the point remains) - this is what i got for 1st rsp. 2nd call:
SELECT /*+rule*/ SYS_XMLGEN(VALUE(KU$), XMLFORMAT.createFormat2('CONSTRAINT_T', '7')), 0
FROM SYS.KU$_CONSTRAINT_VIEW KU$ WHERE NOT BITAND(KU$.BASE_OBJ.FLAGS,128)!=0
AND  KU$.OWNER_NAME=:SCHEMA1 AND   KU$.BASE_OBJ.NAME='CUSTOMER' AND   KU$.BASE_OBJ.OWNER_NAME='SYS';
SELECT /*+rule*/ SYS_XMLGEN(VALUE(KU$), XMLFORMAT.createFormat2('CONSTRAINT_T', '7')), 0
FROM SYS.KU$_CONSTRAINT_VIEW KU$ WHERE NOT BITAND(KU$.BASE_OBJ.FLAGS,128)!=0
AND  KU$.OWNER_NAME=:SCHEMA1 AND   KU$.BASE_OBJ.NAME IN ('CUSTOMER');
----------------------------------------------------------------------------------------------------------You see, in the first call a condition is added ( ku$.base_obj.owner_name='SYS' - block was executed under sys) , which is most likely wrong, that's why nothing is returned - so, probably this is a bug (at least, this condition don't make sense for me) and you may wish to fill an SR by Oracle Support.
Best regards
Maxim

Similar Messages

  • What is the best practice to replicate the change of an object name in HANA AT/AN view where there are dependent views in it?

    Dear All HANA Studio Experts,
    I'm using SAP HANA Studio Version: 1.0.68 in our current landscape and looking for a expert and intelligent solution for a problem that we have encountered recently.
    We have created multiple AT views, AN views and created CA views on top of these AN views to cater different LOB related to our organization. We have also designed BO universe on top of the CA views from HANA and finally created webi reports out of these universes.
    In a particular scenario, we have one AT view which is been used by 10 different AN views.
    Now we had 3 Requirements like below:
    1. To add a new field in this AT view,
    2. To update an existing field in this AT view and
    3. To remove a field from this AT view which is not required anymore.
    Problems Encountered:
    Req 1. When we added a new field (e.g. XX_ADD) in the AT view and activate it, its throwing warning that there are dependent objects on this AT view. However no error thrown and it leads to re-work to check if this new field is available in all those dependent views and re-deployed those all.
    Question: How to ensure if this addition of object will not impact the rest of the dependent views?
    Req 2. When we updated an existing field (e.g. XX_UPDATE_NEW) in the AT view and activate it, its throwing warning that there are dependent objects on this AT view. However the BO reports built on top of these different dependent AN views became inoperative.
    Question: How to ensure if we need to update the name of an existing object it will not impact the rest of the dependent AN views?
    Req 3. Finally we have removed one object from the existing fields as it is not required. Again we faced warnings that there are dependent AN views on this AT view.
    Question: How to ensure if we need to delete an existing object, it will automatically reflect in all dependent AN views?
    Please suggest, if it is a good practice to create separate AT,AN and CA views for each of the LOB's and avoiding any dependent views (hence gradually the total no. of logical objects will be increase) or to reuse the AT/AN views whenever possible and in case of any updation/deletion we need to do a huge rework to check and redeploy the dependent objects again and again?
    Thanks for reading this detailed explanation and please let me know in case you need any other inputs....don't hesitate to share your expert thoughts on this.

    Hi Avishek,
    Are you using Development or Modeller Prespective?
    Avishek Chakraborty wrote:
    Now we had 3 Requirements like below:
    1. To add a new field in this AT view,
    2. To update an existing field in this AT view and
    3. To remove a field from this AT view which is not required anymore.
    1) Adding a new Field in the AT View and after activating the view. Then you have to Refresh/Check out the dependent views to see if it is reflecting.
    2)  We cannot update the existing field in the AT view i.e like name change if it is being already used in joins in any of the dependent views. It will not allow you to activate
    3) To remove the field which is not being used any where, we can make the changes in AT View and Refresh/Check out to see if the dependent views are reflecting the change
    Regards,
    Krishna Tangudu

  • Find object Names in a file and print all those objects Names

    Hi All,
    I am new to this forum.
    I want to know how to read only objects names in txt file. In the text file i have sql queries, package names, Function Name. I need to read all the objects and display out put. The file contains around 20000 Lines.
    Please suggest me.
    Thanks & Regards
    Suresh.

    Gurram wrote:
    want to read .rex File. The file contains combination of SQL code with table Names, Packages,Functions,There are three basic ways to read an external file.
    You can use UTL_FILE and use standard/basic file I/O calls like fread() and fwrite() - common amongst most (if not all) programming languages.
    You can define an external table for the file, and SQL*Load the contents of the file dynamically via a SQL SELECT statement.
    You can load the file into a CLOB using DBMS_LOB and then process it - quite useful if the text file is XML as the XMLTYPE supports parsing a a CLOB containing XML.
    I want to pick Each object name put in a separate file line by line.That in turn will need to use UTL_FILE to create an external file.
    Keep in mind though that your in a database environment with PL/SQL. The very best place for data is inside the database in SQL tables. Not outside as external files. Thus you need to ask yourself whether dealing this way with external files is the best solution, and a robust and scalable one.
    Granted, many times from the database side we need to deal with external files. The optimal method usually is to load that file's data into a database table as structured data - data that can be accessed via SQL and sorted, filtered, aggregated and analysed.
    To provide a "file" as output - this should ideally be done directly from structured data (SQL tables). And can be done using HTTP (via a web enabled PL/SQL procedure that supplies the file content as a http Mime stream), using FTP (via <i>UTL_TCP</i>) or as a CLOB via a PL/SQL call interface. Using UTL_FILE is not necessarily the only option.

  • Help needed in Identifying dependent objects

    Hi all,
    Basically I need to identify the object related to Integration which is not there in one of our software product under development as compare to other(existing) already developed so that we can apply them in the product being developed.
    I need to find these below from few of the packages given to me
    &#61550;     dependent packages/functions to read and update data
    1)     Tables
    2)     Packages
    3)     Triggers
    4)     Views
    5) Jobs
    I would request you to help me in carrying out this faster, I have plsql Developer tool, how to start with so that i m not mess up with and complete it faster.
    Regards,
    Asif.

    Thankx Pierre Forstmann.
    Dear All,
    Can any one help me in identifying all dependent objects for one object.
    Will this works for me I found from the above link provided,
    as for the time being I do not have the dba priviliges...
    If I am able to get the dba prviliges will this code works for me to get the
    required information....
    Regards,
    AAK.
    SQL>
    create or replace type myScalarType as object
    ( lvl number,
    rname varchar2(30),
    rowner varchar2(30),
    rtype varchar2(30)
    Type created.
    SQL> create or replace type myTableType as table of
    myScalarType
    Type created.
    SQL>
    SQL> create or replace
    function depends( p_name in varchar2,
    p_type in varchar2,
    p_owner in varchar2 default USER,
    p_lvl in number default 1 ) return myTableType
    AUTHID CURRENT_USER
    as
    l_data myTableType := myTableType();
    procedure recurse( p_name in varchar2,
    p_type in varchar2,
    p_owner in varchar2,
    p_lvl in number )
    is
    begin
    if ( l_data.count > 1000 )
    then
    raise_application_error( -20001, 'probable connect by loop,
    aborting' );
    end if;
    for x in ( select /*+ first_rows */ referenced_name,
    referenced_owner,
    referenced_type
    from dba_dependencies
    where owner = p_owner
    and type = p_type
    and name = p_name )
    loop
    l_data.extend;
    l_data(l_data.count) :=
    myScalarType( p_lvl, x.referenced_name,
    x.referenced_owner, x.referenced_type );
    recurse( x.referenced_name, x.referenced_type,
    x.referenced_owner, p_lvl+1);
    end loop;
    end;
    begin
    l_data.extend;
    l_data(l_data.count) := myScalarType( 1, p_name, p_owner, p_type );
    recurse( p_name, p_type, p_owner, 2 );
    return l_data;
    end;
    Function created.
    SQL>
    SQL> set timing on
    SQL>
    SQL> select * from table(
    cast(depends('DBA_VIEWS','VIEW','SYS') as myTableType ) );
    ---select * from table(cast('USER_VIEWS') as myTableType ) );
    LVL     RNAME          ROWNER          RTYPE
    1     DBA_VIEWS     SYS               VIEW
    2     TYPED_VIEW$ SYS               TABLE
    2     USER$          SYS               TABLE
    2     VIEW$          SYS               TABLE
    2     OBJ$          SYS               TABLE
    2     SUPEROBJ$ SYS               TABLE
    2     STANDARD SYS               PACKAGE
    7 rows selected.
    Elapsed: 00:00:00.42
    SQL>
    SQL>
    SQL> drop table t;
    Table dropped.
    Elapsed: 00:00:00.13
    SQL> create table t ( x int );
    Table created.
    Elapsed: 00:00:00.03
    SQL> create or replace view v1 as select * from t;
    View created.
    Elapsed: 00:00:00.06
    SQL> create or replace view v2 as select t.x xx, v1.x yy from
    v1, t;
    View created.
    Elapsed: 00:00:00.06
    SQL> create or replace view v3 as select v2.*, t.x xxx, v1.x
    yyy from v2, v1, t;
    View created.
    Elapsed: 00:00:00.07
    SQL>
    SQL>
    SQL> select lpad(' ',lvl*2,' ') || rowner || '.' || rname ||
    '(' || rtype || ')' hierarchy
    2 from table( cast(depends('V3','VIEW') as myTableType ) );
    HIERARCHY
    OPS$TKYTE.V3(VIEW)
    OPS$TKYTE.T(TABLE)
    OPS$TKYTE.V1(VIEW)
    OPS$TKYTE.T(TABLE)
    OPS$TKYTE.V2(VIEW)
    OPS$TKYTE.T(TABLE)
    OPS$TKYTE.V1(VIEW)
    OPS$TKYTE.T(TABLE)
    8 rows selected.
    Message was edited by:
    460425

  • Need to find the dependent object details for an object.

    Hi,
    Is there any query to find the dependent object details for any object. Like if mview is built on a table, then i should be able to find the table name with out checking code of the mview. Thanks in-advance for your support. similar way for view and functions or procedures etc...
    Regards
    DBA.

    Hi all,
    Thanks a lot for your inputs. seems i have not given full details in my post. I need to have a SQL Query to find the dependent object details not DDL.
    if i give a metriealized view name, i should get the base table names directly not DDLs...
    if i give index name i should get its corresponding table name(off course i got this already)...
    if i give a function name, i should get all the tables which are being in the function...etc...
    i am looking for a script which will cover all the aspects.....i hope i have given now enough information for this....
    Regards
    DBA.

  • SQL Query to return all the dependent objects

    Hi,
    I have a question.
    Suppose I am creating a table with a join on 10 other tables, views etc..
    And there are nested sub-queries in the CREATE statement.
    How can I get the list of all the dependent objects for that table without counting them manually.
    I know, we can right click the table/view name and check the dependent objects in Toad or SQL Developer.
    But, I want to know the SQL query for getting that information.
    Thanks
    Rajiv

    well there is no way oracle would know what query was used when the table was created.
    But here is one intuitive trick:
    Step 1: Create a procedure that will have a cursor declared on the query you want to know what tables/views are used.
    Step 2: Check USER_DEPENDENCIES to see what objects this procedure depends on
    Let say you want to create TEST_A table using the following statement:
    create table test_a
    as
    select *
    from scott.emp,
         scott.dept;
      1  create or replace procedure test_temp
      2  as
      3  cursor test_cur is
      4             select *
      5             from scott.emp,
      6                  scott.dept;
      7  begin
      8     null;
      9* end;
    SQL> /
    Procedure created.
    SQL> show errors
    No errors.
    SQL> desc user_dependencies
    Name                                      Null?    Type
    NAME                                      NOT NULL VARCHAR2(30)
    TYPE                                               VARCHAR2(17)
    REFERENCED_OWNER                                   VARCHAR2(30)
    REFERENCED_NAME                                    VARCHAR2(64)
    REFERENCED_TYPE                                    VARCHAR2(17)
    REFERENCED_LINK_NAME                               VARCHAR2(128)
    SCHEMAID                                           NUMBER
    DEPENDENCY_TYPE                                    VARCHAR2(4)
    SQL> select referenced_owner, referenced_name, referenced_type
      2  from user_dependencies
      3  where name='TEST_TEMP' and referenced_owner<>'SYS';
    REFERENCED_OWNER
    REFERENCED_NAME
    REFERENCED_TYPE
    SCOTT
    DEPT
    TABLE
    SCOTT
    EMP
    TABLE
    SQL>
    SQL> drop procedure test_temp;
    Procedure dropped.
    SQL>Message was edited by:
    tekicora
    Message was edited by:
    tekicora

  • Invalid object name 'dbo.uf_GetRateSrcMember'

    Hello Friends,
    We recently applied the  SP3 (CPMBPC03P_1-20002499) for BPC 5.1. We are in Single Server environment. Our BPC 5.1 build was 5.0.486 which was required to install the SP3. After the installation it is 5.0.502
    We are getting the error below when we are trying to change the appliction sets from from the main page.
    Any help to resolve the issue is appreciated
    Server Error in '/OSoft' Application.  Invalid object name 'dbo.uf_GetRateSrcMember'.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Exception: Invalid object name 'dbo.uf_GetRateSrcMember'.
    Source Error:
    The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:
    Add a "Debug=true" directive at the top of the file that generated the error. Example:
      <%@ Page Language="C#" Debug="true" %>
    or:
    Add the following section to the configuration file of your application:
    <configuration>
       <system.web>
           <compilation debug="true"/>
       </system.web>
    </configuration>
    Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.
    Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.
    Stack Trace:
    [Exception: Invalid object name 'dbo.uf_GetRateSrcMember'.]
       Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack) +905
       OSoft.Consumers.ZFP.WebBase.PageBase.GetCurrentView() +518
       OSoft.Consumers.ZFP.WebBase.PageBase.get_CurrentView(String strDimension) +43
       ASP.Landing_aspx.__Render__control1(HtmlTextWriter __output, Control parameterContainer) +95
       System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27
       System.Web.UI.Control.Render(HtmlTextWriter writer) +7
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
       System.Web.UI.Page.ProcessRequestMain() +1926
    Really looking forward for answers.
    I would really really really appreciate any help
    Thanks

    Kaji,
    I had the same problem. Here is the solution:
    Dear customer,
    This issue looks similar to a previously reported bug.
    In general there is the possibility that some service/process
    remained in a bad status and this can be fixed by restarting the server
    But could you please also check, whether this description fits
    to your scenario:
    This issue occurred because when there are no secured dimensions
    in an appset,
    The modified application process remove the user function
    which is used for checking secured dimension.
    In case there is no secured dimension in the appset the
    problem occurres.
    This issue looks similar to a previously reported bug.
    In general there is the possibility that some service/process
    remained in a bad status and this can be fixed by restarting the server
    But could you please also check, whether this description fits
    to your scenario:
    This issue occurred because when there are no secured dimensions
    in an appset,
    The modified application process remove the user function
    which is used for checking secured dimension.
    In case there is no secured dimension in the appset the
    problem occurres.
    When modify application is run , the user function has been removed.
    A workaround is this:
    if you make Entity and RateSrc as secured dimension,
    the user function will be made in the appset again.
    Then you can change the user function as other name in database
    by renaming. After finished the rename,
    you can change the dimension as unsecured dimension like current.
    Then, you have to replace the user function name
    as original function name.
    Because the user function name is dependent on dimension name.
    If you can#t connect BPC Admin due to web page error,
    you have to execute the EverestAdmin.exe file
    in "C:\Program Files\BPC"
    Hope it solves the prob...
    Nic

  • Transports Object Name definition

    I have some old transports I'm going through trying to figure out what is in them. There are several that show "Elements of query builder" with a long object name. I tried searching RSZCOMPDIR and not all of these are queries. Is there an easier way to look up exactly what objects are in a particular transport?

    Hi Angie,
    There are individual query elements that collectively form a query. This query element can be a RKF, CKF, Variable, structure or Filters. Looking at just the technical name I dont think we can figure it out what is that element, But if you know the name of the query then you can find out all the elements of this query in RSA1 -> Transport Connection. Drag the query to right hand side and Grouping by Only necessary objects. Here you will get all the query elements of this query.
    Regards,
    Pratap Sone

  • Objects name case sensitive

    Hi Dear;
    to call any object in SDK, i have to write the object name(index) as case sensitive.
    if there any way to call these objects without case sensitive?
    Ex: if i have a UDF named U_BPDrv and i try to get it as U_BPDRV i get an error.
    how can i resolve this error?
    thank you Dear;

    Hi Lita,
    i tried it now. UDF field is named as u_Test.
    When I call SELECT ordr.u_Test so the result is the same as when I call SELECT ordr.U_TESt, so here is it not case sensitive. When I try get result from recordset as rs_ordr.Fields.Item("U_TeSt").Value() it give no error. When I bound result from recordset to matrix as
    column.DataBind.SetBound(True, "@KZ", "u_TEst") - no error as well.
    Everything was tested with no binary collation on db.
    So I`m persuaded, that in this cases it depends on sql server and not on SDK.
    Petr

  • Client dependant objects in ABAP or SAP

    5.What are client dependant objects in ABAP or SAP?

    Hi Venu,
    Sap Scripts are Client dependent
    How do we debug sapscript?
    First we need to put Break point in Print program where ever you want to stop the execution.
    After in SE71 give your form name and go to Utilities-->Active De-bugger.
    Then go to your transcation like VF03(for Invoice or Credit memo) etc to see the print preview or print the form execute it.
    When you execute it the the form Debugging will get activated and you can see your Form execution step by step.
    Thanks,
    Satya
    Edited by: SATYA KUMAR AKKARABOYANA on May 30, 2008 12:45 PM

  • How to transport source system dependent objects

    Hi everybody,
    I've read several questions about how to transport source dependent objects between systems and I still don't get whole picture
    say I have BWDEV attached to R3DEV and
               BWQA attached to R3QA
    and I want to transport transfer rules from BWDEV to BWQA
    1) should I create, by hand, the source system R3QA in BWQA and replicate its datasources in the first place?
    2) or it has to be transported from BWDEV and "some how" converted in BWQA
    3) where does the source system name mapping has to be done: in BWDEV, BWQA or in both
    4) in order to do the mapping of names in BWQA I need to create the corresponding R3QA, otherwise I don't have the entry under TargSrceSy when executing tc RSLGMP
    I really apreciate an step by step process for the above scenario
    thanks a lot

    Hi Juan,
    Let me try to shed some light. Before you can transport dependent objects in the BW side, you have to make sure that the necessary dependencies in the R/3 side have already been transported. For example, if you have a datasource in R/3, you have to transport that from dev to QA first (before you transport anything in BW). Then, in the BW QA box you have to replicate the datasource before you can transport any BW objects in the BW QA. Then before transporting anything to BW QA and after replicating the datasource in the BW QA you have to go to RSA1->Tools Menu->Assignment of Source System to Source System ID menu item and make sure that R3DEV is mapped to R3QA. It is only after all the said checks have been done that you can transport objects in the BWQA.
    Here are my answers to your questions:
    Q1: This depends on your datasource. Some datasources can be transported. Some can be created in the QA box itself. But in both cases, you have to make sure that DataSource exists in R3QA and then replicate it in the BWQA.
    Q2: The conversion follows the setup in "Assignment of Source System to Source System ID" in RSA1.
    Q3: The "Assignment of Source System to Source System ID" in RSA1 has to be done in the BWQA.
    Q4: Yes, you have to setup the R3QA Source System in the BWQA.
    Hope this helps.

  • 2.1 RC1 - Export including dependent objects

    Hi all.
    Not sure if this is a bug or by design:
    - start export and check the Automatically Include Dependent Objects option
    - in the Types to Export dialog select Package Spec and Package Body only
    - in the Specify Objects dialog select a single package (Spec and Body)
    - start the export
    In the results I see it correctly included the Spec of the related packages but their Body is missing: is that normal?
    TIA.
    Alessandro

    thanks. we will wait for fix for delete-orphan ;)
    The onlyopen issue for us is still
    "cascade delete from parent to children" - see my posting with this issue. could you help us on this ?
    Here is the problem once again:
    2.1.1.     Cascade delete during parent-delete
    Problem
    We want to be sure that
    childred are deleted when parent is deleted with pm.deletePersistent(parent).
    This works perfectly if we map the parent-child relationship as bidirectional inverse-key
    relationship (similar to ParentTyp-ChildTyp exmaple) :
    In Parent Class FilterCriteriaImpl:
    <field name="entries" mapped-by="criteria" dependent="true" default-fetch-group="true">
    <collection element-type="AbstractSearchCriteriaEntry" dependent-element="true"/>
    </field>
    and in Child Class AbstractSearchCriteriaEntry:
    <field name="criteria" column="SMSEARCHCRITERIAID" default-fetch-group="true">
         <extension vendor-name="kodo" key="type" value="FilterCriteriaImpl"/>
    <foreign-key/>
    </field>
    But if we map the relationship as unidirectional:
    <field name="entries" dependent="true" default-fetch-group="true">
    <extension vendor-name="kodo" key="jdbc-element-delete-action" value="cascade"/>
    <collection element-type="AbstractSearchCriteriaEntry" dependent-element="true"/>
    <element>
    <column name="SMSEARCHCRITERIAID" target="SMSEARCHCRITERIAID"/>
              <foreign-key/>
    </element>
    </field>
    the children are not deleted during pm.deletePersistent(filterCriteria).
    Instead this KODO makes
    UPDATE PROD_B2BSM.DBSMSEARCHCRITERIALIST SET SMSEARCHCRITERIAID = ? WHERE SMSEARCHCRITERIAID = ? [params=(null) null, (long) 215625811] [reused=1]
    trying to insert NULL as FK which violates our DB constraint.
    Question
    How to map unidirectional relationship which supports cascade delete for children ?
    kind regards
    Andre Teshler

  • Dependant objects in a transport request

    Hi Guys
    I have a transport request with 100 custom programs in it. I have to move the transport request to
    another system. Is there a way to know all the dependant objects for these custom programs?
    If the transport fails due to dependancies the client is not willing to create another transport request.
    Please let me know if there is a solution for this?
    Thanks
    Britto
    Edited by: Britto Manohar on Jul 16, 2009 5:31 PM

    Hi  Britto,
    all the Dependent Object for the Custom Program or Report..
    will be stored in Table D010tab or FM "GET_TABLES"
    ..Pass report name it will show all the tables View used..
    but the unclude of the dependent Objects in the sutom Program transport request is the issue ..
    for Custom Tbales you can create transport reuest at run time ..for standadrd Tables creating transport request and include
    in the cutom program transport request will create error.
    Prabhudas

  • JMX object names for JBI services

    In a previous post it was stated that the JMX objectnames for the JBI installation service, deployment service, and admin service were implementation specific. Is it possible to lookup the installation service and deployment service from the admin service in a similar fashion to looking up the object name of a component by it's name?

    The names are implementation dependent. The model is that administrative code is implementation-specific. You can use the AdminServiceMBean.getSystemService method to find things like the installation and deployment services:
    The Open ESB names for the System services are:
    DeploymentService
    LoggingService
    InstallationService
    ConfigurationService
    MessageService
    AdministrationService
    (These are best discovered using JConsole!)
    Obviously there are more system services than Deployment and Installation; the Open ESB implementation supplies other MBeans to control other implementation modules that are not specified by JBI, but are needed to realize a controllable system.
    -Ron

  • Cmp dependant object

    does anybody have a working example of a ejb20 bean that uses dependant
    objects with a CMP relationship. I am trying to do a simple relationship
    where an ejb has a Collection of dependant objects.
    I cant get past the xml parsing errors when ejbc is run.
    The error is
    ERROR: weblogic.xml.process.XMLParsingException: The content of element
    type "ej
    b-jar" must match
    "(description?,display-name?,small-icon?,large-icon?,enterpris
    e-beans,dependents?,relationships?,assembly-descriptor?,ejb-client-jar?)".
    - wit
    h nested exception:
    [org.xml.sax.SAXParseException: The content of element type "ejb-jar"
    must match
    "(description?,display-name?,small-icon?,large-icon?,enterprise-beans,dependent
    s?,relationships?,assembly-descriptor?,ejb-client-jar?)".] Line: 152
    Column: 11
    here is the ejb-jar.xml file:
    <?xml version="1.0"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise
    JavaBeans 2.0//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_2_0.dtd">
    <ejb-jar>
    <enterprise-beans>
    <entity>
    <ejb-name>SurveyEJB</ejb-name>
    <home>erm.com.clickaction.erm.surveys.ejb20.SurveyHome</home>
    <remote>erm.com.clickaction.erm.surveys.ejb20.Survey</remote>
    <ejb-class>erm.com.clickaction.erm.surveys.ejb20.SurveyBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.Long</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>SurveyBean</abstract-schema-name>
    <cmp-field>
    <field-name>surveyKey</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>clientKey</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>name</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>description</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>version</field-name>
    </cmp-field>
    <primkey-field>surveyKey</primkey-field>
    <query>
    <query-method>
    <method-name>findAllSurveys</method-name>
    <method-params/>
    </query-method>
    <ejb-ql><![CDATA[WHERE surveyKey is not null]]></ejb-ql>
    </query>
    </entity>
    <entity>
    <ejb-name>TopicEJB</ejb-name>
    <home>erm.com.clickaction.erm.surveys.ejb20.TopicHome</home>
    <remote>erm.com.clickaction.erm.surveys.ejb20.Topic</remote>
    <ejb-class>erm.com.clickaction.erm.surveys.ejb20.TopicBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.Long</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>TopicBean</abstract-schema-name>
    <cmp-field>
    <field-name>topicKey</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>name</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>description</field-name>
    </cmp-field>
    <primkey-field>topicKey</primkey-field>
    <query>
    <query-method>
    <method-name>findAllTopics</method-name>
    <method-params/>
    </query-method>
    <ejb-ql><![CDATA[WHERE topicKey is not null]]></ejb-ql>
    </query>
    </entity>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>SurveyEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    <container-transaction>
    <method>
    <ejb-name>TopicEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    <dependents>
    <dependent>
    <description>Topic</description>
    <dependent-class>erm.com.clickaction.erm.surveys.ejb20.Topic</dependent-class>
    <dependent-name>Topic</dependent-name>
    <cmp-field><field-name>topicKey</field-name></cmp-field>
    <cmp-field><field-name>name</field-name></cmp-field>
    <cmp-field><field-name>description</field-name></cmp-field>
    <pk-field>topicKey</pk-field>
    </dependent>
    </dependents>
    <relationships>
    <ejb-relation>
    <ejb-relation-name>Survey-Topic</ejb-relation-name>
    <ejb-relationship-role>
    <ejb-relationship-role-name>survey-has-topics</ejb-relationship-role-name>
    <multiplicity>one</multiplicity>
    <role-source><ejb-name>SurveyEJB</ejb-name></role-source>
    <cmr-field>
    <cmr-field-name>topics</cmr-field-name>
    <cmr-field-type>java.util.Collection</cmr-field-type>
    </cmr-field>
    </ejb-relationship-role>
    <ejb-relationship-role>
    <ejb-relationship-role-name>topics-belongto-survey</ejb-relationship-role-name>
    <multiplicity>many</multiplicity>
    <cascade-delete/>
    <role-source><dependent-name>TopicEJB</dependent-name></role-source>
    <cmr-field>
    <cmr-field-name>survey</cmr-field-name>
    </cmr-field>
    </ejb-relationship-role>
    </ejb-relation>
    </relationships>
    </ejb-jar>
    thanks
    simon evans
    [email protected]

    Hi Simon,
    I'm reposting your message to the ejb group where you can get more help. This group
    is monitored more for issues regarding general product usability feedback, rather
    than "how to" issues.
    However, I do see you've uncovered a usability issue in as much as you couldn't find
    appropriate documentation or examples to help understand the problem. Moreover, you
    weren't able to figure out what to do next using the ejbc compiler error messages.
    I'll take a look at the problem from this point of view.
    In the mean time, ejb team, can you lend a hand?
    dan
    simon wrote:
    does anybody have a working example of a ejb20 bean that uses dependant
    objects with a CMP relationship. I am trying to do a simple relationship
    where an ejb has a Collection of dependant objects.
    I cant get past the xml parsing errors when ejbc is run.
    The error is
    ERROR: weblogic.xml.process.XMLParsingException: The content of element
    type "ej
    b-jar" must match
    "(description?,display-name?,small-icon?,large-icon?,enterpris
    e-beans,dependents?,relationships?,assembly-descriptor?,ejb-client-jar?)".
    - wit
    h nested exception:
    [org.xml.sax.SAXParseException: The content of element type "ejb-jar"
    must match
    "(description?,display-name?,small-icon?,large-icon?,enterprise-beans,dependent
    s?,relationships?,assembly-descriptor?,ejb-client-jar?)".] Line: 152
    Column: 11
    here is the ejb-jar.xml file:
    <?xml version="1.0"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise
    JavaBeans 2.0//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_2_0.dtd">
    <ejb-jar>
    <enterprise-beans>
    <entity>
    <ejb-name>SurveyEJB</ejb-name>
    <home>erm.com.clickaction.erm.surveys.ejb20.SurveyHome</home>
    <remote>erm.com.clickaction.erm.surveys.ejb20.Survey</remote>
    <ejb-class>erm.com.clickaction.erm.surveys.ejb20.SurveyBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.Long</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>SurveyBean</abstract-schema-name>
    <cmp-field>
    <field-name>surveyKey</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>clientKey</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>name</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>description</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>version</field-name>
    </cmp-field>
    <primkey-field>surveyKey</primkey-field>
    <query>
    <query-method>
    <method-name>findAllSurveys</method-name>
    <method-params/>
    </query-method>
    <ejb-ql><![CDATA[WHERE surveyKey is not null]]></ejb-ql>
    </query>
    </entity>
    <entity>
    <ejb-name>TopicEJB</ejb-name>
    <home>erm.com.clickaction.erm.surveys.ejb20.TopicHome</home>
    <remote>erm.com.clickaction.erm.surveys.ejb20.Topic</remote>
    <ejb-class>erm.com.clickaction.erm.surveys.ejb20.TopicBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.Long</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>TopicBean</abstract-schema-name>
    <cmp-field>
    <field-name>topicKey</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>name</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>description</field-name>
    </cmp-field>
    <primkey-field>topicKey</primkey-field>
    <query>
    <query-method>
    <method-name>findAllTopics</method-name>
    <method-params/>
    </query-method>
    <ejb-ql><![CDATA[WHERE topicKey is not null]]></ejb-ql>
    </query>
    </entity>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>SurveyEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    <container-transaction>
    <method>
    <ejb-name>TopicEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    <dependents>
    <dependent>
    <description>Topic</description>
    <dependent-class>erm.com.clickaction.erm.surveys.ejb20.Topic</dependent-class>
    <dependent-name>Topic</dependent-name>
    <cmp-field><field-name>topicKey</field-name></cmp-field>
    <cmp-field><field-name>name</field-name></cmp-field>
    <cmp-field><field-name>description</field-name></cmp-field>
    <pk-field>topicKey</pk-field>
    </dependent>
    </dependents>
    <relationships>
    <ejb-relation>
    <ejb-relation-name>Survey-Topic</ejb-relation-name>
    <ejb-relationship-role>
    <ejb-relationship-role-name>survey-has-topics</ejb-relationship-role-name>
    <multiplicity>one</multiplicity>
    <role-source><ejb-name>SurveyEJB</ejb-name></role-source>
    <cmr-field>
    <cmr-field-name>topics</cmr-field-name>
    <cmr-field-type>java.util.Collection</cmr-field-type>
    </cmr-field>
    </ejb-relationship-role>
    <ejb-relationship-role>
    <ejb-relationship-role-name>topics-belongto-survey</ejb-relationship-role-name>
    <multiplicity>many</multiplicity>
    <cascade-delete/>
    <role-source><dependent-name>TopicEJB</dependent-name></role-source>
    <cmr-field>
    <cmr-field-name>survey</cmr-field-name>
    </cmr-field>
    </ejb-relationship-role>
    </ejb-relation>
    </relationships>
    </ejb-jar>
    thanks
    simon evans
    [email protected]

Maybe you are looking for

  • IF statement in Formula Node

    I have the following statement in a Formula Node in LabVEW 7.1: if (x=1) y = 3; else y = 1; When running the VI, whatever the value of X is, I obtain Y = 3 !!!! Why ??? Tom

  • Latest update no longer considers 'allowclipboard' user defined capability policies

    Since update 29.0.x, following these directions: http://kb.mozillazine.org/Granting_JavaScript_access_to_the_clipboard no longer allows CKeditor based rich text editor cut/copy buttons/altclick menu options to operate with clipboard. Tested with Wind

  • Calendar will not sync with Google calendar. Won't accept my Gmail password.

    iPhone 5s 16GB (2.9 GB free), iOS 8.1.3 When I attempt to enter an event in Calendar, I get a message "Password Incorrect.  Enter the password for the Gmail account "Gmail'". But when I try to enter my Gmail password, the app won't accept it and the

  • IMovie '11 project file won't open. Please help!

    My daughter put together a short film for a school project last night using iMovie '11 my brand new, out-of-the-box MacBook Pro (running X.6.8). I needed to have the identity updated at work today (including reinstalling my user profile used to creat

  • Connecting yamaha 01v to mac..how??

    just wondering what is the best way to connect the yamaha 01v to a mac pro. ie. layout, soundcard?..audio interface??..i am new to this so please be lean on the lingo thanx