Percentage Calculation in 11g Upgrade
upgradin to 11g issue in % cal
The issue is as follows
In 11g I'm calculating "ESS Rate" percenatge which is derived as below:
ESS Rate=(ESS count/count)*100
have casted ESS count as double and also "Count" as Int. Both the columns aggregate rule defined in the column formula is "sum"
Edited by: 982333 on Jan 16, 2013 3:12 PM
For more info on the columns values defined in column formula:
ESS Rate =100*CAST(sum(CASE WHEN "Pr Audit Setup Tax Fed Fact"."Audit Oprid Nm"="- Identity".Name THEN 1 ELSE 0 END) AS double)/CAST(count(IFNULL("Pr Audit Setup Tax Fed Fact"."Audit Oprid Nm", 'NA')) AS int)
Result obtained:
ESS RATE| ESS Count | Count
86.46% | 121 | 135
while a simple calculation using calculator would clearly give you (121/135)*100= 89.63% and not 86.46%
Can some one please help me in resolving this issue i do not see an reason for the wrong calculation of "ESS Rate" Percentage calculation.
Similar Messages
-
Hi,
We have a SAP Oracle Database, the size is 1.5 TB.
The Hardware details are
Application – SAP ERP 6.0 EHP5 SPS6
Database – Oracle 10.2.0.2
OS Platform – AIX 5.3 TL05, SP06
HW – 8 Dual Core CPU’s, 256 GB RAM on DB-CI server
Test Environment : 32 GB RAM
Please from your experience let me know how much time will a 10g to 11g upgrade will take.
Regards,
Narayanhi,
There are several parameters you have to check before upgrading. Commonly it is independent of size of database.I think it will take as minimum 1 hour. Check the links to speed up upgrading and to consider pre-upgrade preparation:
https://blogs.oracle.com/UPGRADE/entry/how_long_will_your_upgrade_tak
http://www.oracle.com/technetwork/database/upgrade/best-practices-for-upgrading-11gr2-174946.pdf -
Percentage calculation in reprot painter
Friends,
When i am doing percentage calculation in report painter ex: A/B *100, it is giving rounded value like 28% instead of 28.5 or 28.6. Any idea where i need to make changes.
Points will be assigned
ThanksGo to the Formatting-->Columns link in GRR2 screen. On the pop up screen maintain the decimal places you want.
Regards,
Vishal Thakur -
Oracle 11g upgrade: How to update stale statistics for sys and sysman?
Hi,
I am in the process of testing Oracle 11g upgrade from Oracle 10.2.0.3. I have run utlu111i.sql on the 10g database.
The utility utlu111i.sql reports about the stale statistics for SYS and SYSMAN components.
I executed dbms_stats.gather_dictionary_stats; dbms_stats.gather_schema_stats('SYS'); and dbms_stats.gather_schema_stats('SYSMAN');
After that the utlu111i.sql still reports the stale statistics for sys and sysman. Does anyone know how to get rid off this warning successfully?
Thanks,
SreekanthDoes anyone know how to get rid off this warning successfully?Just ignore the warnings. Check The Utlu111i.Sql Pre-Upgrade Script Reports Stale Sys Statistics - 803774.1 from Metalink.
-
Oracle packages - nested table cursor - 11g upgrade testing
I have a package call Crisis_Contacts. This package has a function(generate_file) in it that has a create cusor statement which calls on another function(split) in another package called NCF_UTL. In testing our code for a 11g upgrade the cursor statement calling on the split function is throwing a Error: ORA-00600: internal error code, arguments: [4814], [5], [0], [0], [], [], [], [], [], [], [], [] when compiling the package, which it was not doing prior to upgrade. Can you suggest a possible workaround or mod to this code to stop the error from occuring.
Basically, this code is reading html files and spliting them into section and loading them into the cursor. Then the cursor is read to write them to a table. Then it reads the table and transmits the lines of html to another location.
CREATE OR REPLACE package body ACADMGR.crisis_contacts as
function generate_file( file_type in varchar2,
person_pidm in integer := null,
person_id in varchar2 := null,
dry_run in varchar2 := 'N',
pidm_filter in varchar2 := null,
include_placeholders in varchar2 := 'N',
comments in varchar2 := null ) return integer is
cursor typeDef is
select * from crisis_contact_file_type ccft
where ccft.file_type = generate_file.file_type;
file_type_def typeDef%rowtype;
cursor fieldDef is
select * from crisis_contact_file_field ccff
where ccff.file_type = generate_file.file_type
order by seq asc;
type r_typ is ref cursor;
r r_typ;
datasel varchar2(32767) := '';
r_pidm integer;
pers_pidm integer := person_pidm;
prev_pidm integer;
r_tag varchar2(255);
r_val varchar2(4000);
type field_list is table of varchar2(256);
type field_index is table of integer index by varchar2(256);
type val_list is table of varchar2(4000);
type req_tbl is table of boolean index by varchar2(256);
req_fields field_list := field_list();
all_req_seen boolean;
fields field_list := field_list();
vals val_list := val_list();
field_idx field_index;
out_id integer;
out_line integer := 0;
buf varchar2(4000);
saved_out_line integer := 0;
xml_section_lf_delims ncf_utl.split_tbl := ncf_utl.split_tbl( ncf_utl.crlf, chr(13), chr(10) );
cursor splitcur( txt in varchar2 ) is
select column_value line from table(ncf_utl.split( txt, xml_section_lf_delims ));
cursor get_output is
select text from crisis_contact_file_line
where output_id = out_id
order by line_no asc;
log_time date := sysdate;
log_seq integer := 1;
procedure outp( txt in varchar2 ) is
begin
--dbms_output.put_line( txt );
insert into crisis_contact_file_line
( output_id, line_no, text )
values
( out_id, out_line, txt );
out_line := out_line + 1;
end;
procedure split_outp( txt in varchar2 ) is
begin
if txt is not null then
for r in splitCur( txt ) loop
outp( r.line );
end loop;
end if;
end;
begin
open typeDef;
fetch typeDef into file_type_def;
close typeDef;
if pers_pidm is null and person_id is not null then
select distinct(spriden_pidm) into pers_pidm from spriden
where spriden_id = person_id;
end if;
insert into crisis_contact_file_out ( file_type, comments ) values ( file_type, comments )
returning output_id into out_id;
datasel := gen_outfile_sql( file_type, pers_pidm, pidm_filter, include_placeholders );
if dry_run = 'Y' then
ncf_utl.output_text( datasel );
else
split_outp( file_type_def.preamble );
buf := '';
for f in fieldDef loop
fields.extend;
fields(fields.last) := f.alias;
field_idx(f.output_field) := fields.last;
vals.extend();
if f.mandatory = 'Y' then
req_fields.extend;
req_fields(req_fields.last) := f.output_field;
end if;
if file_type_def.file_mode = 'DELIM' and file_type_def.print_heading = 'Y' then
buf := buf || case when fieldDef%rowcount > 1 then nvl(file_type_def.delimiter,',') else '' end ||
nvl(file_type_def.quote,'') || nvl(f.alias,f.output_field) || nvl(file_type_def.quote,'');
end if;
end loop;
if length(buf) > 0 then
outp(buf);
end if;
--outp( '<?xml version="1.0" encoding="UTF-8"?>' );
--outp( '<recipients>' );
open r for datasel;
loop
fetch r into r_pidm, r_tag, r_val;
exit when r%notfound;
if prev_pidm is null or prev_pidm != r_pidm then
if prev_pidm is not null then
split_outp( file_type_def.record_end );
all_req_seen := true;
--check and reset 'seen' flags for required fields
for i in 1..req_fields.count loop
if vals(field_idx(req_fields(i))) is null then
all_req_seen := false;
end if;
end loop;
--if not all_req_seen then
-- rollback to USER_START;
-- out_line := saved_out_line;
--end if;
if all_req_seen then
buf := '';
for i in 1..fields.count loop
if file_type_def.file_mode = 'XML' then
outp( ' <' || fields(i) || '>' || vals(i) || '</' || fields(i) || '>' );
elsif file_type_def.file_mode = 'DELIM' then
buf := buf || case when i > 1 then nvl(file_type_def.delimiter,',') else '' end ||
nvl(file_type_def.quote,'') || vals(i) || nvl(file_type_def.quote,'');
end if;
end loop;
if file_type_def.file_mode = 'DELIM' then
outp(buf);
end if;
end if;
end if;
--savepoint USER_START;
--saved_out_line := out_line;
if r_tag != 'endofdata' then
split_outp( file_type_def.record_start );
end if;
for i in 1..fields.count loop
vals(i) := null;
end loop;
end if;
prev_pidm := r_pidm;
if field_idx.exists(r_tag) then
if r_val is not null then
vals(field_idx(r_tag)) := r_val;
end if;
end if;
end loop;
if pers_pidm is not null then
split_outp( file_type_def.record_end );
end if;
split_outp( file_type_def.postamble );
--for o in get_output loop
-- dbms_output.put_line( o.text );
--end loop;
end if;
return out_id;
end generate_file;
procedure gen_and_transmit( file_type in varchar2,
username in varchar2, pass in varchar2,
pidm_filter in varchar2 := null,
include_placeholders in varchar2 := 'N',
comments in varchar2 := null,
url_base in varchar2 := null, url_path in varchar2 := null,
ssl_wallet_path in varchar2 := null, ssl_wallet_pass in varchar2 := null ) is
out_id integer;
begin
out_id := generate_file( file_type, pidm_filter => pidm_filter,
include_placeholders => include_placeholders,
comments => comments );
--transmit_file( out_id, username, pass,
transmit_file( out_id, 'mhaywood', '------------',
url_base => url_base, url_path => url_path,
ssl_wallet_path => ssl_wallet_path, ssl_wallet_pass => ssl_wallet_pass );
end gen_and_transmit;
begin
UTL_HTTP.set_persistent_conn_support( true, 10 );
end;
create or replace
PACKAGE BODY NCF_UTL IS
PROCEDURE OUTPUT_TEXT( BUFFER IN VARCHAR2, LINE_LEN IN INTEGER := 80 ) IS
TYPE CHRLIST IS TABLE OF VARCHAR2(1);
cr VARCHAR2(1) := CHR(13);
lf VARCHAR2(1) := CHR(10);
tab VARCHAR2(1) := CHR(9);
whitespace CHRLIST := CHRLIST( ' ', tab );
pos INTEGER := 1;
len INTEGER;
brk INTEGER;
curbrk INTEGER;
lnbrk INTEGER;
whtbrk INTEGER;
i INTEGER;
BEGIN
len := LENGTH(BUFFER);
WHILE pos <= len
LOOP
WHILE SUBSTR( BUFFER, pos, 1 ) IN ( cr, lf )
LOOP
pos := pos + 1;
END LOOP;
--find the next newline type char, or pos+250 if one isn't found
lnbrk := LEAST( NVL(NULLIF(INSTR( BUFFER, cr, pos ),0),pos+250),
NVL(NULLIF(INSTR( BUFFER, lf, pos ),0),pos+250) );
--after the loop:
-- whtbrk should be the last whitespace char before LINE_LEN + pos
-- (or == pos, if none found)
-- curbrk should be == 0 or the 1st whitespace after LINE_LEN + pos
whtbrk := pos;
curbrk := pos;
FOR i IN 1..whitespace.COUNT
LOOP
LOOP
curbrk := INSTR( BUFFER, whitespace(i), whtbrk + 1 );
IF curbrk <= pos + LINE_LEN AND curbrk >= whtbrk THEN
whtbrk := curbrk;
END IF;
EXIT WHEN curbrk > pos + LINE_LEN OR curbrk = 0;
END LOOP;
EXIT WHEN curbrk > pos + LINE_LEN;
END LOOP;
brk := LEAST( len + 1, lnbrk, NVL( NULLIF( whtbrk, pos ), pos + 250 ),
NVL( NULLIF( curbrk, 0 ), pos + 250 ), pos + 250 );
dbms_output.put_line( SUBSTR( BUFFER, pos, brk - pos ) );
pos := brk;
END LOOP;
END;
function split( str in varchar2, d0 in varchar2, d1 in varchar2 := null,
d2 in varchar2 := null, d3 in varchar2 := null,
d4 in varchar2 := null, d5 in varchar2 := null,
d6 in varchar2 := null, d7 in varchar2 := null,
d8 in varchar2 := null, d9 in varchar2 := null )
return split_tbl pipelined is
pos integer := 1;
curidx integer;
idx integer;
delims split_tbl;
idx_delim varchar2(32767);
len integer := length( str );
begin
if d0 is null then
--split on whitespace
delims := split_tbl( ' ', chr(9), chr(10), chr(13) );
else
delims := split_tbl( d0, d1, d2, d3, d4, d5, d6, d7, d8, d9 );
end if;
loop
idx := -1;
--we want the lowest value of IDX > 0
for i in 1..delims.count loop
curidx := instr( str, delims(i), pos, 1 );
if curidx > 0 then
if idx = -1 or curidx < idx then
idx := curidx;
idx_delim := delims(i);
end if;
end if;
end loop;
if idx > 0 then
--if splitting on whitespace, treat any amount of it as
--a single delimiter
if d0 is not null or idx > pos then
pipe row( substr( str, pos, idx - pos ) );
end if;
else
-- also make sure to ignore trailing whitespace
if d0 is not null or pos <= len then
pipe row( substr( str, pos ) );
end if;
exit;
end if;
pos := idx + length( idx_delim );
end loop;
return;
end split;
function split( str in varchar2, delimiters in split_tbl := null )
return split_tbl pipelined is
i integer;
cursor spcur( d0 in varchar2 := null, d1 in varchar2 := null,
d2 in varchar2 := null, d3 in varchar2 := null,
d4 in varchar2 := null, d5 in varchar2 := null,
d6 in varchar2 := null, d7 in varchar2 := null,
d8 in varchar2 := null, d9 in varchar2 := null ) is
select column_value v from table (split(str,d0,d1,d2,d3,d4,d5,d6,d7,d8,d9));
function x( i in integer ) return varchar2 is
begin
if delimiters.exists(i) then
return delimiters(i);
else
return null;
end if;
end;
begin
for r in spcur( x(0),x(1),x(2),x(3),x(4),x(5),x(6),x(7),x(8),x(9) ) loop
pipe row( r.v );
end loop;
end split;
END;
ThanksCurious behavior, but irrelevant, IMHO, since one never switches back and forth between two releases in the real world. All that STARTUP UPGRADE does is that it enables upgrade scripts to be run - it does not prevent statements like CREATE USER from being executed since the upgrade may create new needed accounts
http://docs.oracle.com/cd/E11882_01/server.112/e16604/ch_twelve045.htm#SQPUG128
HTH
Srini -
Oracle 11g upgrade in AIX 6.1 with HACMP
Hi Friends,
As i have two Power Servers running in AIX 6.1 with oracle 10g in HACMP in which SAP application is running.
The one is standalone Database and other is central Instance.
I have done the 11g upgrades successfully in my DEV and QAS servers which are non-cluster Environment.
Now i want to do the same upgrade in PRD which is in HACMP.
Please let me know what are the areas should i concentrate specially for cluster environment servers.
Thanks,
HariDB Filesystems
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 4.00 2.62 35% 15438 3% /
/dev/hd2 8.00 5.03 38% 57744 5% /usr
/dev/hd9var 4.00 2.85 29% 10914 2% /var
/dev/hd3 4.00 3.50 13% 2575 1% /tmp
/dev/fwdump 1.00 1.00 1% 13 1% /var/adm/ras/platform
/dev/hd1 1.00 1.00 1% 6 1% /home
/dev/hd11admin 0.25 0.25 1% 107 1% /admin
/proc - - - - - /proc
/dev/hd10opt 1.00 0.58 43% 9040 7% /opt
/dev/livedump 0.25 0.25 1% 7 1% /var/adm/ras/livedump
/dev/lv_oracle 2.00 1.86 8% 21 1% /oracle
/dev/lv_ora_pip 2.00 2.00 1% 80 1% /oracle/PIP
/dev/lv_usr_sap 2.00 1.92 5% 78 1% /usr/sap
/dev/lv_sapmnt 2.00 0.62 70% 978 1% /sapmnt
/dev/dumplv 95.00 32.80 66% 26790 1% /dump
/dev/saparchlv 2.00 1.99 1% 57 1% /home/pipadm
/dev/lv_pip_64 10.00 5.73 43% 18988 2% /oracle/PIP/102_64
/dev/lv_mirlogA 1.00 0.61 40% 6 1% /oracle/PIP/mirrlogA
/dev/lv_mirlogB 1.00 0.61 40% 6 1% /oracle/PIP/mirrlogB
/dev/lv_oraarch 200.00 121.48 40% 433 1% /oracle/PIP/oraarch
/dev/lv_oralogA 1.00 0.59 41% 8 1% /oracle/PIP/origlogA
/dev/lv_oralogB 1.00 0.59 41% 8 1% /oracle/PIP/origlogB
/dev/fslv01 2.00 1.97 2% 102 1% /oracle/PIP/saparch
/dev/lv_sapbkp 5.00 5.00 1% 40 1% /oracle/PIP/sapbackup
/dev/lv_sapchk 5.00 5.00 1% 80 1% /oracle/PIP/sapcheck
/dev/lv_data1 200.00 86.26 57% 30 1% /oracle/PIP/sapdata1
/dev/lv_data2 200.00 84.92 58% 26 1% /oracle/PIP/sapdata2
/dev/lv_data3 200.00 84.92 58% 26 1% /oracle/PIP/sapdata3
/dev/lv_data4 200.00 84.92 58% 26 1% /oracle/PIP/sapdata4
/dev/lv_data5 200.00 84.92 58% 26 1% /oracle/PIP/sapdata5
/dev/lv_data6 200.00 84.92 58% 26 1% /oracle/PIP/sapdata6
/dev/lv_data7 200.00 84.92 58% 26 1% /oracle/PIP/sapdata7
/dev/lv_data8 200.00 84.93 58% 26 1% /oracle/PIP/sapdata8
/dev/lv_saporg 20.00 20.00 1% 7 1% /oracle/PIP/sapreorg
/dev/saptrance 5.00 4.92 2% 588 1% /oracle/PIP/saptrace
/dev/lv_inventry 2.00 1.99 1% 55 1% /oracle/oraInventory
/dev/lv_102_64 10.00 5.05 50% 11044 1% /oracle/stage/102_64
CI
/dev/hd4 4.00 1.99 51% 14429 3% /
/dev/hd2 8.00 5.01 38% 57680 5% /usr
/dev/hd9var 4.00 3.38 16% 10936 2% /var
/dev/hd3 4.00 3.82 5% 1362 1% /tmp
/dev/fwdump 1.00 1.00 1% 18 1% /var/adm/ras/platform
/dev/hd1 1.00 1.00 1% 55 1% /home
/dev/hd11admin 0.25 0.25 1% 5 1% /admin
/proc - - - - - /proc
/dev/hd10opt 1.00 0.58 42% 9024 7% /opt
/dev/livedump 0.25 0.25 1% 8 1% /var/adm/ras/livedump
/dev/lv_oracle 2.00 2.00 1% 9 1% /oracle
/dev/lv_ora_pip 2.00 2.00 1% 52 1% /oracle/PIP
/dev/lv_usr_sap 10.00 10.00 1% 17 1% /usr/sap
/dev/lv_client 2.00 1.86 8% 16 1% /oracle/client
/dev/lv_smnt_pip 10.00 2.20 78% 114142 18% /sapmnt/PIP
/dev/lv_sap_pip 10.00 8.10 19% 1577 1% /usr/sap/PIP
/dev/lv_sap_cms 5.00 5.00 1% 8 1% /usr/sap/ccms
root@pagedb:/ $ su - orapip
pagedb:orapip 1> echo $ORACLE_HOME
/oracle/PIP/102_64
i have upgraded successfully in my DEV and QAS.
So can i go with the same procedure as i went with non-cluster Env.
Thanks -
11g Upgrade from 10.2.0.4 in SUSE 10.
Hi Gurus,
We have 11g Database upgrade on our EBS 11i environment, database size is around 1.3 TB, i already did test upgrade it was not satisfactory results what client is expecting regarding downtime, i followed manual upgrade as i am very much familier with that, i your views and suggestions to reduce upgrade downtime.
11g Upgrade from 10.2.0.4 in SUSE 10.Hi,
Is your database is RAC or NON-RAC.
If you are going for patchset upgrade then you can go for roll upgrade patch.
as you know, you cannot escape the downtime always. ;-)
i already did test upgrade it was not satisfactory results what client is expecting regarding downtime, i followed manual upgrade as i am very much familier with thatOracle introduces DBUA with many features, still why you are not going for DBUA?
You have to test the TEST environment using DBUA ;-)
If for example For 1.3 TB you are going to consistent backup, still you have down time. then there is no point to think on UPGRADE duration.
but you can perform pro-actively like.. install the 11g ORACLE_HOME before the downtime. & so on. -
Percentage calculation on query designer (7.0)
Hi experts,
I´m new on Query designer (7.0) and I´m trying to do a finnancial report, so for the lines I create and structure using G/L accounts and in the columns I got the amount for each level in my structure for a month. Now I´m trying to create an Integration percentage, it specifies how high the percentage in a level is in relation to next higher level but so far I couldn't make it...
My report must seem like this:
Structure.............................Amount ...... Int %
1. Assets................................1000 ....... 100%
1.1 Current assets.................... 600 ....... 60% -> (600/1000)*100
- Cash............................. 300 ........ 50% -> (300/600)*100
- Inventories..................... 300 ........ 50% -> (300/600)*100
1.2 Long-term assets................ 400 ....... 40% -> (400/1000)*100
- Property, plant and eq..... 150 ....... 37.5% -> (150/400)*100
- Investment property......... 150 ....... 37.5% -> (150/400)*100
- Intangible assets..............100 ....... 25% -> (100/400)*100
I try to use each Percentage calculation options (%, %A, %CT,%GT, %RT) but it didn't work. Can anyone help me in creating a formula to get this percentage?
ThanksHi,
check this notes and links to get an overview how to use:
III. List Calculations (e.g.'Calculate result as..'):Interesting facts about the OLAP Processor/Analytic Engine
SAP Note Number: [1151957|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_bex/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d31313531393537%7d]
If, in a structure element (key figure ID), you use the 'Calculate Results as' and 'Calculate Single Value as' properties with their additional fields at the same time, priority problems occur and the system behavior is not immediately clear.:
Calculate Results/Single Values as ... priority rules
SAP Note Number: [853058 |https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_bex/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d383533303538%7d]
Regards
Andreas -
Percentage Calculation for result rows
Hi
I have problem with percentage calculation on result rows. I have 2 KFs A and B, the result is calulated by setting 'calculate result rows as' to 'summation'.
But in KF 'C' (which is calculated as A/B*100 ),
Now the probles is the systen picks up original values of A and B for calculation of C in result rows.
i.e. system picks up values of result rows for A and B for
setting 'calculate result rows as' to 'nothing defined'.
Any ideas on how to fix this.
Thanks
KarenKaren
I found something in Forum for you
Result Rows Calculation
Pradip's Solution should work. Try and if it is don't forget to award points.
Regs
Gopi -
Percentage calculation error?
Hi guys,
I must be missing something very basic - I can't get a simple percentage calculation to work in an applet:
float percentage = 0;
int amount,total;
amount = 4;
total = 10;
percentage = (float)((amount / total) * 100);
Instead of returning 40.0 in "percentage", this keeps returning 0.0...
What am I doing wrong? How do you calculate a percentage in Java?
Thanks!do the type casting of either of total or amount
Gaurav -
Percentage calculation according a result
Hi,
I have an issue with a percentage calculation in a query.
As rows I have Product Hierarchy 1, Product Hierarchy 2 and Material. I would like to show the sales for each material as a percentage of the result by Product Hierarchy 2 and in another colunm the percentage according the result by Product Hierarchy 1. I have used the option "Normalized according to the next level.." and it works to calculate the percentage according Product Hierarchy 2, but how can i manage to calculate the percentage according to Product Hierarchy 1( it is not the next level of the hierarchy, it would be the second next level)?
Thanks in advance.Hi ,
check this link ..
http://help.sap.com/saphelp_nw70/helpdata/EN/ee/37e80557494542806a38498d99a463/content.htm
Hope this helps ...
Regards,
Shikha -
Percentage calculation based on subtotal in webi 4.0
Hi Experts ,
How do i calculate the % column in webi 4.0 so that % would be calculated by the amount of Primary channel / Subtotal ) in one block.
=[Amount Of promary Channel]/Sum([Amount Of promary Channel]) In Block - not giving correct output.
Thanks,
RajibHi Rajib, As per my understanding, you want to show percentage on the base of subtotal.
that means if you set break on the Compony then percentage column should contain the percentage calculated on the basis of compony subtotal.
like this...(just one block of break)
then just use the simple percentage function ( =percentage(amount) ), this will automatically calculate the percentage based on subtotal.
and if you want to show 100% in subtotal row also then you can use formula= (amount/sum(amount)),
i think we dont need to use contex operator here.
formula for AHW total row = amount/sum(amount)
Let me know if this will help you,
Thanks,
Nitin -
11g Upgrade Issues and Questions
Hi,
I am upgrading database from 9.2.0.6 to 11g in EBS, Apps version is 11.5.10.2.
I have performed 11.1.0.7 patch set installation tasks & Apply additional 11.1.0.7 RDBMS patches
Now my query is that I have to copy InitSID.ora from 9i to 11g before or after database Upgrade(using DBUA)?
When I have to set Database Initialization Parameters for Oracle Applications Release 11i before or after database Upgrade(using DBUA)?
Regard's
GSMHi,
The output of utlu111i.sql script is as below before upgrade.We have to make any modification before upgrade.If yes where I have to do the changes.
SQL> @utlu111i.sql
Oracle Database 11.1 Pre-Upgrade Information Tool 04-09-2010 12:55:26
Database:
--> name: PROD
--> version: 9.2.0.8.0
--> compatible: 9.2.0
--> blocksize: 8192
--> timezone file: V4
Logfiles: [make adjustments in the current environment]
--> The existing log files are adequate. No changes are required.
Tablespaces: [make adjustments in the current environment]
--> SYSTEM tablespace is adequate for the upgrade.
.... minimum required size: 8052 MB
--> ODM tablespace is adequate for the upgrade.
.... minimum required size: 10 MB
--> APPS_UNDOTS1 tablespace is adequate for the upgrade.
.... minimum required size: 299 MB
--> APPS_TS_TX_DATA tablespace is adequate for the upgrade.
.... minimum required size: 2322 MB
--> APPS_TS_QUEUES tablespace is adequate for the upgrade.
.... minimum required size: 70 MB
--> OLAP tablespace is adequate for the upgrade.
.... minimum required size: 16 MB
Update Parameters: [Update Oracle Database 11.1 init.ora or spfile]
WARNING: --> "compatible" must be set to at least 10.1.0
Renamed Parameters: [Update Oracle Database 11.1 init.ora or spfile]
-- No renamed parameters found. No changes are required.
Obsolete/Deprecated Parameters: [Update Oracle Database 11.1 init.ora or spfile]
--> "optimizer_max_permutations"
--> "row_locking"
--> "undo_suppress_errors"
--> "max_enabled_roles"
--> "enqueue_resources"
--> "sql_trace"
--> "background_dump_dest" replaced by "diagnostic_dest"
--> "user_dump_dest" replaced by "diagnostic_dest"
--> "core_dump_dest" replaced by "diagnostic_dest"
Components: [The following database components will be upgraded or installed]
--> Oracle Catalog Views [upgrade] VALID
--> Oracle Packages and Types [upgrade] VALID
--> JServer JAVA Virtual Machine [upgrade] VALID
--> Oracle XDK for Java [upgrade] VALID
--> Real Application Clusters [upgrade] INVALID
--> OLAP Analytic Workspace [upgrade] UPGRADED
--> OLAP Catalog [upgrade] VALID
--> Oracle Text [upgrade] VALID
--> Oracle XML Database [install]
--> Oracle Java Packages [upgrade] VALID
--> Oracle interMedia [upgrade] VALID
--> Spatial [upgrade] VALID
--> Data Mining [upgrade] VALID
--> Oracle OLAP API [upgrade] UPGRADED
Miscellaneous Warnings
WARNING: --> Passwords exist in some database links.
.... Passwords will be encrypted during the upgrade.
.... Downgrade of database links with passwords is not supported.
WARNING: --> Deprecated CONNECT role granted to some user/roles.
.... CONNECT role after upgrade has only CREATE SESSION privilege.
WARNING: --> Database contains stale optimizer statistics.
.... Refer to the 11g Upgrade Guide for instructions to update
.... statistics prior to upgrading the database.
.... Component Schemas with stale statistics:
.... SYS
.... OLAPSYS
.... MDSYS
.... ODM
WARNING: --> Database contains INVALID objects prior to upgrade.
.... The list of invalid SYS/SYSTEM objects was written to
.... registry$sys_inv_objs.
.... The list of non-SYS/SYSTEM objects was written to
.... registry$nonsys_inv_objs.
.... Use utluiobj.sql after the upgrade to identify any new invalid
.... objects due to the upgrade.
.... USER APPS has 3 INVALID objects.
WARNING: --> Database contains schemas with objects dependent on network
packages.
.... Refer to the 11g Upgrade Guide for instructions to configure Network ACLs.
.... USER APPS has dependent objects.
.... USER MDSYS has dependent objects.
SYSAUX Tablespace:
[Create tablespace in the Oracle Database 11.1 environment]
--> New "SYSAUX" tablespace
.... minimum required size for database upgrade: 500 MB
PL/SQL procedure successfully completed.
SQL> spool off
Thank's
Regards
GSM -
11G Upgrade - EBS 12.1.2
I have a few questions on the 11G upgrade.
DB - 11.2.0.3 - OS - zLinux
EBS - 12.1.2 - SLES 10-SP3
I am following note 1058763.1 (Interoperability Notes Oracle E-Business Suite Release 12 with Oracle Database 11g Release 2 (11.2.0) - and am at step 23 - Implement and Run Autoconfig
Referring to 387859.1 (Using AutoConfig to Manage System Configurations in Oracle E-Business Suite Release 12), I have finished unzipping the appsutil.zip file to the $ORACLE_HOME on the database tier using the unzip -o appsutil.zip.
The next step in 387859.1 requires running autoconfig on the DB tier - for which I don't find the $ORACLE_HOME/appsutil/scripts folder.
Section 3.2 of 387859.1 refers to Installing JRE on the Database tier - however when I run the java -version command - I already get the following output on the upgraded 11g home.
tebsdb01:EBST1:/t01/product/db11.2.0.3 > java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build pxz6460sr9fp3ifix-20111215_04(SR9 FP3+IV12154))
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Linux s390x-64 jvmxz6460sr9-20111214_97396 (JIT enabled, AOT enabled)
J9VM - 20111214_097396
JIT - r9_20101028_17488ifx31
GC - 20101027_AA)
JCL - 20110727_04
tebsdb01:EBST1:/t01/product/db11.2.0.3 >
My first question - what steps have I missed that have resulted in a missing $ORACLE_HOME/appsutil/scripts folder
My second question - if my java version is already 1.6.0, is there a need to continue with instaling JRE on the database tier?
This is the first time I am running through a 11g upgrade - hence the plethora of questions.
Thanks so much in advance for your help.
RegardsOne last question regarding this 11gR2 upgrade.
My APPS and BA team are now asking what kind of testing they should be doing on an upgraded 11gR2 instance.
Can anyone who has upgraded an instance (DB only) shed some light on this aspect of the QA testing process?Since the database upgrade does not change any of the underlying objects under Oracle EBS schemas, you need to do basic checks to verify this upgrade. Examples are ..
- You can shutdown/startup the database with no issues
- No errors are reported in the database log files
- Submit concurrent programs and make sure it completes successfully
- Make sure CM and all services are up
- Create/Update Users/Responsibilities
- Make sure AutoConfig complete successfully
..etc
Thanks,
Hussein -
Crystal report 2011 percentage calculation(Urgent)
All,
I am working on a report which looks like the below.
product>>>>>>> revenue>>>>>>>>> growth percentage
a >>>>>>>>>>> 12 >>>>>> >>>> 48%
b >>>>>>> >>>>>>>13 >>>>>>>> 52%
c >>>>>>>>>>>>> 14 >>>>>>>>>
d>>>>>>>>>>>>>> 16>>>>>>>>>>>>
total >>>>>>> 25 >>>>> 100%
my requirement is to calculate the individual growth percentage of a and b with the total revenue of a and b only.
to be more specific 12 divided by 25 and then 13 divided by 25.
i want these growth percentages in growth percentage column in my report.
I achieved the selective summation of revenue for a and b in the report footer but i am not able to use the total revenue 25 (that i get in the report footer) in the body of the report(detail section) for growth percentage calculation.
I tried using shared variables and global variables but of no use.i am not able to assign the grand total in the footer to a variable in the detail section in order to calculate the growth percentage.
Is there any easy work around to achieve this? need urgent help.
I also tried running totals and stuff but of no use.
Any help would be appreciated.
Reji.
Edited by: reji2011 on Jan 22, 2012 7:32 PMHi Reji,
I'm not sure how you've added 'a' and 'b', however, whatever way it would be, I'm sure it would be a print time formula.
Meaning it is calculated a later stage after all the records are printed. So, you would never be able to use a value in the Report Footer or any Footer to calculate against a detail section value and show the calculation on the detail section itself.
The way I see it, you would need to insert this report as a sub-report, just to calculate a + b, store this value in 'shared variable' and use it for calculations in the Main Report.
So, in the sub-report, where you have your formula that calculates the addition of a and b, just create a shared variable and assign this value to it.
Place the sub-report on the Report Header and in the Main report create a formula that calls the shared variable. You can then use this formula/variable in Main-report's calculations.
Hope this helps!
-Abhilash
Maybe you are looking for
-
The battery in my mid 2010 Macbook Pro goes dead while plugged in to
I tend to use my lap top alot with the cord plugged in. Sometimes the indicstor glows red and doesn't charge. Sometimes it glows green and the battery is draining and sometimes it seems to be working properly. I have an app called battery health whic
-
I have Windows 8 and Itunes 11.1.2. When I click on the Itunes desktop shortcut, Itunes won't open. I just the icon go to the taskbar and nothing more. Please help.
-
Album art doesn't automatically download after import
Whenever I import a new C.D., the album art for that album doesn't automatically download, even though I have that option checked as yes in my iTunes preferences. So, I wind up having to get the album art myself. What gives? Anyone else having simila
-
I keep getting an error message when i try to send emails.
I just got the palm treo 650 on alltel. didn't realize it was going to be so involved. lol I got email set up but keep getting an error message when i try to send. the message is 530 5.7.0 must issue a STARTTLS command first. What does that mean
-
Is anyone else having this problem? I usually attach photos from my existing camera roll when sending ecards, suddenly starting yesterday, all my photos are being rotated and coming up sideways! I use Blue Mountain.com for my ecards. I called their t