Not able to query data from View
Hi,
I am not able to fetch data from views even while running simple select statements. I am using SQL Developer Version 3.0.04,
Same query is fetching data on other computers running SQL Developer or Toad.
Has anyone faced this issue??
Is that the first version ever you installed? You unzipped in a clean directory, right?
What OS/JDK/DB versions?
So do you get an error or what?
K.
Similar Messages
-
Not able insert ,query data from forms
hi,
I am not able to insert data or query data from forms(10g devsuite).getting error frm-40505,frm 40508 .i am able to insert and select record from sql plus.the block ihave created is control block .it is connected to the table using the properties.
should i do anything to insert record.please helpthe block ihave created is control block .it is connected to the table using the properties.A Control Block, by definition, is a non-database block. This means the block is not directly connected to a table so you have to manually display data in the block and any DML you want to perform on data in this block you must do manually as well.
There are four database objects you can base your database block on; 1) a Table, 2) a View, 3) From Clause Query (basically an In-line View), and 4) a database stored procedure. I recommend you use one of these four methods rather than manually display your data.
Craig... -
Not able pass the data from component to other component.
Hello All
I am not able pass the data from component to other component.
I have done like this.
1 Main Component (Parent component ) having below two child components.Embeded as used components.
2) Search Component and Details Component
3) In the Search Component having buttons, Say : Button u201CXu201D on click of button I am navigating to Details component view through FPM.
4) When I am clicking above button u201CXu201D raising the event to call the parent business logic method, there I am getting Structure with values and binded this structure to the node and Mapped this node to the Details component interface node. FYI : I kept the debugging point Structure is having data , I had set static attributes table to node instance.
5) In the Details component node data is not coming mean empty.
Thanks in Advance.
Br-
CW
Edited by: CarlinWilliams on Jul 4, 2011 9:21 AMHi,
When you use input Ext. check that the parent component should not be used as used component in child component.
Only in the parent component the child components should be used as used components and the usage has to be created for the
Child Components and the binding of the Node should be done from comp. controller of parent component to child node
by which you will be able to see double arrow against the node.This should work
Thanks,
Shailaja Ainala. -
Hi all ,
I have written a function to get the gl_date from ce_reconcilied transactions_v . but when i call th function in a select query , it is not returning any data.
I have used the following intialization in the function
Mo_Global.set_policy_context('S',p_org_id);
cep_standard.init_security;
But when i use anonymous block to get gl_date printed it is fetching data from the view.
Below is the code for Function
CREATE OR REPLACE Function l3get_gl_date(p_org_id NUMBER,p_statement_line_id NUMBER)
RETURN DATE
AS
v_gl_date DATE;
ct NUMBER;
BEGIN
Mo_Global.set_policy_context('S',p_org_id);
cep_standard.init_security;
SELECT count(*) into ct from ce_reconciled_transactions_v where org_id=p_org_id ;
dbms_output.put_line('count:' ||ct || 'org ' ||p_org_id || ' line ' ||p_statement_line_id);
SELECT gl_date INTO v_gl_date
FROM ce_reconciled_transactions_v where statement_line_id=p_statement_line_id;
RETURN v_gl_date;
EXCEPTION
WHEN OTHERS
THEN
dbms_output.put_line('unable to get GL_DATE' ||SQLERRM);
RETURN NULL;
END;
below is tha anonymous block
declare
p_org_id NUMBER;
p_statement_line_id NUMBER;
ct NUMBER;
v_gl_date DATE;
BEGIN
select org_id into p_org_id from ce_bank_acct_uses_all where bank_account_id=10911;
select statement_line_id into p_statement_line_id from ce_statement_lines where statement_header_id=41130 and line_number=4;
Mo_Global.set_policy_context('S',p_org_id);
cep_standard.init_security;
SELECT count(*) into ct from ce_reconciled_transactions_v where org_id=p_org_id ;
dbms_output.put_line('count: ' ||ct || 'org ' ||p_org_id || ' line ' ||p_statement_line_id);
SELECT gl_date INTO v_gl_date
FROM ce_reconciled_transactions_v where statement_line_id=p_statement_line_id;
dbms_output.put_line('GL Date: ' || v_gl_date);
EXCEPTION
WHEN OTHERS
THEN
dbms_output.put_line(SQLERRM);
END;
please suggest .Hi,
Try adding the following code so we can verify the org is set in your function:
Add to the definition:
v_org_id number;
Add after setting the policy:
select MO_GLOBAL.get_current_org_id()
into v_org_id from dual;
FND_FILE.PUT_LINE(FND_FILE.LOG,'Current MO Org_id='||v_org_id);
This will verify that the org_id was set.
Are you getting any errors, or simply no data found.
Cheryl -
Web Template is not able to fetch data from Data Provider
hi friends,
i have created a reporting agent for a particular query and given all the necessary parameters, defined the variants and activated this and created a scheduling package to this ,assigned my query to the scheduling package
later in the web template,in the web item tab i maintained the read mode as precalculated web template and the final report on the web is saying web tempalte is not able to get the data from the data provider ,
am i missing any where...
i look forward to your help ,
regards,
sasidhar gunturuHi,
use the correct link to call the report.
you can check the links : Re: Concept Of Precalculated Template
https://www.sdn.sap.com/irj/sdn/developerareas/bi?rid=/webcontent/uuid/a8cd1f71-0a01-0010-4783-f119b6132d25 [original link is broken]
Regards
Happy Tony -
Hi All
i had created one view based on four different tables.Now to enter the data in load i had successfully created INSTEAD OF TRIGGER on view.But data load into tables but when i try to see data in view then its shows me nothing.
so why my data not load in view but lad into four diff tables.
---VIEW CODE
CREATE OR REPLACE FORCE VIEW "VIEW_WELL_GENERATOR_FORM" ("WEL_PK", "STA_PK", "PER_PK", "FAC_PK", "WELL_TYPE", "WELL_TYPE_DATE", "OPER_STATUS", "STATUS_DATE", "CLASS", "SITE", "FAC_TYPE", "AUT_STATUS") AS
select "WELL"."WEL_PK" as "WEL_PK",
"WELL_STATUS"."STA_PK" as "STA_PK",
"PERMIT"."PER_PK" as "PER_PK",
"FACILITY"."FAC_PK" as "FAC_PK",
"WELL_STATUS"."WELL_TYPE" as "WELL_TYPE",
"WELL_STATUS"."WELL_TYPE_DATE" as "WELL_TYPE_DATE",
"WELL_STATUS"."OPER_STATUS" as "OPER_STATUS",
"WELL_STATUS"."STATUS_DATE" as "STATUS_DATE",
"WELL_STATUS"."CLASS" as "CLASS",
"WELL"."SITE" as "SITE",
"FACILITY"."FAC_TYPE" as "FAC_TYPE",
"PERMIT"."AUT_STATUS" as "AUT_STATUS"
from "FACILITY" "FACILITY",
"PERMIT" "PERMIT",
"WELL_STATUS" "WELL_STATUS",
"WELL" "WELL"
where "WELL"."WEL_PK"="WELL_STATUS"."WEL_FK"
and "PERMIT"."WEL_FK"="WELL"."WEL_PK"
and "FACILITY"."FAC_PK"="WELL"."FAC_FK"
---INSTEAD OF TRIGGER CODE...
CREATE OR REPLACE TRIGGER "WELL_GENERATOR_TRIGGER_1"
INSTEAD OF INSERT ON VIEW_WELL_GENERATOR_FORM
FOR EACH ROW
DECLARE
rowcnt number;
BEGIN
INSERT INTO facility (FAC_PK) VALUES (:NEW.FAC_PK);
SELECT COUNT(*) INTO rowcnt FROM WELL WHERE WEL_PK = :NEW.WEL_PK;
IF rowcnt = 0 THEN
INSERT INTO WELL (SITE,FAC_FK) VALUES(:NEW.SITE,:NEW.FAC_PK);
ELSE
UPDATE WELL SET WELL.SITE = :NEW.SITE,
WELL.FAC_FK = :NEW.FAC_PK
WHERE WELL.WEL_PK = :NEW.WEL_PK;
END IF;
SELECT COUNT(*) INTO rowcnt FROM WELL_STATUS WHERE WELL_STATUS.STA_PK = :NEW.STA_PK;
IF rowcnt = 0 THEN
INSERT INTO WELL_STATUS (WELL_TYPE, WELL_TYPE_DATE, OPER_STATUS, CLASS,WEL_FK)
VALUES(:NEW.WELL_TYPE, :NEW.WELL_TYPE_DATE, :NEW.OPER_STATUS, :NEW.CLASS,:NEW.WEL_PK);
ELSE
UPDATE WELL_STATUS SET WELL_STATUS.WELL_TYPE = :NEW.WELL_TYPE,
WELL_STATUS.WELL_TYPE_DATE = :NEW.WELL_TYPE_DATE,
WELL_STATUS.OPER_STATUS = :NEW.OPER_STATUS,
WELL_STATUS.CLASS = :NEW.CLASS,
WELL_STATUS.WEL_FK = :NEW.WEL_PK
WHERE STA_PK = :NEW.STA_PK;
END IF;
SELECT COUNT(*) INTO rowcnt FROM PERMIT WHERE PERMIT.PER_PK = :NEW.PER_PK;
IF rowcnt = 0 THEN
INSERT INTO PERMIT (AUT_STATUS,WEL_FK) VALUES (:NEW.AUT_STATUS,:NEW.WEL_PK);
ELSE
UPDATE PERMIT SET PERMIT.AUT_STATUS = :NEW.AUT_STATUS,
PERMIT.WEL_FK = :NEW.WEL_PK
WHERE PERMIT.PER_PK = :NEW.PER_PK;
END IF;
ThanksHi
Thanks for your reply.here i am adescribing my code for the tables.
CREATE TABLE "FACILITY"
( "FAC_PK" NUMBER(8,0),
"FAC_STATE_UK" VARCHAR2(4),
"DELFLAG" VARCHAR2(1),
"FAC_TYPE" VARCHAR2(1),
"FAC_NAME" VARCHAR2(80),
"STREET1" VARCHAR2(50),
"STREET2" VARCHAR2(50),
"CITY" VARCHAR2(60),
"SATE" VARCHAR2(2),
"ZIP" VARCHAR2(14),
"LABEL_STREET_1" VARCHAR2(30),
"LABEL_STREET_2" VARCHAR2(30),
"LABEL_CITY" VARCHAR2(15),
"LABEL_COUNTY" VARCHAR2(10),
"STATE_OR_TRIBE" VARCHAR2(3),
"SIC_CODE" VARCHAR2(4),
"NAICS_CODE" VARCHAR2(6),
"PETIT_STATUS" VARCHAR2(2),
"STATE_CONTACT_NAME" VARCHAR2(30),
"TRIBAL_NAME" VARCHAR2(30),
"TOTAL_WELLS" NUMBER(5,0),
"LANDOWNER_TYPE" VARCHAR2(1),
"LOC_IDENTITY" VARCHAR2(1),
"PROJECT_STATUS" VARCHAR2(25),
"TRIBE_YN" VARCHAR2(1),
"INFO_SOURCE" VARCHAR2(35),
"FAC_DESC" VARCHAR2(3),
"FAC_LAT" NUMBER(10,8),
"FAC_LONG" NUMBER(11,8),
"FAC_ACC_VALUE" NUMBER(6,0),
"FAC_HORIZ_DATUM" VARCHAR2(3),
"FAC_METHOD" VARCHAR2(3),
"FAC_POINT_LINE_AREA" VARCHAR2(3),
"FAC_SOURCE_SCALE" VARCHAR2(2),
"FAC_COUNTY" VARCHAR2(35),
"FAC_HIST_LAT" VARCHAR2(100),
"FAC_HIST_LONG" VARCHAR2(100),
"HIST_NOTES_ACTDATE" DATE,
"HIST_NOTES_ACTNEEDED" VARCHAR2(15),
"HIST_SUBMITBY" VARCHAR2(35),
"HIST_ENTRYDATE" DATE,
"HIST_ID" VARCHAR2(64),
"AUD_ACTION" VARCHAR2(10),
"AUD_TIME" DATE,
"AUD_BEFORE_VALUE" VARCHAR2(80),
"AUD_AFTER_VALUE" VARCHAR2(80),
"HIST_NAME" VARCHAR2(100),
"HIST_CONTACT" VARCHAR2(80),
"HIST_FULL_STREET" VARCHAR2(100),
"HIST_FULL_FAC_NAME" VARCHAR2(200),
"FORMER_FAC_NAME" VARCHAR2(100),
"COMMENTS" VARCHAR2(300),
"HIST_ORIGINATOR" VARCHAR2(20),
"PHONE" VARCHAR2(15),
"PHONE_EXT" VARCHAR2(8),
"FAX" VARCHAR2(15),
"EMAIL_ADDRESS" VARCHAR2(30),
"EMAIL_ADDRESS_DOMAIN_NAME" VARCHAR2(30),
"FAC_URL" VARCHAR2(60),
"LAST_UPDATE_LOTUS_NOTES" DATE,
"NUM_INSPECTIONS" NUMBER(6,0),
"NUM_PERMITS" NUMBER(6,0),
"NUM_CONVERSIONS" NUMBER(6,0),
"LAST_UPDATE" DATE,
"USERNAME" VARCHAR2(16),
"CREATED_BY" VARCHAR2(16),
"CREATED_ON" DATE,
"EDITED_BY" VARCHAR2(16),
CONSTRAINT "FACILITY_PK" PRIMARY KEY ("FAC_PK") ENABLE,
CONSTRAINT "FACILITY_STATE_UK" UNIQUE ("FAC_STATE_UK") DISABLE
CREATE OR REPLACE TRIGGER "BI_FACILITY"
before insert on "FACILITY"
for each row
begin
if :NEW."FAC_PK" is null then
select "FACILITY_SEQ".nextval into :NEW."FAC_PK" from dual;
end if;
end;
for the WELL table----
CREATE TABLE "WELL"
( "WEL_PK" NUMBER(8,0) NOT NULL ENABLE,
"FAC_FK" NUMBER(8,0),
"CNT_FK" NUMBER(8,0),
"GEO_FK" NUMBER(8,0),
"WEL_STATE_UK" VARCHAR2(4) DEFAULT '09DI',
"DELFLAG" VARCHAR2(1) DEFAULT 'N',
"NAME" VARCHAR2(80) DEFAULT 'No data',
"SITE" VARCHAR2(50) DEFAULT 'No data',
"HIGH_PRIORITY_YN" VARCHAR2(1) DEFAULT ('N'),
"AQUI_EXEMPT_YN" VARCHAR2(1) DEFAULT ('N'),
"TOTAL_DEPTH" NUMBER(5,0),
"WELL_IN_SWA" VARCHAR2(1) DEFAULT ('U'),
"AUD_ACTION" VARCHAR2(10),
"AUD_TIME" DATE,
"AUD_BEFORE_VALUE" VARCHAR2(80),
"AUD_AFTER_VALUE" VARCHAR2(80),
"LAST_UPDATE" DATE DEFAULT sysdate,
"USERNAME" VARCHAR2(16) DEFAULT user,
CONSTRAINT "WEL_AQUI_EXEMPT_YN_CK" CHECK (AQUI_EXEMPT_YN IN ('Y', 'N', 'U' )) DEFERRABLE INITIALLY DEFERRED ENABLE,
CONSTRAINT "WEL_HIGH_PRIORITY_YN_CK" CHECK (HIGH_PRIORITY_YN IN ('Y', 'N', 'U' )) DEFERRABLE INITIALLY DEFERRED ENABLE,
CONSTRAINT "WEL_WELL_IN_SWA_CK" CHECK (WELL_IN_SWA IN ('Y', 'N', 'U' )) DEFERRABLE INITIALLY DEFERRED ENABLE,
CONSTRAINT "WEL_WEL_STATE_UK_NN" CHECK (WEL_STATE_UK is not null) DEFERRABLE INITIALLY DEFERRED DISABLE,
CONSTRAINT "WEL_WEL_STATE_UK_CK" CHECK (WEL_STATE_UK IN ('09DI', 'CAOC', 'GUEA', 'MPEQ', 'NVEP', 'NNUI' )) DEFERRABLE INITIALLY DEFERRED ENABLE,
CONSTRAINT "WEL_PK" PRIMARY KEY ("WEL_PK") DEFERRABLE INITIALLY DEFERRED ENABLE
ALTER TABLE "WELL" ADD CONSTRAINT "WELL_CON_FK" FOREIGN KEY ("FAC_FK")
REFERENCES "FACILITY" ("FAC_PK") ON DELETE CASCADE ENABLE
CREATE INDEX "WEL_PK" ON "WELL" ("WEL_PK")
CREATE OR REPLACE TRIGGER "WEL_WEL_PK"
BEFORE INSERT ON "WELL"
FOR EACH ROW
BEGIN
SELECT "well_PK_seq".NEXTVAL INTO :NEW.wel_pk FROM DUAL;
END;
ALTER TRIGGER "WEL_WEL_PK" ENABLE
FOR THE WELL_STATUS TABLE -----
CREATE TABLE "WELL_STATUS"
( "STA_PK" NUMBER(8,0) NOT NULL ENABLE,
"WEL_FK" NUMBER(8,0),
"DELFLAG" VARCHAR2(1) DEFAULT 'N',
"WELL_TYPE" VARCHAR2(12) DEFAULT '5X',
"WELL_TYPE_DATE" DATE,
"OPER_STATUS" VARCHAR2(2) DEFAULT 'AC',
"STATUS_DATE" DATE DEFAULT sysdate,
"CLASS" VARCHAR2(2) DEFAULT '5',
"R9_WELL_TYPE" VARCHAR2(4),
"LAST_UPDATE" DATE DEFAULT sysdate,
"USERNAME" VARCHAR2(16) DEFAULT user,
CONSTRAINT "STA_CLASS_CK" CHECK (CLASS IN ('0','1','2','3','4','5', 'CV')) DEFERRABLE INITIALLY DEFERRED ENABLE,
CONSTRAINT "STA_CLASS_NN" CHECK (CLASS is not null) DEFERRABLE INITIALLY DEFERRED ENABLE,
CONSTRAINT "STA_STATUS_DATE_NN" CHECK (STATUS_DATE is not null) DEFERRABLE INITIALLY DEFERRED ENABLE,
CONSTRAINT "STA_OPER_STATUS_NN" CHECK (OPER_STATUS is not null) DEFERRABLE INITIALLY DEFERRED DISABLE,
CONSTRAINT "STA_OPER_STATUS_CK" CHECK (OPER_STATUS IN ('AC','UC', 'TA', 'PA', 'AN', 'PW' )) DEFERRABLE INITIALLY DEFERRED DISABLE,
CONSTRAINT "STA_WELL_TYPE_NN" CHECK (WELL_TYPE is not null) DEFERRABLE INITIALLY DEFERRED ENABLE,
CONSTRAINT "STA_PK" PRIMARY KEY ("STA_PK") DEFERRABLE INITIALLY DEFERRED ENABLE
ALTER TABLE "WELL_STATUS" ADD CONSTRAINT "WELL_STATUS_CON_FK" FOREIGN KEY ("WEL_FK")
REFERENCES "WELL" ("WEL_PK") ON DELETE CASCADE ENABLE
CREATE INDEX "STA_PK" ON "WELL_STATUS" ("STA_PK")
CREATE OR REPLACE TRIGGER "WELL_STATUS_STA_PK"
BEFORE INSERT ON "WELL_STATUS"
FOR EACH ROW
BEGIN
SELECT "STA_PK_SEQ".NEXTVAL INTO :NEW.sta_pk FROM DUAL;
END;
ALTER TRIGGER "WELL_STATUS_STA_PK" ENABLE
For the PERMIT table-----
CREATE TABLE "PERMIT"
( "PER_PK" NUMBER(8,0) NOT NULL ENABLE,
"WEL_FK" NUMBER(8,0),
"DELFLAG" VARCHAR2(1) DEFAULT 'N',
"NUM_AOR_WELL" NUMBER(6,0),
"AUT_STATUS" VARCHAR2(2) DEFAULT 'RA',
"AUT_STATUS_DATE" DATE DEFAULT sysdate,
"OWNERSHIP_TYPE" VARCHAR2(2) DEFAULT 'PB',
"SUBMISSION_DATE" DATE,
"PER_STATE_UK" VARCHAR2(4) DEFAULT '09DI',
"REQUIRED_YN" VARCHAR2(1) DEFAULT 'N',
"LAST_UPDATE" DATE DEFAULT sysdate,
"USERNAME" VARCHAR2(16) DEFAULT user,
CONSTRAINT "PER_AUT_STATUS_CK" CHECK (AUT_STATUS IN ('IP', 'AP', 'GP', 'EP', 'RA', 'NO' )) DEFERRABLE INITIALLY DEFERRED ENABLE,
CONSTRAINT "PER_AUT_STATUS_NN" CHECK (AUT_STATUS is not null) DEFERRABLE INITIALLY DEFERRED ENABLE,
CONSTRAINT "PER_OWNERSHIP_TYPE_CK" CHECK (OWNERSHIP_TYPE IN ('PB', 'PN', 'PF','FG', 'OI','OS', 'OT', 'PV', 'OR' )) DEFERRABLE INITIALLY DEFERRED DISABLE,
CONSTRAINT "PER_PER_STATE_UK_CK" CHECK (PER_STATE_UK IN ('09DI', 'CAOC', 'GUEA', 'MPEQ', 'NVEP', 'NNUI' )) DEFERRABLE INITIALLY DEFERRED DISABLE,
CONSTRAINT "PER_PER_STATE_UK_NN" CHECK (PER_STATE_UK is not null) DEFERRABLE INITIALLY DEFERRED DISABLE,
CONSTRAINT "PER_REQUIRED_YN_CK" CHECK (REQUIRED_YN IN ('Y', 'N')) DEFERRABLE INITIALLY DEFERRED DISABLE,
CONSTRAINT "PER_REQUIRED_YN_NN" CHECK (REQUIRED_YN is not null) DEFERRABLE INITIALLY DEFERRED DISABLE,
CONSTRAINT "PER_PK" PRIMARY KEY ("PER_PK") DEFERRABLE INITIALLY DEFERRED ENABLE
ALTER TABLE "PERMIT" ADD CONSTRAINT "PERMIT_CON_FK" FOREIGN KEY ("WEL_FK")
REFERENCES "WELL" ("WEL_PK") ON DELETE CASCADE ENABLE
CREATE INDEX "PER_PK" ON "PERMIT" ("PER_PK")
CREATE OR REPLACE TRIGGER "PERMIT_PER_PK"
BEFORE INSERT ON "PERMIT"
FOR EACH ROW
BEGIN
SELECT "PER_PK_seq".NEXTVAL INTO :NEW.per_pk FROM DUAL;
END;
ALTER TRIGGER "PERMIT_PER_PK" ENABLE
THESE ALL ARE TABLE STRUCTURE -
I am not able to fetch data from r3
Hi all,
we have schduled process chain for transaction data and master data.when check the process chain status is green.
but when not a single record is coming for any of the process chain.when i check the step by step analysis.
gray RFC to source system successful ?
red Does selectable data exist in the source system?
red Data selection successfully started ?
red Data selection successfully finished ?
gray RFC to Warehouse successful ?
gray Processing successfully finished?
gray All reported data packets received?
gray All data packets complete ?
remaining things are in green status.
for every thing it is fetching zero records.i have already checked rfc connection and all the update and tranfer rules.every thing is fine.
can anybody help me out...
regards,
viren.Hi,
well,,I have after lot of replies,.. so let me see..
I understand this is LO extraction. Also, since your load is running in Process chain, I "assume" these are delta loads.( right?). You also say there are records in the related tables.
So, I feel, foll. are the things that you may need to check.
1. Did you check in RSA7 for delta records?
2. Did you check if the delta jobs are running fine to collect the data from the application tables?
3. Did you correctly do the settings for delta for your extract structure?(direct delta, queued delta.. etc)
4. These are the basic settings that will ensure that the delta records are collected in the right way!!!
Once all the above listed are fine, then you should be able to see some data collected in your delta Q( assuming ur loads are delta loads)
Let us know!!!
Thanks,
Raj -
Not able to retrieve data from database through servlet
Hi friends,
I am trying to open a excel sheet through servlet. In this servlet i am retriving data from mssql database.I am not getting any error but no data is retrived
i m also pasting the code here
// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: EmployeeData.java
import java.io.*;
import java.sql.*;
import javax.sql.*;
import javax.servlet.ServletException;
import javax.servlet.http.*;
public class EmployeeData extends HttpServlet
public EmployeeData()
public void service(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse)
throws ServletException, IOException
httpservletresponse.setContentType("text/html");
httpservletresponse.setHeader("Content-Type", "application/excel");
httpservletresponse.setHeader("Content-Disposition", "filename=reports.xls");
PrintWriter printwriter = httpservletresponse.getWriter();
try
javax.servlet.http.HttpSession httpsession = httpservletrequest.getSession(true);
int i = 0;
/* Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://localhost:3413;DatabaseName=newreportsodbc", "reportuser", "cisco");*/
String url="jdbc:odbc:newreportsodbc";
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
Connection connection = DriverManager.getConnection("jdbc:odbc:newreportsodbc","reportuser","cisco");
Statement statement = connection.createStatement();
printwriter.println("<b><center><u> Search Results </u></center></b>");
printwriter.print("<table><tr><th color=brown background-color=#fff000> No. </th>");
printwriter.print("<th> DateTime </th></tr></table>");
ResultSet resultset = statement.executeQuery("SELECT * FROM t_Call_Type_Half_Hour");
boolean flag;
for(flag = false; resultset.next(); flag = true)
i++;
SerialNo = resultset.getString(2);
printwriter.print((new StringBuilder()).append("<table><tr><td> ").append(i).append("</td>").toString());
printwriter.print((new StringBuilder()).append("<td> ").append(SerialNo).append("</td></tr></table>").toString());
if(!flag)
printwriter.println("<h1> No records selected </h1>");
catch(Exception exception)
System.out.println((new StringBuilder()).append("SQLException: ").append(exception).toString());
static String empid1;
static String empid;
static String SerialNo;
static String designation;
}thanks in advance. i just feel there is something to be done with connection string.post the table format in SQL
-
Confirmed Dimensions. OBIEE Not able to pull data from two fact tables.
Hi Experts,
I have a very simple set up of Star Schema with two fact tables and 1 dimension. Both fact tables joined to the dimension at the same level.
When i pull a column from both fact tables and the dimension table in OBIEE, it has to create simple SQL like below:
select FACT1.column1,
Fact2.Column1,
Dim.Column1
from FACT1, FACT2, DIM
where FACT1.ID = DIM.ID and FACT2.ID = DIM.ID
but instead it creating a query in a very complex way:
select case when D1.c2 is not null then D1.c2 when D2.c2 is not null then D2.c2 end as c2,
D1.c1 as c3,
D2.c1 as c4
from
(select FACT1.Column1 as c1,
DIM.Column1 as c2
from
DIM T1287863,
FACT1 T1287945
where (DIM.ID = FACT1.ID)
) D1 full outer join (
select FACT2.Column1 as c1,
DIM.Column1 as c2
from
DIM,
FACT2
where ( DIM.ID = FACT2.ID)
) D2 On isnull(D1.c2 , '1') = isnull(D2.c2 , '1') and isnull(D1.c2 , '2') = isnull(D2.c2 , '2')
I even tried setting the levels for both the fact tables and it still creates the query in avove way. Any thoughts on this will be vary helpful.Subramanian,
see below the code we're using for the RFM.
on the ct_containers table i'm passing a line, and its getting updated after the call.
on the ct_errors table i just want to receive the errors and i only receive the line, we add manually there ('Serious error with validation code').
kr, achim
FUNCTION zbapi_ra_validations .
*"*"Local Interface:
*" IMPORTING
*" VALUE(IS_RA_SCREEN) TYPE ZBAPI_S_RA_SCREEN
*" CHANGING
*" VALUE(CT_ERRORS) TYPE ZRA_T_ERRORS
*" VALUE(CT_CONTAINERS) TYPE ZRA_T_CONT_IP
DATA:
lo_badi_handle TYPE REF TO zra_validation_rule,
ls_error TYPE zra_s_error.
GET BADI lo_badi_handle.
TRY.
CALL BADI lo_badi_handle->validate_rules
EXPORTING
is_screen_flds = is_ra_screen
CHANGING
ct_containers = ct_containers
ct_errors = ct_errors.
CATCH zcx_ra.
ls_error-message = 'Serious error with validation code'.
APPEND ls_error TO ct_errors.
ENDTRY.
ENDFUNCTION.
if i call this rfm in SE37 the ct_errors table is populated with all errors and the manually created line.
Message was edited by: Achim Hauck -
Not able to retrieve data from table faster
Hi All,
I have a table tab1, and I am creating one more table tab2 by selecting col1,col2 of tab1.
creation query would be like this.
create table tab2 as
select as select /*+ parallel(qla,20) */ col1,col2 from tab1;
Table tab2 is created, but the problem is when we query tab2 it is taking too long time to display the results, and the table tab2 is having arount 400 million data.
Request every one to suggest how to improve the query performance which is
select * from tab2;See the forum FAQ
SQL and PL/SQL FAQ
*3. How to improve the performance of my query? / My query is running slow.*
SQL and PL/SQL FAQ -
Not able to get data from Reference Purchase Organization
Hi,
the scenario is
Need to have one global pur. org for 3 company codes and
one each company code specific purchase org.
so i created Z300 as a ref purchasing org
and created Z100 for a specific company 3000 n assigned to it
and assigned Z100 to ref purchase org Z300
and i created a vendor master with Z300 purchase org n company code 3000
but when i creating a PO with ME21n
when i enter the vendor and Z100 as the purchase org ...it tells me that vendor is not maintained for Z100.
( but as per the documentation the data shud come from ref. purchase org ? isnt that true)
and
when i enter the vendor and Z300 as the purchase org and enter the material and plant it says
plant is not maintained for Z300 ..? i understand this ...the correct process is the first one ..
can nyone let me know y this error is coming ....is there anything i am missing in assigning.
thanks a bunchpurchasing staff of your enterprise to work with conditions and contract
release orders on a cross-purchasing-organization basis.
It is then possible for:
o The conditions of a reference purchasing organization to be used by
other purchasing organizations for the purpose of price determination
o Several purchasing organizations to access the contracts of a certain
reference purchasing organization
You have to maintianed the vendor for all the Pur org for which you want to use
the ref pur org will come inthe picture when you create the contract at global level means at ref pur org so all other pur org can use the same contract.
So if you creating PO for your std pur org then you have to maintain the vendor and you can refer the contract from ref pur org -
Urg: Not able to import data from DB in OBIEE 11g : Connection has failed.
Hi Team
Recently while working in OBIEE 11g , I was trying to import tables from the data-base but I am getting an error " Connection has failed " .
I have put the tnsora file in the network admin folder and the
C:\OracleBIHome\Network\admin
\OracleBI1\network\admin (Example: C:\OBI\Oracle_BI1\network\admin)
\oracle_common\network\admin (Example: C:\OBI\oracle_common\network\admin)
and have set the TNS_ADMIN variable in the User.cmd path with the above path .
But it is still not working . I have tried all the options but its still not working .
Any help is appreciated.
Regards
RIs it Compulsory to give Schema and Work Schema while creating the Physical Schema in Oracle Data server?
This is mandatory to have a schema and a work schema here.
The schema and work schema could be the same user as the user who is connected to the dataserver! -
Query data from MS SQL db through Oracle ? By using JAVA ?
Hi folks,
I would like to sync our one table in oracle db with table in different system, stored in MS SQL database.
What would be the easiest option for connection from Oracle to MS SQL db to be able to query data from MS SQL through some Oracle package?
If possible, I would like to keep all "tricky steps" within Oracle database. I heard about option with Java, but so far we have no experience with java in Oracle.
Our database: Oracle 11g Database Standard Edition One
Many thanks,
TomasC:\Users\tomeo>dg4pwd HELIOS
ORACLE Gateway Password Utility
Constructing password file for Gateway SID HELIOS
For user account SYSTEM
OPW-00001: Unable to open password-file (RC=0)
C:\Users\tomeo> -
hello there..
i m not able to send data from an applet(embedded in a jsp) to another jsp even though i got successed making connection between these two.
i m using following code at applet sede(embedded in jsp)...
URL appletURL = getCodeBase();
String strHost = appletURL.getHost();
String strPort = String.valueOf(appletURL.getPort());
String strProtocol = appletURL.getProtocol();
int portNumber = Integer.parseInt(strPort);
String strwp ="/UASProject/faces/feedbackform.jsp";
URL jspURL = new URL(strProtocol,strHost,portNumber,strwp);
URLConnection jspCon = jspURL.openConnection();
jspCon.setUseCaches(false);
jspCon.setDoOutput(true);
jspCon.setDoInput(true);
OutputStream outstream= jspCon.getOutputStream();
ObjectOutputStream oboutStream = new ObjectOutputStream(outstream);
oboutStream.writeObject(std_details);
oboutStream.flush();
// oboutStream.close();
URL tempURL = new URL(String.valueOf(jspURL));
getAppletContext().showDocument(tempURL,"_self");
//from server
InputStream instr = jspCon.getInputStream();
ObjectInputStream inputFromjsp = new ObjectInputStream(instr);
Properties results = (Properties)inputFromjsp.readObject();
inputFromjsp.close();
instr.close();and this is at server side
ObjectInputStream inputFromjsp = new ObjectInputStream(request.getInputStream());
std_details = (Properties)inputFromjsp.readObject();
//to applet
response.setContentType("application/x-java-serialized-object");
OutputStream outstr = response.getOutputStream();
ObjectOutputStream oos = new ObjectOutputStream(outstr);
oos.writeObject(ce);
oos.flush();
oos.close();
but when i use std_details object for further implementation the i gets
java.lang.NullPointerException
here std_details is an properties object contains few key/value sets
any help would be much appriciated/POSDW/BAPI_POSTR_CREATE will only import the data into ibound queue.
To update data into TLog, you need to run /POSDW/QDIS (or /POSDW/QMON).
There's another FM /POSDW/CREATE_TRANSACTIONS could update TLog straightly. -
Use evdre to query data from a SQL View
Hi all
I believe that it is possible to use evdre to query data from a SQL View. If this is possible then how does one go about setting it up in the evdre options (assuming that the view has already been created)?
Regards,
ByronByron, perhaps this is no longer supported, it might be worth opening up a case at service.sap.com on this. However, I did find the following on Page 11 of the "Usages and Considerations of EVDRE" pdf file. This doc is imbedded in the helpfile for BPC 7 SP5 (which was released in August of 2009, well after note 1315011 was last updated.
It looks like you are limited to one custom view per application, since you have to name the view in a parameter at the APPLICATION level. Go into BPC Administration, login to the application related to the custom view, choose "Set Application Parameters" and enter the name of the view to the Application Parameter called "EVDRE_QUERYVIEWNAME" If it is not listed, go ahead and create it at the bottom of the Application parameter screen.
Also: I interpreted the following info from Page 10 of the same doc:
In your EVDRE, set the following options:
QueryEngine: MANUAL
QueryType: enter either NEXJ OR TUPLE see below:
NEXJ - Use two-dimensional queries using the nonemptycrossjoin function
TUPLE - Use two-dimensional queries using tuples"
And I'm assuming you'd enter a Y for the following two parameters:
QueryViewName
"..to enforce the query engine to use a used-defined SQL view of the fact tables, when trying to read the values using SQL queries. This option is typically used in conjunction with the SQLOnly option (see below). "
Option SQLOnly
"..to enforce the query engine to only execute SQL queries, when reading data. This can be achieved using this option."
Maybe you are looking for
-
Adobe photoshop,word, and excel won't open on my 2010 air mac
adobe photoshop,word, and excel won't open on my 2010 air mac. Message says I have lost my power pc connection. this happened while in Mexico
-
HELP printer compatability with computor.
Help...Have hp psc 1310 hp officejet 4200 series......Got a new gateway which is Vista and my old one was XP......my printer will print, but can not scan and tried to program the cd in again and computor would not accept it. Will I need to get a ne
-
Hi, After upgrading to the latest version of Tilda, I get a grey blank screen instead of the console when opening it. Downgrading solves the problem (of course). I tried using it with and without xcompmgr and on different computers (nvidia drivers an
-
Re: Most of times Satellite T110 webcam fails to initialize
It happens most of te times. The webcam of my T110 fails to initilize, and a message appears saying that Web cam failed to initilize, please verify the device and restart the program (Web Camera Aplication) or the computer! Other times, it works, but
-
HTML Textfield Problem with Image Positions/Image Tag img
I am using : Flash Builder Burito - Flex Hero SDK - Air 2.5 - Flash Player 10.1 Hi, i have a problem with the normal Textfield.I'm loading html text into it and apply an css stylesheet on it. Everything works fine, but if there is an <img> in the ht