Aggregate awareness: please help

HI OBI gurus.
I dont know what i am missing, but no discussion group giving detailed explanation on how to create aggregate awareness in OBI. i have been trying to figure out this but utterly failing. I know i am dumb but something is missing somewhere please help. Here  I am explaining what i am trying to achieve including examples below. Please help.
Suresh
OBI Version: 10.1.3.3
DB Model
Area Dim Table,
Country,
State
City
Fact Tables (3 Fact tables)
1. Country wise Sales (Country Code, Sum Sales)
2. State wise Sales (State Code, Sum Sales)
3. City wise Sales ( City Code, Sum Sales)
Please let me know how i can join the above tables in physical and bmm to achieve this.
If i create a report for Country, State Sum Sales. The query should be populated like this.
     select country, state, sum(sales)
        from area_dim, sate_wise_sales_fact fact
     where  area_dim.state_code= fact.state_code
       group by country, state
If i want to create a report for Country, State, City Sum Sales. The query should be populated like this.
     select country, state, city, sum(sales)
        from area_dim, city_wise_sales_fact fact
     where  area_dim.city_code= fact.city_code
       group by country, state, city
Should choose different fact tables for different lovel level dim.
Thanks and Regards
Suresh

$ uresh
You changed UserName from slella to $ uresh!! You want free from Garry and me
I thought to response to your post, i realized its you and your free
https://forums.oracle.com/thread/2558637
Looks like you for got your old post out of 4 answered 2 are from me.. have fun
~ cool-bi.com

Similar Messages

  • Aggregates Question (Performance) Please Help

    I have 2 Questions first one is
    <b><i>1. Its been mentioned in the Forum that we can anlyse in the workload Monitor (ST03N) i went through that and did not find any Data for anlysis rather its showing information for Load Analysis.</i></b>
    <i><b>2. Its been mentioned that we also check in RSDDSTAT table contents i checked this table but could not find data (How this table is Populated)</b></i>
    When i checked in
    <b>InfoCube Manage Screen --> Performance --> Check Statistics (Refresh Aggregate Statistics)</b>
    What are these for?
    Can we Analyse to create aggregates or not with out BW Statistics data and just checking ST03N and RSDDSTAT and RSDDAGGRDIR tables?Please Help Me
    I am using BI 7.Points will be assigned (Thanks)
    Message was edited by:
            SV S
    Message was edited by:
            SV S
    null

    Hi,
    For ST03N
    From Document
    BI Administration Cockpit and New BI Statistics Content in SAP NetWeaver 7.0
    As of SAP NetWeaver 7.0 BI, transaction ST03 is based on the Technical Content InfoProviders (unlike prior releases). Therefore, using transaction ST03 for BI Monitoring requires the Technical Content to be activated and to be populated periodically with statistics data.
    So, looks like you have to install the new statistics technical content.
    From thread /message/3461465#3461465 [original link is broken]
    Rajani Saralaya K   
    IN BI 7.0, ST03n is based on BI Statistics cubes, so unless you install these cubes and schedule the dataflow you cant see any result in there. Even the same thing is mentioned in the note 934848.
    For information about RSDDSTAT,
    see /message/3627627#3627627 [original link is broken]
    Raj.

  • I need to know how to download all photos AND videos from 2 "libraries" within Adobe Revel. Please help.

    I was quite angered last night when I posted the first time, so lets try this again:
    Here is my setup:  I have adobe Revel on my Mac and iOS devices and it has worked quite well to be honest until I recently realized my photos and videos are basically trapped within the software. There is no way (that I am aware) to export all photos/videos or any kind of tool to pull the raw data out of the app and put it into say iPhoto or Lightroom.
    Since I am not a fan of this sort of lock-in, (something I despise and encourage companies never to do), I am sadly going to cancel my Revel account once I get this sorted and store my photos elsewhere. This is a huge missed opportunity for Adobe, as the money is not an issue - its simply that the quality of service I need just doesn't seem to be there for this product.
    So here is what I am trying to achieve:  I simply want every one of my photos and videos to store on my hard drive like the old days.  I don't care about folders or hirarcy or any kind of organization - I can do that with the metadata later. I simply want all of my things. 
    My hang up is in that I have already tried methods like "Show package contents" in the photos/adobe revel route and that works to an extent, but is incredibly cumbersome as I have to sift through all of the many folders.  If that were the worst of it, I might be ok.  But what is truly alarming and making this difficult is that I don't know where on earth the videos in Revel are actually stored.  They show up in the application and I could export them one by one but I literally have hundreds.  I can't find the actual files on my Mac anywhere.
    Is there anyone at all who can help with this?  The goal is to make this transition fairly easy and I feel that Adobe has very intentionally made it very difficult to consider leaving. I spend >$50/month on Adobe services and I am a little in shock this application seems so poorly designed for anything other than just dropping your photos into it.  Please, please help if you can.  I would be so grateful as Adobe customer service doesn't seem to know or care much about supporting this product.

    Hi KDT
    Yeah. I agree, if you are used to a situation where "it's on the cloud AND synced down to your hard disk where you can get it" Revel is not exactly that. There were legacy decisions behind that - most not as sinister as you might think but I won't bore you with those details.  AND yes you are correct. We currently don't have any way for you to wholesale download everything at once. So you aren't missing anything. Until we provide that mechanism I can provide some guidance.
    I'm going to assume you have the current version of Revel on your Mac which is 2.0.
    The easiest thing for you to do will be to export your files manually. You can actually select a range of files and export. So it's not a one by one thing.
    You'll have to decide how best to perform the selection based on your photography habits. If you tend to take batches of files surrounding specific dates. You could do it by date. In the date view (In the applications upper right "Showing: Dates"). If you look at the end of a date row you'll see a small grid. If you click that grid you are taking into a grid view of just that date. If you select all and file>export you'll export the contents of that date.
    The other option is remaining in Grid view (In the applications upper right "Showing:Grid") and perform a shift+selection where you select your first file, move down the desired range and while holding shift you select a second file (standard multi-select stuff).
    One thing to keep in mind as you do this. You'll notice when you export you can export original or 'current version'. Export original does just that. Exports unedited original versions of your images as they were uploaded to us. When you export the current version of an image we'll export a rendition of the edited image. This "current version" image is not the original and in most cases will be a rendition that is not the same size as the original. So keep that in mind as you proceed.
    Not ideal, I fully realize, but I do hope it gets you closer to having your images back on your hard disk as you desire.
    As for your subscription. Assure you have checked your iOS Appstore subscription settings and set Revel to not auto-renew. Unfortunately for a pro-rated refund on the subscription balance you no longer desire you'll need to work with Apple as they hold the purse strings for Appstore purchases. Refunds haven't been a problem in the past so you should have no issue.
    Hope this helps.
    Jason

  • Please help me to tune this PL/SQL...

    Hi everyone,
        I have a SQL query which runs ok when i run it individually but the same query if
    i use it in a procedure.The procedure is hanging up.Could someone please help to tune this
    SQL query and please check my procedure why is it hanging up.
    SQL Query
    =========
    SELECT active_members.member_nbr,
      active_members.name_last,
      active_members.name_first,
      active_members.name_middle,
      active_members.dob,
      active_members.sex,
      active_members.subsciber_nbr,
      active_members.ssn,
      active_members.name_suffix,
      active_members.class_x,
      active_members.aff_nbr,
    CASE
    WHEN TRIM(active_members.class_x) = 'SE' THEN
        (SELECT DISTINCT(mssp.member_nbr)
         FROM member_span mssp
         WHERE SUBSTR(mssp.member_nbr,    1,    9) = SUBSTR(active_members.member_nbr,    1,    9)
         AND mssp.class_x = 'SP'
         AND rownum = 1)
       WHEN TRIM(active_members.class_x) = 'SP' THEN
          (SELECT DISTINCT(mssp.member_nbr)
           FROM member_span mssp
           WHERE SUBSTR(mssp.member_nbr,    1,    9) = SUBSTR(active_members.member_nbr,    1,    9)
           AND mssp.class_x = 'SE'
           AND rownum = 1)
      ELSE
        NULL
       END)
    spouse_member_nbr,
      active_members.division_nbr,
      active_members.ymdeff,
      active_members.ymdend,
      active_members.actual_ymd_enddt,
      active_members.email_id,
      active_members.network_id,
      active_members.insurance_company_code,
      active_members.cob_flag,
      active_members.vip_flag,
      active_members.pre_x_flag,
      active_members.region,
      active_contracts.language_x,
      active_contracts.corp_nbr,
      active_members.group_nbr,
      active_members.non_erisa_status
    FROM
      (SELECT mb_active.member_nbr,
         mb_active.contract_nbr,
         mb_active.name_last,
         mb_active.name_first,
         mb_active.name_middle,
         ms_active.ymdeff,
         ms_active.ymdend,
         to_char(to_date(
       CASE
       WHEN LENGTH(mb_active.ymdbirth) = 8 THEN mb_active.ymdbirth
       ELSE NULL
       END,    'YYYYMMDD'),    'MM/DD/YYYY') dob,
         mb_active.sex,
         to_char(to_date(ms_active.ymdeff,    'YYYYMMDD'),    'MM/DD/YYYY') ymdeff_formatted,
         to_char(to_date(ms_active.ymdend,    'YYYYMMDD'),    'MM/DD/YYYY') ymdend_formatted,
         ms_active.void,
       CASE
       WHEN SUBSTR(mb_active.member_nbr,    10,    2) = '00' THEN mb_active.member_nbr
       ELSE SUBSTR(mb_active.member_nbr,    1,    9) || '00'
       END) subsciber_nbr,
         mb_active.ssn,
         mb_active.name_suffix,
         ms_active.class_x,
         ms_active.aff_nbr,
         ms_active.division_nbr,
       CASE
       WHEN TRIM(ms_active.ymdend) = '99991231' THEN NULL
       ELSE to_char(to_date(ms_active.ymdend,    'YYYYMMDD'),    'MM/DD/YYYY')
       END) actual_ymd_enddt,
       CASE
       WHEN TRIM(ms_active.business_unit) = '01' THEN ms_active.business_unit || '-' || ms_active.prog_nbr
       WHEN TRIM(ms_active.business_unit) = '03' THEN ms_active.business_unit || '-' || ms_active.prog_nbr || '-' || ms_active.carrier
       ELSE NULL
       END) network_id,
         ms_active.business_unit || '-' || ms_active.prog_nbr || '-' || ms_active.carrier insurance_company_code,
          (SELECT DISTINCT(email)
         FROM dbo.av_mem_email
         WHERE dbo.av_mem_email.member_nbr = mb_active.member_nbr
         AND rownum = 1)
      email_id,
         mb_active.lr_response cob_flag,
         mb_active.record_nbr vip_flag,
         ms_active.pre_exist pre_x_flag,
         ms_active.region region,
         ms_active.group_nbr,
       CASE
       WHEN
        (SELECT TRIM(div.div_status)
         FROM division div
         WHERE TRIM(div.division_nbr) = TRIM(ms_active.division_nbr)) = 'NULL' THEN
          'Y'
         ELSE
          'N'
         END)
      non_erisa_status
       FROM member mb_active,
         member_span ms_active
       WHERE mb_active.member_nbr = ms_active.member_nbr
       AND(20090707 BETWEEN ms_active.ymdeff
       AND ms_active.ymdend
       AND TRIM(ms_active.void) IS NULL
    active_members,
        (SELECT DISTINCT(contract.contract_nbr),
         contract.language_x,
         contract_span.corp_nbr
       FROM contract,
         contract_span
       WHERE contract.contract_nbr = contract_span.contract_nbr
       AND(20090707 BETWEEN contract_span.ymdeff
       AND contract_span.ymdend)
       AND TRIM(contract_span.void) IS
      NULL)
    active_contracts
    WHERE TRIM(active_members.contract_nbr) = TRIM(active_contracts.contract_nbr);
    Taking around 6 minute to run and it returns """"268267"""" records
    Explain Plan for the above SQL:
    ===============================
    "PLAN_TABLE_OUTPUT"
    "Plan hash value: 379550299"
    "| Id  | Operation                      | Name          | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |"
    "|   0 | SELECT STATEMENT               |               |  2609K|   659M|       | 91679   (3)| 00:18:21 |"
    "|   1 |  HASH UNIQUE                   |               |     1 |    16 |       | 54461   (2)| 00:10:54 |"
    "|*  2 |   COUNT STOPKEY                |               |       |       |       |            |          |"
    "|*  3 |    TABLE ACCESS FULL           | MEMBER_SPAN   | 12891 |   201K|       | 54459   (2)| 00:10:54 |"
    "|   4 |    HASH UNIQUE                 |               |     1 |    16 |  2424K| 54736   (2)| 00:10:57 |"
    "|*  5 |     COUNT STOPKEY              |               |       |       |       |            |          |"
    "|*  6 |      TABLE ACCESS FULL         | MEMBER_SPAN   | 51541 |   805K|       | 54459   (2)| 00:10:54 |"
    "|   7 |  HASH UNIQUE                   |               |     1 |    50 |       |    64   (4)| 00:00:01 |"
    "|*  8 |   COUNT STOPKEY                |               |       |       |       |            |          |"
    "|*  9 |    TABLE ACCESS FULL           | AV_MEM_EMAIL  |     1 |    50 |       |    63   (2)| 00:00:01 |"
    "|* 10 |  TABLE ACCESS FULL             | DIVISION      |     1 |    14 |       |     3   (0)| 00:00:01 |"
    "|* 11 |  HASH JOIN                     |               |  2609K|   659M|       | 91679   (3)| 00:18:21 |"
    "|  12 |   VIEW                         |               |   581 | 12782 |       |  8184   (4)| 00:01:39 |"
    "|  13 |    HASH UNIQUE                 |               |   581 | 26145 |       |  8184   (4)| 00:01:39 |"
    "|  14 |     TABLE ACCESS BY INDEX ROWID| CONTRACT      |     1 |    14 |       |     2   (0)| 00:00:01 |"
    "|  15 |      NESTED LOOPS              |               |   581 | 26145 |       |  8183   (4)| 00:01:39 |"
    "|* 16 |       TABLE ACCESS FULL        | CONTRACT_SPAN |   581 | 18011 |       |  7019   (5)| 00:01:25 |"
    "|* 17 |       INDEX RANGE SCAN         | CONTRACT_IX1  |     1 |       |       |     1   (0)| 00:00:01 |"
    "|* 18 |   HASH JOIN                    |               |   449K|   104M|    39M| 83466   (2)| 00:16:42 |"
    "|* 19 |    TABLE ACCESS FULL           | MEMBER_SPAN   |   449K|    34M|       | 54964   (3)| 00:11:00 |"
    "|  20 |    TABLE ACCESS FULL           | MEMBER        |  1436K|   221M|       | 14664   (2)| 00:02:56 |"
    "Predicate Information (identified by operation id):"
    "   2 - filter(ROWNUM=1)"
    "   3 - filter(SUBSTR("MSSP"."MEMBER_NBR",1,9)=SUBSTR(:B1,1,9) AND "MSSP"."CLASS_X"='SP')"
    "   5 - filter(ROWNUM=1)"
    "   6 - filter(SUBSTR("MSSP"."MEMBER_NBR",1,9)=SUBSTR(:B1,1,9) AND "MSSP"."CLASS_X"='SE')"
    "   8 - filter(ROWNUM=1)"
    "   9 - filter("AV_MEM_EMAIL"."MEMBER_NBR"=:B1)"
    "  10 - filter(TRIM("DIV"."DIVISION_NBR")=TRIM(:B1))"
    "  11 - access(TRIM("MB_ACTIVE"."CONTRACT_NBR")=TRIM("ACTIVE_CONTRACTS"."CONTRACT_NBR"))"
    "  16 - filter("CONTRACT_SPAN"."YMDEFF"<=20090707 AND TRIM("CONTRACT_SPAN"."VOID") IS NULL AND "
    "              "CONTRACT_SPAN"."YMDEND">=20090707)"
    "  17 - access("CONTRACT"."CONTRACT_NBR"="CONTRACT_SPAN"."CONTRACT_NBR")"
    "  18 - access("MB_ACTIVE"."MEMBER_NBR"="MS_ACTIVE"."MEMBER_NBR")"
    "  19 - filter(TRIM("MS_ACTIVE"."VOID") IS NULL AND "MS_ACTIVE"."YMDEFF"<=20090707 AND "
    "              "MS_ACTIVE"."YMDEND">=20090707)"
    SAME SQL IN A PROCEDURE..IT IS HANGING UP
    ========================================
    create or replace PROCEDURE TEST_CURRENT_PCP_SPAN is
    EXTRACTED_STRING VARCHAR2(32767);
    FILEHANDLER UTL_FILE.FILE_TYPE;
    test_str varchar2(100);
    pcp_eff_date number(10);
    file_name varchar2(50);
       CURSOR MEMBERS
       IS
    SELECT active_members.member_nbr,
      active_members.name_last,
      active_members.name_first,
      active_members.name_middle,
      active_members.dob,
      active_members.sex,
      active_members.subsciber_nbr,
      active_members.ssn,
      active_members.name_suffix,
      active_members.class_x,
      active_members.aff_nbr,
    CASE
    WHEN TRIM(active_members.class_x) = 'SE' THEN
        (SELECT DISTINCT(mssp.member_nbr)
         FROM member_span mssp
         WHERE SUBSTR(mssp.member_nbr,    1,    9) = SUBSTR(active_members.member_nbr,    1,    9)
         AND mssp.class_x = 'SP'
         AND rownum = 1)
       WHEN TRIM(active_members.class_x) = 'SP' THEN
          (SELECT DISTINCT(mssp.member_nbr)
           FROM member_span mssp
           WHERE SUBSTR(mssp.member_nbr,    1,    9) = SUBSTR(active_members.member_nbr,    1,    9)
           AND mssp.class_x = 'SE'
           AND rownum = 1)
      ELSE
        NULL
       END)
    spouse_member_nbr,
      active_members.division_nbr,
      active_members.ymdeff,
      active_members.ymdend,
      active_members.actual_ymd_enddt,
      active_members.email_id,
      active_members.network_id,
      active_members.insurance_company_code,
      active_members.cob_flag,
      active_members.vip_flag,
      active_members.pre_x_flag,
      active_members.region,
      active_contracts.language_x,
      active_contracts.corp_nbr,
      active_members.group_nbr,
      active_members.non_erisa_status
    FROM
      (SELECT mb_active.member_nbr,
         mb_active.contract_nbr,
         mb_active.name_last,
         mb_active.name_first,
         mb_active.name_middle,
         ms_active.ymdeff,
         ms_active.ymdend,
         to_char(to_date(
       CASE
       WHEN LENGTH(mb_active.ymdbirth) = 8 THEN mb_active.ymdbirth
       ELSE NULL
       END,    'YYYYMMDD'),    'MM/DD/YYYY') dob,
         mb_active.sex,
         to_char(to_date(ms_active.ymdeff,    'YYYYMMDD'),    'MM/DD/YYYY') ymdeff_formatted,
         to_char(to_date(ms_active.ymdend,    'YYYYMMDD'),    'MM/DD/YYYY') ymdend_formatted,
         ms_active.void,
       CASE
       WHEN SUBSTR(mb_active.member_nbr,    10,    2) = '00' THEN mb_active.member_nbr
       ELSE SUBSTR(mb_active.member_nbr,    1,    9) || '00'
       END) subsciber_nbr,
         mb_active.ssn,
         mb_active.name_suffix,
         ms_active.class_x,
         ms_active.aff_nbr,
         ms_active.division_nbr,
       CASE
       WHEN TRIM(ms_active.ymdend) = '99991231' THEN NULL
       ELSE to_char(to_date(ms_active.ymdend,    'YYYYMMDD'),    'MM/DD/YYYY')
       END) actual_ymd_enddt,
       CASE
       WHEN TRIM(ms_active.business_unit) = '01' THEN ms_active.business_unit || '-' || ms_active.prog_nbr
       WHEN TRIM(ms_active.business_unit) = '03' THEN ms_active.business_unit || '-' || ms_active.prog_nbr || '-' || ms_active.carrier
       ELSE NULL
       END) network_id,
         ms_active.business_unit || '-' || ms_active.prog_nbr || '-' || ms_active.carrier insurance_company_code,
          (SELECT DISTINCT(email)
         FROM dbo.av_mem_email
         WHERE dbo.av_mem_email.member_nbr = mb_active.member_nbr
         AND rownum = 1)
      email_id,
         mb_active.lr_response cob_flag,
         mb_active.record_nbr vip_flag,
         ms_active.pre_exist pre_x_flag,
         ms_active.region region,
         ms_active.group_nbr,
       CASE
       WHEN
        (SELECT TRIM(div.div_status)
         FROM division div
         WHERE TRIM(div.division_nbr) = TRIM(ms_active.division_nbr)) = 'NULL' THEN
          'Y'
         ELSE
          'N'
         END)
      non_erisa_status
       FROM member mb_active,
         member_span ms_active
       WHERE mb_active.member_nbr = ms_active.member_nbr
       AND(20090707 BETWEEN ms_active.ymdeff
       AND ms_active.ymdend
       AND TRIM(ms_active.void) IS NULL
    active_members,
        (SELECT DISTINCT(contract.contract_nbr),
         contract.language_x,
         contract_span.corp_nbr
       FROM contract,
         contract_span
       WHERE contract.contract_nbr = contract_span.contract_nbr
       AND(20090707 BETWEEN contract_span.ymdeff
       AND contract_span.ymdend)
       AND TRIM(contract_span.void) IS
      NULL)
    active_contracts
    WHERE TRIM(active_members.contract_nbr) = TRIM(active_contracts.contract_nbr);
      TYPE MEM IS TABLE OF MEMBERS%ROWTYPE INDEX BY PLS_INTEGER;
      TABLE_MEM MEM;
    MEMBER_ADDR   MGONZALEZ.CPKG_UTIL.ADDR;
    BEGIN 
       test_str := '''A10000213'''||','||'''A10000213''';
       insert into test_number_char(str) values ('start time of MEMBER_LOAD_CURRENT_PCP_SPAN '||to_char(sysdate,'MM/DD/YYYY HH24:MI:SS'));
       commit;
       file_name := 'member_load'||to_char(sysdate,'YYYYMMDDHH24MI')||'.txt';
       FILEHANDLER := UTL_FILE.FOPEN('AVMED_UTL_FILE',file_name, 'W',10000);
       insert into test_number_char(str) values ('start time of opening members cursor(before open members command) '||to_char(sysdate,'MM/DD/YYYY HH24:MI:SS'));
       commit;
       OPEN MEMBERS;
    LOOP
          FETCH MEMBERS
             BULK COLLECT INTO TABLE_MEM LIMIT 1000 ;
           EXIT WHEN TABLE_MEM.COUNT = 0;
    insert into test_number_char(str) values ('start time of outer loop '||to_char(sysdate,'MM/DD/YYYY HH24:MI:SS'));
    commit;
          FOR i IN 1 .. TABLE_MEM.COUNT
          LOOP
          EXTRACTED_STRING := TRIM(TABLE_MEM(i).MEMBER_NBR)||'| '||     
                              TRIM(TABLE_MEM(i).NAME_LAST)||'| '||      
                            TRIM(TABLE_MEM(i).NAME_FIRST)||'| '||      
                             TRIM(TABLE_MEM(i).NAME_MIDDLE)||'| '||   
                             TRIM(TABLE_MEM(i).ssn)||'| '||            
                             TABLE_MEM(i).subsciber_nbr||'| '||        
                             TRIM(TABLE_MEM(i).class_x)||'| '||         
                             TRIM(TABLE_MEM(i).DOB)||'| '||             
                             TRIM(TABLE_MEM(i).SEX)||'| ' ;             
              EXTRACTED_STRING   :=
                    EXTRACTED_STRING ||
                  TRIM(TABLE_MEM(i).aff_nbr)||'| '||                         
                                pcp_eff_date||'| '||                 
              TABLE_MEM(i).actual_ymd_enddt||'| '||                        
                  TRIM(TABLE_MEM(i).division_nbr)||'| '||                    
                  ' '||'| '||                                               
                  ' '||'| '||                                                  
                  ' '||'| '||                                                 
                  TABLE_MEM(i).network_id||'| '||                              
                  ' '||'| '||                                                  
                  ' '||'| '||                                                  
                  ' '||'| '||                                                  
                  ' '||'| '||                                                 
                  ' '||'| '||                                                  
                 TRIM(TABLE_MEM(i).name_suffix)||'| '||                       
                 ' '||'| '||                                                   
                 TRIM(TABLE_MEM(i).spouse_member_nbr)||'| '||                  
                 ' '||'| '||                                                   
                 ' '||'| '||                                                   
                 ' '||'| '||                                                  
                 ' '||'| '||                                                   
                 ' '||'| '||                                                  
                 ' '||'| '||                                                   
                 ' '||'| '||                                                   
                 ' '||'| '||                                                   
                 ' '||'| '||                                                   
                 ' '||'| '||                                                   
                 ' '||'| '||                                                   
                 ' '||'| '||                                                  
                 ' '||'| '||                                                   
                TRIM(TABLE_MEM(i).email_id)||'| '||                                
                TABLE_MEM(i).Insurance_company_code||'| '||                    
                TABLE_MEM(i).group_nbr||'| '||                                 
                TABLE_MEM(i).language_x||'| '||                               
                TABLE_MEM(i).region||'| '||                                    
                TABLE_MEM(i).corp_nbr||'| '||                                  
                TABLE_MEM(i).non_erisa_status||'| '||                          
                TABLE_MEM(i).cob_flag||'| '||                                  
                TABLE_MEM(i).pre_x_flag||'| '||                                
                TABLE_MEM(i).vip_flag                                       
                 EXTRACTED_STRING   := rtrim(EXTRACTED_STRING,' ');
            UTL_FILE.PUT_LINE(FILEHANDLER,EXTRACTED_STRING,TRUE);
            EXTRACTED_STRING := NULL;
            pcp_eff_date := NULL;
          END LOOP;
          insert into test_number_char(str) values ('end time of outer loop '||to_char(sysdate,'MM/DD/YYYY HH24:MI:SS'));
    commit;
    END LOOP;
    close members;
    insert into test_number_char(str) values ('end time of opening members cursor '||to_char(sysdate,'MM/DD/YYYY HH24:MI:SS'));
    commit;
    commit;
       UTL_FILE.FCLOSE(FILEHANDLER);
       insert into test_number_char(str) values ('End time of MEMBER_LOAD_CURRENT_PCP_SPAN '||to_char(sysdate,'MM/DD/YYYY HH24:MI:SS'));
       commit;
       EXCEPTION
          WHEN OTHERS
          THEN
             DBMS_OUTPUT.put_line(   'ERROR getting members '
                                  || SQLCODE
                                  || ' '
                                  || SQLERRM);
    END ;
    In my Test table which i am inserting to check the times...
    I am geting on these 2 records after that it hangs up...
    start time of MEMBER_LOAD_CURRENT_PCP_SPAN 07/08/2009 11:41:21
    start time of opening members cursor(before open members command) 07/08/2009 11:41:21I have to call some other functions for each member to get additional details thats the reason i am going for Procedure.Instead it is just a simple SQL
    Thanks in advance

    It is taking lot of timeYou could perhaps split it up in smaller, isolated parts.
    Running certain steps separate.
    ..is it possible to find out the issues without running the proc?Other than have other people on OTN give their ideas/share experiences?
    Not that I'm aware of.
    There are lots of statistical views, you might be able to deduct from their data, but I personally prefer running the procedure and just trace it. But I'm always willing to learn new approaches, btw.
    Still, you have 2 things to look at, at least:
    - avoid loops in loops if possible
    - check your predicates, if you apply a function, you lose the index, unless you create a function based index.
    edit
    One more thing (how could I overlook that):
    You commit your instrumentation code ( insert into test_number_char(str) ) IN the loop.
    Please remove commit in your loops...
    Commit only once, at the end of your transaction.
    Never commit in a loop.
    (Preferrably the client commits)
    And remove every commit in your loop...
    Edited by: hoek on Jul 8, 2009 8:03 PM

  • I am having a problem with pop pups and small windows with ads constantly opening up on my safari?? Thought that macs didn't get virus? this looks like one- any experts around? please help me fix it with your instructions? really don't know what to do...

    Hi everyone,
    I am having a problem with my Mac OS X 10.7.5 mac book air , there are constant pop pups and small windows with ads blinking constantly opening up on my safari in front of everything?? it is constantly interupting me and makes me mistakingly click on it then another new windows open behind the one im using..
    I am not too sure if thats a virus or trojan.. I always thought that macs didn't get virus? this looks like one to me… any experts around? please help me fix it with your instructions? really don't know what to do... thanks

    Those are not viruses. You have probably installed some malware:
    The Safe Mac » Adware Removal Guide
    Helpful Links Regarding Malware Protection
    An excellent link to read is Tom Reed's Mac Malware Guide.
    Also, visit The XLab FAQs and read Detecting and avoiding malware and spyware.
    See these Apple articles:
              Mac OS X Snow Leopard and malware detection
              OS X Lion- Protect your Mac from malware
              OS X Mountain Lion- Protect your Mac from malware
              About file quarantine in OS X
    If you require anti-virus protection Thomas Reed recommends using Dr.Web Light from the App Store. It's free, and since it's from the App Store, it won't destabilize the system. If you prefer one of the better known commercial products, then Thomas recommends using Sophos.(Thank you to Thomas Reed for these recommendations.) If you already use Sophos, then be aware of this if you are using Mavericks: OS X Mavericks- Sophos Anti-Virus on-access scanner versions 8.0 - 9.1 may cause unexpected restarts
    From user Joe Bailey comes this equally useful advice:
    The facts are:
    1. There is no anti-malware software that can detect 100% of the malware out there.
    2. There is no anti-malware that can detect anything targeting the Mac because there
         is no Mac malware in the wild, and therefore, no "signatures" to detect.
    3. The very best way to prevent the most attacks is for you as the user to be aware that
         the most successful malware attacks rely on very sophisticated social engineering
         techniques preying on human avarice, ****, and fear.
    4. Internet popups saying the FBI, NSA, Microsoft, your ISP has detected malware on
        your computer is intended to entice you to install their malware thinking it is a
        protection against malware.
    5. Some of the anti-malware products on the market are worse than the malware
        from which they purport to protect you.
    6. Be cautious where you go on the internet.
    7. Only download anything from sites you know are safe.
    8. Avoid links you receive in email, always be suspicious even if you get something
        you think is from a friend, but you were not expecting.
    9. If there is any question in your mind, then assume it is malware.

  • Safari wont let me open links in new tabs anymore? Please help!?

    On my Macbook, I'm using Safari as my browser.
    Everything was fine until this morning; suddenly Safari will not give me the option of opening links from one page in another tab in the same window.
    For example, if I'm browsing on EBay and want to open a search result in a new tab of the same window, usually when I would right click on my track pad or magic mouse, it would say "Open link in new tab" or "Open link in new window". However, now when I right click, it just says, "Open link" "Open link in new window" and "Copy link".
    I haven't changed any settings or anything on my Macbook whatsoever in the last 3 hours (at least that I'm aware of). Can anyone please tell me how to get this back to normal?
    Also, it seems that when I right click anywhere on a page, I only see the options "back" and "reload" whereas before there was "view source" etc.
    Please help!
    xx0

    Hi,
    From the Safari Menu Bar, click Safari / Empty Cache. When you are done with that...
    From the Safari Menu Bar, click Safari / Reset Safari. Select the top 5 buttons and click Reset.
    Go here for trouble shooting 3rd party plugins or input managers which might be causing the problem. Safari: Add-ons may cause Safari to unexpectedly quit or have performance issues
    Since you are running Snow Leopard, *make sure Safari is opening in 32-bit mode, not 64*. Right or control click the Safari icon in the Applications folder, then click: Get Info In the Get Info window click the black disclosure triangle next to General so it faces down. Select 32 bit mode. Also, (in that same window) *make sure Safari is NOT running in Rosetta.*
    

Web pages now include a small icon or 'favicon' which is visible in the address bar and next to bookmarks. These icons take up disk space and slow Safari down. It is possible to erase the icons from your computer and start fresh. *To delete Safari's icon cache using the Finder, open your user folder, navigate to ~/Library/Safari/ and move this file "webpageIcons.db to the Trash.*
    If Safari still won't let you open links in new tabs, go to the Safari Menu Bar, click Safari/Preferences. Make note of all the preferences under each tab. Quit Safari. Now go to ~/Library/Preferences and move this file com.apple.safari.plist to the Desktop. Relaunch Safari. If it's a successful launch, then that .plist file needs to be moved to the Trash.
    If your forum profile is correct (10.6.1) go to the Apple Menu/Software Updates ...
    Very important to keep your system software up to date.
    If you install the 10.6.3 update make sure and repair disk permissions.
    Quit any open applications/programs. Launch Disk Utility. (Applications/Utilities) Select MacintoshHD in the panel on the left, select the FirstAid tab. Click: Repair Disk Permissions. When it's finished from the Menu Bar, Quit Disk Utility and restart your Mac. If you see a long list of "messages" in the permissions window, it's ok. That can be ignored. As long as you see, "Permissions Repair Complete" when it's finished... you're done. Quit Disk Utility and restart your Mac.
    Carolyn
    Edited by: Carolyn

  • Image capture deleted all my photos from iPhone without transferring them to the harddisk. So now I've lost 427 photos due to some data error it says. Please help me get my pictures back!?!

    I just wanted to back up my photos since I haven't done so since October 5th. I plugged in my iPhone and let Image Capture transfer the selected photos to the designated folder. Accidently I hit 'Import All but that's not the biggest problem. Apparently I had "Delete all after transfer" on AND 427 photos apparently "failed to transfer" as it said. I didn't think it was such a big problem, but then I noticed : what the ****.The delete all option was ON and now ALL my photos are gone, from the iPhone and NOT on the computer. Except a list of some old pictures I already have three backups and from the new ones between Oct 5 and this day I have a random selection >><!!!
    So please help me! How do I get my pictures back? iPhone Data recovery? Please please help. There are so many nice memories of this month and I'm so ****** that this just happened!

    If you have iCloud backup turned on or if you have recently backed up via iTunes you could restore the phone from either of those sources. Camera Roll photos are included in those backups. Be aware that doing a restore will replace the contents of the phone with the contents of the backup so you would lose anything new on the phone since the last backup. Back up and restore your iPhone, iPad, or iPod touch using iCloud or iTunes - Apple Support

  • HT1222 I bought used iPhone and on this iPhone I'm not able to make new account  on i Cloud'.  How can I use this iCloud's on used iPhone   Please help me

    I bought used iPhone and on this iPhone I'm not able to make new account  on i Cloud'.  How can I use this iCloud's on used iPhone   Please help me
    When I logging there it told me that maximum no of iCloud's Account already activated on this iPhone.
    Please help me how can I open new iCloud's account on this iPhone
    Regard
    Faiz khan

    Set up the account using a desktop or laptop, then sign
    into that account on your iPhone.
    I am not aware of any method around the restriction once
    the maximum has been created on any individual iPhne.

  • I recently moved and I got a new sim but I still use my old sim. I want to use both numbers for iMessage and FaceTime but i have absolutely no idea how to do it! please help me!

    I recently moved and I got a new sim but I still use my old sim. I want to use both numbers for iMessage and FaceTime but i have absolutely no idea how to do it! please help me! I have a macbook pro and iphone 5

    lewbobber wrote:
    Basically i need to either take it to a shop that can unlock i.e. £40.00
    Be aware, you go that route & every time you try to update or restore, it will error out, leaving your phone unusable. Not to mention, you void all warranty/support.
    Sell it & use the proceeds towards an officially unlocked iPhone bought directly from Apple.
    Good luck.

  • Hello there. i lost my Ipad and i need to log out all email and facebook. Also is there any chance get my diary somehow. how can i log out from my Ipad? please help, i have very important information and other stuff in my Ipad?

    I need help to log out from my stolen Ipad. please help.

    If you had installed iOS 7 it would be Activation locked, but I see you only have iOS 5. You do have a backup of you iPad files on your computer or iCloud, don't you?
    If the iPad was running iOS 7, the thief/finder will not ever be able to use it.
    iCloud: Find My iPhone Activation Lock in iOS 7
    http://support.apple.com/kb/HT5818
    Apple (and no one else) can not assist (with serial number or iCloud) in finding a lost or stolen iPad.
    Report to police along with serial number. Change all your passwords.
    These links may be helpful.
    How to Track and Report Stolen iPad
    http://www.ipadastic.com/tutorials/how-to-track-and-report-stolen-ipad
    Reporting a lost or stolen Apple product
    http://support.apple.com/kb/ht2526
    What to do if your iOS device is lost or stolen
    http://support.apple.com/kb/HT5668
    How to Find a Missing iPad with FindMyiPad
    http://www.dummies.com/how-to/content/how-to-find-a-missing-ipad-with-findmyipad .html
    iCloud: Locate your device on a map
    http://support.apple.com/kb/PH2698
    iCloud: Lost Mode - Lock and Trace
    http://support.apple.com/kb/PH2700
    iCloud: Remotely Erase your device
    http://support.apple.com/kb/PH2701
    Report Stolen iPad Tips and iPad Theft Prevention
    http://www.stolen-property.com/report-stolen-ipad.php
    General steps to follow for a Stolen iPad
    http://stolen-ipad.com/
    How to recover a lost or stolen iPad
    http://ipadhelp.com/ipad-help/how-to-recover-a-lost-or-stolen-ipad/
    How to Find a Stolen iPad
    http://www.ehow.com/how_7586429_stolen-ipad.html
    What NOT to do if your iPhone or iPad is lost or stolen
    http://www.tomahaiku.com/what-not-to-do-if-your-iphone-or-ipad-lost-or-stolen/
    Apple Product Lost or Stolen
    http://sites.google.com/site/appleclubfhs/support/advice-and-articles/lost-or-st Len
    Oops! iForgot My New iPad On the Plane; Now What?
    http://online.wsj.com/article/SB10001424052702303459004577362194012634000.html
    If you don't know your lost/stolen iPad's serial number, use the instructions below. The S/N is also on the iPad's box.
    How to Find Your iPad Serial Number
    http://www.ipadastic.com/tutorials/how-to-find-your-ipad-serial-number
    iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number
    http://support.apple.com/kb/HT4061
    Check the serial number (located on back/bottom) in this lost/stolen iPad database. However, most owners are not aware of this database and don’t enter the serial number.
    Stolen iPad Database
    http://www.stolenlostfound.org/online-stolen-ipad-database
    Also do a search, using the serial number, on your local Craig’s List. Some users list the serial number of a stolen iPad to thwart the sale of a stolen device.
     Cheers, Tom

  • Can't activate after installing iOS5 on iphone 4..PLEASE HELP!

    Went to update my iPhone 4 on Thursday, 14th. This is a phone that I have been using without any problems since the release of the iPhone 4. At this point I am using my PC (I have also tried on my Mac), so I download the new iTunes 10.2 or whatever the latest one is, then I download the iOS5 for my phone, then update.  Well, it gave me an error half way through and said that I needed to restore.  That fine cause I just backed eveything up, so I hit restore and everything seems fine until it trys to activate. Here's what come on the iPhone screen:
    Welcome Screen
    Select a language - english
    Country or region - US
    Location Services - Enable Location Services
    Wifi Networks
    Activation your iphone (it may take up to 3 minutes to activate your iPhone)
    Activation Error - Activation request could not be completed.  If problems persists, please contact customer care.
    In iTunes it has a similiar error that says: "We're sorry, we are unable to continue with your activation at this time.  Please try again later, or contact customer care."
    I called Apple that night and talked to someone for about 2 hours and tried everything he knew to try and fix the error with no resolution in the end.  He ended up transfering me to his supervisor and I talked to him for about 30 minutes until he said he would have to talk to someone else the following day and call me back.  He did call me back the next day, but only to tell me that they were already working on it and it should be resolved by Saturday night. He told me to keep restoring it every 2-3 hours and eventually it will finish activating.
    Well needless to say, it still still wasn't working by Sunday, so I called them back and talked to another supervisor and he said there was nothing he could do and that I just have to keep trying because they are already working on it.  That guy was kinda rude so I just decided I would call back Monday and get someone else.
    Well, on Monday I called AGAIN, and get a supervisor who said he was aware of the problem, but that it should have been fixed the middle of the previous week.  He said he would e-mail the person who was working with the problem and see what else I should do.  He also said he would be calling me back today (now Tuesday, 18th) after I get off work and tell me what that guy says.
    I have tried all these things on both my PC and Mac: restarting the computer, restarting itunes, restarting the iPhone, restoring the phone (like 100 times), reauthorizing the computer, restarting my internet (but it works fine for everything else), taking the SIM card in and out, connecting my phone to the internet and try activating without the computer, and calling AT&T (not a problem on their side).
    I don't have an apple store anywhere close or I would just go there.  I am getting so tired of dealing with this crap, and not having a phone (this is day 5 with a brick for a phone).  I am just wondering if ANYONE can help me at all!! I am desperate and will try anything, PLEASE HELP ME!!!

    has anyone solve this problem? i upgraded my iphone 4 to 5.1.1 and now i can see only ""We're sorry, we are unable to continue with your activation at this time.  Please try again later, or contact customer care."
    i tried mani sim card, laptops, wifi. but for 7 days the problem is still exist....
    Please help me!!!

  • Can someone please help me understand this? About Apple Repairs

    Hello everyone,
    I bought my macbook in Nov. 2009 in USA. I just moved to India and I've noticed the rubber base coming off and the infamous apple hairline crack. When I first took it to the India center, they kept insisting I had to pay for repair, I have a 1 year limited warranty.
    Upon my insisting that they check with Apple USA first, they decided to call them and then asked me to send them pictures. I've sent the pictures, my repairs have been approved.
    Now they tell me that I need to bring in the laptop and they need to run some software test for the crack, then they will submit this test and get the screen in about 4-5 days and then return the mac to me.
    I need to understand this from people that have gone through this sort of repair. Why do they need to do a software test for a hardware issue?
    Even if they have to do this software test, why can't they wait till the screen arrives (as this is the only way they claim to fix the crack) and then do the test all at once in one single day, rather than making me run back and forth with my macbook?
    I also requested for them to forward Apple's response to me, they refused and said its internal.
    I would really appreciate it if someone can please explain this to me, as the logic is just not making sense in my head. Maybe this is the way they do repairs and I'm not aware of them.. don't know..
    Thanks everyone!!

    ok running it through a debugger DID NOT HELP at all, please somebody help me, im very desparate now. i have spent 15 hours on this problem alone. i see absolutley nothing wrong with my code and have tried about 10 doifferent ways of trying this.,....i cannot get it to work, somebody please help me, ...in addition i was hoping someone could clear up an issue i have with enums...i do not understand how i can access the variable of the enum, the only access to it my text book provides is how to acess the string associated with enums....but i need to access the variable itself...how would i design such a get method....ive tried that a bunch of different ways as well, and right now im so lost that i want to cry, somebody please help, im begging on my knees...i really need someone to explain this to me....

  • Can you please help me figure out what filter(s) to use to recreate this picture?

    Hi Everyone!
    I'm a student and not an expert in Photoshop. I'm trying to work over in After Effects using a Photoshop edited picture I was given (not separated in layers). However in order to give the image more movement I would like to recreate the picture, but have failed in figuring out which filters to use. Can you please help a student out? I would greatly appreciate it.!! (The first picture is the original, and the second one is the one I am trying to recreate) Thanks !

    Thanks for sharing that piece of information.  I was only aware of creating posterized effects in Illustrator, though the
    re is a posterize filter in Photoshop too.  I'm learning as I post so bear with me.  I find that providing a helping hand can't hurt unless you're way off base.  In this case I guess I should have provided my suggestion as an alternative rather than stating that it could only be best done in AI.
    -markerline

  • Purchased a Movie, which has just disappeared - PLEASE HELP!!!

    I really need some help here please,
    A few hours ago, I purchased a Movie from the iTunes store which took 3 hours to download to my iPod touch which cost £6.99. A soon as it finished, I took then plugged it into my PC to transfer the purchase to my iTunes library, for a backup.
    Whilst I was doing this, iTunes (as per usual) froze on me when it was syncing and did not respond at all when I moved and clicked an area of the open window. Because of this, I was forced to quit iTunes and re-open it again, to try and get the film onto my PC.
    When I connected my iPod to iTunes again, the Movie disappeared from my iPod and there was no sign of it anywhere on my PC either. Where is it?!
    Because of this and un-aware I had to pay £7 again to download the movie on my iPod, I repeated the whole process and as before, the file just went missing on both my iPod and PC.
    You may ask "Why didn't you purchase it through iTunes on your PC?" and the reason why is because the iTunes Store doesn't work on the PC any more. I've tried hundreds of new and old solutions to fix this and none of them seem to work. I've disabled EVERY type of firewall that could potentially be blocking me using the store, disabled all spyware programs and it still won't work.
    I feel very angry and annoyed here, as I've spent £14 on 1 film I've tried to get twice and attempting to find a missing file that never appeared on my PC.
    So how do I resolve this constant freezing probelm with iTunes, how do I get the iTunes Store working again, and most importantly, is there any way of me getting my £14 back? Please help!
    Any answer will be greatly appreciated.
    Martin.

    girikavali wrote:
    I'm a begineer in labview. I want to evaluate an equation which has complex numbers through text code.. 
    Are you saying you don't want to use LabVIEW to evaluate this? In which case I suggest asking on a different forum.
    for(f=0;f<=2560;f=f+0.3125)
         R=((H12-e^(-i*k))/(e^(i*k)-H12))*e^(i*k);
    There is no 'f' in the loop, I don't understand what the loop would evaluate, unless k is a constant in which case the loop is redundant.
                k         function of frequency
                f          frequency 
    If k is a function of frequency you need to say what that function is. For example if you are evaluating 'k' for changing 'f' and applying it to the equation for R. I don't know what the best procedure would be but my first port of call would be nested loops: 'R' for each 'k' for each 'f' ?
    In the absence of a function for k this vi would evaluate you formula for k=f, I don't know if this wil help any.

  • I am trying to remove the older version of iTunes but an error message appears saying that it cannot find the path to 'iTunes64.msi", and I tried the search option to find it on my computer but no such luck. Please help me

    I am trying to remove the older version of iTunes but an error message appears saying that it cannot find the path to 'iTunes64.msi", and I tried the search option to find it on my computer but no such luck. Please help me

    Go to Microsoft website to fix install and Unistall problems. Click "Run now" from Fix it to remove all iTunes &amp; related installer files:
    http://support.microsoft.com/mats/Program_Install_and_Uninstall
    Be aware that Windows Installer CleanUp Utility will not remove the actual program from your computer. However, it will remove the installation files so that you can start the installation, upgrade, or uninstall over.

Maybe you are looking for

  • Panel corner - pencil  stroked with red line ?

    What does this mean. In the corner of my own swatch/graphic styles panel is a pencil with a red line through it?

  • Drive is unexpectedly mapped to the root of a nested share in Windows 8.1

    The following link details both my problem and a hotfix which should address it completely.  http://support.microsoft.com/kb/2878604/en-us Consider the following scenario: I have a computer that is running Windows 8.1. I have configured the value of

  • Items are not there in LOV  for Price List

    Hi All, I Have created an Inventory Organization "A", and have defined few items in It. When iam using Oracle Pricing Manager for creating a "Price List" the items defined in "A" inventory Org are not listed. Instead it is picking Items from the Visi

  • How to show date besides time in the topmost space?

    Hi, I can't find an option in settings to make my iPad2 show the date AND the time on the screen. Time is shown by default. Is there a way to add the date? Thanks.

  • Turn off Anti-Virus Warning

    When I do a Toshiba Laptop Checkup on my NB505 it says I have no Anti Virus programs but I do. I installed Avast and it is running. Is there a way for me to tell the computer it's there so the warning stops coming up wanting me to install Norton whic