RAM variable refresh procedure

Hello,
It is possible to create RAM maintenance procedure which makes aggregation (refresh) in hybrid database only fact data with limit (ex. only for one month) without changing data outside limit and without changing dimensions ?

No it is not possible to do this in RAM/RAA

Similar Messages

  • Variable Refreshment Problem in Workbook

    Hi Experts,
    We have a workbook for Price Definition Planning (Using SAP IP).
    There is one Navigational Attribute called u2018Category Segmentu2019 (for Planning Product) as a dropdown item which populates new records in workbook.
    If we run the workbook for first time after giving the required variable input value for category segment suppose u2018Chocolateu2019, it works as intended.
    But the problem is that , if next time we change the variable value for the same to different one suppose u2018Cookiesu2019, its not showing me the records of that u2018Cookiesu2019 segment in the analysis item. Itu2019s still showing the previous records i.e. for u2018Chocolateu2019 only rather than Cookies.
    We checked the option for variable refreshment as well as workbook refreshment. But the problem still persists.
    If anyone has any idea about this, please do share it.

    hi.
    check if your user has personalized the variables, because they won't show up if he refreshes. you have to call up the variable screen explicitly by using the option from the menu and then you can change the personalization setting.
    br
    jacob

  • Dynamic Variable Refreshment

    Hi All,
    I am facing a problem with the dynamic variable refreshment. I have used dynamic variable in the where clause in the content of a table in the BMM layer.
    But according to the refresh time the variable is getting refreshed in the RPD but the value in the Webcat is not reflecting at the same time. It is taking time to get reflected in the Webcat reports and the time is not specific. I have clear the cache in the Webcat but getting no result out of it. I think the value of the variable is taking time to get reflected in the content of the table.

    Might be that the presentation server cache is giving you trouble, try disabling it:
    http://obiee101.blogspot.com/2008/12/obiee-bypassing-presentation-web-cache.html
    regards
    John
    http://obiee101.blogspot.com

  • How to find Unused variables in procedure,function or package

    Hi all,
    I want find out unused variables in procedure, function and package.
    I have written below script for doing this ,but i am not getting the expected result.
    Kindly help me to improve the below code ,so that it works as expected.
    {code}
    version details
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    "CORE    11.2.0.3.0    Production"
    TNS for Linux: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    {code}
    {code}
    What i Have tried is This.
    DECLARE
      V_OBJECT_NAME VARCHAR2(30) :='PR_PRINT';
      V_OBJECT_TYPE VARCHAR2(30) :='PROCEDURE';
      CURSOR C1(CP_OBJECT_NAME VARCHAR2,CP_OBJECT_TYPE VARCHAR2)
      IS
        SELECT US.NAME,
          US.TYPE,
          US.LINE,
          REGEXP_SUBSTR(US.TEXT,'.* ') AS var_name
        FROM user_source US
        WHERE name=CP_OBJECT_NAME
        AND type  =CP_OBJECT_TYPE
        AND REGEXP_LIKE (TEXT,'(v_|g_|c_)','i')
        AND REGEXP_LIKE (TEXT,'^[^ ]')
        AND REGEXP_LIKE (TEXT,'^[^--]') ;
      v_count NUMBER ;
    BEGIN
      FOR i IN C1(V_OBJECT_NAME,V_OBJECT_TYPE)
      LOOP
        SELECT COUNT( *)
        INTO V_COUNT
        FROM USER_SOURCE US
        WHERE US.NAME=I.NAME
        AND REGEXP_LIKE(US.TEXT,i.var_name,'i' )
        AND US.LINE<>I.LINE;
        IF V_COUNT  =0 THEN
          DBMS_OUTPUT.PUT_LINE('variable '||I.VAR_NAME||'Is declared at line#'||I.LINE||' But no where used');
        END IF ;
      END LOOP;
    EXCEPTION
    WHEN OTHERS THEN
      DBMS_OUTPUT.PUT_LINE('p_err_code := '||SQLCODE||dbms_utility.format_Error_backtrace());
      DBMS_OUTPUT.PUT_LINE('p_err_msg := '||sqlerrm);
    END ;
    {code}
    Thanks,
    P Prakash

    Hello,
    as suggested by padders you can use PL/Scope, an example:
    ALTER SESSION SET PLSCOPE_SETTINGS='IDENTIFIERS:ALL';
    CREATE OR REPLACE PACKAGE ui_test1 AS
        global_number   NUMBER := 9;
    FUNCTION get_number
        RETURN NUMBER;
    END ui_test1;
    CREATE OR REPLACE PACKAGE BODY ui_test1 AS
    PROCEDURE setNull
         p_varchar          IN OUT VARCHAR2
    IS
    BEGIN
        p_varchar := NVL(p_varchar,'NULL');
    END setNull;
    FUNCTION get_number
        RETURN NUMBER
    IS
        FUNCTION setZero
             p_number       IN NUMBER
            RETURN NUMBER
        IS
        BEGIN
            RETURN NVL(p_number,0);
        END setZero;
    BEGIN
        RETURN global_number;
    END get_number;
    END ui_test1;
    SELECT  DISTINCT
            object_name
           ,object_type
           ,name
           ,type
           ,line
           ,col
    FROM    all_identifiers obj
    WHERE   obj.owner = USER
    AND     obj.usage = 'DECLARATION'
    AND     obj.object_name = 'UI_TEST1'
    AND     NOT EXISTS (
                SELECT  1
                FROM    all_identifiers with_rh
                WHERE   obj.signature = with_rh.signature
                AND     with_rh.usage IN ('REFERENCE','CALL','ASSIGNMENT')
    ORDER BY TYPE
            ,object_name
            ,object_type
            ,name;
    OBJECT_NAME  OBJECT_TYPE   NAME       TYPE       LINE COL
    UI_TEST1     PACKAGE       GET_NUMBER FUNCTION     11  10
    UI_TEST1     PACKAGE BODY  SETZERO    FUNCTION     35  14
    UI_TEST1     PACKAGE       UI_TEST1   PACKAGE       1   9
    UI_TEST1     PACKAGE BODY  SETNULL    PROCEDURE    12  11
    Regards
    Marcus

  • System refresh procedure!!!

    Can anyone of you please help me in understanding the system refresh procedure??What it is used for and how does it help an organisation!!!

    Read
    http://help.sap.com/saphelp_nw70/helpdata/EN/a2/2f0c173a5e43d19585724239ff4de7/frameset.htm
    Markus

  • What are the security post refresh procedures in general?

    Hi,
    Can anyone list me out What are the security post refresh procedures in general?
    Thanks and Regards,
    Damanaidu J

    >
    Damanaidu jawaharlal wrote:
    > Hi,
    >
    > Can you cite with respect to CUA.
    >
    > Thanks and Regards,
    > Damanaidu J
    CUA
    ====
    CUA behaves differently during a system/client copy and this is the approach we took and it was successful.  The goal is to take a backup of the source before CUA deletion then restore. Do not delete CUA and just attempt to rebuild it, all the roles will be gone.  Backup and restore will be the approach I recommend.
    a1.  Take a snap shot of your QA user and role assignments before copy.
    1.  (Basis) First make a backup of the source system.  This is important before step 2.
    2.  After successful backup delete the CUA from the source system. 
    3.  After successful copy to target system, restore backup to source system.
    4.  Depending how the copy was done, users and passwords should be in the target system but all the role assignments will be gone. 
    5.  Start assigning roles base on your requirements.  If you need to restore the old QA settings that is captured in a1.
    Perhaps others can add in other steps I might have missed.
    Good Luck!

  • Variable refresh in package

    I could not find the answer to this in the archives.
    I have a package. I declare some variables, then
    refresh them. Then run some interfaces and
    procedures. Then refresh another variable.
    Only the last one is actually refreshed. The earlier
    ones are not. I cannot see what I am doing wrong.
    Please help.

    Okay so I have had this same issue for a while now and have been unable to solve it.
    In my main package I have a declare variable step, run a bunch of interfaces/procedures/packages, then control comes back to the package. I then do a refresh and then an evaluate based on the variables that changed when running my interfaces. Basically, if an error occurred in ETL we assign a 1 to the variable, otherwise its a 0. This Error handling will control if we should do the last few steps in the main package or not. The variables are Datetype: Numeric and Action: Historize. The problem is even though in the history tab the variables are correct, the variables contain the value from before the ETL started when being evaluated. For example, if yesterday the variable was 0 and today when ETL ran something made it change to 1, it still evaluates the 0 value as if it never changed. Any ideas what could be going on?
    Thanks,
    Paul

  • Use of variable in Procedure

    I created a global variable that contains a result of a query.
    I used it in a procedure using SQL but when I run the prcedure I have the following error :
    com.sunopsis.sql.SnpsMissingParametersException: Missing parameter
    Could you tell me how to use my variable ?
    My SQL Code is the following and I bolded the variable
    SELECT A.SESS_NAME ,
    A.SCEN_VERSION,
    A.SESS_BEG ,
    A.SESS_DUR,
    C.NNO,
    RTRIM(LTRIM(B.STEP_NAME)) TABLE_NAME
    ,SUM(C.STEP_DUR)
    , SUM(NB_INS) NB_INS
    FROM COUNT_TMP D , SNP_SESSION A , SNP_SESS_STEP B, snp_step_log C
    WHERE
    'PS_' || RTRIM(LTRIM(B.STEP_NAME)) = D.TABLE_NAME AND
    A.SESS_BEG >= TO_DATE( #DATE_BASCULE , 'DD/MM/YYYY') AND
    A.SESS_NO = B.SESS_NO AND
    B.SESS_NO = C.SESS_NO AND B.NNO = C.NNO
    GROUP BY A.SESS_NAME , A.SCEN_VERSION ,A.SESS_BEG ,A.SESS_DUR, C.NNO ,B.STEP_NAME
    ORDER BY A.SESS_NAME , A.SCEN_VERSION, C.NNO
    Thank you
    Meapri

    Thanks a lot it did not fail.
    Now I am going to check if my procedure does something.
    Steps to use a variable resulting from a query in a procedure. ( In my case I used a alphanumeric variable )
    1) I declare a global Variable My_Variable. I chose
    - type 'Alphanumeric'
    - default value SELECT TO_CHAR(DATE_LAST_PROCESS) FROM PS_S1_ODI_BASCULE
    - action 'Dernière valeur'
    - I refresh my variable by running the query on the RDBMS
    2)In the procedure I refer to my variable by writing '#My_Variable'. My SQL Code becomes
    SELECT A.SESS_NAME ,
    A.SCEN_VERSION,
    A.SESS_BEG ,
    A.SESS_DUR,
    C.NNO,
    RTRIM(LTRIM(B.STEP_NAME)) TABLE_NAME
    ,SUM(C.STEP_DUR)
    , SUM(NB_INS) NB_INS
    FROM COUNT_TMP D , SNP_SESSION A , SNP_SESS_STEP B, snp_step_log C
    WHERE
    'PS_' || RTRIM(LTRIM(B.STEP_NAME)) = D.TABLE_NAME AND
    A.SESS_BEG >= TO_DATE( '#DATE_BASCULE' , 'DD/MM/YYYY') AND
    A.SESS_NO = B.SESS_NO AND
    B.SESS_NO = C.SESS_NO AND B.NNO = C.NNO
    GROUP BY A.SESS_NAME , A.SCEN_VERSION ,A.SESS_BEG ,A.SESS_DUR, C.NNO ,B.STEP_NAME
    ORDER BY A.SESS_NAME , A.SCEN_VERSION, C.NNO

  • Linking variable and procedure

    hi,
    how to assign a value to the odi variable which is returned by a sql statement which written in the source tab of odi procedure ?
    Regards,
    Sai.

    I've just done this.
    Im calling startscen.sh from ebiz via concurrant request, passing variables to the ODI procedure.
    Variables in this case are a mix of Alphanumeric and Int.
    reference variables in ODI Procedure using #variable_name.
    Drag variable to package, set to declare (dont use set!). Link to procedure. Cut scenario. Job done.
    We also have other variables with refresh SQL behind them (to get last ETL date for example) and simply use refresh variable on the package canvas, i've read good practice to declare them first in the package but from my testing this isnt strictly required.
    Hope this helps.
    Alastair

  • Variable refreshing in package header

    Hello Experts,
    Through a function in my package header I fill up a global variable. The function gets the value out of a table in my database:
    PV_FILENAME PARAMETERS.VALUE%TYPE DL$PARAMETERS.VALUE_BY_NAME('FILE_NAME'); This works fine, however when I change the value in the table and commit the changes the problem begins.
    When I execute the following statement to check if the value changed:
    select DL$PARAMETERS.VALUE_BY_NAME('FILE_NAME') from dual;It shows me the new value...
    But the variable in the package still contains the old value. When I restart sql developer the variable adjusts.
    Does anyone know what I can do? It seems like the package is caching the value or something. Or is it obligatory to put global variables in the body?
    greets
    Edited by: iadgroe on May 21, 2012 6:37 AM

    Hello Arun,
    I can check this because the return value I use in the function is the name of an xml file (e.g. 'xmlfile_1.xml'):
    SELECT .....
    FROM XMLTABLE('/employees/employee' PASSING XMLTYPE(BFILENAME(PV_DIRECTORY, -->PV_FILENAME<--), NLS_CHARSET_ID('AL32UTF16'))
    COLUMNS USERNAME VARCHAR2(20) PATH './name/userName' , TIMEREG XMLTYPE PATH './timeRegistration/days' ) H,
        XMLTABLE('days/day' PASSING H.TIMEREG COLUMNS TIMESHEET_DATUM In the above code I use the name to retrieve the xml file. I insert the data in the xml file into one of my own tables.
    When I change the value of the xml-name(e.g. 'xmlfile_2.xml') in my table that the function returns, the variable should reference another xml-file. However when I execute the procedure in my package it still insert data from the previous xml(xmlfile_1.xml) file into my table.
    I this clear enough? :-)
    Thanks a lot!

  • Using variables in procedures

    hey guys
    I'm trying to create a procedure to insert data into certain table
    what i want to do is :
    1)get the max(ID) of a certain table so i can increase it by 1 and insert a new record
    2)check a condition and depending on that some execution will be run
    here is what i have reached so far but of course it gives a compilation error as I'm not very good at PL/SQL
    create or replace procedure Add_Asset(TABLE_NAME VARCHAR2, GEO varchar2)
    is
    DECLARE
    maxID number;
    geo_Type varchar(20);
    BEGIN
    select max(ID) into maxID from PUMP;
    select geom_type into geo_Type from geometry_type where table_name='|| TABLE_NAME ||' ;
    if geo_Type='POINT' then
    execute immediate 'INSERT INTO '|| TABLE_NAME ||' (ID,GEOMETRY) VALUES((geo_Type,SDO_GEOMETRY(3001, -1, SDO_POINT_TYPE('|| GEO ||' ),NULL,NULL))';
    end if;
    end;
    please correct what i have write wrong
    and i want to know if I'm using the declared variable within the procedure correctly in the insert statement or what...
    thanxxxx a lot

    I don't see yet where your max(id) comes in exactly and I am not sure how to pass the SDO_GEOMETRY object in (but I'll give two alternatives):
    create or replace procedure add_asset (table_name varchar2, geo varchar2)
    is
       maxid      number;
       geo_type   varchar (20);
    begin
    /* please specify where to use this one: */
      select max (id)
         into maxid
         from pump;
       select geom_type
         into geo_type
         from geometry_type
        where geometry_type.table_name = add_asset.table_name;
       if geo_type = 'POINT'
       then
          /* either this:  */
          execute immediate 'INSERT INTO ' || table_name || ' (ID,GEOMETRY) VALUES (:1,SDO_GEOMETRY(3001, -1, SDO_POINT_TYPE(:2 ),NULL,NULL))' using geo_type, geo;
          /* or this:  */
    --    execute immediate 'INSERT INTO ' || table_name || ' (ID,GEOMETRY) VALUES (:1,:2)' using geo_type, sdo_geometry (3001,-1,sdo_point_type (geo),null,null);
       end if;
    end add_asset;
    /

  • Acrobat Plug-in Variable Refresh.

    Hi, I met a problem in local variable value refresh.
    I developed a plug-in based on the Basic Plug-in template in Samples from Acrobat.
    In the function which response to the click on user menu, I defined a local variable to record a user self defined value in an external configuration file.
    In my scenario, my plug-in will read an external config file in the same folder with the current PDF file.
    When I want to switch from current PDF to another, it works perfectly when I close the Acrobat Professional and re-open it.
    But when I only close current PDF and leave the Acrobat Professional open, and I open the other PDF by loading it from File menu, and run the plug-in again, the config value read from external is same.
    This shall not happen because the value I created is a local one and I delete it at the end the execution.

    Plugins are kept loaded throughout the life of Acrobat. This no way to "re-init" them.
    But this simply sounds like you need to rethink your design about how you handle things, now that you know you are kept around.
    Leonard

  • Use of Variable - Refreshing the Queries in Workbook

    Hi All,
    I have a workbook which contains 5 Queries. All these queries uses the same variable. While I am refreshing all the  queries in the workbook, it pops-up the variable input screen 5 times.
    Here I just want the variable screen appear to be once and the same input be taken to all the queries.
    We are in 3.x.
    In 7.x Analyzer, I know that When you have multiple queries(with variables) embedded in a single workbook, we can use "Change Variables" icon to acheive the same.
    How can I achieve this in 3.5.
    Thanks in advance.
    Siva
    Edited by: Siva Reddy S on Jun 9, 2009 10:32 AM

    Hi Joke,
    Thanks for your reply.
    The option "save and reuse variable values" is something to do with the input values to save and reuse the same for the next time execution.
    Here I just wanted to input the variable at one query and the same value needs to be taken to all the queries. The Variable used in all the queries is the same one.
    Thanks again..
    Any body any inputs.
    Siva

  • Variable Refresh button in WAD

    Hi All,
    I would like to add a button to a web template so that after I execute the report I would like to click on the button and the variable screen pops up enabling the user to select alternative values.
    I am working in BI 7 and would like to know what command to assign to the button web item or is there a different method to do it?
    Thanks
    Bryn
    Edited by: Bryn Evans on Mar 19, 2008 8:29 AM

    Hi,
    This can be done by writing a html code in back end and place a "Refresh" link in the template,
    Cheers,
    Malli.

  • Diff char in variable and procedure call

    I understand the difference between Char en Varchar. What I don't understand is the different behaviour of Char when assigning a plain variable and when assigning a procedure call variable. I've created this sample code:
    declare
      v char;
      procedure t (i char) as
      begin
        if i = ' ' then
          dbms_output.put_line('ok');
        else
          dbms_output.put_line('else');
        end if;
      end;
    begin
      v := '';
      t('');
      t(' ');
      t(null);
      t(v);
    end;
    else
    ok
    else
    ok
    PL/SQL-procedure is geslaagd.The first (t('')) call and last (t(v)) call I think should result in the same answer, but apearantly, when v is assigned, a space is passed into the variable (sounds correct according to documentation), but when i is directly assigned, a null is assigned, rather than a space.
    Does anyone know what the explanation is for this behaviour?
    Thanx,
    Lennert
    ps, I'm not looking for a solution or a work around, I'm just interested in the background.
    pps, I'm running O8174 on HPUX

    x CHAR;
    It's default length is one but if you don't assign a value, it's value is null and its length is null. The empty string ('') is not null, so the assignment x := '' will assign a value of space, since PL/SQL pads with spaces to fill the length.
    PROCEDURE test is
    x char;
    BEGIN
    dbms_output.put_line('x = >' || x || '< , the length of x is: ' || to_char(length(x)));
    x := null;
    dbms_output.put_line('x = >' || x || '< , the length of x is: ' || to_char(length(x)));
    x := '';
    dbms_output.put_line('x = >' || x || '< , the length of x is: ' || to_char(length(x)));
    dbms_output.put_line(to_char(ascii(x)));
    x := ' ';
    dbms_output.put_line('x = >' || x || '< , the length of x is: ' || to_char(length(x)));
    END test;
    SQL> execute test.proc1
    x = >< , the length of x is:
    x = >< , the length of x is:
    x = > < , the length of x is: 1
    32
    x = > < , the length of x is: 1

Maybe you are looking for

  • Printing from InDesign - black lines

    Good afternoon all, I've started using InDesign CS6 at work to produce advertising catalogues. I've hit a bit of a wall when I print it and would like a bit of help to try and solve my issue(s). I have a booklet set up to print 4 pages of A4 on to do

  • Vector files will not open in Freehand10

    I cannot import or open vector files in Freehand 10. I just get large Xs instead of the image. I have a MAC OS 10.3.9, Freehand 10. I'm trying to import some small files that are either .ai or .eps files (all are vector) that open fine in Illustrator

  • Error correction always on - bad for undamaged tracks?

    I still have a lot of CD's that I still want to import. They are of varying quality. Most have been kept in binders, and depending on where they are in the binder, they are more or less scratched. No doubt some will have audio errors if I import with

  • "Custom" Permissions

    Posting here because I only notice this on folders moved from networked users to my dropbox. When I get folders placed in my dropbox and I then move them to a local folder they are marked as having "custom" permissions for my user and read only for e

  • Licensing, moving 9i from Solaris to AIX 5L

    Hi, I would like to know if I have to open a TAR in order to get Oracle 9i for AIX 5L? We have used Oracle 9i for Solaris so far but we are moving to AIX 5L, and I was told by a vendor, that since we have Product and Software support the only thing I