Identify Query Favorites?

Experts -
I have a large number of users who created a "favorite" query from a main query(the original).  The original query needs to change and is going to break all the favorites.  I need to identify all the favorites that were created from the original query report.
Does anyone know where I can find some sort of cross reference that shows all the favorites created from the original query.
Thanks.

Okay, I misunderstood your question first. I thought users create a copy of the query and save it as a new query in the favorite.
But looks like users create favorites based on BW web bookmark functionality, right?
There is no easy way to identify the query from the bookmark ID, you can use the code below to get the query ID from the bookmark ID.  i_view-COMPID from the second call will get you the query ID for the bookmark. You will have to loop through all the entries in the table RSZWBOOKMARK and apply the logic below to get the list of queries. You could restrict the entries in table RSZWBOOKMARK to certain IDs or time period.
CALL METHOD CL_RSZ_WWW_DB_INTERFACE=>GET_BOOKMARK
EXPORTING
I_BOOKMARKID = l_bookmarkid
I_OBJVERS = 'A'
IMPORTING
E_S_BOOKMARK = L_S_BOOKMARK
E_SX_BOOKMARK = L_SX_BOOKMARK.
* CATCH CX_RSZ_DB_NOTHING_FOUND .
* CATCH CX_RSZ_DB_WRITE_ERROR .
* CATCH CX_RSZ_DB_ERROR .
*ENDTRY.
temp1[] = L_SX_BOOKMARK-dp_list[].
LOOP AT temp1 into temp.
CALL METHOD CL_RSZ_WWW_DB_INTERFACE=>GET_VIEW
EXPORTING
I_VIEWID = temp-NAME
I_OBJVERS = 'A'
IMPORTING
E_S_VIEW = i_view.
endloop.
<%= i_view-COMPID%>

Similar Messages

  • Identifying query execution time

    Hello,
    I would like to know how can I figure out the actual query execution time in Oracle.
    Regards

    Oracle Documentation is your best friend.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2113.htm#i1417057
    ELAPSED_TIME --> Elapsed time (in microseconds) used by this cursor for parsing, executing, and fetching
    Asif Momen
    http://momendba.blogspot.com

  • How doI /can I transfer my favorites and address book from AOL to Firefox

    I previously used AOL as my browser & had several sites identified as "favorites", making it simple to bring them up.
    I also had my own address book with several groupings.
    I would like to transfer both these to Firefox/Mozi;lla/gmail if possible.
    Is this possible & if so how & how do I then access them?

    Paul,
    I just transferred my iCal info over to my Mac Mini and everything works fine there also.
    So far, I think the only thing that may not transfer so well is AppleWorks.
    If anyone hasn't already noticed, AppleWorks is not included with the new Intel Macs. Maybe Apple is trying to push Pages and iWorks, I don't know.
    I haven't tried to transfer AppleWorks over as I don't intend to use it on the Mac Mini Intel anyway. Maybe I will try it when I get a chance.
    The only software that I have upgraded so far is EvoCam. The old version for PPC worked OK on the Mac Mini but was acting goofy. With the new version which is universal, the program is acting normal again.

  • Query regarding direct path write

    Hi All,
    We have Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production running on Redhat 4.
    We have performance issue with high disk utilization.
    When seen statspack report, top event is always direct path write.
    when checked about direct path write found that it is consequence of direct path inserts/high sort operations.
    I checked v$sort_usage and identified query which is listed there most of time, but column segtype is HASH for that query.
    So is there chance i can conclude that this is the query which is causing direct path writes as confusing thing is SEGTYPE is HASH.
    Please let me know your comment about the same and also is there a way i can find sql statement which are writing to temp tablespace using direct path write.
    Regards
    Vinay

    v$sql_workarea_active gives information about the active work areas in the system. It shows the operation type, sid, memory usage and temp tablespace usage. You can check this to see what session is using the temporary tablespace for work areas.

  • Help making a treepage in htmldb- Carl/Scott please have a look

    How do I make a tree page of this data?
    create table Flatfile
    (Pgroup varchar2(30),
    Pclass varchar2(30),
    Manufacturer varchar2(30),
    Article varchar2(30),
    Price Number(6,2));
    Insert into Flatfile Values
    ('Application Software','Database Software','Oracle','Oracle 10G',115);
    Insert into Flatfile Values
    ('Application Software','Database Software','Microsoft','MS SQL Server 2000',200);
    Insert into Flatfile Values
    ('Application Software','Spreadsheet Software','Microsoft','Excel',100);
    Insert into Flatfile Values
    ('Monitor','15"','Acer','Acer 15"" TFT superscreen',199);
    Insert into Flatfile Values
    ('Monitor','15"','Sony','Sony R1500 flat',225);
    Insert into Flatfile Values
    ('Monitor','17"','Philips','Philips Flatscreen',250);
    Insert into Flatfile Values
    ('Monitor','19"','Viewsonic','Viewsonic PLasma Monitor',275);
    Insert into Flatfile Values
    ('Processor','AMD','AMD','FX-55',600);
    Insert into Flatfile Values
    ('Processor','Intel','Intel','P4 3 GHZ',399);
    I tried alot, but simply can't figure it out, please help:
    A fixed level of two or three would be fine. I just don't understand the concept in creating one in htmldb. So:
    Pgroup
    ---Pclass
    Or
    Pgroup
    ---Pclass
    ------Manufacturer
    How must my query be written?
    What do I fill in for these parameters:
    Identify Query - You do not code the query. Instead, you identify the following:
    ID - The primary key column of the table that is then used as the foreign key reference.
    Parent ID - The foreign key column of the table that references the primary key column, thus forming the hierarchy.
    Leaf Node Text - Select the column to display. Although this is a singular selection, you can edit the resulting query after it is defaulted to concatenate in other columns.
    Link Option - If the tree is for informational purposes only, a Link Option is not necessary. If the tree will be used for navigation, select Existing Application Item.
    Sincere,
    Peter
    Message was edited by:
    Pete

    Pete,
    Your example begs the question - if it's too hard for you to navigate it, then it will DEFINITELY be too hard for your users.
    Let's say I was looking for a Monitor on your site. I would have to search the entire top-level of the tree and come up with a list of several nodes which MAY contain what I'm looking for:
    - LCD TV
    - Monitors LCD
    - Monitors CRT
    - Plasma Displays
    - Screens
    - VGA
    Instead, why not have a higher-level category called "Displays", then list each one of these sub-categories under it? Something like this:
    + Displays
      + CRT
        - VGA
      + LCD
        - Monitors
        - TVs
      + PlasmaI think that if you consolidate your tree, it will 1) solve your scrolling problem and 2) make your site more usable.
    Thanks,
    - Scott -

  • First try at an Authentication Function

    I have created a function that will check DB level table privileges and return true or false. It works great from SQLPLus but I need to call it as an Authentication Function and I am not sure how.
    This is the Function:
    CREATE OR REPLACE function
    TABLE_AUTH_CHECK( p_tblname in varchar2, p_privilege in varchar2, p_who in varchar2 ) return varchar2
    as
    l_priv_check varchar2(30) default 'false';
    begin
    select decode(count(PRIVILEGE),0,'false','true')
    into l_priv_check
    from DBA_TAB_PRIVS, DBA_ROLE_PRIVS
    where DBA_ROLE_PRIVS.GRANTED_ROLE = DBA_TAB_PRIVS.GRANTEE
    and DBA_TAB_PRIVS.TABLE_NAME = upper(p_tblname)
    and DBA_TAB_PRIVS.PRIVILEGE = upper(p_privilege)
    and DBA_ROLE_PRIVS.GRANTEE = upper(p_who);
    return l_priv_check;
    end;
    This is how I am calling it now and it does not work:
    Authorization Scheme
    Scheme Type PL/SQL Function Returning Boolean Value
    Scheme Source(Identify Query or PL/SQL)
    TABLE_AUTH_CHECK(XYZ_TABLE','UPDATE',v('APP_USER'))
    Scheme Text
    Identify error message displayed when scheme violated
    Sorry updates not allowed

    Chris,
    I believe you should need to grant select on the DBA_ views only to your application schema, not to public.
    As you discovered, the USER_ and ALL_ views will not reflect the privileges of the current user, but those of the parsing schema (I think), so using the DBA_ views is necessary. Performance problems can be significant when querying from those views, so you might consider this instead:select u1.name granted_role,u2.name grantee
           from sys.user$ u1,sys.user$ u2,sys.sysauth$ sa
           where
               u1.name = :APP_USER
               and u1.user# = sa.privilege#
               and u2.user# = sa.grantee#
               and u2.name  = c1.username There is no way to make an authorization scheme aware of the page/application components to which it is attached, but we do see the usefulness of such a feature.
    You might be able to limit the number of distinct authorization schemes by defining them according to business functions instead of the lower-level DML operations on particular tables. For example, a scheme that checks the current user's privilege to approve purchase orders might be applicable to several pages, processes, buttons, etc. You could maintain a table of this association of users and privileges to facilitate this or you could do it with database roles.
    Although implementing a complete authorization model for an application might be tedious, it is essential. We once delivered an HTML DB applications with more than 1500 authorization schemes.
    Scott

  • LDAP Groups Authorization

    Hi,
    I have read some of the forum threads about LDAP Group Authorization - I remain confused. Here's the problem I am trying to solve.
    I was successfull in setting my Authentication to "Based on authentication scheme from gallery:Existing Login Page: Use LDAP Directory Credentials" -
    That works fine, But I would not like all users in my OID LDAP directory to log into my application- Which is why I have created a group for the user I want to include in my OID directory.
    Now at the " Builder->Application...->Security->Authorization Schemes->
    I have created an Authorization Scheme as "PL/SQL Function returing a booloean" .
    My Scheme Source(Identify Query or PL/SQL) is as follows and is set to "once Per session"
    return wwv_flow_ldap.is_member
    (:APP_USER,
    null,
    'cn=users,dc=wellesley,dc=edu',
    'jadeland.wellesley.edu',
    '389',
    'wcd_HTMLDB',
    'cn=portal.040323.1220,cn=Groups, dc=wellesley,dc=edu');
    where in my LDAP directory, 'wcd_HTMLDB' is the subgroup under group "portal.040323.1220" -
    I have included 3 users in the group 'wcd_HTMLDB' .
    Still the login page allows all LDAP user ( and not just the 3 from the 'wcd_HTMLDB' group.
    Where did I go wrong -?
    What 's the proper way to authorise only LDAP users in a group ?
    Any help would be really appreciated.
    Thanks .

    Indira,
    The public synonym (and grant execute) must be created after that package is compiled which can happen after catldap is run in your database. This is only a problem if catldap has not been run before HTML DB is installed. That's described in the flows/doc/ldap.html file in the distribution directory (not very prominently, we know).
    When you initially attached the authorization scheme to your login page and it wouldn't let you in, the reason is that it was using the value of APP_USER to drive your lookup function. But when the login page is rendered, APP_USER is null because you haven't logged in yet. So a user-based authorization scheme on a login page can never work.
    When you changed the ldap username edit function the way you did, you achieved the goal of preventing an unauthorized user from using the login page to authenticate. Looks like the way it's set up is to give unauthorized users an authentication error, which is a little misleading (saying their credentials are invalid when in fact they are valid but they aren't authorized to use your application), but if it suits your purpose, great. You should consider that if you change the authentication method to, say Single Sign-On, you'll then want to use authorization schemes to keep unauthorized users out. So the authorization scheme that you first set about using would be fine in that case, so long as you adjust the code to allow for visits to public pages prior to authentication (v('APP_USER') = 'HTMLDB_PUBLIC_USER'). However, you'd want to attach that scheme to the application itself (Edit Application Attributes->Authorization) so it fires on every page. Evaluating a scheme like that on every page view rather that once per session probably works best, even better if you cache the result of the evaluation yourself for performance reasons, e.g., set an application item to some value the first time the authenticated user passes the ldap membership test, then using that item as an 'already passed' flag for subsequent invocations.
    Finally, I assume you are using the built-in ldap_dnprep function because you need to replace '.' with '_' in the username value entered by the user. If that is not your requirement, let's talk.
    Scott

  • SAP BI7.0 Integration with SAP BO XI3.1

    Hi All,
    I'm a SAP BI consultant and new to BO, In my current project they need to introduce BO reporting and for that i have to give them a DEMO.
    The input which i have...
    AsIs and ToBe:
    1.     AsIs: The customer has a BI environment up and running.
    2.     AsIs: The customer has a BO environment up and running.
    3.     AsIs: Customeru2019s BI and BO environments are not connected.
    4.     ToBe: The goal of the project is to connect those environments and to use Apple IPAD as navigation device u2013 number of universes and reports will be defined.
    what i have to do is ...
    1.      have identified a BEx query suitable for the creation of interesting BO universe.
    2.       have to Create one BO universe based on the identified query.
    3.      have to  Create one or two reports based on the created universe.
    Now Please do let me know step by step procedure to do the integration part.
    Thanks & Regards
    Ajay Kumar

    Ajaykumar,
    You have BI and BO installed and running on good environment,Correct??
    Only you need SAP Integration Kit installed.
    After installing successfully.
    Create master BEx query. Go to Properties -->> Extended tab -- Allow external access to OLAP (Incase of BW3.x)
    Create master BEx query. Go to Properties -->> Advanced tab -- Allow external access OLAP (BI7.0)
    Now go to Universe Designer:
    -->> Name Universe and Click on Connection -- New
    -->> Connection parameter dailog box -- It prompt for many options like:
    Authentication Mode:User/Pass or BO mappings or SSO
    User Name:
    Password:
    Language:EN
    Application Server: <SAP BI system details--IP address>
    System ID:<SAP BI ID>
    System No:<SAP BI NO>
    Logon Group:(greyed out)
    Message Server:(greyed out)
    -- Click on Next
    -- Here, you can see all OLAP cubes ($Infocubes) and Folders for BEx query based/Multiproviders.
    -- Select the required one.
    -- Click Next -- Next -- FINISH
    OK
    Now you can see lict of *Classes and Objects* and not Universe structure as we are on SAP BI system.
    (In Universe Designer window)
    Go to -- File -->> Export -- (Select any folder, where you have access)
    Now, *logon to Infoview*:
    -- Document list
    -- New-->> New Web Intelligence Document
    It will list out all Universe those are exist in repository.
    Choose the exported one.
    Now you are in *Web Intelligence Report panel*.
    -- Drag any objects like Dimension/Detail or Measure to Result Objects pane (to see them in Report)
    or
    Drag them to Query Filters section to restrict the data.
    --Click on Run Query
    -- Now Report you can see.
    If you want to create Report 2:
    Just Right click on Report1 and say Duplicate or New Report.
    Hope I cleared all your doubts.
    Thank You!!

  • Problem creating tree on a synonym

    I am attempting to create a Tree on top of a synonym which points to a table through a database link.
    Unfortunately, when I get to the "Query" step in the Tree wizard, the "ID", "Parent ID" and "Leaf Node Text" combo boxes are all empty, even though HTML DB appears to have accepted that my table is valid (it doesn't complain that the table doesn't exist on the prior step).
    Could I be doing something wrong here, or might this be an issue?

    hey sean--
    that tree-on-synonym issue is actually a known one for now in html db. see, we do have some issues when working with db-linked synonymed objects in our wizards, so that's why you're not seeing those columns available on that "Identify Query" page. the issue's slated to be addressed in a post-production release of html db, but you can get around it for now by creating a local view on your remote table and building your tree off of that. you could even go back into your tree's query definition and point it back directly to your synonym (or table@db_link).
    hope this helps,
    raj
    ps-to add a tree to an existing page, simply indicate that existing page number on the first page of the Tree wizard.
    [Edited by: rmattama on Dec 29, 2003 5:31 PM]

  • Tree/leaf and links

    Hi,
    I just created a tree based on sql, and it's great. But i like whenever users click branches or leaves, these branch/leaf will point to new pages. How to configure this?
    By the way, it looks the htmldb How-to url is changed. What is the new url for html how-to?
    Thanks.
    Fei

    hi fei--
    if you edit the tree definition of your newly created tree, you'll see that it's really defined as a sql query. the fouth column selected out in this query is your link. if you opted not to have your tree link to anything during the process of using our wizard to create your tree, you'll find that fourth column is null. so if you made your tree off the emp table, your might look like this...
    select "EMPNO" id,
    "MGR" pid,
    "ENAME" name,
    null link,
    null a1,
    null a2
    from "#OWNER#"."EMP"
    ...and if you change that fourth column like so...
    select "EMPNO" id,
    "MGR" pid,
    "ENAME" name,
    'f?p=&APP_ID.:1:&APP_SESSION.::NO::P1_EMPNO:'||"EMPNO" link,
    null a1,
    null a2
    from "#OWNER#"."EMP"
    ...you'd find that clicking on an employee's name in your tree would link you over to page 1 setting :P1_EMPNO to the value of that emp's empno. the better way to do this, though, would be to set your linking up as you go through the tree wizard. the ninth step of that wizard asks you to "Identify Query". that screen has a "Link Option" field on it. it defaults to "Nothing", but it sounds as if you'd like it to link somewhere in your app. to have it do so, simply select the "Existing Application Item" option in that radio group. the next screen will then help you set up that link.
    either of the above two approaches should work fine, but let us know if you need further assistance.
    regards,
    raj
    ps-the htmldb how-to's are currently at http://otn.oracle.com/products/database/htmldb/howtos/index.html .i don't think they've been moved recently, but that's at least where they are now.

  • How do I get LabVIEW to recognise a Gaussmeter as a device through COM port 1?

    Hello everyone.
    I am trying to do display the readings from a GM05 Gaussmeter in LabVIEW through COM Port 1 on my computer.  I have installed the relevant drivers and MAX recognises that something is plugged in by listing COM 1, COM 2 and LPT 1 under devices, but it does not recognise the Gaussmeter as a device (it does not say 'device #' in brackets next to COM 1)..  Therefore when I come to create a new Virtual Channel in the Data Neighbourhood I cannot select my COM port as a device.  Can anyone help me to solve this problem, any advice would be greatly appreciated.
    Regards,
    Rob.

    Unlike GPIB the com port or serial communication usually does not have an identify query, so it wont auto recognize the device.  You should look in the manual of the device and send an appropriate string (there might be a self-test or identify string) and check for the correct response.  Not all devices communicate both ways (some are talkers, some are listeners and many are both).
    Paul
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • Role of Developer

    Hi experts,
    What is the typical role of a Developer/Duties where BIA is used.

    This really depends on the individual customer. Depending on how big or small IT departments are the role could be narrow or very broad. From my experience, the role of the BW developer would be
    - to set up or modify the corresponding process chain for each load which is to go to BWA
    - to ensure data loads make their way into the accelerator on a daily basis
    - build/delete the BWA indexes which correspond with the info provider
    - monitor the alerts which are posted in transaction code RSDDBIAMON2 and communicate the status to various other IT teams (BASIS, LINUX, Network) on a need to know basis
    - monitor growth of data in BWA to stay ahead of the curve to ensure capacity (memory/cpu) requirements
    - follow up on business user questions regarding performance or error codes received from queries utilizing BWA
    - turning BWA indexes on/off
    - Identifying query/info provider candidates for BWA - looking at statistics of the query to determine if it is a good candidate for BWA or not
    Again, depending on the organization, some other tasks which could be included in the BW developer's role are
    - Initiate landscape reorgs
    - Initiate service restarts for the blades or entire landscape
    - making parameter changes to the .ini files as requested in SAP Notes
    Typically, the tasks immediately mentioned above are not allowed by developers and are delegated to the basis team, but it depends on the individual organization.
    Hopefully, this has given you a starting point. If you need further clarification let me know.
    Regards,
    Josh
    SAP NetWeaver RIG
    Edited by: Josh Djupstrom on Jun 5, 2009 8:21 PM

  • How can detrimend where caluse concontions in apps?

    how can detriment which columns and where condition when create new report in R12?
    please helpe me i'm new in oracle apps

    I want to create report for hrms show the employees name,start date,end date and salary
    but when i search for tables and build the query i don't know which condition but in where clause
    I'm start to work in e-business suite R12 recently and find that difficult to identify query.

  • Hash Table Infrastructure ran out of memory

    Hi Gurus,
    We are using oracle 10.2.0.3 on sparc solaris 64 bit with 16 CPU and 32GB of physical memory. Our sga_target is 12G and pga target is 15G.
    We are receiving
    ORA-32690: Hash Table Infrastructure ran out of memory
    We had identified query which is running in parallel 8 and using huge hash group by. May be due to that this error is there.
    We are doing kind of
    select x,y,z from abc partition(Q) group by x,y,z;
    Where Partition is hash partition.
    But here are some questions
    1. How to find why this error is coming. Any trace dump or pga dump can help ? Because i believe it was not using temp space at all. We have 2 TB temp space free.
    2. i think for hash group by if it don't get any memory it spill to temp ? then why this error
    3. How to monitor this while this error is happening.
    4. How to dig into issue using dumps and what to look for.
    5 IS PGA_AGGREGATE_TARGET only use 5 % for each parallel process

    Re: ORA-32690: HASH TABLE INFRASTRUCTURE RAN OUT OF MEMORY

  • Error - opening a web query from my favorite or roles

    I am trying to open a query saved as web query from my favorite folder or user menu. I got error when processing the request. Below is the detailed error.
    Error when processing your request
    What has happened?
    The URL http://p2pr3.ittind.com:8000/sap/bw/BEx was not called due to an error.
    Note
    The following error text was processed in the system DVR : You can only work in client 010
    The error occurred on the application server P2PR3_DVR_00 and in the work process 0 .
    The termination type was: ABORT_MESSAGE_STATE
    The ABAP call stack was:
    Function: RS_MANDT_CHECK of program SAPLRSMANDT
    Form: CLIENT_CHECK of program SAPLRSDG_IOBJ_DB_READ
    Function: RSD_IOBJ_GET_A_THEN_M of program SAPLRSDG_IOBJ_DB_READ
    Function: RSZ_X_COMPONENT_EXIST of program SAPLRZX0
    Form: GET_AUTHORIZATION of program CL_RSRD_UTILITIES_BW_OBJECTS==CP
    Form: SET_ITEM of program CL_RSRD_WWW_ITEM_BROADCASTER==CP
    Form: INIT of program CL_RSR_WWW_ITEM===============CP
    Form: CREATE of program CL_RSR_WWW_ITEM===============CP
    Form: SET_ITEM of program CL_RSR_WWW_PAGE===============CP
    Form: SET_TEMPLATE_ITEMS of program CL_RSR_WWW_ITEM_TEMPLATE======CP
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system DVR in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server P2PR3_DVR_00 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server P2PR3_DVR_00 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 035 -u: NKRISHNA -l: E -s: DVR -i: P2PR3_DVR_00 -w: 0 -d: 20081022 -t: 120849 -v: ABORT_MESSAGE_STATE -e: You can only work in client 010
    Any steps to solve this issue will be appreciated and awarded. Thanks

    Hi Experts,
    We are also having the same issue. We are in BI 7 SP 15.
    Is there any way to find the relation between the Bookmark ID and Query name? The favorite link is not working and getting the above error message. We are also not able to identify the query related to this favorite / bookmark link. Is there any table to identify for query and Bookmark?
    Can you experts advise urgently? Advance Thanks.
    Linda.

Maybe you are looking for