SQL question - define multifields to a variable to use in the select query
Hello
I classified a, b, c, d, e,... good fields in Table1.
my query is: select d, f, g, a, c from Table1
I want to set these fields in a variable like y and use in a query select as below;
y = "d, f, g, a, c '.
Select y from Table1
How can I achieve this?
Kind regards
Mustafa
Hi, Mustafa,
Sorry, I don't know anything about SQL Developer.
Close this thread and start a new thread in the forum SQL Developer:
Tags: Database
Similar Questions
-
Download DataServer User/Pass/host with ODI Variable to use in the ODI tools
Hi guys.
I was thinking about a way to dynamically modify the ODI tool based on the parameters of a root.
So I created a dummy DataServer with host that the IP address of the server I want to reach and define the user/pass I will use to authenticate.
Then I coded a variable with odiRef.getInfo to obtain this information, but the two results return nothing because this API based on the execution of an interface works. I've not found an API to get these values from a package.
Is there a way to get this base only in a logical schema, such as: odiRef.getDataServerInfo ("LS_OF_THE_DATASERVER", "DSERV_NAME") so that I can use it like this:
Thanks for the help, Giampaoli.
I've made a few changes based on the post you sent.
Basically, I used only the tip of the game from the source as the topology I wanted settings and coded the target with this:
Command on the target
Command on the Source
-
How to locate where the shared Variables are used in the project.
I'm looking everywhere where a shared Variable is used in my project. Right-clicking does not provide a find. The display hierarchy does not help. In the Project Explorer, the appellants find displays only the names of the screw called, not the many places where the call is made.
Does anyone know how to find the location where a shared Variable is used?
Edit-> find and replace. For "Select object" click and access features-> Structures-> shared Variable.
-
OBIEE 11 g: variable presentation use in the column header
Hello world
I was playing around with app sample dashboards and I saw a prompt of dashboard that they turned into a column selector. I liked and it reproduced in my own sandbox.
I love the results, however, I would also like to change the column heading to indicate clearly how much has been selected. It's pretty clear when you're looking in the dashboard, but once you export the data, it can be confusing to what extent has been selected.
This is why I would like to use a variable of presentation in the column header section. I tried to do, but he he interpreted as a literal instead of evaluation of the declaration.
Is there anyway to get a variable in the column header?
Thank you!
-JoeHello
Take a look at the following links:
http://oraclebizint.WordPress.com/2008/01/25/Oracle-BI-EE-101332-dynamic-column-headers-using-presentation-variables-sets-and-conditional-formatting/
display the variable of presentation on the table column header
Set the presentation variable in the column header
It will be useful.
Kind regards
Kalyan Chukkapalli
http://123obi.com -
Is it possible to put the results of a query in a variable to use in the bean class?
Hello, I am using JDeveloper 12.1.2.0.0
I like to keep the result of my queries (the method that I created in the AppModule) in a richeTableau or another type of variable, so I can get results and I don't have to make unnecessary after queries. I don't think that the query is the problem but keeping the results.
I tried to do in using this:
public String testVFactSales (String conditions) {}
PreparedStatement query = getDBTransaction () .createPreparedStatement ("" + "select * from v_fact_sales"+ conditions, 0 ");
ResultSet rs;
Outcome of the result set;
Result of the richeTableau;
String result = null;
try {}
query.setString (1, conditions);
Query.Execute ();
Query.Execute ();
result = query.getGeneratedKeys ();
Query.Close ();
System.out.println ("result:" + result.toString ());
return result.toString ();
} catch (SQLException e) {}
e.printStackTrace ();
}
Return ' ';
}
As you can see, I have already tried a few solutions, but so far I have only errors (cannot convert or null exception, when I try to put the result in a richeTableau in my bean class)
Any ideas?
It is very important for me, because it would improve the performance of my project a lot.
Kind regards
Frederico.
Although the issue is not 100% responded, I used the idea that Shay told me, where you can create a method in your AppModule to set your where clause!
Good luck to everyone who has the same problem.
As an attack similar to what I wanted in the first place, you can check this:
https://community.Oracle.com/thread/2619669
Kind regards
Frederico.
-
Variable to use in the next scene
Hello
I'm trying to use a variable captured in a scene in the next scene of the game that I do.
Here is the code I use to set the variable
var player;
Player = inputbox.text;
On the the next scene I used trace (player) to test the output. Instead of out the name entered in the previous image, it out rather 'undefined'
I use a custom .as file that is shown below
package {}
import flash.display.MovieClip;
import flash.events.MouseEvent
SerializableAttribute public class extends MovieClip {PlayerName
public static var player
public void PlayerName() {}
}
}
}I don't really know ActionScript and have been using things I found on the internet. Any help would be appreciated.
By a stoke of luck I managed to get this to work, without having to remove the scenes.
Instead of
var player;
Player = inputbox.text;
and trace (player)
I had to use
var player;
PlayerName.player = inputbox.text;
and trace (PlayerName.player)
as I put it as a local variable.
-
IKM SQL file Append-controlled fails when it is used with the Scheduler
Hello
We have an interface in our package where we use IKM SQL file Append-controlled. It is supposed to do an insert/truncate a local file destination. This step fails with the error 7000 run with the Scheduler. Looks like some sort of permission error.
When the package is run manually (in the same location as the Planner), he runs this interface successfully.
Any suggestions?
Wwhen the IKM research, it does not say that the "target file must be physically accessible by sunopsis agent." The file is local to the server running the Scheduler; by operating manually also, it is run from the server.
This is the error to "truncate": step
7000: null: java.sql.SQLException: file not found: \ < filepath > / < Filename > .tsv
java.sql.SQLException: file not found: \ < filepath > / < Filename > .tsv
Any suggestions?
Thank you
Elkaïm
Published by: 784749 on February 1st, 2011 05:47HI -.
Agent ODI connection users that you have provided to the service Windows ODI. If you have not provided one that he would use the native ID (one that was created when installing the OS I think). If you have not provided any newspaper on before its best to provide to a user that has enough previlage.-app
-
After a SELECT INTO, the use of the result as a parameter to another SQL variable?
Hello world
My apologies for these basic questions, but I need your help in order to run the report in STATSPACK (spreport.sql) in a NON-interactive manner.
To do this, I need 3 parameters:
- begin_snap
- end_snap
- report_name
I have a version of the report named spreportBH.sql. This sql receives 3 parameters and generates the report success.
SQL > @spreportBH.sql 923 1111 /u01/BHB/test4.txt
For this example begin_snap=923, end_snap=1111 and report_name is /u01/BHB/test4.txt
My problem is that the snapid must be calculated based on the date.
To achieve this goal, I can query the table STATS$ SNAPSHOT.
For example, this query gives me the 923:
Select min (snap_id)
de PERFSTAT . STATS$ SNAPSHOT
où snap_time >= TO_DATE ('12-06-2014','dd-mm-YYYY');
I know that I can put the value in a variable. For this, I'm doing:
sqlplus "virtue sysdba" s < <! 1 > > ${fichier_de_sortie} 2 > > ${error_file}
DECLARE
firstSnapId NUMBER;
BEGIN
Select min (snap_id) INTO firstSnapId
of PERFSTAT. STATS\$ SNAPSHOT
where snap_time > = to_date ('12-06-2014', ' dd-mm-YYYY');
END;
/
!
How can I use firstSnapId to call @spreportBH.sql?
I'd appreciate any help that can give me.
Thank you d ' attribute
Bety
Hi, Bety,
So, you want to call a script in SQL * more. I'm not suggesting using PL/SQL use SQL * Plus Substitution Variable instead.
-The following command of the COLUMN said that everything which appears in a column called
-firstSnapIdCol will also go in a variable of substtitution called firstSnapId
COLUMN firstSnapIdCol new_value by firstSnapId
Select min (snap_id) AS firstSnapIdCol
of PERFSTAT. STATS$ SNAPSHOT
where snap_time > = to_date (6 December 2014 ", 'dd-mm-YYYY');
-Now that firstSnapId has a value, we can use it like this:
@spreportBH.sql & firstSnapID 1111 /u01/BHB/test14.txt
-
I am a newbie to SQL and I studied the book of Fundamentals SQL Server Oracle OCA 12 c, but a section on natural joins to confuse me.
Basically, the author says:
SELECT r.region_name, d.department_name, l.city, c.country_name
DEPARTMENTS d
NATURAL JOIN places l, c countries, regions r;
The natural join between DEPARTMENTS and LOCATIONS creates a provisional result, consisting of 27 lines since they are implicitly attached on the column of location_id. This set is then Cartesian-joined to the table of the COUNTRY as a join condition is not implicitly or explicitly specified. 27 interim lines are attached to 25 lines in the COUNTRY table, which gives a new temp results set with 675 (27 × 25) rows and three columns: DEPARTMENT_NAME, CITY and COUNTRY_NAME. This set is then attached to the REGION table. Once more, a Cartesian join occurs because column REGION_ID is absent from any join condition. The final result set contains rows and four columns (675 × 4) 2700.
I can understand because you evaluate joins from the left. But then he wrote:
The JOIN... USE and JOIN... ON the syntaxes are better suited to join multiple tables. The following query joins four tables using the natural join syntax:
SELECT country_id region_id, c.country_name, l.city, d.department_name
DEPARTMENTS d
NATURAL JOIN places l
NATURAL JOIN country c
NATURAL JOIN region r;
This query generates correctly 27 lines in the final results set since the required join columns are listed in the SELECT clause. The following query illustrates how the JOIN... CLAUSE is used to extract the same 27 lines. A join condition can reference columns only in its scope. In the following example, the join of DEPARTMENTS slots can not reference columns in the COUNTRIES or REGIONS of tables, but the join between the COUNTRIES and REGIONS may refer to any column of four tables involved in the query.
This second method of the part of the natural writing joined confuses me. I don't understand the logic behind the 2nd series of States of Natural Join. For me, it seems that the first series and the 2nd set look alike, but they are apparently not.
Can someone tell me the differences?
Thank you!!
Hello
The more important thing to learn more about NATURAL JOIN is: never use it. If you add new columns, joins can get different results. I've never heard of someone uisng NATURAL JOIN apart from a manual or a question like yours.
There are a lot of things in Oracle that take the time to learn and are useful. All the time you spend learning things is better spent on them.
-
The Variable value based on the results of SQL query
With the help of OBIEE 11.1
Is it possible to set the value of a variable presentation of the results of a SQL statement?
Scenario:
I have 2 topics.
SubjectArea1
Text1
Date1
SubjectArea2
Field1
Field2
UpdateDate
I have an analysis that uses only the SubjectArea2.
Using a dashboard quickly, the user must be able to select Text1 in the other topic area (SubjectArea1).
Assuming that selection will be stored in a variable of presentation (SelectedText),
The filter in the analysis should be something like
Upper UpdateDate to @{SelectedDate}
How can I set a variable (SelectedDate) using a SQL statement?
Something like this:
SELECT "Date1" TO "SubjectArea1" WHERE "Text1" = @{SelectedText}
So the command prompt text selection should give a date that is used to filter the second review?
If so:
The prompt on SA1.textCol
hidden analysis who is invited on SA1.texCol has SA1.dateCol in the criteria
Analysis SA2.dateCol is filetered on basis of the results of another analysis (any value analysis hidden SA1.dateCol)
-
Hi friends,
I've extended CO where I added dynamic VO where condition, it start error.
Code added to the controller:
SerializableAttribute public class Custom_HomePageCO extends HomePageCO
{
public Custom_HomePageCO()
{
}
' Public Sub processRequest (pageContext OAPageContext, OAWebBean webBean)
{
super.processRequest (pageContext, webBean);
System.out.println ("NewClase");
OAApplicationModule am = pageContext.getApplicationModule (webBean);
System.out.println (AM);
OAApplicationModule am1 = (OAApplicationModule) am.findApplicationModule ("TrackExpenseReportsAM");
System.out.println (AM1);
OAViewObject vo = (OAViewObject) am1.findViewObject ("TrackExpenseReportsVO");
System.out.println (VO);
vo.setWhereClause ("REPORT_SUBMITTED_DATE is not null");
vo.executeQuery ();
}
' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
{
super.processFormRequest (pageContext, webBean);
}
}
Error message:
Details of the exception. Error details
Logout
Error page
Details of the exception.
oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: 27122 Houston: SQL error in the preparation of the statement. Statement: SELECT * FROM (SELECT
BIM OBJECT DESCRIPTION,
BIM INVOICE_CURRENCY_CODE CURRENCY_CODE,
BIM INVOICE_DATE REPORT_DATE,
AERH. REPORT_SUBMITTED_DATE REPORT_SUBMITTED_DATE,
BIM INVOICE_NUM REPORT_NUMBER,
To_char (decode (nvl (I.)) AMT_DUE_CCARD_COMPANY, AERH. AMT_DUE_CCARD_COMPANY) + nvl (HAVE. AMT_DUE_EMPLOYEE, AERH. AMT_DUE_EMPLOYEE) + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0),
0, decode (HAVE. CANCELLED_DATE,
NULL, APS. GROSS_AMOUNT,
AERH. IN TOTAL).
NVL (HAVE. AMT_DUE_CCARD_COMPANY, AERH. AMT_DUE_CCARD_COMPANY) + nvl (HAVE. AMT_DUE_EMPLOYEE, AERH. AMT_DUE_EMPLOYEE) + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0));
FND_CURRENCY_CACHE. GET_FORMAT_MASK
(HAVE. INVOICE_CURRENCY_CODE, 30)). » '|| BIM INVOICE_CURRENCY_CODE REPORT_TOTAL_CURRENCY,
To_char (decode (nvl (I.)) AMT_DUE_CCARD_COMPANY, AERH. AMT_DUE_CCARD_COMPANY) + nvl (HAVE. AMT_DUE_EMPLOYEE, AERH. AMT_DUE_EMPLOYEE) + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0),
0, decode (HAVE. CANCELLED_DATE,
NULL, APS. GROSS_AMOUNT,
AERH. IN TOTAL).
NVL (HAVE. AMT_DUE_CCARD_COMPANY, AERH. AMT_DUE_CCARD_COMPANY) + nvl (HAVE. AMT_DUE_EMPLOYEE, AERH. AMT_DUE_EMPLOYEE) + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0));
FND_CURRENCY_CACHE. GET_FORMAT_MASK
(HAVE. INVOICE_CURRENCY_CODE, 30))
REPORT_TOTAL,
P.PERSON_ID EMPLOYE_ID,
AERH. REPORT_HEADER_ID REPORT_HEADER_ID,
P.FULL_NAME FULL_NAME,
DECODE (AI. CANCELLED_DATE, null,
NVL (aerh.expense_status_code, DECODE (APS. GROSS_AMOUNT, 0, 'PAY. "
decode (HAVE. Payment_status_flag, 'Y', 'PAID. "
', 'BILL. "
'P', 'PARPAID', NULL))),
STATUS_CODE "CANCELLED"),
AERH.source SOURCE,
CURRENT_APPROVER NULL,
ROUND (sysdate - HAVE. DAYS_SINCE_ACTIVITY LAST_UPDATE_DATE),
AERH. RECEIPTS_STATUS RECEIPTS_STATUS_CODE,
AERH. HOLDING_REPORT_HEADER_ID,
BIM VENDOR_ID VENDOR_ID,
AERH. AMT_DUE_CCARD_COMPANY AMT_DUE_CCARD_COMPANY,
AERH. AMT_DUE_EMPLOYEE AMT_DUE_EMPLOYEE,
'CurrentApproverName' CURRENT_APPROVER_SWITCHER,
TO_CHAR (AERH. LAST_UPDATE_DATE, 'DD-MON-RRRR HH'),
BIM INVOICE_ID INVOICE_ID
Of
AK_WEB_USER_SEC_ATTR_VALUES, A.
PO_VENDORS PV,
AP_INVOICES HAVE,
AP_EXPENSE_REPORT_HEADERS AERH,
PER_PEOPLE_X P,.
AP_PAYMENT_SCHEDULES APS
WHERE DID. INVOICE_ID = APS. INVOICE_ID
AND THE AI. INVOICE_ID = AERH. VOUCHNO (+)
AND THE AI. INVOICE_TYPE_LOOKUP_CODE: "="BILL ".
AND A.ATTRIBUTE_CODE = 'ICX_HR_PERSON_ID. '
AND THE PV. EMPLOYEE_ID = A.NUMBER_VALUE
AND A.WEB_USER_ID =: 1
AND P.PERSON_ID = PV. EMPLOYEE_ID
AND THE PV. VENDOR_ID = HAVE. VENDOR_ID
AND DECODE (AI. PAYMENT_STATUS_FLAG,
'Y' sysdate - I. LAST_UPDATE_DATE,
decode (APS. GROSS_AMOUNT, 0, sysdate - I. LAST_UPDATE_DATE, 0)
) < = 30
AND (AERH. SOURCE <>"The two Pay" OR AERH. REPORT_HEADER_ID IS NULL)
UNION
SELECT
BIM OBJECT DESCRIPTION,
BIM INVOICE_CURRENCY_CODE CURRENCY_CODE,
BIM INVOICE_DATE REPORT_DATE,
AERH. REPORT_SUBMITTED_DATE REPORT_SUBMITTED_DATE,
BIM INVOICE_NUM REPORT_NUMBER,
To_char (decode (nvl (I.)) AMT_DUE_CCARD_COMPANY, AERH. AMT_DUE_CCARD_COMPANY) + nvl (HAVE. AMT_DUE_EMPLOYEE, AERH. AMT_DUE_EMPLOYEE) + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0),
0, decode (HAVE. CANCELLED_DATE,
NULL, APS. GROSS_AMOUNT,
AERH. IN TOTAL).
NVL (HAVE. AMT_DUE_CCARD_COMPANY, AERH. AMT_DUE_CCARD_COMPANY) + nvl (HAVE. AMT_DUE_EMPLOYEE, AERH. AMT_DUE_EMPLOYEE) + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0));
FND_CURRENCY_CACHE. GET_FORMAT_MASK
(HAVE. INVOICE_CURRENCY_CODE, 30)). » '|| BIM INVOICE_CURRENCY_CODE REPORT_TOTAL_CURRENCY,
To_char (decode (nvl (I.)) AMT_DUE_CCARD_COMPANY, AERH. AMT_DUE_CCARD_COMPANY) + nvl (HAVE. AMT_DUE_EMPLOYEE, AERH. AMT_DUE_EMPLOYEE) + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0),
0, decode (HAVE. CANCELLED_DATE,
NULL, APS. GROSS_AMOUNT,
AERH. IN TOTAL).
NVL (HAVE. AMT_DUE_CCARD_COMPANY, AERH. AMT_DUE_CCARD_COMPANY) + nvl (HAVE. AMT_DUE_EMPLOYEE, AERH. AMT_DUE_EMPLOYEE) + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0));
FND_CURRENCY_CACHE. GET_FORMAT_MASK
(HAVE. INVOICE_CURRENCY_CODE, 30))
REPORT_TOTAL,
P.PERSON_ID EMPLOYE_ID,
AERH. REPORT_HEADER_ID REPORT_HEADER_ID,
P.FULL_NAME FULL_NAME,
DECODE (AI. CANCELLED_DATE, null,
NVL (aerh.expense_status_code, DECODE (APS. GROSS_AMOUNT, 0, 'PAY. "
decode (HAVE. Payment_status_flag, 'Y', 'PAID. "
', 'BILL. "
'P', 'PARPAID', NULL))),
STATUS_CODE "CANCELLED"),
AERH.source SOURCE,
CURRENT_APPROVER NULL,
ROUND (sysdate - HAVE. DAYS_SINCE_ACTIVITY LAST_UPDATE_DATE),
AERH. RECEIPTS_STATUS RECEIPTS_STATUS_CODE,
AERH. HOLDING_REPORT_HEADER_ID,
BIM VENDOR_ID VENDOR_ID,
AERH. AMT_DUE_CCARD_COMPANY AMT_DUE_CCARD_COMPANY,
AERH. AMT_DUE_EMPLOYEE AMT_DUE_EMPLOYEE,
'CurrentApproverName' CURRENT_APPROVER_SWITCHER,
TO_CHAR (AERH. LAST_UPDATE_DATE, 'DD-MON-RRRR HH'),
BIM INVOICE_ID INVOICE_ID
Of
AK_WEB_USER_SEC_ATTR_VALUES, A.
PO_VENDORS PV,
AP_INVOICES HAVE,
AP_EXPENSE_REPORT_HEADERS AERH,
PER_PEOPLE_X P,.
AP_PAYMENT_SCHEDULES APS
WHERE DID. INVOICE_ID = APS. INVOICE_ID
AND THE AI. INVOICE_ID = AERH. VOUCHNO (+)
AND THE AI. INVOICE_TYPE_LOOKUP_CODE: "in ("STANDARD "," MIXED")
AND A.ATTRIBUTE_CODE = 'ICX_HR_PERSON_ID. '
AND THE AI. PAID_ON_BEHALF_EMPLOYEE_ID = A.NUMBER_VALUE
AND A.WEB_USER_ID =: 2
AND P.PERSON_ID = I. PAID_ON_BEHALF_EMPLOYEE_ID
AND THE PV. VENDOR_ID = HAVE. VENDOR_ID
AND DECODE (AI. PAYMENT_STATUS_FLAG,
'Y' sysdate - I. LAST_UPDATE_DATE,
decode (APS. GROSS_AMOUNT, 0, sysdate - I. LAST_UPDATE_DATE, 0)
) < = 30
AND (AERH. SOURCE <>"The two Pay" OR AERH. REPORT_HEADER_ID IS NULL)
UNION ALL
SELECT
AERH. DESCRIPTION OBJECT,
AERH. DEFAULT_CURRENCY_CODE CURRENCY_CODE,
AERH. WEEK_END_DATE REPORT_DATE,
AERH. REPORT_SUBMITTED_DATE REPORT_SUBMITTED_DATE,
AERH. INVOICE_NUM REPORT_NUMBER,
To_char (nvl (AERH. AMT_DUE_CCARD_COMPANY + AERH. AMT_DUE_EMPLOYEE + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0), AERH. IN TOTAL), FND_CURRENCY_CACHE. GET_FORMAT_MASK
(AERH. DEFAULT_CURRENCY_CODE, 30)). » '|| AERH. DEFAULT_CURRENCY_CODE REPORT_TOTAL_CURRENCY,
To_char (nvl (AERH. AMT_DUE_CCARD_COMPANY + AERH. AMT_DUE_EMPLOYEE + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0), AERH. IN TOTAL), FND_CURRENCY_CACHE. GET_FORMAT_MASK
(AERH. DEFAULT_CURRENCY_CODE, 30)) REPORT_TOTAL,.
PER_EMPLOYEE. PERSON_ID EMPLOYEE_ID,
AERH. REPORT_HEADER_ID REPORT_HEADER_ID,
PER_EMPLOYEE. FULL_NAME FULL_NAME,
NVL (AERH.expense_status_code,
AP_WEB_OA_ACTIVE_PKG. GetReportStatusCode (AERH. Source, AERH. Workflow_approved_flag,
AERH.report_header_id, 'Y', 'n')) STATUS_CODE.
AERH.source SOURCE,
NVL (PER_APPROVER.full_name, AP_WEB_OA_ACTIVE_PKG. GetCurrentApprover (AERH. Source,
AERH. Workflow_approved_flag, AERH.report_header_id, AERH.expense_status_code)) CURRENT_APPROVER;
ROUND (NVL (sysdate - AERH. EXPENSE_LAST_STATUS_DATE,
SYSDATE - AERH. DAYS_SINCE_ACTIVITY LAST_UPDATE_DATE)),
AERH. RECEIPTS_STATUS RECEIPTS_STATUS_CODE,
AERH. HOLDING_REPORT_HEADER_ID,
0 VENDOR_ID,
AERH. AMT_DUE_CCARD_COMPANY AMT_DUE_CCARD_COMPANY,
AERH. AMT_DUE_EMPLOYEE AMT_DUE_EMPLOYEE,
Decode (aerh.expense_current_approver_id,
-99999, "AMEMultipleApprovers."
Decode (PER_APPROVER.full_name,
(null, 'CurrentApproverName', 'AMESingleApprover')) CURRENT_APPROVER_SWITCHER,
TO_CHAR (AERH. LAST_UPDATE_DATE, 'DD-MON-RRRR HH'),
-INVOICE_ID 1
Of
AK_WEB_USER_SEC_ATTR_VALUES, A.
AP_EXPENSE_REPORT_HEADERS AERH,
PER_PEOPLE_X PER_EMPLOYEE,
PER_PEOPLE_X PER_APPROVER
WHERE AERH. VOUCHNO + 0 = 0
AND A.ATTRIBUTE_CODE = 'ICX_HR_PERSON_ID. '
AND AERH. EMPLOYEE_ID = A.NUMBER_VALUE
AND A.WEB_USER_ID =: 3
AND PER_EMPLOYEE. PERSON_ID = AERH. EMPLOYEE_ID
AND (AERH. Source <>"NonValidatedWebExpense".
OR AERH. Workflow_approved_flag IS NULL)
AND AERH.expense_current_approver_id = PER_APPROVER.person_id
AND decode (AERH.total, 0, ROUND (NVL (sysdate - AERH.) EXPENSE_LAST_STATUS_DATE, sysdate - AERH. (LAST_UPDATE_DATE)), 30) < = 30
AND AERH. SOURCE <>"the two Pay."
UNION
SELECT
AERH. DESCRIPTION OBJECT,
AERH. DEFAULT_CURRENCY_CODE CURRENCY_CODE,
AERH. WEEK_END_DATE REPORT_DATE,
AERH. REPORT_SUBMITTED_DATE REPORT_SUBMITTED_DATE,
AERH. INVOICE_NUM REPORT_NUMBER,
To_char (nvl (AERH. AMT_DUE_CCARD_COMPANY + AERH. AMT_DUE_EMPLOYEE + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0), AERH. IN TOTAL), FND_CURRENCY_CACHE. GET_FORMAT_MASK
(AERH. DEFAULT_CURRENCY_CODE, 30)). » '|| AERH. DEFAULT_CURRENCY_CODE REPORT_TOTAL_CURRENCY,
To_char (nvl (AERH. AMT_DUE_CCARD_COMPANY + AERH. AMT_DUE_EMPLOYEE + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0), AERH. IN TOTAL), FND_CURRENCY_CACHE. GET_FORMAT_MASK
(AERH. DEFAULT_CURRENCY_CODE, 30)) REPORT_TOTAL,.
PER_EMPLOYEE. PERSON_ID EMPLOYEE_ID,
AERH. REPORT_HEADER_ID REPORT_HEADER_ID,
PER_EMPLOYEE. FULL_NAME FULL_NAME,
NVL (AERH.expense_status_code,
AP_WEB_OA_ACTIVE_PKG. GetReportStatusCode (AERH. Source, AERH. Workflow_approved_flag,
AERH.report_header_id, 'Y',' don't)) STATUS_CODE.
AERH.source SOURCE,
NVL (PER_APPROVER.full_name, AP_WEB_OA_ACTIVE_PKG. GetCurrentApprover (AERH. Source,
AERH. Workflow_approved_flag, AERH.report_header_id, AERH.expense_status_code)) CURRENT_APPROVER;
ROUND (NVL (sysdate - AERH. EXPENSE_LAST_STATUS_DATE,
SYSDATE - AERH. DAYS_SINCE_ACTIVITY LAST_UPDATE_DATE)),
AERH. RECEIPTS_STATUS RECEIPTS_STATUS_CODE,
AERH. HOLDING_REPORT_HEADER_ID,
0 VENDOR_ID,
AERH. AMT_DUE_CCARD_COMPANY AMT_DUE_CCARD_COMPANY,
AERH. AMT_DUE_EMPLOYEE AMT_DUE_EMPLOYEE,
Decode (aerh.expense_current_approver_id,
-99999, "AMEMultipleApprovers."
Decode (PER_APPROVER.full_name,
(null, 'CurrentApproverName', 'AMESingleApprover')) CURRENT_APPROVER_SWITCHER,
TO_CHAR (AERH. LAST_UPDATE_DATE, 'DD-MON-RRRR HH'),
-INVOICE_ID 1
Of
AK_WEB_USER_SEC_ATTR_VALUES, A.
AP_EXPENSE_REPORT_HEADERS AERH,
PER_PEOPLE_X PER_EMPLOYEE,
PER_PEOPLE_X PER_APPROVER
WHERE AERH. VOUCHNO + 0 = 0
AND A.ATTRIBUTE_CODE = 'ICX_HR_PERSON_ID. '
AND AERH. PAID_ON_BEHALF_EMPLOYEE_ID = A.NUMBER_VALUE
AND A.WEB_USER_ID =: 4
AND PER_EMPLOYEE. PERSON_ID = PAID_ON_BEHALF_EMPLOYEE_ID
AND AERH. EMPLOYEE_ID IS NULL
AND (AERH. Source <>"NonValidatedWebExpense".
OR AERH. Workflow_approved_flag IS NULL)
AND AERH.expense_current_approver_id = PER_APPROVER.person_id
AND decode (AERH.total, 0, ROUND (NVL (sysdate - AERH.) EXPENSE_LAST_STATUS_DATE, sysdate - AERH. (LAST_UPDATE_DATE)), 30) < = 30
AND AERH. SOURCE <>"the two Pay."
UNION ALL
/ * This selection is for reports of invoice imported by casual workers * /.
SELECT
BIM OBJECT DESCRIPTION,
BIM INVOICE_CURRENCY_CODE CURRENCY_CODE,
BIM INVOICE_DATE REPORT_DATE,
AERH. REPORT_SUBMITTED_DATE REPORT_SUBMITTED_DATE,
BIM INVOICE_NUM REPORT_NUMBER,
To_char (decode (nvl (I.)) AMT_DUE_CCARD_COMPANY, AERH. AMT_DUE_CCARD_COMPANY) + nvl (HAVE. AMT_DUE_EMPLOYEE, AERH. AMT_DUE_EMPLOYEE) + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0),
0, decode (HAVE. CANCELLED_DATE,
NULL, APS. GROSS_AMOUNT,
AERH. IN TOTAL).
NVL (HAVE. AMT_DUE_CCARD_COMPANY, AERH. AMT_DUE_CCARD_COMPANY) + nvl (HAVE. AMT_DUE_EMPLOYEE, AERH. AMT_DUE_EMPLOYEE) + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0));
FND_CURRENCY_CACHE. GET_FORMAT_MASK
(HAVE. INVOICE_CURRENCY_CODE, 30)). » '|| BIM INVOICE_CURRENCY_CODE REPORT_TOTAL_CURRENCY,
To_char (decode (nvl (I.)) AMT_DUE_CCARD_COMPANY, AERH. AMT_DUE_CCARD_COMPANY) + nvl (HAVE. AMT_DUE_EMPLOYEE, AERH. AMT_DUE_EMPLOYEE) + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0),
0, decode (HAVE. CANCELLED_DATE,
NULL, APS. GROSS_AMOUNT,
AERH. IN TOTAL).
NVL (HAVE. AMT_DUE_CCARD_COMPANY, AERH. AMT_DUE_CCARD_COMPANY) + nvl (HAVE. AMT_DUE_EMPLOYEE, AERH. AMT_DUE_EMPLOYEE) + nvl (AERH. MAXIMUM_AMOUNT_TO_APPLY, 0));
FND_CURRENCY_CACHE. GET_FORMAT_MASK
(HAVE. INVOICE_CURRENCY_CODE, 30))
REPORT_TOTAL,
P.PERSON_ID EMPLOYE_ID,
AERH. REPORT_HEADER_ID REPORT_HEADER_ID,
P.FULL_NAME FULL_NAME,
DECODE (AI. CANCELLED_DATE, null,
NVL (aerh.expense_status_code, DECODE (APS. GROSS_AMOUNT, 0, 'PAY. "
decode (HAVE. Payment_status_flag, 'Y', 'PAID. "
', 'BILL. "
'P', 'PARPAID', NULL))),
STATUS_CODE "CANCELLED"),
AERH.source SOURCE,
CURRENT_APPROVER NULL,
ROUND (sysdate - HAVE. DAYS_SINCE_ACTIVITY LAST_UPDATE_DATE),
AERH. RECEIPTS_STATUS RECEIPTS_STATUS_CODE,
AERH. HOLDING_REPORT_HEADER_ID,
BIM VENDOR_ID VENDOR_ID,
AERH. AMT_DUE_CCARD_COMPANY AMT_DUE_CCARD_COMPANY,
AERH. AMT_DUE_EMPLOYEE AMT_DUE_EMPLOYEE,
'CurrentApproverName' CURRENT_APPROVER_SWITCHER,
TO_CHAR (AERH. LAST_UPDATE_DATE, 'DD-MON-RRRR HH'),
BIM INVOICE_ID INVOICE_ID
Of
AK_WEB_USER_SEC_ATTR_VALUES, A.
AP_INVOICES HAVE,
AP_EXPENSE_REPORT_HEADERS AERH,
PER_PEOPLE_X P,.
AP_PAYMENT_SCHEDULES APS
WHERE DID. INVOICE_ID = APS. INVOICE_ID
AND THE AI. INVOICE_ID = AERH. VOUCHNO (+)
AND THE AI. INVOICE_TYPE_LOOKUP_CODE: "="BILL ".
AND A.ATTRIBUTE_CODE = 'ICX_HR_PERSON_ID. '
AND THE AI. PAID_ON_BEHALF_EMPLOYEE_ID = A.NUMBER_VALUE
AND A.WEB_USER_ID =: 5
AND P.PERSON_ID = I. PAID_ON_BEHALF_EMPLOYEE_ID
AND AP_WEB_DB_HR_INT_PKG. IsPersonCwk (HAVE. PAID_ON_BEHALF_EMPLOYEE_ID) = 'Y '.
AND DECODE (AI. PAYMENT_STATUS_FLAG,
'Y' sysdate - I. LAST_UPDATE_DATE,
decode (APS. GROSS_AMOUNT, 0, sysdate - I. LAST_UPDATE_DATE, 0)
) < = 30
AND (AERH. SOURCE <>"The two Pay" OR AERH. REPORT_HEADER_ID IS NULL)) QRSLT WHERE (REPORT_SUBMITTED_DATE is not null)
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:603)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1136)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2360)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1759)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:511)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:432)
at _OA._jspService(OA.jsp:33)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
to EDU.oswego.cs.dl.util.concurrent.PooledExecutor$ Worker.run (PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
# # 0 in detail
java.sql.SQLException: ORA-01008: not all variablesat oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2548)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2933)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:650)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:578)
at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:631)
at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:518)
at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3375)
at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:828)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4525)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3339)
at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3326)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:441)
at oracle.apps.ap.oie.webui.Custom_HomePageCO.processRequest(Custom_HomePageCO.java:26)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:587)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1136)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2360)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1759)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:511)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:432)
at _OA._jspService(OA.jsp:33)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
to EDU.oswego.cs.dl.util.concurrent.PooledExecutor$ Worker.run (PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
java.sql.SQLException: ORA-01008: not all variablesat oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2548)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2933)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:650)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:578)
at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:631)
at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:518)
at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3375)
at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:828)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4525)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3339)
at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3326)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:441)
at oracle.apps.ap.oie.webui.Custom_HomePageCO.processRequest(Custom_HomePageCO.java:26)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:587)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1136)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2360)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1759)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:511)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:432)
at _OA._jspService(OA.jsp:33)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
to EDU.oswego.cs.dl.util.concurrent.PooledExecutor$ Worker.run (PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)I took the sql error message and tried the same performance in Toad... I could run it smoothly... I dot know why his work during the execution of the page
Please help me guys...
Thank you
Pavan
See you are not sure if they make somewhere clause or where clause params. Your code can be disturbing the standard flow of the code
Try
(a) Substitution of view object
(b)
OAViewObject vo = (OAViewObject) am1.findViewObject ("TrackExpenseReportsVO");
System.out.println (VO);
vo.setWhereClause (null);
vo.setWhereClause ("REPORT_SUBMITTED_DATE is not null");
vo.executeQuery (); do not run
B. try if this does not work go for a
Concerning
Marie Lise S
-
DATA_TYPE Oracle (using SQL) questions
I have a Client Server application that I created using a server for MS - SQL (MS - SQL Server 2008 R2 Express) database.
Since MS - SQL Server has wide range and number of DATA_TYPEs, I chose to devote some of these DATA_TYPEs to the application-specific processing (mainly MONEY and DATA_TYPES BOOLEAN).
In addition, I decided that in the Client Application that the general treatment of a particular field would be determined by the corresponding DATA_TYPE stored in the database.
The value of the DATA_TYPE for a particular field within the SQL Server database and can be determined by querying:
"select DATA_TYPE from INFORMATION_SCHEMA. Columns
"where ((Column_name = «my_Field») and (Table_Name = 'myTable')).
I also extract/use other DATA_TYPE information as necessary or appropriate.
With this information the Client Application can systematically treated differently may be a MONEY (a DATA_TYPE in MS - SQL Server) a decimal or one BIGINT (two other DATA_TYPEs in MS - SQL Server). I have to create the field with the correct DATA_TYPE in the database, but after that I don't have to worry about this.
.
.
.
Now, I'm moving a database to Oracle (Oracle Database Express Edition 11 g Release 2). And I would have the same (or similar) feature, as described above.
Oracle has less DATA_TYPES is more difficult to bind an application-specific-data type to a database-Oracle-DATA_TYPE-specific. There are simply not as many "sacrifice" to my specific processing of the application. I don't want to treat each field DIGITAL like 'le-apps-money-type.'
With Oracle can I associate 'the-apps-money-type', let's say, a NUMERIC (9,2), then the Client Application will process all NUMERIC (9.2) as 'the-apps-money-type '.
The Client Application queries the Oracle database for DATA_TYPE DATA_PRECISION, DATA_SCALE to make this determination.
But this approach doesn't appeal to me, suppose I have other NUMERIC fields (9,2) who are not of the 'the-apps-money-type '. How can I set and then later determine, from the Oracle backend, if the NUMERIC field (9.2) is intended to be used as 'the-apps-money-type' or just a regular number?
Is it possible I can create a kind of "sub DATA_TYPE" in Oracle?
I have considered this in the COMMENT field associated with particular field. Then a query for this comment when I did DIGITAL DATA_TYPEs. But the COMMENTS field seems not to turn all_tab_columns and user_tab_columns.
(With Oracle SQL Developer, you can create/edit/delete user created tables/fields. COMMENTS can be added to the individual fields in a table - this are the COMMENTS that I am referring above).
.
.
.
What I would do, and a more direct approach for me, would be in some way create a user defined DATA_TYPE is simply:
(1) a user defined DATA_TYPE name (such as MY_MONEY_TYPE),
(2) associated with a built-in Oracle data type (such as NUMERIC (9.2).)
Then when the client application queries user_tab_columns the field may be treated appropriately. If I can't do it, maybe there is somewhere else I may be put and subsequently ask for such information.
What are the most direct ways to implement the functionality described above?You can create an object type and certainly use it in your table definition
SQL> create type my_money_type as object ( 2 val number(9,2) 3 ); 4 / Type created. SQL> create table foo ( 2 col1 number primary key, 3 col2 my_money_type 4 ); Table created. SQL> insert into foo values( 1, my_money_type(1.23) ); 1 row created. SQL> select col1, col2 from foo; COL1 ------- COL2(VAL) -------------------------------------------------------------------------------- 1.00 MY_MONEY_TYPE(1.23)
This usually isn't a particularly good way to design an application, however. Types of objects are very useful in the treatment of PL/SQL, but their conservation in a table is usually a pain - you must constantly to call the constructor of the object and the getter methods (I did not worth defining here) assuming that you want to return the number of 1.23 rather than an instance of MY_MONEY_TYPE.
Justin
-
java.sql.SQLException: ORA-01008: not all variables
Hi all
Here is the code in my opinion
SELECT * FROM (select * from ())
SELECT WN. NOTIFICATION_ID,
WN. FROM_USER,
DECODE (WN. MORE_INFO_ROLE, NULL, WN. TO_USER, wf_directory. GetRoleDisplayName (WN. MORE_INFO_ROLE)) AS TO_USER;
DECODE (WN. MORE_INFO_ROLE, NULL, WN. TOPIC, FND_MESSAGE. GET_STRING ('FND', 'FND_MORE_INFO_REQUESTED')
||' '
|| WN. SUBJECT) AS THE SUBJECT.
WN. LANGUAGE,
WN. BEGIN_DATE,
WN. END_DATE,
WN. STATUS,
WN. PRIORITY,
'P' AS PRIORITY_F,
WN. RECIPIENT_ROLE,
WN. END_DATE,
WIT. DISPLAY_NAME AS TYPE,
WN. MORE_INFO_ROLE,
WN. FROM_ROLE,
WN. MESSAGE_TYPE,
WN. MESSAGE_NAME,
WN. CONTEXT,
XXTPS_FA043_PKG.get_gbv (WN. CONTEXT, WN. MESSAGE_TYPE, wn.language) VBG.
XXTPS_FA043_PKG.get_asset_type (WN. CONTEXT, WN. Asset_type MESSAGE_TYPE)
OF WF_NOTIFICATIONS WN.
WF_ITEM_TYPES_TL WIT,
WL WF_LOOKUPS_TL
WHERE WN.message_type = WIT.name
AND WL.lookup_type = 'WF_NOTIFICATION_STATUS. '
AND WIT.language = userenv ('LANG')
AND WIT.language = WL.language
AND WN.status = WL.lookup_code
AND more_info_role IS NULL
AND wn.message_type IN ('XXNCVPIS', 'XXNCVADJ', 'XXNCVTRN', 'XXNCVRCL', 'XXNCVRET', 'XXNCVSPL', 'XXNCVASG')
AND WN.recipient_role IN
(SELECT WUR.role_name
OF WF_USER_ROLES WUR
WHERE WUR.user_name =: 1
AND WUR.user_orig_system =: 2
AND WUR.user_orig_system_id =: 3
)
UNION ALL
SELECT
/ * + Index (WN WF_NOTIFICATIONS_N6) ORDERED PUSH_SUBQ USE_NL (WN WL WIT) * /.
WN. NOTIFICATION_ID,
WN. FROM_USER,
DECODE (WN. MORE_INFO_ROLE, NULL, WN. TO_USER, wf_directory. GetRoleDisplayName (WN. MORE_INFO_ROLE)) AS TO_USER;
DECODE (WN. MORE_INFO_ROLE, NULL, WN. TOPIC, FND_MESSAGE. GET_STRING ('FND', 'FND_MORE_INFO_REQUESTED')
||' '
|| WN. SUBJECT) AS THE SUBJECT.
WN. LANGUAGE,
WN. BEGIN_DATE,
WN. END_DATE,
WN. STATUS,
WN. PRIORITY,
'P' AS PRIORITY_F,
WN. RECIPIENT_ROLE,
WN. END_DATE,
WIT. DISPLAY_NAME AS TYPE,
WN. MORE_INFO_ROLE,
WN. FROM_ROLE,
WN. MESSAGE_TYPE,
WN. MESSAGE_NAME,
WN. CONTEXT,
XXTPS_FA043_PKG.get_gbv (WN. CONTEXT, WN. MESSAGE_TYPE, wn.language) VBG.
XXTPS_FA043_PKG.get_asset_type (WN. CONTEXT, WN. Asset_type MESSAGE_TYPE)
OF WF_NOTIFICATIONS WN.
WF_ITEM_TYPES_TL WIT,
WL WF_LOOKUPS_TL
WHERE WN.message_type = WIT.name
AND WL.lookup_type = 'WF_NOTIFICATION_STATUS. '
AND WIT.language = userenv ('LANG')
AND WIT.language = WL.language
AND WN.status = WL.lookup_code
AND wn.message_type IN ('XXNCVPIS', 'XXNCVADJ', 'XXNCVTRN', 'XXNCVRCL', 'XXNCVRET', 'XXNCVSPL', 'XXNCVASG')
AND WN.more_info_role IN
(SELECT WUR.role_name
OF WF_USER_ROLES WUR
WHERE WUR.user_name =: 4
AND WUR.user_orig_system =: 5
AND WUR. USER_ORIG_SYSTEM_ID =: 6
))
WHERE DECODE (: 7, NULL, ' 2 ',' > ', VBG, ' 2') > DECODE (: 7, NULL, ' 1 ',' > ',: 8, '1')
AND DECODE (: 7, NULL, ' 1 ',' < ', VBG, ' 1') < DECODE (: 7, NULL, ' 2 ',' < ',: 8, '2')
(AND DECODE (: 7, NULL, '1', 'IS', VBG, '1') = DECODE (: 7, NULL, ' 1', 'IS',: 8, '1'))
Code of VOImpl
' public void initQuery (String s, String s1, s2, s3, s4 of the string String String,
S5, s6 String String) {}
OAApplicationModuleImpl = localOAApplicationModuleImpl
(OAApplicationModuleImpl) getApplicationModule ();
OADBTransactionImpl = localOADBTransactionImpl
(OADBTransactionImpl) localOAApplicationModuleImpl.getDBTransaction ();
int i = 0;
setWhereClause (null);
setWhereClauseParams (null);
setWhereClauseParam (0, s);
setWhereClauseParam (1, s1);
setWhereClauseParam (2, s2);
setWhereClauseParam (3, s);
setWhereClauseParam (4, s1);
setWhereClauseParam (5, s2);
setWhereClauseParam (6, s4);
setWhereClauseParam (7, s6);
String strWhereClause = "";
If ((null! = s5) & &!("".)) Equals (S5)))
{
If (! (")) All".equalsIgnoreCase (S5)))
{
"" strWhereClause = "asset_type =" "+ s5 +" ' ";
addWhereClause (strWhereClause);
}
}
When I try to run the page, and then I am getting java.sql.SQLException: ORA-01008: not all variables.
Can someone tell the cause of the road please?
Thank you
Siva PrasadWHERE DECODE (: 7, NULL, ' 2 ',' > ', VBG, ' 2') > DECODE (: 7, NULL, ' 1 ',' > ',: 8, '1')
AND DECODE (: 7, NULL, 1 ',')<'1')>'1')>< decode(:7,="" null,="" '2',=""><', :8,="">',>
(AND DECODE (: 7, NULL, '1', 'IS', VBG, '1') = DECODE (: 7, NULL, ' 1', 'IS',: 8, '1'))You use the variable even here several times. Please change sequentially. Even if you use: 7 more than once, please change to: 8 (number) and go to the setWhereClauseParam. Basically do not use the same variable twice (even if you want to compare the same value)
Thank you
Shree -
Hi expert,
When I ran after SQL, error message reads "table or view does not exist" pointing to the table "dba_tab_cols" and "dba_all_tables". There is no other question for this statement, because if I changed table "user_tab_cols" and "user_all_tables", it works well.
declare
v_old_table DBA_tab_columns.table_name%type;
v_where Varchar2 (4000);
Boolean v_first_col: = true;
type rc is ref cursor;
c rc;
v_rowid varchar2 (20);
Val varchar2 (50): = "Test note";
Start
for r in)
Select
t.*
Of
dba_tab_cols t, dba_all_tables a
where t.table_name = a.table_name
and t.data_type like '% CHAR % '.
and a.owner = 'QA'
order by t.table_name loop)
If v_old_table is null then
v_old_table: = r.table_name;
end if;
If v_old_table <>r.table_name then
v_first_col: = true;
-dbms_output.put_line ('search' | v_old_table);
Open c for ' select rowid from ' ' |. ' v_old_table | '" ' || v_where;
extract the c in v_rowid;
loop
When the output c % notfound;
dbms_output.put_line (' rowid: ' | v_rowid |) "in" | v_old_table);
extract the c in v_rowid;
end loop;
v_old_table: = r.table_name;
end if;
If v_first_col then
v_where: = 'where ' | r.column_name | "as" %' | Val | '%''';
v_first_col: = false;
on the other
v_where: = v_where | "or" | r.column_name | "as" %' | Val | '%''';
end if;
end loop;
end;
But if I choose these DBA tables in the toad sql Editor, it works well, I am currently using my own credentials, not the administrator credentials. why he get different effects running in these two ways?
Thank you very much>
Hello
When I ran after SQL, error message reads "table or view does not exist" pointing to
Table 'dba_tab_cols' and 'dba_all_tables '. There is no other question for this statement, becauseIf I changed table "user_tab_cols" and "user_all_tables", it works well.
But if I choose these DBA tables in the toad sql Editor, it works well, I am currently using my own
credentials, not the administrator credentials. why he get different effects running in these two ways?You answered your own question - you know that you have the administrator privileges when you
Open a session under your own credentials - but your id user obviously does TOAD.You use SQL * for the query that fails?
BTW, you do not give us your version of Oracle - you must always tell us what it is
Please read the forum FAQ and also the thread "sticky" by BluShadow at the top of the list of positions
on the forum homepage. These forums are an excellent resource - you will get the best out of them if
you follow the instructions.HTH,
Paul...
Published by: Paulie July 24, 2012 16:40
-
Hi all I have a basic sql question
Watch below two querries
I think as operator will not compare with all the values, but not the outcome it will compare with all values... When comparing with the value null, the result is automatically null1. select 1 from dual where 1 in (select 1 from dual union all select null from dual) It gives output as 1 but below one 2. select 1 from dual where 1 not in (select 2 from dual union all select null from dual) It gives output as no data found
I'm wrong
Please help me on this
and why performance wise in operator is more better than no of?
Thanks to all in advanceThanks for posting your explain plan command
Execution Plan ---------------------------------------------------------- Plan hash value: 3249215828 ----------------------------------------------------------------------------- | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | ----------------------------------------------------------------------------- | 0 | SELECT STATEMENT | | 2 | 6 | 4 (0)| 00:00:01 | | 1 | NESTED LOOPS | | 2 | 6 | 4 (0)| 00:00:01 | | 2 | FAST DUAL | | 1 | | 2 (0)| 00:00:01 | | 3 | VIEW | VW_NSO_1 | 2 | 6 | 2 (0)| 00:00:01 | | 4 | SORT UNIQUE | | 2 | | 2 (0)| 00:00:01 | | 5 | UNION-ALL | | | | | | | 6 | FAST DUAL | | 1 | | 2 (0)| 00:00:01 | |* 7 | FILTER | | | | | | | 8 | FAST DUAL | | 1 | | 2 (0)| 00:00:01 | ----------------------------------------------------------------------------- Predicate Information (identified by operation id): --------------------------------------------------- 7 - filter(NULL IS NOT NULL) 02:12:54 SQL> select 1 from dual where 1 not in (select 2 from dual union all select null from dual); Elapsed: 00:00:00.01 Execution Plan ---------------------------------------------------------- Plan hash value: 3291682568 ----------------------------------------------------------------- | Id | Operation | Name | Rows | Cost (%CPU)| Time | ----------------------------------------------------------------- | 0 | SELECT STATEMENT | | 1 | 4 (0)| 00:00:01 | |* 1 | FILTER | | | | | | 2 | FAST DUAL | | 1 | 2 (0)| 00:00:01 | | 3 | UNION-ALL | | | | | |* 4 | FILTER | | | | | | 5 | FAST DUAL | | 1 | 2 (0)| 00:00:01 | | 6 | FAST DUAL | | 1 | 2 (0)| 00:00:01 | -----------------------------------------------------------------
Maybe you are looking for
-
6 button keeps not brewing... with shuffle turned off
Why my Ipod will not simply play through an album? He played sometimes 30 seconds of a track, then mix. any difficulty? Update 5: 00 last week.
-
Suggestions to improve playback of music on Apple TV 4th Gen
Finally using my 4th gen Apple TV to play my music via home sharing, but it is a step backwards compared to the 3rd generation. To do some improvements of the user interface. My suggestions (1) pull bar progression of track, essential now to pause th
-
iPhone continues to display as well as online in social applications.
I use the iPhone 5 c, I've had the unit for a few months now and have had a consistent problem where on each social application, Whatsapp and Viber for example, it shows me online contacts, whereas in fact, my iPhone is locked.could it be purely hard
-
Compaq presario cq62 available memory problem
HAV CQ62 with 32-bit amd processor windows 7. OK came with 4gig RAM. SYSTEM to CHECK that this gives 4gig ram and the RAM available media 2.99gig. OK so update the 8gig Ram to run faster, but it always has in the area of the SYSTEM memory available
-
Adobe flash player update service 11.6 r602 is ruining my life
It hangs my computer what do I do? Rock solid toshiba not more