Debugging mode - sql query not showing up in console
Hi,
I have turned on the debugging mode via Admin->Server Configuration->Debug Level. Set it to debug mode.
I restarted the server. I wanted to test if the query will show up if there was an error in the query.
However I am not seeing any query. It complains that there is some error, but doesn't show what query string it is using.
Anyone got any idea how I can get query to show up on console (BI Publisher web interface) as opposed to
going and seeing the log files on the server.
Please let me know.
Thanks
Girija
Thankyou Vetsrini.
I will try out custom log table approach.
I see that there is a way to test pl/sql scripts via the DBMS output
and for that we need some invoking program like SQL PLUS to get the
log out into a file.
However, we wanted to see if there is a way to set Pl/SQL log files
and get PL/SQL logs when the calling program is BI Publisher.
regards
Girija
Similar Messages
-
Debug Mode - Source tables not showing up in Test Data tab
I'm new at OWB, so pardon me if this isn't a great question...
I built a mapping based on four views that are stored in Oracle. When I tried to run the mapping it gave me some errors, so I initiated debug mode. After the debug mode is initialized, only the target table shows up on the Test Data tab, the four source views are not there. How can I get the sources to show up in the Test Data tab so that I can define what test data to use?
Thank you!
Doug Faust
Long Island UniversityThankyou Vetsrini.
I will try out custom log table approach.
I see that there is a way to test pl/sql scripts via the DBMS output
and for that we need some invoking program like SQL PLUS to get the
log out into a file.
However, we wanted to see if there is a way to set Pl/SQL log files
and get PL/SQL logs when the calling program is BI Publisher.
regards
Girija -
Function used in SQL query not showing the desired results
I have created a function that gives me the client id but when i am using the function in the query its not giving me any result i.e. 0 rows but if I execute the function sepreatly and put the result of that function in the qurey it is giving me the desired result please have a look on the following and please reply with you expert opinion:
FUNCTION CODE:
create or replace function j2
(usid in varchar2)
return varchar2
is
cidn_in varchar2(4000) := '';
ls_sep varchar2(1) := ',';
cursor predicate_cidn
is
select
logical_schema_id
from
CLIENT_REGISTRY cr,
MEMBER_ROLE_CLIENT_ASSIGNMENT mrca,
MEMBER m
where
mrca.base_client_id = cr.base_client_id and
mrca.member_id = m.member_id and
cr.schema_in_use_in = '1' and
m.active_status_id = 'A' and
upper(mrca.member_id) = upper(usid);
BEGIN
for GET_CIDN in predicate_cidn
loop
cidn_in := cidn_in || ls_sep || '''' || GET_CIDN.logical_schema_id || '''';
end loop;
cidn_in := substr(cidn_in, 2);
cidn_in := '('||cidn_in||')';
--dbms_output.put_line(cidn_in);
return cidn_in;
END ;
SQL> select j2('qaa@adp') from dual;
J2('QAA@ADP')
('BASE18','SDK1TEST','SEETHA1CONFIG','BASE09','KAREN2','SIVACONFIG','BASE19','SD
K1CTEST','VASU1','KAREN5','EVENTS1CTEST','SDK1','ADA1CONFIG','BASE10','VRB1CONFI
G','CRU2CONFIG','BASE20','SIVATEST','PCOMCONFIG','KP1CONFIG','KAREN4CONFIG','EVE
NTS1TEST','SUZ3CONFIG','DONG2CONFIG','ED2CONFIG','SIVACTEST','APDCONFIG','EVENTS
1CONFIG','ESSCONFIG','SIVA','SDK2CONFIG','ED3CONFIG','RAJ4CONFIG','CBRCONFIG','N
AMRATA2CONFIG','EMIL1','NAMRATA1CONFIG','SDK2CTEST','BVT2CONFIG','MURUGAN1CONFIG
','COB1CONFIG','GABY1TEST','CHR1CONFIG','ED4CONFIG','USE1CONFIG','SDK2TEST','DEM
O1CONFIG','BERNIE1CONFIG','XA1','CAR2TEST','SDK2','ED5CONFIG','PAY1TEST','PAYXCO
NFIG','KP1TEST','SEAN1CONFIG','CAR2CTEST','VASU1CONFIG','SEAN2CONFIG','KP1CTEST'
,'MAU1CONFIG','CONWCONFIG','PAN1CONFIG','MERAJ2','PRA3CONFIG','SEAN5CONFIG','KP1
','PRA4CONFIG','CAR2CONFIG','PRA2CONFIG','SEAN6CONFIG','PRA3TEST','RPT','GABY1CT
EST','SDK3CONFIG','PRA2TEST','SEAN9CONFIG','CAR2','LV1CONFIG','PRA3CTEST','DONG1
CONFIG','TE1CONFIG','MERAJ2CONFIG','VIV1CONFIG','GABY1','SEAN2','PRA2CTEST','PRA
3','RPTCONFIG','PRA4CTEST','SEAN3','MITA1CONFIG','PRA2','RPTCTEST','PCOM1CONFIG'
,'SS2CONFIG','PAY1CONFIG','SEAN7','ANNCONFIG','BASE11','BASE02','LV2CONFIG','RPT
TEST','IMPECONFIG','SUR1CONFIG','SREEK2CONFIG','BASE03','SRINU3CONFIG','BDCONFIG
','JAY1CONFIG','AMMAN1','PRA1TEST','WPGCONFIG','BASE12','MP5CONFIG','MERAJ1','SR
INU2CONFIG','XA1CONFIG','RAJ1CONFIG','WPGCTEST','BASE04','CHRIS','RAJSCONFIG','P
ANKAJ','BASE13','WPGTEST','RAJ3CONFIG','WPG','BASE14','VASU2CONFIG','SRINU1CONFI
G','BASE05','PRA4TEST','VASU1TEST','PRA5CONFIG','NISH1CONFIG','CHRISCONFIG','SDK
3TEST','RAJ3TEST','KP2CONFIG','BASE06','DEFPCONFIG','NISH2CONFIG','CHRISCTEST','
WPSCONFIG','VASU2TEST','BASE15','GABY1CONFIG','PRA5TEST','MITA2CONFIG','BASE07',
'VASU1CTEST','KP2TEST','VASU2CTEST','LAURA3CONFIG','BASE16','CHRISTEST','WPSTEST
','VASU2','KP2CTEST','EVENTS1','BASE17','RAJ2CONFIG','WPSCTEST','BASE08','SREEK1
CONFIG','ADVE','PRA4','SDK1CONFIG','KP2','KAREN1','CRU1CONFIG','WPS')
Now if i put the results (cut and paste )in the query it gives me the results
SQL> select count(*) from baseclient.address_detail where cidn in ('BASE18','SDK1TEST','SEETHA1CONFIG','BASE09','KAREN2','SIVACONFIG','BASE19','SD
2 K1CTEST','VASU1','KAREN5','EVENTS1CTEST','SDK1','ADA1CONFIG','BASE10','VRB1CONFI
3 G','CRU2CONFIG','BASE20','SIVATEST','PCOMCONFIG','KP1CONFIG','KAREN4CONFIG','EVE
4 NTS1TEST','SUZ3CONFIG','DONG2CONFIG','ED2CONFIG','SIVACTEST','APDCONFIG','EVENTS
5 1CONFIG','ESSCONFIG','SIVA','SDK2CONFIG','ED3CONFIG','RAJ4CONFIG','CBRCONFIG','N
6 AMRATA2CONFIG','EMIL1','NAMRATA1CONFIG','SDK2CTEST','BVT2CONFIG','MURUGAN1CONFIG
7 ','COB1CONFIG','GABY1TEST','CHR1CONFIG','ED4CONFIG','USE1CONFIG','SDK2TEST','DEM
O1CONFIG','BERNIE1CONFIG','XA1','CAR2TEST','SDK2','ED5CONFIG','PAY1TEST','PAYXCO
8 9 NFIG','KP1TEST','SEAN1CONFIG','CAR2CTEST','VASU1CONFIG','SEAN2CONFIG','KP1CTEST'
10 ,'MAU1CONFIG','CONWCONFIG','PAN1CONFIG','MERAJ2','PRA3CONFIG','SEAN5CONFIG','KP1
11 ','PRA4CONFIG','CAR2CONFIG','PRA2CONFIG','SEAN6CONFIG','PRA3TEST','RPT','GABY1CT
12 EST','SDK3CONFIG','PRA2TEST','SEAN9CONFIG','CAR2','LV1CONFIG','PRA3CTEST','DONG1
13 CONFIG','TE1CONFIG','MERAJ2CONFIG','VIV1CONFIG','GABY1','SEAN2','PRA2CTEST','PRA
14 3','RPTCONFIG','PRA4CTEST','SEAN3','MITA1CONFIG','PRA2','RPTCTEST','PCOM1CONFIG'
15 ,'SS2CONFIG','PAY1CONFIG','SEAN7','ANNCONFIG','BASE11','BASE02','LV2CONFIG','RPT
16 TEST','IMPECONFIG','SUR1CONFIG','SREEK2CONFIG','BASE03','SRINU3CONFIG','BDCONFIG
17 ','JAY1CONFIG','AMMAN1','PRA1TEST','WPGCONFIG','BASE12','MP5CONFIG','MERAJ1','SR
18 INU2CONFIG','XA1CONFIG','RAJ1CONFIG','WPGCTEST','BASE04','CHRIS','RAJSCONFIG','P
19 ANKAJ','BASE13','WPGTEST','RAJ3CONFIG','WPG','BASE14','VASU2CONFIG','SRINU1CONFI
20 G','BASE05','PRA4TEST','VASU1TEST','PRA5CONFIG','NISH1CONFIG','CHRISCONFIG','SDK
21 3TEST','RAJ3TEST','KP2CONFIG','BASE06','DEFPCONFIG','NISH2CONFIG','CHRISCTEST','
22 WPSCONFIG','VASU2TEST','BASE15','GABY1CONFIG','PRA5TEST','MITA2CONFIG','BASE07',
23 'VASU1CTEST','KP2TEST','VASU2CTEST','LAURA3CONFIG','BASE16','CHRISTEST','WPSTEST
24 ','VASU2','KP2CTEST','EVENTS1','BASE17','RAJ2CONFIG','WPSCTEST','BASE08','SREEK1
25 CONFIG','ADVE','PRA4','SDK1CONFIG','KP2','KAREN1','CRU1CONFIG','WPS');
COUNT(*)
228
BUT if I user the function it gives me no results
0 rows selected and its taking a loon time to reurnThis appears to be a duplicate of the question in this thread
Re: VPD issue Need Assistance ASAP
where I wrote
"Your function returns a single string that happens to have a bunch of commas and quotes in it. An IN list generally requires a list of strings, which your function doesn't return.
You could rewrite the function to be a pipelined table function and then do
select count(*)
from baseclient.address_detail
where cidn in (SELECT cidn
FROM TABLE(<<your pipelined table function>>))
However, I would expect it to be easier not to wrap all this into a function and just have your IN clause be the logic in your predicate_cidn cursor.
Justin
" -
SQL query not calculating
gross_amount is giving the value of extended_amount and the gross_price_rc is giving the value of unit_selling_price
select customer_trx_line_id,
( extended_amount / 1- (decode(decode(attribute6,null,0)+decode(attribute7,null,0)+decode(attribute8,null,0)+decode(attribute9,null,0)/100,null,0,1,0))) GROSS_AMOUNT,
( unit_selling_price /1-(decode(decode(attribute6,null,0)+decode(attribute7,null,0)+decode(attribute8,null,0)+decode(attribute9,null,0)/100,null,0,1,0))) gross_price_rc
from ra_customer_trx_lines_all
where attribute6 is not null or attribute7 is not null or attribute8 is not null or attribute9 is not null
whats the isuue here??
Thanksdecode(attribute7,null,0)Looking at it again, this always returns 0 or NULL, so it not really surprising
DECODE
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions040.htm#i1017437
CASE
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/expressions004.htm#i1033392 -
BPEL Processes are not showing in BPEL Console after OPMN restart
Hi All,
BPEL Processes are not showing in BPEL Console after OPMN restart. It was showing earlier before restart.
Can some one help on this?
ThanksVikky,
Are you using 10g?
If BPELConsole is up but you don't see any process, you can go to the log files and see what is the problem.
It might relates to permissions, or DB issues etc....
Arik -
I have added two new extension on CUCM, Directory not showing in attendant console even after resynch on CUCM and attendant cosnole
Any idea?Hello,
Can you tell us what versions of CUCM and CUxAC you are using? Just extensions alone in CUCM will not sync to the corporate directory within the attendant console application. You will at least have to have user's associated with those extensions and depending on your rule set within the console that should then bring those extensions into the console directory.
Thanks,
Tony -
Directory not showing in attendant console
I have added two new extension on CUCM, Directory not showing in attendant console even after resynch on CUCM and attendant cosnole
Any idea?Under Engineering ----Service Management,can u check LDAP service is running.
Also, under system configuration ---directory synchronisation ----Enable contact synchronisation is enabled.
Also, u are creating this user in AD and then, fetching to CUCM and Attendant Console is finally these users as CCM Source.
regds,
aman -
PL/SQL portlet not showing up in portlet respository for existing provider
I hope you can spare a minute to help. I've created a new PL/SQL portlet and added it to an existing provider package. I've refreshed the portlet repository and refreshed the provider, but the new portlet still doesn't show up. The other portlets in the provider show up fine. Could web cache be the culprit? I'm using Portal R2 9.0.2.6 and PDK July 2003.
Thank you,
KendraThanks!
I did what you suggested, and the page came back:
Portlet Repository Refresh Status
View information about the most recent Portlet Repository refresh, such as who initiated the process, when it was started, and whether it is complete or still in progress. If the refresh is complete, this page also shows when the process finished and whether it was successful. Click View Details to view a more detailed log of the refresh process.
Started By: PORTAL
Started On: April 08, 2002 19:13:38
Completed On: April 08, 2002 19:13:57
Refresh Status: Complete
Refresh Result: Succeeded
View Details
Note that since I had just done a refresh, I would have expected the date to be today's, assuming that the date refers to when the refresh was done, but instead it's April 8th. Strange?
When I clicked on the View Details link, it brought up a page:
Monitor Log Detail Report
Advanced
Error: Unable to perform query (WWV-10202)
ORA-01722: invalid number (WWV-11230)
No row returned.
Not too helpful an error message, huh?
Clicking on the Advanced/Basic links produced identical results (the same exact error message).
The Add Portlets to Region still does not show the portlet I wish to add.
Any additional help much appreciated...
Thanks
Bryan -
ORA-00904 ON A PLSQL QUERY RETURNING SQL QUERY ( NOT ALWAYS )
Running a classic report , we sometimes face the error :
<pre>failed to parse SQL query:
ORA-00904: : invalid identifier
Even when using the same parameters, sometimes the report runs and some others we get the error.
The report is called by a url from a different page
f?p=&APP_ID.:500:&APP_SESSION.:FLOW_EXCEL_OUTPUT_R&P503_RUN_REGION_ID._el:NO::P500_RUN_RG,P500_RG11_FILTER1:1,&P503_FILTER1.
THE EVNVIRONMENT IS THE FOLLOWING
ORACLE DATABASE 11g Enterprise Edition Release 11.2.0.2.0 -64bit
Apex Application Express 4.1.0.00.32
In the apex on the same workspace we have 2 copies of the same application having different schema.
We did not face this problem in Oracle 10g
hello,
I send you the function. rs_check_limit .
In one case when i tried to debug in order to understand the error, the function was not fired.
FUNCTION rs_check_limit ( p_trade_date_from date
, p_trade_date_to date, p_session_id number , p_user_id varchar2
, p_pct_sum_prcp_cd number
,p_rs_list_exclude varchar2 default ' '
return rs_check_limit_tb PIPELINED
is
v_data rs_check_limit_tp :=rs_check_limit_tp ( null, null,null, null,null, null,null, null,null, null );
CURSOR exec_trades_prcp_cur (vc_risk_date_from date
, vc_risk_date_to date
, vc_rs_list_exclude varchar2
is
select PRCP_CD
, clr_sys_cd
, clr_acc_cd
,avg( exec_trades_value_mkt ) avg_exec_trades_prcp
,SUM( exec_trades_value_mkt ) sum_exec_trades_prcp
from
select trd_dt, PRCP_CD , clr_sys_cd
, clr_acc_cd , sum ( exec_trades_value_mkt ) exec_trades_value_mkt
from
select lst_cmpt_dt trd_dt , PRCP_CD , clr_sys_cd
, clr_acc_cd
,SUM (BUYS_VALUE+ SELLS_VALUE) exec_trades_value_mkt
from rs_mm_rsk_lmts_dtls
where 1=1
and lst_cmpt_dt > vc_risk_date_from -1
and lst_cmpt_dt <= vc_risk_date_to
and instr( vc_rs_list_exclude, TRIM(clr_acc_cd)|| '.')= 0
group by lst_cmpt_dt , PRCP_CD , clr_sys_cd
, clr_acc_cd
UNION ALL
select trunc ( apx_rs_risk_info.get_d_n_cur (lst_cmpt_dt,- 1) ) trd_dt , PRCP_CD , clr_sys_cd
, clr_acc_cd, SUM (BUYS_VALUE+ SELLS_VALUE) exec_trades_value_mkt
from rs_mm_rsk_lmts_dtls
where trd_dt = apx_rs_risk_info.get_d_n_cur ( lst_cmpt_dt , 2 )
and lst_cmpt_dt > apx_rs_risk_info.get_d_n_cur (vc_risk_date_from ,1 )-1
and lst_cmpt_dt < vc_risk_date_to
and instr( vc_rs_list_exclude, TRIM(clr_acc_cd)|| '.')= 0
group by apx_rs_risk_info.get_d_n_cur (lst_cmpt_dt , -1 ) ,PRCP_CD , clr_sys_cd
, clr_acc_cd
group by trd_dt, PRCP_CD , clr_sys_cd
, clr_acc_cd
group by PRCP_CD , clr_sys_cd
, clr_acc_cd
CURSOR exec_trades_all_cur (vc_risk_date_from date
, vc_risk_date_to date
, vc_rs_list_exclude varchar2)
is
select SUM( exec_trades_value_mkt ) sum_exec_trades_all -- óõíïëéêÞ çìåñÞóéá áîßá óõíáëëáãùí áãïñÜò
, avg( exec_trades_value_mkt ) avg_exec_trades_all
from
select trd_dt, sum( exec_trades_value_mkt ) exec_trades_value_mkt
from
--gia T : T, T-1 , T-2
select lst_cmpt_dt trd_dt , SUM (BUYS_VALUE+ SELLS_VALUE) exec_trades_value_mkt
from rs_mm_rsk_lmts_dtls
where 1=1
and lst_cmpt_dt > vc_risk_date_from -1
and lst_cmpt_dt <= vc_risk_date_to
and instr( vc_rs_list_exclude, TRIM(clr_acc_cd)|| '.')= 0
group by lst_cmpt_dt
union all
--gia T EPIPLEON: T-3
select apx_rs_risk_info.get_d_n_cur (lst_cmpt_dt,-1) trd_dt , SUM (BUYS_VALUE+ SELLS_VALUE) exec_trades_value_mkt
from rs_mm_rsk_lmts_dtls
where trd_dt = apx_rs_risk_info.get_d_n_cur ( trunc ( lst_cmpt_dt ) , +2 )
and lst_cmpt_dt > apx_rs_risk_info.get_d_n_cur (vc_risk_date_from ,1 )-1
and lst_cmpt_dt < vc_risk_date_to
and instr( vc_rs_list_exclude, TRIM(clr_acc_cd)|| '.')= 0
group by apx_rs_risk_info.get_d_n_cur (lst_cmpt_dt , -1 )
group by trd_dt
exec_trades_prcp_row exec_trades_prcp_cur%rowtype;
exec_trades_all_row exec_trades_all_cur%rowtype;
i number := 0;
tmp varchar2(4) := null;
procedure feed_table is
BEGIN
v_data.prcp_cd := exec_trades_prcp_row.prcp_cd;
v_data.clr_sys_cd := exec_trades_prcp_row.clr_sys_cd;
v_data.clr_acc_cd := trim(exec_trades_prcp_row.clr_acc_cd);
v_data.member_id := RS_GET_PRCP_MEMBER_ID(exec_trades_prcp_row.prcp_cd);
v_data.member_dsc := RS_GET_PRCP_DSC(exec_trades_prcp_row.prcp_cd);
v_data.sumTRADES_VALUE_PRCP_CD_T := round( exec_trades_prcp_row.sum_exec_trades_prcp,2);
v_data.mkt_sumTRADES_VALUE_PRCP_CD_T := round( exec_trades_all_row.sum_exec_trades_all,2) ;
v_data.avgTRADES_VALUE_PRCP_CD_T := round( exec_trades_prcp_row.avg_exec_trades_prcp,2);
v_data.mkt_avgTRADES_VALUE_PRCP_CD_T := round( exec_trades_all_row.avg_exec_trades_all,2) ;
v_data.pct_sum_prcp_cd := round( 100* exec_trades_prcp_row.sum_exec_trades_prcp
/ exec_trades_all_row.sum_exec_trades_all , 2);
end ;
begin
exec_trades_all_row := null;
open exec_trades_all_cur (vc_risk_date_from => p_trade_date_from
, vc_risk_date_to => p_trade_date_to
,vc_rs_list_exclude => NVL(p_rs_list_exclude ,'.' )
fetch exec_trades_all_cur INTO exec_trades_all_row;
close exec_trades_all_cur;
for exec_trades_prcp_rec in exec_trades_prcp_cur (vc_risk_date_from => p_trade_date_from
, vc_risk_date_to => p_trade_date_to
,vc_rs_list_exclude => NVL(p_rs_list_exclude ,'.' )
loop
exec_trades_prcp_row := exec_trades_prcp_rec;
if exec_trades_all_row.sum_exec_trades_all <> 0 then
if 100* exec_trades_prcp_row.sum_exec_trades_prcp
/ exec_trades_all_row.sum_exec_trades_all >= p_pct_sum_prcp_cd then
i := i+1;
v_data :=rs_check_limit_tp ( null, null,null, null,null, null,null, null,null, null );
feed_table;
pipe row ( v_data );
end if;
end if;
end loop;
end;
I send you the dll for the type
CREATE OR REPLACE
TYPE rs_check_limit_tp as object
prcp_cd varchar2(10)
, member_id varchar2(4)
, member_dsc varchar2(120)
, clr_sys_cd varchar2(4)
, clr_acc_cd varchar2(6)
, avgTRADES_VALUE_PRCP_CD_T number
, mkt_avgTRADES_VALUE_PRCP_CD_T number
, sumTRADES_VALUE_PRCP_CD_T number
, mkt_sumTRADES_VALUE_PRCP_CD_T number
, pct_sum_prcp_cd number
and the table dll
CREATE TABLE rs_mm_rsk_lmts_dtls
(trd_dt DATE NOT NULL,
prcp_cd VARCHAR2(10 BYTE) NOT NULL,
clr_sys_cd CHAR(4 BYTE),
clr_acc_cd CHAR(10 BYTE),
sec_isin_cd VARCHAR2(12 BYTE) NOT NULL,
buys NUMBER(19,0),
sells NUMBER(19,0),
buys_value NUMBER(19,6),
sells_value NUMBER(19,6),
abs_b_minus_s NUMBER(19,2),
rsk_prc NUMBER(13,6),
net_value NUMBER(19,2) NOT NULL,
sr NUMBER(19,2) NOT NULL,
mm NUMBER(19,2) NOT NULL,
lst_cmpt_dt DATE,
usr_id VARCHAR2(8 BYTE) NOT NULL,
cmt VARCHAR2(64 BYTE),
chg_dt DATE,
gr_b NUMBER(19,2) NOT NULL,
gr_s NUMBER(19,2) NOT NULL)
Thank you
Tonia -
How To Write A Sql Query to Show 0's
I never can remember this :-/ What do I have to do to get a SQL Query to return 0 if the Count of a condition is 0? For example lets say Joe, Jay, Jim could log on, but only Joe & Jim logged in Jay would not be returned in the query below. What
would I need to set-up so that All 3 users would be returned
Select logonName, Count(Logon)
From logonUserInfo
where logonName is not nullGROUP BY logonNameCurrently there is only 1 table involved. I would need a separate table? What would this table need to hold?
You wouldn't need a separate table unless and until you want to store who logged in at what time and so on... then your table structures looks like below..
CREATE TABLE loginnames
loginid INT
name VARCHAR(30),
GO
CREATE TABLE loginTimes
loginid INT,
logintime DATETIME
GO
So, now you can do a left join on both tables on a certain date directly and find out who actually logined and who didn't with a count 0 for the one's who didn't login... and that will abide the principles of normalization as well...
If you don't want to use an another table, you would have to duplicate the loginnames everytime that user logins and also you don't have a track on what date the login happened.. So you will be considering from day 1 to Till date...
Please mark as answer, if this has helped you solve the issue.
Good Luck :) .. visit www.sqlsaga.com for more t-sql code snippets and BI related how to articles. -
Some SQL fields not showing data in Crystal XI R2
I have a report that is using a stored procedure. In this stored procedure we have many fields that are being passed over to Crystal. A small portion of these fields do not show any data when you browse them in Crystal. But when you check on the SQL Server 2005 side, they contain data. So we know that the issue is probably on the Crystal side because there is data on the SQL side.
I originally thought that the problem may be caused by Null values in the database, but I used Crystal to convert the Null's to numeric zero if it was a number, and still there was no data showing up.
Also in the stored procedure, we are passing 2 parameters a start and end date. But that seems irrelevent to why some of the fields are not containing data like they should.
Why would some fields show no values at all, and some fields shows values?
Any ideas on how to correct this situation so data will show up for all the fields like they are suppose too?
Thanks everyone for their help!Hi Levi,
Pleaase check the following :
1. Other than storedprocedure are you adding any tables to your report ? If so, check the links between your stored procedure.(Through Database Expert)
2.Write the following formula to find out whether the database fields contains values or not.
if isnull() or = " " Then
"This Field is Empty"
Else
Drag and dwop this formula in your report to get the field values.
Thanks,
Sastry -
Inline transform for Sql Query not working in SAP MII 12.1 Version 12.1.8 B
Hi All,
I applied an xslt for an sql query which returns an xml file.
I used inline transform icon in sql query to load an xsl file which has to return me a string
Any idea why is not working for me..?
My Sample XML file:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/XMII/CM/BatchDisposition/BatchQueueManagement/StyleSheets/ProductXsl.xsl"?>
<Rowsets DateCreated="2011-05-05T07:27:45" EndDate="2011-05-05T07:27:45" StartDate="2011-05-05T06:27:45" Version="12.1.8 Build(20)">
<Rowset>
<Columns>
<Column Description="ProductName" MaxRange="1" MinRange="0" Name="ProductName" SQLDataType="12" SourceColumn="ProductName"/>
</Columns>
<Row>
<ProductName>Asprin 100mg Tablets 12 x10 strip</ProductName>
</Row>
<Row>
<ProductName>Asprin 300mg Tablets 12 x10 strip</ProductName>
</Row>
<Row><ProductName>Ibprooven 200mg Tablets 12 x 10 strip</ProductName></Row>
<Row><ProductName>RipTide 50mg Tablets 40 x10 strip</ProductName></Row>
<Row><ProductName>Seroquel 200mg Tablets 6 x10 strip</ProductName></Row>
<Row><ProductName>Seroquel 400mg Tablets 12 x10 strip</ProductName></Row>
</Rowset>
</Rowsets>
My Sample XSl File:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:text>["</xsl:text>
<xsl:for-each select="Rowsets/Rowset/Row">
<xsl:value-of select="ProductName"/>
<xsl:if test="position() < last()">
<xsl:text>","</xsl:text>
</xsl:if>
<xsl:if test="position()=last()">
<xsl:text>"]</xsl:text>
</xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Any Suggestions are Welcome:
ThanksSomething like this should work...
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<Rowsets DateCreated="{Rowsets/@DateCreated}" Version="{Rowsets/@Version}" StartDate="{Rowsets/@StartDate}" EndDate="{Rowsets/@EndDate}">
<xsl:copy-of select="/Rowsets/FatalError"/>
<xsl:copy-of select="/Rowsets/Messages"/>
<Rowset>
<Columns>
<Column Description="Mycol1" MaxRange="1" MinRange="0" Name="Mycol1" SQLDataType="12" SourceColumn="Mycol1" />
</Columns>
<Row>
<Mycol1>
<xsl:text>["</xsl:text>
<xsl:for-each select="/Rowsets/Rowset/Row">
<xsl:value-of select="." />
<xsl:choose>
<xsl:when test="position() < last()"><xsl:text>","</xsl:text></xsl:when>
<xsl:otherwise><xsl:text>"]</xsl:text></xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</Mycol1>
</Row>
</Rowset>
</Rowsets>
</xsl:template>
</xsl:stylesheet> -
Search Query not showing up results
Hi ,
I m firing a UCM query using the UCM admin console ,something like xLanguage <contains> `it-IT`,but it is not returning any results,although the content matching this condition exists in the content server in Released state.I have also rebuild the search indexes.
I m not seeing any errors in the logs as well.
Can anyone tell me what might be going wrong here and what more can i do to debug this.If this is Oracle Text Search, you might be hitting a stop word. ('It' would likely be considered a stop word.)
Try searching using Repository Manager. If the document returns, then in the web ui, try enclosing the search phrase in braces
xLanguage <contains> `{it-IT}` -
i am writing SQL lines they are part of my stored procedure there is not any error in this but this not
showing me any result but giving me message anonymous block completed
set serveroutput on
declare
var varchar(50);
re varchar(50);
begin
var:='zoheb123456789';
re :=length(var);
if re!='' then
dbms_output.put_line(var);
dbms_output.put_line(re);
else
dbms_output.put_line('no');
end if;
end;please help me
Edited by: BluShadow on 14-Feb-2011 08:53
to show code tags and convert <> to != for the forumssql> declare
2 var varchar(50);
3 re varchar(50);
4 begin
5 var:='zoheb123456789';
6 re :=length(var);
7 if re != ''
8 then
9 dbms_output.put_line(var);
10 dbms_output.put_line(re);
11 else
12 dbms_output.put_line('no');
13 end if;
14* end;
15 /
no
PL/SQL procedure successfully completed.As you can see, it works in sql*plus.
The result, "no" may not be what you expect. The reason for this is the handling of the empty string, in
if re != ''Oracle translates '' to null:
if re != nullThis will always evaluatie to false (null checking should be of course be done with IS [NOT] NULL).
BTW: why is re varchar2 anyway? It is assigned a numeric value, so changing it into numeric would be better. And you would avoid the faulty null checking. -
Hi Forum
i made an application which run on JRun server.
In many of my jsps i used sql query like this:
" select id, name, rollno from student where add = 'jj';"
and retrieve the record from resultset like this:
rs.getString("id");
rs.getString("name");
rs.getString("rollno");
I got no error.
BUT WHEN I RETRIEVE THE RECORDS LIKE THIS
rs.getString("name");
rs.getString("id");
rs.getString("rollno");
i got the error:
java.sql.SQLException: [Oracle][ODBC]Invalid column number <1>.
I can not understand what is the problem ?
all the datatypes are correct.
all coding is correct.
and everything is correct.
pls help me & suggest a solution.
is there any problem of jdbc API OR of JRUN SERVER SETTINGS?
thanks
mail me at [email protected]
Arvind GoelI would advise against ever using SELECT * - the order of the columns is undetermined so you're bound to hit this problem sooner or later. Besides, it assumes the column names and you know what happens when you assume things...
I would recommend retrieving only the columns you need, in the order you want them and to call ResultSet.getXXX for each of the columns, in order.
Maybe you are looking for
-
Hi, This may be a little of an open ended question, but Id like to ask the crowd as I have a delema to whether or not to use a standard database design or a propertybag/flatfile format and transform the information within my application? THE SITUATIO
-
DVD Error (help!)
hallo. the reason i am writing today is because i am getting the following error message when i insert a dvd that i just rented from my local retailer: "You have inserted a disk containing no volumes that Mac OS X can read. To continue with the disk
-
Vertical Scroll in Dynpro Table Control
Hello, I am currently having an issue with the vertical scroll control in my classic dynpro table. When I scroll down it will scroll past the first record and then freeze. I cannot scroll back up to the first record. If I try to scroll down it jum
-
Navigate Timeline with keyboard
Curious if anyone knows how to navigate through clips in the timeline? I know "v" will select the nearest edit, then I can hit enter and open that clip in the viewer. But I'd like to be able to establish a focus on a clip and jump forward or back or
-
Hi, I am trying to implement the BADI CRM_IC_IARECORD for suppressing creation of interaction records.The interaction record should get generated only when the user clicks on the interaction record work center. I passed RV_SUPPRESS_IREC as true but t