ORA-01791: not a selected expression
Hi, thank you very much in advance.
I run a query like this result in no found rows:
Select distinct col1
T
Where col2 = '1' and col3 = '1'
Then I add order by clause:
Select distinct col
T
Where col2 = '1' and col3 = '1'
Order by col4
In oracle database 11g enterprise edition release 11.2.0.3.0 - production of 64-bit, the query executed without error.
The sides are when it runs on oracle database 11g enterprise edition release 11.2.0.4.0 - 64 bit production.
If the type of col4 is date that the error occurs. If col4 isn't date type, it runs without error.
Best regards
IB
It all works very well on vanilla 11.2.0.1.0
The query returns no rows, and does NOT throw an exception.
Tags: Database
Similar Questions
-
Hi all
I have this sql statement:
Select Distinct EXTRACT(YEAR from A_DATE) from attendance by A_Date ASC;
the error:
ORA-01791: not a SELECTed expressionMaybe you wanted to do:
Select Distinct EXTRACT(YEAR from A_DATE) from Attendances order by EXTRACT(YEAR from A_DATE) ASC;
?
-
Listagg function gives ORA-00979: not a GROUP BY expression error
Hello
I have an environment that supports the Listagg function. Suite works perfectly:
Select task_code, LISTAGG(ename||) e ('| role |') (',',') WITHIN GROUP (ORDER BY ename) as employees
team
where task_code = '01.07.05'
Task_code group
However, this is just a test request, the real is a little wider and I can't get the function works, I get ORA-00979: not a GROUP BY expression error.
Here's my query (the column names are in Dutch, but that shouldn't really be a problem):
SELECT distinct op_sod.sod_code, op_sod.sod_omschr_lang, op_ood.ood_code, op_ood.ood_omschr_lang, op_activiteit.act_code, op_activiteit.act_omschr_lang, op_taak.taak_code, op_taak.taak_omschr_lang, op_afdeling___master.afd_code, op_taak.belmo, op_taak_j.planning_la,
LISTAGG (op_ploeg.wn_naam |) ' ('| op_ploeg.rol |') (',',') WITHIN GROUP (ORDER BY op_ploeg.wn_naam) as employees.
"Write subtaak/mijlpaal toe."
op_teamplanning.subtaak_mijlpaal as subtaak_of_mijlpaal,
op_teamplanning.subtaak_omschr | -case when op_teamplanning.subtaak_mijlpaal = 'BELMO Mijlpaal' then ' (BRUNO mijlpaalnr: ' | nvl (op_teamplanning.nummer, 0) |) ')' other ' ' end
as subtaak_mijlpaal_omschrijving, op_teamplanning.deadline as date limit, op_teamplanning.status as status,
trim (both
case when op_teamplanning.vlag1 = 'Geen' and op_teamplanning.vlag2 = 'Geen' and op_teamplanning.vlag3 = 'Geen' and op_teamplanning.vlag4 = 'Geen'
and op_teamplanning.vlag5 = 'Geen' or op_teamplanning.vlag1 is null and op_teamplanning.vlag2 is null and op_teamplanning.vlag3 is null
op_teamplanning.vlag5 is null and op_teamplanning.vlag4 is null then 'Geen '.
Another pad (both case when op_teamplanning.vlag1 = 'Geen' then "else trim (both from op_teamplanning.vlag1) end) |
trim (both case when op_teamplanning.vlag2 = 'Geen' then "another ',' | trim (both from op_teamplanning.vlag2) end) |
trim (both case when op_teamplanning.vlag3 = 'Geen' then "another ',' | trim (both from op_teamplanning.vlag3) end) |
trim (both case when op_teamplanning.vlag4 = 'Geen' then "another ',' | trim (both from op_teamplanning.vlag4) end) |
trim (both case when op_teamplanning.vlag5 = 'Geen' then "another ',' | trim (both from op_teamplanning.vlag5) end) end) as Beleidsvlaggen,
op_teamplanning.naam_verantw as quotation, op_teamplanning.subtaak_id as subtaak_id, nvl (op_teamplanning.nummer, 0) as Nummer, nvl (op_teamplanning.regelgevingsagenda, 'Nee') as
Regelgeving, op_teamplan_subsubtaak.subsubtaak_submijlpaal as subsubtaak_submijlpaal, op_teamplan_subsubtaak.subsubtaak_id as subsubtaak_id, op_teamplan_subsubtaak.subsubtaak_omschr
like subsubtaak_omschr, op_teamplan_subsubtaak.deadline, sub_deadline, op_teamplan_subsubtaak.status as sub_status, op_teamplan_subsubtaak.naam_verantw as naam_verantw
Of...
WHERE THE...
Group of op_sod.sod_code, op_sod.sod_omschr_lang, op_ood.ood_code, op_ood.ood_omschr_lang, op_activiteit.act_code, op_activiteit.act_omschr_lang, op_taak.taak_code, op_taak.taak_omschr_lang, op_afdeling___master.afd_code, op_taak.belmo, op_taak_j.planning_la
Can someone tell me the reason for this error?
Thanks in advance!
Kind regards
NDG
NDG123 wrote:
I don't really understand your other question:
Is below for example, a group of expression?
op_teamplanning.subtaak_mijlpaal
After some additional research:
The group by mistake is not appear anymore when I delete all fields after the listagg field, that might be a clue to the solution.
It is not difficult to understand. You can have other columns not aggregated in your projection on the side of those listed in the group by expression.
The reason for ORA-01489 is that the resulting string will become long and exceeds 4000 bytes.
You will find several solution in this forum.
For example
-
SQL - ORA-00979: not a GROUP BY expression
Hi Expert,
I received the error message: ORA-00979: not a GROUP BY expression at the bottom of the sql statement
Please advise - display total number of point of sale and the total amount of all items. Only display results when the total quantity is greater than 2.
SELECT o.Qty, sum(o.Qty*o.salesprice) AS TOTALDOLLARS, description and i.Itemcode
OF ORDERLINE o
INNER JOIN POINT I
ON o.itemcode = i.itemcode
GROUP BY i.Itemcode
After having o.qty > 2
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
Create table ORDERLINE
(
Qty number 4,
Salesprice Number (6.2),
OrderNo Number (3).
ItemCode Varchar2 (6).
Primary key (OrderNo, Itemcode)
Foreign Key (Itemcode) refers to POINT.
Foreign Key (OrderNo) made reference SALESORDER
Create table POINT
(
ItemCode Varchar2 (6).
Description Varchar2 (50).
Retailprice Number (6.2),
Number of weight (4.1),
Purchaseprice Number (6.2),
Category Varchar2 (20).
Primary Key (Itemcode)
);Hi 845720,
Based on the sql code, the sum must be grouped itemcodewise, descriptionwise, qtywise.
This means that you have all these in a group by clause too with sum().eg : group by i.Itemcode, i.Description, o.Qty
Is this wise sum qty is logical? I do not know...
It will be useful,
CKLPPublished by: CKLP April 14, 2011 22:10
-
SQL error: ORA-00979: not a GROUP BY
Hi team,
I am trying to execute the query
SELECT DISTINCT comp.company_name |' -' || COMP.contract_number AS 'company_name '.
, UPPER (bh.first_name) AS 'budget_holder '.
, INITCAP (sup.first_name) |' -' || SUP. Surname AS 'supervisor '.
, INITCAP (emp.status) AS "Department".
, INITCAP (emp.first_name |) » '|| EMP. Surname) AS "employee."
r.employee_id
, emp.paaf_number AS 'paaf_num '.
, emp.employee_payroll_number AS 'payroll_num '.
, emp.discipline AS 'discipline '.
, NVL (SUM (tg.week_day1), 0) AS "day 1".
, NVL (SUM (tg.week_day2), 0) AS "day 2".
, NVL (SUM (tg.week_day3), 0) AS day '3 '.
, NVL (SUM (tg.week_day4), 0) AS "day4.
, NVL (SUM (tg.week_day5), 0) AS "day5".
, NVL (SUM (tg.week_day6), 0) AS "day6.
, NVL (SUM (tg.week_day7), 0) AS "day 7".
r.valid_from
r.valid_to
Tw_roster_data r
JOIN tw_employee emp
ON emp.employee_id = r.employee_id
JOIN tg tw_timesheet_stage
ON tg.employee_id = r.employee_id
AND tg.week_commencing = r.valid_from
JOIN the tw_contracting_company comp
ON comp.contracting_company_id = r.contracting_company_id
JOIN tw_supervisor sup
ON sup.supervisor_id = tg.supervisor_id
JOIN tw_budget_holder bh
ON bh.budget_holder_id = sup.budget_holder_id
WHERE r.contracting_company_id = 101
AND r.VALID_FROM = January 31, 2015.
AND r.VALID_TO = February 6, 2015"
Group of r.employee_id, comp.company_name, bh.first_name,
EMP.paaf_number, emp.employee_payroll_number, emp.discipline,
r.valid_from, r.valid_to;
But still the error below
Error in the command line: 1 column: 17
Error report-
SQL error: ORA-00979: not a GROUP BY expression
00979 00000 - "not a GROUP BY expression"
Can help.
Hello
When to use analytical function oracle other columns used based on the analysis, must be included in the GROUP BY Clause
SELECT expression1, expression2, ... expression_n, aggregate_function (expression) FROM tables WHERE conditions GROUP BY expression1, expression2, ... expression_n;
SQL 101: Seen are medium and other aggregate data
SELECT DISTINCT comp.company_name || ' - ' || comp.contract_number AS "company_name", UPPER (bh.first_name) AS "budget_holder", INITCAP (sup.first_name) || ' - ' || sup.surname AS "supervisor", INITCAP (emp.status) AS "department", INITCAP (emp.first_name || ' ' || emp.surname) AS "employee", r.employee_id, emp.paaf_number AS "paaf_num", emp.employee_payroll_number AS "payroll_num", emp.discipline AS "discipline", NVL (SUM (tg.week_day1), 0) AS "day1", NVL (SUM (tg.week_day2), 0) AS "day2", NVL (SUM (tg.week_day3), 0) AS "day3", NVL (SUM (tg.week_day4), 0) AS "day4", NVL (SUM (tg.week_day5), 0) AS "day5", NVL (SUM (tg.week_day6), 0) AS "day6", NVL (SUM (tg.week_day7), 0) AS "day7", r.valid_from, r.valid_to FROM tw_roster_data r JOIN tw_employee emp ON emp.employee_id = r.employee_id JOIN tw_timesheet_stage tg ON tg.employee_id = r.employee_id AND tg.week_commencing = r.valid_from JOIN tw_contracting_company comp ON comp.contracting_company_id = r.contracting_company_id JOIN tw_supervisor sup ON sup.supervisor_id = tg.supervisor_id JOIN tw_budget_holder bh ON bh.budget_holder_id = sup.budget_holder_id WHERE r.contracting_company_id = 101 AND r.VALID_FROM = '31-JAN-2015' AND r.VALID_TO = '06-FEB-2015' GROUP BY comp.contract_number ,comp.company_name ,bh.first_name ,sup.first_name ,sup.surname , emp.status ,emp.first_name ,emp.surname r.employee_id, emp.paaf_number, emp.employee_payroll_number, emp.discipline, r.valid_from, r.valid_to;
-
Values for timestamp default XMLTable causes ORA-01843: not one month valid
When I try to provide a default value for a timestamp value in the function XMLTABLE, I am greeted with an error - ORA-01843: not one month valid -no matter how to give this default value. If there is a value in the XML or not is irrelavant to this bug occurs. It seems to be an incomplete correction of bug number 9745897 (thread).
Select x.*
Of
XMLTable ('/ DOC' from xmltype ("< DOC > < DT > 2013-08-14T 15: 08:31 < /DT > < / DOC > '"))
DT COLUMNS timestamp default sysdate) x;
Select x.*
Of
XMLTable ('/ DOC' from xmltype ("< DOC > < DT > 2013-08-14T 15: 08:31 < /DT > < / DOC > '"))
By default systimestamp timestamp COLUMNS DT) x;
Select x.*
Of
XMLTable ('/ DOC' from xmltype ("< DOC > < DT > 2013-08-14T 15: 08:31 < /DT > < / DOC > '"))
DT of COLUMNS timestamp default to_char (systimestamp, ' ' YYYY-MM-DD "T" HH24:MI:SS)) x;)
Edit: somewhat more followed.
It works:
Select x.*
Of
XMLTable ('/ DOC' from xmltype ("< DOC > < / DOC > '"))
Date of the dt of COLUMNS by default sysdate) x;
It works, too, with the exception of its just the date and not the time
Select x.*
Of
XMLTable ('/ DOC' from xmltype ("< DOC > < / DOC > '"))
DT COLUMNS timestamp default sysdate) x;
It does not work
Select x.*
Of
XMLTable ('/ DOC' from xmltype ("< DOC > < / DOC > '"))
By default systimestamp timestamp COLUMNS DT) x;
ORA-01861: literal does not match the format string
Hello
First of all, let's check the manual for the DEFAULT clause:
Function SQL/XML XMLTABLE in Oracle XML DB
The optional parameter
DEFAULT
clause specifies the value to use when thePATH
expression results in an empty sequence (orNULL
). Hisexpr
is an XQuery expression that is evaluated to produce the default value.According to the documentation, the DEFAULT clause must specify an XQuery expression.
However, is false, the implementation only expects an expression that matches a string, the content is not interpreted.
Bottom line is, if we specify directly a string, the expression is implicitly converted into one, and everyone knows how things can go when implicit conversions appear, especially when the dates or timestamps are involved.
Now let's focus on the impact of the DEFAULT clause on the evaluation of the query.
When a DEFAULT clause is specified, Oracle has rewritten projection differently and does not use the native format of XS: DateTime to convert the value:
Select x.*
Of
XMLTable ('/ DOC' from xmltype ('))
')- 2013-08-14 T 15: 08:31
DT of COLUMNS by default systimestamp timestamp
) x
becomes:
SELECT THE EXISTSNODE (VALUE(KOKBF$), '/ DOC/DT')
WHEN 1 THEN LAUNCH (TO_TIMESTAMP (SYS_XQ_UPKXML2SQL (SYS_XQEXVAL (SYS_XQEXTRACT (VALUE(KOKBF$), '/ DOC/DT')), 50.1, 2)() as a timestamp)
ELSE CAST (TO_TIMESTAMP (TO_CHAR (SYSTIMESTAMP (6)), 'SYYYY-MM-DD "T" HH24:MI:SSXFF') AS timestamp)
END "DT".
TABLE ("SYS". "XQSEQUENCE"(EXTRACT ("SYS"." XMLTYPE"(")
(((,'/ DOC'))) ' KOKBF$ '.- 2013-08-14 T 15: 08:31
See the red part: it does not use the format parameter, the conversion depends on NLS session parameters.
When there is no DEFAULT clause, the TO_TIMESTAMP function uses an explicit format:
Select x.*
Of
XMLTable ('/ DOC' from xmltype ('))
')- 2013-08-14 T 15: 08:31
Dt timestamp - default systimestamp COLUMNS
) x
rewritten to:
SELECT CAST)
TO_TIMESTAMP)
SYS_XQ_UPKXML2SQL (SYS_XQEXVAL (SYS_XQEXTRACT (VALUE(KOKBF$), '/ DOC/DT'), 0,0,20971520, 0), 50.1, 2)
"SYYYY-MM-DD"T"HH24:MI:SSXFF"
)
BY timestamp - default systimestamp
) "DT".
TABLE ("SYS". "XQSEQUENCE"(EXTRACT ("SYS"." XMLTYPE"(")
(((,'/ DOC'))) ' KOKBF$ '.- 2013-08-14 T 15: 08:31
So yes, maybe there is a bug here.
Edit: somewhat more followed.
It works:
Select x.*
Of
XMLTable ('/ DOC' from xmltype ("
")) Date of the dt of COLUMNS by default sysdate) x;
Actually no, it does not work. Certainly, maybe it produces no error, but the result is incorrect.
As explained, the conversion is based on the NLS (NLS_DATE_FORMAT in this case) session:
SQL > show nls_date_format settings
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
string of NLS_DATE_FORMAT JJ/MM/RR
SQL >
SQL > select sysdate to double;
SYSDATE
--------
16/08/13
SQL > select x.*
2 from
3 xmltable ('/ DOC' passing xmltype ("
")) 4 COLUMNS dt date default sysdate) x;
DT
--------
13/08/16
Oracle first converts SYSDATE to a string using current NLS_DATE_FORMAT, having for result Aug 16, 13 '
Then this string is converted to a DATE as XS: date is 'YYYY-MM-DD' leading 13/08/16 (13 August, 0016) which is incorrect.
The obvious solution to this problem is to control how Oracle converts implicitly string to timestamp format:
SQL > alter session set NLS_TIMESTAMP_FORMAT = "YYYY-MM-DD"T"HH24:MI:SS."
Modified session.
SQL > select x.*
2 from
3 xmltable ('/ DOC' from xmltype ('))
')- 2013-08-14 T 15: 08:31
4 dt of systimestamp default timestamp COLUMNS
(5) x;
DT
---------------------------------------------------------------------------
2013-08-14 T 15: 08:31
SQL > select x.*
2 from
3 xmltable ('/ DOC' passing xmltype ("
")) 4 dt of COLUMNS by default systimestamp timestamp) x;
By default systimestamp timestamp COLUMNS DT) x
*
ERROR on line 4:
ORA-01861: literal does not match the format string
SQL > select x.*
2 from
3 xmltable ('/ DOC' passing xmltype ("
")) Cast of default timestamp COLUMNS dt (systimestamp timestamp) 4) x;
DT
---------------------------------------------------------------------------
2013 08-16 T 12: 32:58
-
I just installed Desktop Manager 5.0 and connected to my BB 8830. I use Outlook Express 2000 for the calendar and I want to sync it with my BB 8330. However, in Desktop Manager under Sync / Config / select the device for the calendar, the only choices are Yahoo and text import/export. Of course, it does not recognize Outlook Express 2000 as a calendar program. Does anyone have a solution?
I bought this 8830 mainly to sync its calendar with my Outlook Express calendar. If this does not work, then I'll go back to my cell phone operator.
I installed Desktop Manager 4.1 and it works now. Be aware with this version, once you connect your BB to your computer, unless you go through the Wizard Windows Found New Hardware, Desktop Manager does not recognize the connection with your BB and your computer (I don't have to do with version 5.0).
RIM should be more attentive to people with a recent phone, but still using an earlier version of Microsoft Outlook / office.
-
ORA-01008: not all variables bound... but only in an environment
Running Oracle on Solaris 11.2.0.3.15.
Two test environments, each with identical spfiles (give or take the database names, etc.).
Here is my code in both cases:
create or replace procedure HJR_TEST
as
v_daykey_from number (10): = 13164.
v_text varchar2 (3000);
Start
Select cd.daykey. CD. CalendarDate in v_text
from the cds.cdsday CD,
CDS. Snapshot vsp
where vsp.daykey = cd.daykey
and cd.daykey > = v_daykey_from
and rownum < 2;
dbms_output.put_line (v_text);
end;
Work as an environment:
SQL > start
hjr_test;
end;
PL/SQL procedure successfully completed.
1318001/FEB/16
Run it in another environment:
Error from line: 18 in the command.
Start
hjr_test;
end;
Error report-
ORA-01008: not all variables
ORA-06512: at the 'JRH. HJR_TEST', line 7
ORA-06512: at line 2
01008 00000 - "not all variables.
* Cause:
* Action:
Same code; init.ora parameters; same version of the database. same o/s; different results.
Got clues as to where I should be looking for the trouble, please?
Concerning
JRH
Thought I better update the forum on this one.
This is a bug confirmed, although the bug report is not published.
There are cases where the optimizer calls kkpap do partition
pruning in the compilation. Sometimes to partition pruning is done in
subqueries running against the table. If the bind variables values
required to operate these subqueries, so we cannot do the pruning to
compile time.
The fix for the bug 14458214 fixed this problem in the case where the
subquery was used to carve at the partition level. However, it is
possible that use us another method at the level of the partition, and then use
pruning of subquery subpartition level; this case was not
addressed by the fix for 14458214.
The mentioned bug has a patch available in 11.2.0.4 and don't occur in 12 c. For some reason, I'm also made bug 17258090, but I see no content in this bug report. :-(
Possible solutions in 11.2.0.3 is to make a alter session set "_subquery_pruning_enabled" = false; ... but since X$ KSPPI lists _subquery_pruning_enabled as a hidden parameter, I guess you can also set it instance globally, although obviously the consequences for other queries would at this time must be evaluated very carefully.
-
Hello
I am trying to execute the sql and getting error ORA-01843 not valid for months to find the records that fall into the slot provided.
SELECT ZIP_cde FROM T_ZIP_CODE where ZIP_CDE_END_DTE = 12/31/9999 ';
Can you get it someone please let me know if something is wrong.
Thank you!
You must use to_date() with a suitable mask date or a date - literal example
Select to_date (' 31/12/9999 ',' mm/dd/yyyy'), dates' 9999-12-31 to double;
-
ORA-00947: not enough values error collect in bulk
Hi guys,.
I'm trying to COLLECT in a PL/SQL table, but I get ORA-00947: not enough values error message, even if the table has 4 values and select 4 values. Am I missing something?
I have to add something to this?
I've included the types of database objects that I created on the database.
I have commented on the Original code and used the table DOUBLE just to make simple workout.
/*
CREATE or REPLACE TYPE Usage_Groups_for_coda_rec as
object
(Usage_Group_ID NUMBER (10),)
Coda_comment VARCHAR2 (45).
Amount NUMBER,
Deduction_amount NUMBER);
CREATE OR REPLACE
TYPE USAGE_GROUPS_FOR_CODA_TAB AS
TABLE OF Usage_Groups_for_coda_rec;
*/
declare
-CURSOR c_adj_roy_trans
-EAST
-SELECT DISTINCT rotr.on_behalf_of_soc_nbr, rotr.right_type
-OF royalty_transaction rumble
-WHERE rotr.ps_adjust_royalty_flg = cm_default.get_yes;
CURSOR c_adj_roy_trans
IS
SELECT '052', 'P '.
DOUBLE;
t_uge_Grp_for_coda_tab USAGE_GROUPS_FOR_CODA_TAB; -the type of table was created on the database
Start
FOR r_adj_roy_trans IN c_adj_roy_trans LOOP
-SELECT rotr.usage_group_id as Usage_Group_ID,
-cm_coda_account_default.get_canc_adj_coda_comment | '- CAE' as Coda_comment,
-SUM (NVL (rotr.gross_amt, 0) + NVL (rotr.reciprocal_deduction_amt, 0)) as an amount
-SUM (rotr.reciprocal_deduction_amt) as Deduction_amount
-COLLECT LOOSE t_uge_Grp_for_coda_tab
-OF royalty_transaction rumble
-WHERE rotr.ps_adjust_royalty_flg = cm_default.get_yes
- AND rotr.on_behalf_of_soc_nbr = r_adj_roy_trans.on_behalf_of_soc_nbr
- AND rotr.right_type = r_adj_roy_trans.right_type
-Rotr.usage_group_id group;
SELECT 6874534 as Usage_Group_ID,
"This is a test - CAE" as Coda_comment.
100 as an amount
50 as Deduction_amount
LOOSE COLLECTION t_uge_Grp_for_coda_tab
DOUBLE;
/*
IF l_uge_Grp_for_coda_tab. COUNT > 0 THEN
cm002p.std_coda_post_cashing_out_bulk (p_on_behalf_of_society_number = > r_adj_roy_trans.on_behalf_of_soc_nbr,)
p_right_type = > r_adj_roy_trans.right_type,
p_Usage_Groups_for_coda_tab = > t_uge_Grp_for_coda_tab,
p_reverse_posting_direction = > FALSE,
p_posting_override_direction = > NULL,
p_cohi_id = > NULL
);
END IF;
*/
END LOOP;
end;
Here's what you need to do:
SELECT Usage_Groups_for_coda_rec(6874534, "It is a test - CAE", 100, 50)
LOOSE COLLECTION t_uge_Grp_for_coda_tab
DOUBLE;
You try bulk collect into a collection of Usage_Groups_for_coda_recs, then you will need to make type compatible using the implicit of the type constructor.
-
ORA-00947: not enough values to choose from
Hi all
I created the type object and its type of nested table to hold the values.
But am getting error as follows:
Connected to Personal Oracle Database 10g Release 10.2.0.1.0 Connected as hr SQL> SQL> create or replace type t_obj as object 2 ( id number, 3 dt date 4 ); 5 / Type created SQL> create or replace type t_obj_nt is table of t_obj; 2 / Type created SQL> set serveroutput on SQL> SQL> declare 2 l_tab t_obj_nt; 3 4 begin 5 6 select level,(sysdate+ level) into l_tab 7 from dual connect by level < 5; 8 9 dbms_output.put_line(l_tab.count); 10 end; 11 / declare l_tab t_obj_nt; begin select level,(sysdate+ level) into l_tab from dual connect by level < 5; dbms_output.put_line(l_tab.count); end; ORA-06550: line 8, column 3: PL/SQL: ORA-00947: not enough values ORA-06550: line 7, column 3: PL/SQL: SQL Statement ignored SQL>
Concerning
SID
CREATE or REPLACE type t_obj
AS
object
(
ID NUMBER,
DT DATE);
CREATE or REPLACE type t_obj_nt
IS
TABLE OF t_obj;
-Option 1
DECLARE
l_tab t_obj_nt;
BEGIN
-You get several lines.
SELECT t_obj (level, (sysdate + level)) in BULK COLLECT INTO l_tab FROM dual CONNECT BY level<>
dbms_output.put_line (l_tab. (Count);
END;
-
Porting of some former service C code for TUXEDO that used Informix to Oracle... a trial.
Service logic uses dynamic SQL to SQL and pre-compiler instructions to then run the
Statement and return to the client in the form of an XML doc.
Port is done now and during the test initial (after you have configured the TUXCONFIG, environment, Oracle DB, etc) am receiving an Oracle ORA-01012 not connected when the TUXEDO service routine tries to prepare the SQL SELECT statement.
The statement in question is a simple "SELECT * FROM EMP".
The server is defined in a group belonging to a group that has an OPENINFO string that connects to the Oracle DB. This seems to be the case I see the sqlplus using the view v$ session where the user sessions connect when servers of launch.
No idea why the EXEC SQL PREPARE is causing the server to disconnect from the DB?
THX.
W. MacKenzie
It was with the inclusion of the DB = orcl tag in my OPENINFO in the TUXCONFIG. Remove that and specify the database instance in the envfile for the configuration. Works now.
-
ORA-01843: not a valid month in sql loader
Hello. I am trying to insert data at the time of the date column type and send it a message ORA-01843: not one month valid.
My setup of ctl as follows:
(EDT) 1 ' TO_DATE (SUBSTR (: (EDT) 1, 1, 19), "yyyy-mm-dd hh24:mi:ss"), "
Nature of the data as follows:
19:43:52.0000000
Any help.
Concerning
Irfan
SQL > select TO_TIMESTAMP ('19:43:52.0000000 ','hh24:mi:ss.ff ') of double;
TO_TIMESTAMP ('19:43:52.0000000)
--------------------------------------------------------------------------------
01.11.13 19:43:52.000000000
SQL >
----
Ramin Hashimzade
-
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
-
I get these errors after updating, could you please review and advise.
Errors in the /d04/schval/product/10.2.0/admin/SCHVALS1/bdump/schvals1_j000_8224.trc file:
ORA-12012: error on auto work 2160513
ORA-06576: not a function or a procedure valid name
Sun 23 Jun 19:02:55 CDT 2013
Errors in the /d04/schval/product/10.2.0/admin/SCHVALS1/bdump/schvals1_j001_8463.trc file:
ORA-12012: error on auto work 2160514
ORA-06576: not a function or a procedure valid name
Sun 23 Jun 19:03:53 CDT 2013
Errors in the /d04/schval/product/10.2.0/admin/SCHVALS1/bdump/schvals1_j001_8463.trc file:
ORA-12012: error on auto work 2160514
ORA-06576: not a function or a procedure valid name
Sun 23 Jun 19:03:53 CDT 2013
Errors in the /d04/schval/product/10.2.0/admin/SCHVALS1/bdump/schvals1_j001_8463.trc file:
ORA-12012: error on auto work 2160513
ORA-06576: not a function or a procedure valid name
Sun 23 Jun 19:04:53 CDT 2013
Errors in the /d04/schval/product/10.2.0/admin/SCHVALS1/bdump/schvals1_j001_8463.trc file:
ORA-12012: error on auto work 2160514
ORA-06576: not a function or a procedure valid name
Sun 23 Jun 19:04:53 CDT 2013
Errors in the /d04/schval/product/10.2.0/admin/SCHVALS1/bdump/schvals1_j001_8463.trc file:
ORA-12012: error on auto work 2160513
ORA-06576: not a function or a procedure valid name
Checked the DB links are working properly
DB DB link: where I get these errors
SQL > select count (*) from [email protected] ;
COUNT (*)
----------
61233
the ERP DB
APPS-VAL1 > select count (*) from [email protected] ;
COUNT (*)
----------
439
If I try to run it manually, I am getting error below.
DBMS_SCHEDULER BEGIN. RUN_JOB ("SCHEDULE_REQUEST_DEQUEUE", TRUE); END;
*
ERROR on line 1:
"ORA-27475: ' XXSAP. SCHEDULE_REQUEST_DEQUEUE' must be work
ORA-06512: at "SYS." DBMS_ISCHED", line 150
ORA-06512: at "SYS." DBMS_SCHEDULER', line 441
ORA-06512: at line 1
SQL > SELECT master, job_name, error # FROM dba_scheduler_job_run_details
WHERE error # LIKE '% 6576% '; 2
OWNER
------------------------------
JOB_NAME
--------------------------------------------------------------------------------
ERROR #.
----------
SYS
SCHEDULING_LOCATION_UPDATE
6576
SYS
SCHEDULE_REQUEST_DEQUEUE
6576
OWNER
------------------------------
JOB_NAME
--------------------------------------------------------------------------------
ERROR #.
----------
SYS
SCHEDULE_REQUEST_DEQUEUE
6576
SQL > select job, what from dba_jobs where broken = 'Y' or chess > 0;
no selected line
LOG_DATE STATUS JOB_NAME
--------------------------------------------------------------------------- ------------------------------ ----------------------------------------
23 JUNE 13 11.37.53.128960 AM - 07:00 IS NOT SCHEDULING_NOTIFICATION_UPDATE
23 JUNE 13 11.37.54.619584 AM - 07:00 IS NOT SCHEDULE_REQUEST_DEQUEUE
23 JUNE 13 11.38.53.728264 AM - 07:00 IS NOT SCHEDULE_REQUEST_DEQUEUE
23 JUNE 13 11.39.53.830833 AM - 07:00 IS NOT SCHEDULE_REQUEST_DEQUEUE
23 JUNE 13 11.40.53.929791 AM - 07:00 IS NOT SCHEDULE_REQUEST_DEQUEUE
23 JUNE 13 11.41.54.047578 AM - 07:00 IS NOT SCHEDULE_REQUEST_DEQUEUE
23 JUNE 13 11.42.53.273320 AM - 07:00 IS NOT SCHEDULING_NOTIFICATION_UPDATE
23 JUNE 13 11.43.53.529692 AM - 07:00 IS NOT SCHEDULE_REQUEST_DEQUEUE
23 JUNE 13 11.44.53.628774 AM - 07:00 IS NOT SCHEDULE_REQUEST_DEQUEUE
23 JUNE 13 11.45.53.739038 AM - 07:00 IS NOT SCHEDULE_REQUEST_DEQUEUE
23 JUNE 13 11.46.53.848009 AM - 07:00 IS NOT SCHEDULE_REQUEST_DEQUEUE
LOG_DATE STATUS JOB_NAME
--------------------------------------------------------------------------- ------------------------------ ----------------------------------------
23 JUNE 13 11.47.57.220078 AM - 07:00 IS NOT SCHEDULE_REQUEST_DEQUEUE
23 JUNE 13 11.48.53.329549 AM - 07:00 IS NOT SCHEDULE_REQUEST_DEQUEUE
3324 selected lines.
SQL > 1
1 * Select log_date, status, JOB_NAME from dba_scheduler_job_run_details where status = 'in FAILURE. "
Thank you
Vincent
I suggest you to move (i.e. rebuild) jobs in the XXSAP scheme rather than use the SYS schema. In this way, you can run "BEGIN DBMS_SCHEDULER. RUN_JOB' to XXSAP correctly.
Hemant K Collette
Maybe you are looking for
-
I did something to the internet explorer, so I need to download Firefox, but I can't get the dialog box or instructions on http://www.mozilla.org/en-US/firefox/new/Help, please!
-
Chat and IM Notifications does not work on iPhone.
I really need an email. And don't give me a link to the Skype Web site * beep * I can't find any help there, need me just a site that does not exist. I have a really bad problem and you would like an Email, so I could get help. I don't get notificati
-
maximum VGA resolution on mac mini
Hello. We bought a mac mini to run experiments with an old SONY trinitron CRT. Before, we used an old mac pro with an adapter DVI to VGA and could go up to 1280 x 960 at 100 Hz. Now, with the new mac mini (model 2.6 GHz) and mini-Display to VGA, we c
-
How to file save (generate) directly in PDF format?
Hello I want to save my file after running directly in PDF format, it can possible? We hear usually after a run all data are stored in taxt Formate file directly, but I want to save this data in in PDF Formate instead of the text file. Here as an att
-
I get the error code 626 when you retrieve a windows update. I have vista professional. The update does not and shows this error code. Update contues icon to show in my system tray. Very frustrating. I tried all the fixes I found by searching for the