Join Not Working - OBIEE 11g
Hi
I'm using sample sales schema to create my repository. It works fine in analysis until i introduce a calculated measure or a dimension hierarchy. when i introduce one of the two, for simply a product_name and revenue(a measure) based report, it starts issuing two seperate queries, one for product and one for revenue (measure). It should be issuing a single query getting data from both tables by joining them up as per the joins (logical & physical) defined in the RPD like earlier.
Thanks
Sufyan
no its not level based measure but a simple measure. its just revenue/units based on existing logical columns. I did not go to levels tab in its properties and set logical levels for any of the logical dimensions.
But after I create this measure it simply starts sending two physical queries , one to each table (products & salesFact ) i.e., two seperate queries instead of a single query, querying two tables with a join condition, as before i introduced this calculated measure.
Afterwards even if i delete this measure, it doesn't work right. All the joins in BMM and physical layer are in thier place. I also compared the two versions of the repository and there's no special change noticable that can impact normal working.
Thanks for being helpful.
Regards
Sufyan
Similar Messages
-
Dbms_metadata.get_ddl not working in 11g
Hi All,
I need a quick help from you. Following is not working in 11g.
dbms_metadata.get_ddl( 'MATERIALIZED_VIEW', Mview_name, owner )
It is throwing me an error saying the Materialized view does not exist, though its exist.
Please let me know, what is wrong here with 11g.Please let me know, what is wrong here with 11g.No problem here: Can you reproduce these steps:
SQL> select * from v$version where rownum = 1
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
1 row selected.
SQL> create materialized view mv_dummy as select * from dual
Materialized View created.
SQL> select dbms_metadata.get_ddl ('MATERIALIZED_VIEW', 'MV_DUMMY', user) ddl from dual
DDL
CREATE MATERIALIZED VIEW "MICHAEL"."MV_DUMMY" ("DUMMY")
ORGANIZATION HEAP PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOG
GING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "USERS"
BUILD IMMEDIATE
USING INDEX
REFRESH FORCE ON DEMAND
USING DEFAULT LOCAL ROLLBACK SEGMENT
USING ENFORCED CONSTRAINTS DISABLE QUERY REWRITE
AS select * from dual
1 row selected.? -
Left Outer Join Not working in BI 7.0 Infoset
Hi All,
I am working on BI 7.0. I have to create a report where I have to display the Target values from a target DSO against the transactional data (Operational data).
I have a DSO where for a subteam value target has been set up on different KPIs.
In the Info Cube, I have transactional data on daily basis per subteam. I have to show the actual and target values.
I have created an Info Set using Target DSO and Daily operational cube, so that I should able to compare the target and actual values of KPIs, for all the subteam values (From DSO, irrespective of whether the data is available in cube for those sub team).
I have used Outer Left Join in the Info set (DSO on left side), but I am unable to see the desired results. It is working just like an inner join.
Any Idea why the Outer Left Join is not working? The DSO has only one fey field called subteam on which I have set outer left join.
Regards,
AmitHi,
did you solve your problem? because I have the same issue right now: the left outer join doesn't seem to do its job.
Let me know if you have found a solution, it would be appreciated.
have a nice day,
Dominic -
I have two reports: Lead History(registered reciepents) and Campaign Reciepents History(email click-thru reciepents) with columns Full Name, Company/Account Name, and Job Title. I want to do a join that pull out the click-thru's that registered. Union and Union All gives me everything, Minus gives me just the click-thru's, and Intersect gives me nothing. What complicated join can I do to make this possible?
Thank you, Barney-15E and Nerowolfe.
First, you are right - I am using the 17" MacBook Pro (but not the ltest version).
Second, I looked in the Library folders and found Sidetrack in the Startup items. I deleted it (although I had already removed it from the Startup items in the System Preferences.
Third, I reset the PRAM.
However the 2-finger scrolling is still not working. I did notice (and I don't know if this is something new) that the cursor is now immobile when trying to use two fingers although it is fine with one finger. It as though the trackpad recognizes that two fingers are different from one, but it doesn't know what to do with two-fingers.
On a more general note, thank you all for your interest and quick responses. But...what should I try next? Apple suggests resetting the Power Management. -
Hi guys,
I am not sure why the left join is not working.. when I try to use the and condition out of the left join condition. The database is relational but the requirement is for reporting. I have 2 user inputs and I should get the query results as explained below..
Let me explain with the sample data.
Table 1: PRTYPE (P)
TYPEID CLASSID
T001 CLS001
T001 CLS002
T001 CLS003
T002 CLS002
T003 CLS001
Table 2: EMPLOYEE (E)
EMPID NAME
E001 Joe
E002 Mark
E003 Lucy
Table 3: DETAILS (D)
EMPID CLASSID STATUS
E001 CLS001 NEW
E001 CLS002 DONE
E002 CLS001 NEW
E002 CLS004 NEW
Report1:
Input: PRTYPE.TYPEID = T001, EMPID = E001
Output:
E.NAME E.EMPID P.TYPEID A.CLASSID D.STATUS
JOE EMP001 T001 CLS001 NEW
JOE EMP001 T001 CLS002 DONE
JOE EMP001 T001 CLS003 BLANK
Report2:
PRTYPE.TYPEID = T003, EMPID = E003
E.NAME E.EMPID P.TYPEID A.CLASSID D.STATUS
LUCY E003 T003 CLS001 BLANK
LUCY E003 T003 CLS004 BLANK
When I use and condition in left join itself, it works but when I take it to the end of the sql using where p.typeid= T001 and E.EMPID = E001 I am not getting the left join results... It looks like Oracle doesn't like the condition at the end. I hope I am clear on explaining. Please share your experience on how to get it working..
Thank youHi,
Welcome to the forum!
user12118328 wrote:
I am not sure why the left join is not working.. when I try to use the and condition out of the left join condition. The database is relational but the requirement is for reporting. I have 2 user inputs and I should get the query results as explained below..
When I use and condition in left join itself, it works but when I take it to the end of the sql using where p.typeid= T001 and E.EMPID = E001 I am not getting the left join results... It looks like Oracle doesn't like the condition at the end. I hope I am clear on explaining. Please share your experience on how to get it working..I'm not sure what you mean. Why don't you post your query? You know, it will be easier for someone to tell you what you're doing wrong if they know what you're doing.
Are you saying that you get the correct results when you have a cerain condition in an outer join, but that you get the wrong results if you put the exact same condition in the WHERE-clause?
If so, keep the condition where it does what you want.
You can usually move INNER join conditions around like that, but never OUTER join conditions.
As Alex said, if you want help, post executable statement to create and populate your tables with a little sample data, as well as the output you want from that sample data, and your best attempt at a query. -
Copy database file local folder is not working in 11g
Hi,
i am working on oracle forms 11g.
the follwoing code is not working. could any one guide me to reslove the problem.
declare
lv_file_name varchar2(100);
lv_command varchar2(200);
begin
lv_file_name := substr(:parameter.image_path,instr(:parameter.image_path,'\',-1)+1);
lv_command := 'cmd /c copy_file '||:parameter.image_path ||' s:\temp\deposit\scanned_image\'||lv_file_name;
client_host(lv_command);
if form_success then
message('saved..');
else
message('file copy process failed..');
end if;
end;Also, copy to the s: drive might not work. In your copy_file script you need to define the s: drive first
net use s: \\some_shareor use UNC notation
lv_command := 'cmd /c copy_file '||:parameter.image_path ||' \\some_share:\temp\deposit\scanned_image\'||lv_file_name;Oh, and use full path to copy_file:
lv_command := 'cmd /c c:\some_directory\copy_file.bat '|| etc.;Edited by: InoL on Mar 11, 2013 9:20 AM -
Hello everybody,
I have a folder based on materialized view (Detailed folder). There is another folder which is based on a table (master folder). i have created a jooin and select option as "outer join on master folder". The join is not working properly. Am i doing asomething wrong. Discoverer version is 10.1.2 and database version is 10.2.0.3. i have been creating outer joins among folders based on tables but i am not sure about whats wrong this time??? materalized view defination is as follows:
CREATE MATERIALIZED VIEW MW
BUILD IMMEDIATE
REFRESH FORCE
START WITH SYSDATE
NEXT TRUNC(SYSDATE+1)+1/4
WITH PRIMARY KEY
AS
SELECT * FROM VIEW
Thanx for your help
Regards,
NajeebSo, let me see if I got this...
You have a table and a materialized view. There is a join between the two, where the table is the master, and the MV is the detail. The join is set to be an outer join on master. Ultimately, you want to see the values in the MV where the join condition is NULL.
What boggles me is that you say the query runs fine in the database, but not in Disco. This could mean that there is a condition in the BA or in the worksheet. But, if that were the case, the condition should show up in the SQL generated by Disco.
It looks like the where clause is the problem. NULL is never equal to anything, so when APPROVEDBY is null, the where clause should fail and no data returned. This explains Disco's behavior, but not SQL's.
Something to try: Create a calculation in the materialized view folder of the business area like:
NVL(APPROVEDBY, -1)
I am assuming that all of your IDs are positive. Then modify the join to use the calculated column. This should convert the NULLS to values, and the report should work. -
Outer join not working when filters are applied from Prompts
Hi,
Without values being selected from the dashboard prompts, my outer join is working fine with all the rows and all the columns showing up( as per requirement). But as soon as I select values in the prompts, only certain rows and columns show up.
BTW, I have 2 prompts Year and Quarter. I put Year is Prompted or is null in the criteria. It works. BUT as soon as I also put in quarter numbers, it does not work.
Is there a workaround for this?
Thanks,
Dan
Edited by: Danny on Apr 26, 2013 12:10 PMI just experimented by adding is null to not only the year and quarter but to the row and column too and it worked!
Thanks,
Dan -
Copy expression not working in 11g PS1
i Hve used a copy expression inside the email body.It works fine in 11g R1 but it gives the below error in 11gps1
http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure
Fault
lbpelFault><faultType> <message>0</message></faultType><selectionFailure
xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"></selectionFailure></bpelFault>http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailur
at
com.collaxa.cube.xml.xpath.functions.bpws.GetVariableDataFunction.call(GetVari
ableDataFunction.java:132) at
com.collaxa.cube.xml.xpath.BPELXPathFunctionWrapper.evaluate(BPELXPathFunctionWrapper:java:78)
copy expression used
concat(string('This mail was sent to you from Middleware FUSION to create SR for the below mentioned Sales form details:

<BR>Time : '), xpath20:current-dateTime(), string('
<BR><BR>First Given Name : '), bpws:getVariableData('VariableECMSchema','/ECM/FirstGivenName'), string('
<BR>Last Name : '), bpws:getVariableData('VariableECMSchema','/ECM/LastName'), string('
<BR>Company Name : '), bpws:getVariableData('VariableECMSchema','/ECM/CompanyName'), string('
<BR>Address 1 : '), bpws:getVariableData('VariableECMSchema','/ECM/Address1'), string('
<BR>Address 2 : '), bpws:getVariableData('VariableECMSchema','/ECM/Address2'), string('
<BR>City : '), bpws:getVariableData('VariableECMSchema','/ECM/City'), string('
<BR>StateProvince : '), bpws:getVariableData('VariableECMSchema','/ECM/StateProvince'), string('
<BR>Country : '), bpws:getVariableData('VariableECMSchema','/ECM/Country'), string('
<BR>ZIPPostalCode : '), bpws:getVariableData('VariableECMSchema','/ECM/ZIPPostalCode'), string('
<BR>Phone : '), bpws:getVariableData('VariableECMSchema','/ECM/Phone'), string('
<BR>Email Address : '), bpws:getVariableData('VariableECMSchema','/ECM/EmailAddress'), string('
<BR>Model1 : '), bpws:getVariableData('VariableECMSchema','/ECM/Model1'), string('


<BR>Options1 : '), bpws:getVariableData('VariableECMSchema','/ECM/Options1'), string('<BR>
Quantity1 : '), bpws:getVariableData('VariableECMSchema','/ECM/Quantity1'), string('<BR>
Model2 : '), bpws:getVariableData('VariableECMSchema','/ECM/Model2'), string('<BR>
Options2 : '), bpws:getVariableData('VariableECMSchema','/ECM/Options2'), string('<BR>
Quantity2 : '), bpws:getVariableData('VariableECMSchema','/ECM/Quantity2'), string('<BR>
Model3 : '), bpws:getVariableData('VariableECMSchema','/ECM/Model3'), string('<BR>
Options3 : '), bpws:getVariableData('VariableECMSchema','/ECM/Options3'), string('<BR>
Quantity3 : '), bpws:getVariableData('VariableECMSchema','/ECM/Quantity3'), string('<BR>
Model4 : '), bpws:getVariableData('VariableECMSchema','/ECM/Model4'), string('<BR>
Options4 : '), bpws:getVariableData('VariableECMSchema','/ECM/Options4'), string('<BR>
Quantity4 : '), bpws:getVariableData('VariableECMSchema','/ECM/Quantity4'), string('<BR>
Model5 : '), bpws:getVariableData('VariableECMSchema','/ECM/Model5'), string('<BR>
Options5 : '), bpws:getVariableData('VariableECMSchema','/ECM/Options5'), string('<BR>
Quantity5 : '), bpws:getVariableData('VariableECMSchema','/ECM/Quantity5'), string('<BR>
Model6 : '), bpws:getVariableData('VariableECMSchema','/ECM/Model6'), string('<BR>
Options6 : '), bpws:getVariableData('VariableECMSchema','/ECM/Options6'), string('<BR>
Quantity6 : '), bpws:getVariableData('VariableECMSchema','/ECM/Quantity6'), string('<BR>

Model7 : '), bpws:getVariableData('VariableECMSchema','/ECM/Model7'), string('<BR>
Options7 : '), bpws:getVariableData('VariableECMSchema','/ECM/Options7'), string('<BR>
Quantity7 : '), bpws:getVariableData('VariableECMSchema','/ECM/Quantity7'), string('<BR>
Model8 : '), bpws:getVariableData('VariableECMSchema','/ECM/Model8'), string('<BR>
Options8 : '), bpws:getVariableData('VariableECMSchema','/ECM/Options8'), string('<BR>
Quantity8 : '), bpws:getVariableData('VariableECMSchema','/ECM/Quantity8'), string('<BR>
Model9 : '), bpws:getVariableData('VariableECMSchema','/ECM/Model9'), string('<BR>
Options9 : '), bpws:getVariableData('VariableECMSchema','/ECM/Options9'), string('<BR>
Quantity9 : '), bpws:getVariableData('VariableECMSchema','/ECM/Quantity9'), string('<BR>
Model10 : '), bpws:getVariableData('VariableECMSchema','/ECM/Model10'), string('<BR>
Options10 : '), bpws:getVariableData('VariableECMSchema','/ECM/Options10'), string('<BR>
Quantity10 : '), bpws:getVariableData('VariableECMSchema','/ECM/Quantity10'), string('aHi Vivek,
The 'selectionFailure' errors are mostly due to no data in the elements defined in the xml or in the nodes of xsd. Please cross check xslt/xsd/paload data.
Having said that, if things were working fine in R1 but not working in PS1, then...its a bit strange.
Regards
A -
HTMLDB_MAIL.SEND does not work with 11g
Hi Guys,
I have a simple application that uses HTMLDB_MAIL.SEND. I am running APEX 3.0 against an 11g database. When run against a 10g DB all is good. But with 11g I get
ORA-24247: network access denied by access control list (ACL)
I looked up the error which recommends altering ACL stuff, which I know nothing about. Is there a simple way to get rid of this error.
O.Hi,
I have the same problem as you.
Colud you please explain me how did you resolve it.
Thanks
HTMLDB_MAIL.SEND does not work with 11g -
it is a fresh installation but Enterprise manager is not working.
URL : http://devaex01:7001/em
whereas http://devaex01:7001/console works.
where do i look for to trouble shoot em.
oid is 11.1.2.0 and weblogic 10.3.4
Edited by: user11993859 on 8/02/2012 16:41You must start OPMN to get the Enterprise Manager console to come up.
In Unix land, it's
$ORACLE_INSTANCE/bin/opmnctl startall
opmnctl startall: starting opmn and all managed processes...
$ORACLE_INSTANCE/bin/opmnctl status -l
Processes in Instance: asinst_1
---------------------------------------------------------------------------------------------------------+------
ias-component | process-type | pid | status | uid | memused | uptime | ports
---------------------------------------------------------------------------------------------------------+------
oid1 | oidldapd | 8521 | Alive | 1816925763 | 125560 | 0:00:55 | N/A
oid1 | oidldapd | 8516 | Alive | 1816925762 | 61128 | 0:00:56 | N/A
oid1 | oidmon | 8502 | Alive | 1816925761 | 18216 | 0:00:57 | LDAPS:3131,LDAP:3060
EMAGENT | EMAGENT | 8501 | Alive | 1816925760 | 160 | 0:00:57 | N/A
Refer to your installation documentation on "Starting and Stopping the Stack" -
Dynamic From statement in select query and/or outer join not working
Dear Experts, I have a select query where the select columns are dynamic, the where condition is also dynamic. It is of the below format:
Select (dynamic columns) INTO <wa>
FROM a inner join b on af1 = bf1
inner join c on af2 = cf2......
WHERE (dynamic conditios)
ORDER BY ( dynamic sort condition).
Now I have to include some tables (dynamically depending on the user input) in the inner join statement which will give description for the selected fields. And these database tables may or may no be empty. So in this case, my select query will not return any data if these tables are empty. And I dont want that.
I tried using outer join for the extra tables but it gave me a runtime error. I also tried forming the inner join statement dynamically but it was not supporting.
Kindly give me pointers.
ThanksHey thanks for the reply, but the problem is not solved.
I am already using ( fileds, value) like table in my where condition and the select statement was working properly.
the problem is that now I have to include some tables in the join statement which can be empty and so i want to use Outer join.
But I am getting a runtime error as below:
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_DYNAMIC_OSQL_SYNTAX', was not
caught in
procedure "ZATSCSNG_RFC_READ_TABLE" "(FUNCTION)", nor was it propagated by a
RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
The running ABAP program wanted to execute a SELECT statement whose
WHERE condition was (partly) specified dynamically. The part that is
specified in an internal table at runtime is compared to a field of the
right table of an LEFT OUTER JOIN. Such comparisons are not supported by
all database systems and are therefore not allowed. -
Forms debug not working in 11g. Working fine in 10g
I am able to attach the debug of runtime with the random port number, but not stopping at the breakpoints. This is happening in 11g environment.
Same method is working in 10g environment. What additional configuration do I need to do to run a form in debug mode in 11g environment.
My configuration is here.
1. in env file, I have the debugger.jar added to Classpath
cusm.env
CLASSPATH=...;....;....;C:\Oracle\Middleware\Oracle_FRHome1\jlib\debugger.jar;...;...;
FORMS=C:\Oracle\Middleware\Oracle_FRHome1\forms
2. formsweb.cfg
debug=no
# Forms runtime argument: host for debugging
host=
# Forms runtime argument: port for debugging
allow_debug=false
[cusm]
workDirectory=/oracleias11g/work
envfile=cusm.env
form=frm_main.fmx
userid=@orcl
lookAndFeel=oracle
pageTitle=Development 11g
width=1050
height=800
archive=frmall.jar,customicon.jar
At runtime from the form
debug.attach;
Then in the forms designer
Debug-->Attach Debug
Enter the random port number and the server and enter.
Create couple of breakpoints in the forms trigger.
and press button in the form.
Now control is expected to come to forms designer, but not stopping at breakpoints.
When Stop debug from forms designer, the runtime session is ending.
Please help.
Thanks in advance,
RaviAssuming you connected to the running form successfully, it sounds like your breakpoint is not being called. In other words, if you put a breakpoint in a trigger that isn't firing then the break will never occur. A simple test would be to add a break in the WHEN-NEW-FORM-INSTANCE trigger. Since this trigger cannot be avoided, control will quickly be passed to the debugger at startup. If this works then you can assume what I mentioned, which is that your other breakpoints are not being reached.
Just to be sure, I just tested the Debugger in Forms 11.1.2.1 on Windows and it appears to work correctly. -
Left Outer Join not working in Infoset.
Hello Friends,
I have two ODSes , one for planned data (zplan) and other is billing z ods (zsd_o03).
now the situation is such that in my planned ODS for one sold to party .
SOLD TO MATERRIAL CALMONT PLANNED QUANTIY
14315 100 06.2007 54
14315 200 06.2007 20
14315 300 06.2007 30
14315 400 06.2007 10
But in my Billing ODS iam having for Sold to 14315
SOLD TO MATERRIAL CALMONT ACTUAL QUANTIY
14315 100 06.2007 20
14315 200 06.2007 30
And my Bex ouput should be like
SOLD TO MATERIAL CALMONT planned ACTUAL QUANTIY
14315 100 06.2007 54 20
14315 200 06.2007 20 30
14315 300 06.2007 30 0
14315 400 06.2007 10 0
So for this i made one Infoset and these ODses are linked by Sold_to , Materail,
Calmonth.
First i tried using Inner joing option , but the bottom two lines were not ciming , so used left outer join , and activated and recreated the query but still its showiong me the output same as inner join .. i.e
14315 100 06.2007 54 20
14315 200 06.2007 20 30
So i checked by writing a ABAP code in Se38 , but there its showing me the correct result ..
So please anybody help me out because iam thinking that infoset is the right way to do this kind of reporting , or esle shall i make one ODS and populate it through this ABAP code..
Thanks in advance.Hi , can anybody help me in this regard..
Thanks .. -
Import from Repository option not working - OBIEE 11.1.1.6.2
Hello,
We are currently running on OBIEE 11.1.1.6.2. We would like to merge Two Repositories. Well, in addition to "Merge" option we have, we were trying *"Import from Repository"* option but in vain. It is showing the following error:
*[nQsError: 12033] A client tried to connect to a server that is not of the right type*
I understand this option is of low precedence from Oracle and its support. But, just want to know if anyone have used this option and encountered this error. If so, any workaround u wanna suggest. I appreciate any support.
Thanks.967977 wrote:
Hello,
We are currently running on OBIEE 11.1.1.6.2. We would like to merge Two Repositories. Well, in addition to "Merge" option we have, we were trying *"Import from Repository"* option but in vain. It is showing the following error:
*[nQsError: 12033] A client tried to connect to a server that is not of the right type*
I understand this option is of low precedence from Oracle and its support. But, just want to know if anyone have used this option and encountered this error. If so, any workaround u wanna suggest. I appreciate any support.
Thanks.Do you know if the OBIEE installation is done on a cluster of two servers?
Maybe you are looking for
-
Is there any way to contact support for iphone by email?
I cannot find an answer to my problem. Still cannot assign ringtones (not customs) to contacts for phone. Only for incoming text. This is a feature on my phone and only worked I think once when I bought it. After two updates still broken. I cannot us
-
How to scan using the Laserjet 100 color MFP m175nw printer
Hello, My printer stopped printing suddenly so I downloaded the ePrint and it worked. . . but now I cant scan ! I dont have the option to scan. Please help!
-
HTMLDB_APPLICATION.G_F01 has wrong value!
HTMLDB_APPLICATION.G_F01 has wrong value! Hello again, I have a search page in my app (here the user defines the search criteria) P1. The page branches to P130, where the result is shown. This second page contains a region of type 'SQL Query (PL/SQL
-
How create a MessageBox?
Hallo, I can't find the class is needed to create a MessageBox. Waiting for answers. greetz Stefan
-
I'm trying to install Visual Studio 2012 Professional edition on my work laptop, Windows 7 Enterprise, Service Pack 1. I have limited admin rights and should be able to install programs on this laptop but when I try to install VS 2012, I get the foll