HELP to ' SQL error: ORA-00937: not a function of simple-group.
< p >Hello world:
I have a forum based on oracle 11g database. There two tables: article of thread and the relationship between the two is "one-to-many.
I want to list the total number of seen of all the discussions in each section, and I write the sql code:
Select s.secname, sum (sum1) of join of s section
(select secid, sum1 sum (thrviewednum) of the Group of threads by secid) tt WE s.secid = tt.secid;
The 'secid' column is the pharmacokinetics of the section table and FK of the table of thread, the "thrviewednum" the number of views of a thread.
But I get the error:
Error in the command line: 1 column: 7
Error report:
SQL error: ORA-00937: not a function of simple-group
I can't understand the problem, could someone help me? Thank you.
< /p >
Hello
Use this
Select s.secname, sum (sum1) of join of s section
(select secid, sum1 sum (thrviewednum) of the thread by secid group) THE group s.secid tt = tt.secid by s.secname;
This is because the select statement contains a column that is not part of any group function, so this column must be there in the group by clause
Concerning
Tags: Database
Similar Questions
-
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;
-
PL/SQL error ORA-00904 not no projection in Oracle SQL Developer
Hello
I am new to Oracle and the different development tools available.
Using Oracle SQL Developer, we encountered a scenario where a PL/SQL package doesn't compile, but it only displays the warnings in the log of the compiler.
The packeage even when it is compiled using PL/SQL Navigator shows a much more detailed list of errors and highlights the real problem.
Why Oracle SQL Developer does not show the following error?
PL/SQL: ORA-00904: "SERIAL_LINE_ID": invalid identifier
Concerning
AdrianThere are various settings that you can give to messages. (for example, information, warning, severe).
Tools-PL/SQL compiler options.
Normally, just the first 20 messages are displayed.
Change the code to get rid of the warning messages or change settings to ignore the information and warning messages.P.S. There is a dedicated forum sqldeveloper where your question should really be displayed.
Published by: Keith Jamieson on March 9, 2009 13:45
-
Not a function of simple-group
I have the following case statement:
How can I go about inserting another in the instruction box above, b/c the way I coded it currently throws a "not a single group group function."select (case max (country_desc) when 'England' then 'British' when 'Italy' then 'Italian' when 'Germany' then 'German' when 'France' then 'French' when 'Spain' then 'Spanish' else country_desc end) country_desc from xtable where id = 200839;
-
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
-
Hi all
I am a newbie to Oracle and I am faced with the above error. Please see the below code snippets. Can someone please tell what I am doing wrong? Thank you in advance.
Thank you
CREATE TABLE ABC
(
ID VARCHAR2 ENABLE NUMBER NOT NULL,
FIELD1 ACTIVATE THE NUMBER NOT NULL,
FIELD2 ACTIVATE THE VARCHAR2 (8 BYTE) NOT NULL,
CONSTRAINT JOB_PK PRIMARY KEY (ID)
)
;
CREATE TABLE XYZ
(
ACTIVATE THE NUMBER 4 R_ID NOT NULL,.
ID VARCHAR2 ENABLE NUMBER NOT NULL,
Column1 NUMBER (2.0) default 0.00,.
Column2 NUMBER (2.0) default 0.00,.
COLUMN3 NUMBER (2.0).
NUMBER (2.0) TOTAL 0.00 default.
CONSTRAINT TRIP_PAYMENT_PK PRIMARY KEY (ID)
)
;
create or replace trigger trigger1
After Insert on XYZ
for each line
Declare
number of newTotal;
Start
newTOTAL: =: new. Column1 +: new. Column2 +: new. COLUMN3;
setting a day of XYZ together Total = newTotal;
end;
Insert into ABC (1, 45, ' Demo');
insertion in XYZ (1, 1, 12.50, 10.20 33,50, ");
Error report:
SQL error: ORA-04091: table XYZ is changing, function of triggering/can not see
Try one before line
create or replace trigger trigger1
before inserting on XYZ
for each line
Start
: new. TOTAL: =: new. Column1 +: new. Column2 +: new. COLUMN3;
end; -
SQL error: ORA-01840: value not long enough for the format of the date of entry
It is a delete SQL in a driver of demand, which gives no error, but does remove all the lines either. I have converted the removal 'from' to ' Select * ' and may see the following error:
Select * FROM PS_GPDE_DV_TRIG40 WHERE EXISTS (SELECT FROM 'X'
PS_GPDE_DV_ELIG_MO ELG WHERE ELG. EMPLID = PS_GPDE_DV_TRIG40. EMPLID AND
ELG. EMPL_RCD = PS_GPDE_DV_TRIG40. EMPL_RCD AND TO_DATE (TO_CHAR (ELG. PRD_END_DT
"YYYY"). TO_CHAR (ELG. PRD_END_DT, "MM"). '01', "YYYY-MM-DD") =.
PS_GPDE_DV_TRIG40. GPDE_DV_EVT_EFFDT AND ELG. CAL_RUN_ID = "CAL_0812")
Error report:
SQL error: ORA-01840: value not long enough for the format of the date of entry
The interesting thing is that if I attach a condition of emplid, then the SQL above does not give an error and return lines:
Select * FROM PS_GPDE_DV_TRIG40 WHERE EXISTS (SELECT FROM 'X'
PS_GPDE_DV_ELIG_MO ELG WHERE ELG. EMPLID = PS_GPDE_DV_TRIG40. EMPLID AND
ELG. EMPL_RCD = PS_GPDE_DV_TRIG40. EMPL_RCD AND TO_DATE (TO_CHAR (ELG. PRD_END_DT
"YYYY"). TO_CHAR (ELG. PRD_END_DT, "MM"). '01', "YYYY-MM-DD") =.
PS_GPDE_DV_TRIG40. GPDE_DV_EVT_EFFDT AND ELG. CAL_RUN_ID = "FM_CG_0812")
and emplid = "1234"
now, if the number of lines is identified (by giving more number of emplids), it begins to give the error when the number of rows returned is greater than about 30. It is completely independent of what employee is used, so there is no question of data dependence.
Function optimizer cost is off and a subquery nest is off on the init.ora file
subquery UNNEST= false
optimizercost_based_transformation = off
I don't know if it has something to do with this problem.
Explanations would be welcome!
Thank you
VikasI think it is question of data combined with a not very sensible date format mask (it could fail when the null data, because of your concatenation with '01' and work when not null data).
Have you tried with a simple TRUNC?Your code:
...TO_DATE(TO_CHAR(ELG.PRD_END_DT, 'YYYY') || TO_CHAR(ELG.PRD_END_DT , 'MM') || '01' , 'YYYY-MM-DD') =PS_GPDE_DV_TRIG40.GPDE_DV_EVT_EFFDT...
After change:
...TRUNC(ELG.PRD_END_DT , 'MM') =PS_GPDE_DV_TRIG40.GPDE_DV_EVT_EFFDT...
Nicolas.
-
SQL error: ORA-31038: invalid number '420,05' when extracting data from XML
Hello everyone ,
J’ai créé dietingDBMS_XMLSCHEMA. REGISTERSCHEMA (SCHEMAURL = > 'OrdenDetalle.xsd', SCHEMADOC = > ' <? xml version = "1.0" encoding = "UTF?) 8 "? >
" < xs: schema xmlns: XS =" http://www.w3.org/2001/XMLSchema ">
< xs: element name = "Monsigniore" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "Quantity" type = "Integer" / >
< xs: element name = "FechaCreacion" type = "xs: DateTime" / >
< xs: element name = "Version" type = "xs: String" / >
< xs: ELEMENT ref = "News" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< xs: element name = "News" >
< xs: complexType >
< xs: Choice >
< xs: element name = "OrdenCompra" type = "T_OrdenCompra" / >
< / xs: Choice >
< / xs: complexType >
< / xs: element >
< name XS: complexType = "T_OrdenCompra" >
< xs: SEQUENCE >
< xs: element name = "Code" type = "xs: String" / >
< xs: element name = "Number" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoEstado" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoLicitacion" type = "xs: String" nillable = "true" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Description" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoTipo" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Type" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "TipoMoneda" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "State" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoEstadoProveedor" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "EstadoProveedor" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: ELEMENT ref = "Fechas" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "TieneItems" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "PromedioCalificacion" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CantidadEvaluacion" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Well" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Freighters" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "TotalNeto" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "PorcentajeIva" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Impuestos" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Total" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Financing" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Country" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "TipoDespacho" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FormaPago" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: ELEMENT ref = "Comprador" minOccurs = "0" maxOccurs = "1" / >
< xs: ELEMENT ref = "Proveedor" minOccurs = "0" maxOccurs = "1" / >
< xs: ELEMENT ref = "Items" minOccurs = "0" maxOccurs = "1" / >
< / xs: SEQUENCE >
< / xs: complexType >
< xs: element name = "Items" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "Quantity" type = "Integer" / >
< xs: element name = "News" >
< xs: complexType >
< xs: SEQUENCE >
< xs: ELEMENT ref = "Item" minOccurs = "0" maxOccurs = "unbounded" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< name XS: complexType = "OrdenCompraBusqueda" >
< xs:complexContent >
< xs:extension base = "T_OrdenCompra" >
< / xs:extension >
< / xs:complexContent >
< / xs: complexType >
< xs: element name = "Item" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "Correlativo" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoCategoria" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Category" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoProducto" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Product" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "EspecificacionComprador" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "EspecificacionProveedor" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Quantity" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Moneda" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
"< xs: element name ="PrecioNeto"type ="XS: Decimal"minOccurs ="0"maxOccurs ="1"/ >
< xs: element name = "TotalCargos" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "TotalDescuentos" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "TotalImpuestos" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Total" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< xs: element name = "Fechas" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "FechaCreacion" type = "xs: DateTime" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FechaEnvio" type = xs: DateTime "" nillable = "true" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FechaAceptacion" type = xs: DateTime "" nillable = "true" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FechaCancelacion" type = xs: DateTime "" nillable = "true" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FechaUltimaModificacion" type = xs: DateTime "" nillable = "true" minOccurs = "0" maxOccurs = "1" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< xs: element name = "Comprador" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "CodigoOrganismo" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "NombreOrganismo" type = "xs: String" nillable = "true" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "RutUnidad" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoUnidad" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "NombreUnidad" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Activity" type = "xs: String" nillable = "true" / >
< xs: element name = "DireccionUnidad" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "ComunaUnidad" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "RegionUnidad" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Country" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "NombreContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CargoContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FonoContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "MailContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< xs: element name = "Proveedor" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "Code" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Number" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Activity" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoSucursal" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "NombreSucursal" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "RutSucursal" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Address" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Comuna" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Region" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Country" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "NombreContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CargoContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FonoContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "MailContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< / xs: Schema >
', LOCAL = > true, GENTYPES = > false, GENBEAN = > false, GENTABLES = > false,
FORCE = > false, OPTIONS = > DBMS_XMLSCHEMA. REGISTER_BINARYXML, OWNER = > USER);
I have a table with one xml domain.
CREATE TABLE XML_Orden_Detalle (Fecha_GET date default current_date not null,
Fecha_Ordenes number not null,
Correlativo_Ordenes number not null,
Codigo_Orden varchar2 (20) not not null primary key,
Cant_Item,
Date of InicioProceso,
Date of FinProceso,
Xmltype Orden_Detalle not null)
Orden_Detalle XMLTYPE COLUMN
STORE AS BINARY XML
XMLSCHEMA " " http://xmlns.Oracle.com/xdb/schemas/CCS_XML/OrdenDetalle.xsd "" "
ELEMENT "command";
I inserted data like that, without any Errors:" < Command containing = ' http://www.w3.org/2001/XMLSchema "" xmlns: xsi = " " http://www.w3.org/2001/XMLSchema-instance ">
< Number > 1 < / quantity >
< FechaCreacion > 2015-05-28T 12: 10:26.947000 < / FechaCreacion >
v1 < version > < / Version >
< Return >
< OrdenCompra xsi: type = "OrdenCompraBusqueda" >
3879-2661-SE14 < code > < / code >
< Number > PSP DAEM 2014. COFFEE BREAK PARA FRINGE OP21838 < / number >
< CodigoEstado > 6 < / CodigoEstado >
3902 5-on 14 < CodigoLicitacion > < / CodigoLicitacion >
< Description > PSP DAEM 2014. COFFEE BREAK PARA FRINGE OP21838 < / description >
< CodigoTipo > 8 < / CodigoTipo >
< Type > SE < / Type >
< TipoMoneda > CLP < / TipoMoneda >
Is < State > < / Estado >
< CodigoEstadoProveedor > 4 < / CodigoEstadoProveedor >
Is < EstadoProveedor > < / EstadoProveedor >
< Fechas >
< FechaCreacion > 2014-12-29T 17: 43:32.287000 < / FechaCreacion >
< FechaEnvio > 2014-12-31T 10: 32:35.480000 < / FechaEnvio >
< FechaAceptacion > 2015 - 01-01 T 21: 03:03.660000 < / FechaAceptacion >
< FechaCancelacion xsi: Nil = "true" / >
< FechaUltimaModificacion > 2014-12-29T 17: 51:00.000000 < / FechaUltimaModificacion >
< / Fechas >
< TieneItems > 1 < / TieneItems >
< PromedioCalificacion > 5 < / PromedioCalificacion >
< CantidadEvaluacion > 1 < / CantidadEvaluacion >
< Well > 0 < / well >
cargo <>0 < / cargo >
< TotalNeto > 53782 < / TotalNeto >
< PorcentajeIva > 19 < / PorcentajeIva >
< Impuestos > 10218 < / Impuestos >
< total > 64000 < / Total >
< Financing > 1140569 < / financing >
< Country > CL < / Pais >
< TipoDespacho > 12 < / TipoDespacho >
< FormaPago > 2 < / FormaPago >
< comprador >
< CodigoOrganismo > 118069 < / CodigoOrganismo >
< NombreOrganismo > Ilustre municipalidad of Bulnes < / NombreOrganismo >
< RutUnidad > 69.141.200 - 8 < / RutUnidad >
< CodigoUnidad > 4799 < / CodigoUnidad >
Daem < NombreUnidad > < / NombreUnidad >
< Actividad / >
< DireccionUnidad > VICTOR BIANCHI Nº415 < / DireccionUnidad >
Bulnes < ComunaUnidad > < / ComunaUnidad >
< RegionUnidad > Region del Biobio < / RegionUnidad >
< Country > CL < / Pais >
Antonella Brunetti < NombreContacto > < / NombreContacto >
Adquisiciones < CargoContacto > < / CargoContacto >
< FonoContacto > 56-42-2204053-2204054 < / FonoContacto >
< MailContacto > [email protected] < / MailContacto >
< / comprador >
< Proveedor >
< Code > 275020 < / code >
Luis < number > < / number >
< Activity > MANUFACTURING OF PAN, BLOCK PANADERIA Y PRODUCTOS < / activity >
< CodigoSucursal > 280820 < / CodigoSucursal >
Luis < NombreSucursal > < / NombreSucursal >
< RutSucursal > 5.940.940 - 9 < / RutSucursal >
< Address > Carlos Palacios 125 < / address >
Bulnes < Comuna > < / Comuna >
Region del Biobio < region > < / region >
< Country > CL < / Pais >
< NombreContacto > Luis Leonardo Valdés Landero < / NombreContacto >
Gerente < CargoContacto > < / CargoContacto >
< FonoContacto > (56) (42) 631498 < /FonoContacto >
< MailContacto > [email protected] < / MailContacto >
< / Proveedor >
elements <>
< Quantity > 7 < / quantity >
< Return >
< item >
< Correlativo > 1 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
< EspecificacionComprador > 3 LITROS BEBIDAS < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 10 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto > 1550 < / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 15500 < / Total >
< / point >
< item >
< Correlativo > 2 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
< EspecificacionComprador > DEEMED OF 1 1/2 LITYROS < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 10 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto > 1150 < / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 11500 < / Total >
< / point >
< item >
< Correlativo > 3 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
< EspecificacionComprador > PACKAGES SERVILLETAS < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 8 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto > 170 < / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 1360 < / Total >
< / point >
< item >
< Correlativo > 4 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
< EspecificacionComprador > pounds OF AZÚCAR < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 5 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto > 580 < / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 2900 < / Total >
< / point >
< item >
< Correlativo > 5 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
< EspecificacionComprador > NESCAFE < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 2 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto > 3900 < / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 7800 < / Total >
< / point >
< item >
< Correlativo > 6 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
< EspecificacionComprador > CAJAS OF TE 20 BOWL < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 5 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto > 340 < / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 1700 < / Total >
< / point >
< item >
< Correlativo > 7 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
TRITON GALLETAS < EspecificacionComprador > < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 31 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto >420,05< / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 13021,550000000001 < / Total >
< / point >
< / News >
< / object >
< / OrdenCompra >
< / News >
< / Monsigniore >
However when I extract data, for example:
Select *.
from xmltable (to_char (' / Monsigniore/news/OrdenCompra/Items/News/Item[1] ''))
passage (select Orden_Detalle
of xml_Orden_Detalle
where Fecha_Ordenes = 20150101 and Correlativo_ordenes = 83)
path of columns Correlativo varchar2 (15) 'Correlativo '.
, Path of varchar2 (15) CodigoCategoria 'CodigoCategoria '.
, Path Categoria Varchar2 (100 CHAR) "category.
, Path of varchar2 (15) CodigoProducto 'CodigoProducto '.
, Path of Producto Varchar2 (100 CHAR) 'product '.
, Path of the EspecificacionComprador Varchar2 (100 CHAR) "EspecificacionComprador".
, Path of the EspecificacionProveedor Varchar2 (100 CHAR) "EspecificacionProveedor".
, Amount varchar2 (15) path 'amount '.
, Path of the Moneda Varchar2 (16 CHAR) "Moneda".
, Path of varchar2 (15) PrecioNeto 'PrecioNeto '.
, Path of varchar2 (15) TotalCargos 'TotalCargos '.
, Path of varchar2 (15) TotalDescuentos 'TotalDescuentos '.
, Path of varchar2 (15) TotalImpuestos 'TotalImpuestos '.
, Path of varchar2 (15) total 'Total '.
);
delivery the following error:
Informed of error:
SQL error: ORA-31038: Valor number no valido: "420,05."
«31038 00000 - "value not valid %s: \"%s\»»
* Cause: The text in the XML document does not represent a valid
value given the data type and other constraints in the schema.
* Action: Make sure the value specified in the XML documents is valid
regarding the data type and other constraints in the schema.
Note that extract le agenda [1] but the reported error is à la point [7]
Please If anyone can Help me with le solution for no report error
Thank you very much in advanceCarlosin Chile, the decimal point are ', 'no'.', the xml data table is OK for us
You do not understand.
Regardless of the locale, numeric values limited by a type of data XS: Decimal must use a point in a correct XML representation, otherwise, the document is not valid by the XSD.
(3) TO_CHAR (...) the code is part of a procedure
Again, do NOT build a dynamic path like that.
Why not just move through the records returned by the query (if you need close at all)?
FOR rec in)
SELECT x.*
From your_table t
XMLTABLE (...) x
)
LOOP
END LOOP;
What is the role of the v_CantItems variable? Paging?
Whence its value?
-
SQL error: ORA-01873: the interval leading precision is too small
Hello
My requirement is to get the current timestamp in the format microsec Epoch.
I am trying to execute the following query
Select (CAST (((current_timestamp-TO_DATE (1er janvier 1970 00:00:00 ', ' 'JJ-MM-AAAA HH24:MI:SS)) * 24 * 60 * 60 * 1000000) AS varchar (32))) as "dt" from dual;))
I get the following error
Error from the 1 in the command line:
Select (CAST (((current_timestamp-TO_DATE (1er janvier 1970 00:00:00 ', ' 'JJ-MM-AAAA HH24:MI:SS)) * 24 * 60 * 60 * 1000000) AS varchar (32))) as double 'dt'))
Error report:
SQL error: ORA-01873: the interval leading precision is too small
01873 00000 - "the interval leading precision is too small."
* Cause: The precision of the interval leading is too small to store the
specified interval.
* Action: Increase the accuracy of foreground of the interval or specify a
meantime, with smaller leading precision.
But if I tried to do
Select (CAST (((sysdate-TO_DATE (1er janvier 1970 00:00:00 ', ' 'JJ-MM-AAAA HH24:MI:SS)) * 24 * 60 * 60 * 1000000) AS varchar (32))) as "dt" from dual;))
works fine, but I get the bad epochtime sysdate has no time zone information.
Please help me how to do the first query to work so that I can get the current_timestamp change to gmt and convert it in time.
Please let me know if there is another way to get the Epochtime.Depending on whether you want to or not to include the fraction of a second use:
with t as ( select current_timestamp at time zone 'gmt' - to_timestamp_tz('01/01/1970 00:00:00 GMT','MM-DD-YYYY HH24:MI:SS TZR') interval_diff, cast(current_timestamp at time zone 'gmt' as date) - to_date('01/01/1970 00:00:00', 'MM-DD-YYYY HH24:MI:SS') num_diff from dual ) select cast( ( ( ( extract(day from interval_diff) * 24 + extract(hour from interval_diff) ) * 60 + extract(minute from interval_diff) ) * 60 + extract(second from interval_diff) ) * 1000000 AS varchar(32) ) as "ts", cast(num_diff * 24 * 60 * 60 * 1000000 AS varchar(32)) as "dt" from t / ts dt -------------------- -------------------- 1336237158093000 1336237158000000 SQL>
SY.
-
Get an error SQL Error: ORA-01407:
Hi all
When iam trying to remove some rows from a table, iam getting the following error:
Error from the 1 in the command line:
delete from cu_cdm_svc_job_STEP where SVC_JOB_KEY = 292
Error report:
SQL error: ORA-01407: cannot update ("FACETS_CUSTOM". "" "" CDM_SVC_JOB_STEP '. "" SVC_JOB_KEY') with the NULL value
01407 00000 - "can not update (%s) null.
* Cause:
* Action:
Kindly help. Thanks in advance.Hello and welcome!
You have foreign keys hanging out, doing so ON DELETE SET NULL?
-
whenever I run this code I get this error
SQL Error: ORA-30926: failed to get a stable set of rows in the source tables
30926 00000 - "impossible to get a stable set of rows in the source tables.
* Cause: A stable set of rows could not be achieved due to the large dml
activity or one not deterministic where clause.
* Action: Remove any non deterministic of the clauses and reissue of the dml.
Don't know wht goes wrong!
SQL:
MERGE IN VENDORS_ACTIVE_DATE s
USING (nvl (d.VENDOR, s.VENDOR) selection of the SELLER,
NVL (d.COMPANY_CODE, s.COMPANY_CODE) COMPANY_CODE.
(case when ((d.VENDOR = s.VENDOR) and (d.COMPANY_CODE = s.COMPANY_CODE)))
)
then "MATCH".
When d.COMPANY_CODE is null
then 'DELETE '.
When s.COMPANY_CODE is null
then "INSERT."
else 'UPDATE '.
chck end)
from (select * from VENDORS_ACTIVE_DATE where COMPANY_CODE = 2) s
full outer join (select * provider where COMPANY_CODE = 2) d
on (d.COMPANY_CODE = s.COMPANY_CODE AND s.COMPANY_CODE = 2)
) d
WE (d.COMPANY_CODE = s.COMPANY_CODE AND d.chck in ('UPDATE', 'GAME', 'DELETE'))
WHEN MATCHED THEN
UPDATE SET s.VENDOR = d.VENDOR
WHERE d.chck in ('UPDATE', 'DELETE')
DELETE WHERE d.chck = 'DELETE '.
WHEN NOT MATCHED THEN
INSERT (SELLER, COMPANY_CODE)
VALUES (d.VENDOR, d.COMPANY_CODE)
Work request: (deleted the duplicate data in tables (source and target))
MERGE IN VENDORS_ACTIVE_DATE s
USING (nvl (d.VENDOR, s.VENDOR) selection of the SELLER,
NVL (d.ACTIVEDATE, s.ACTIVEDATE) ACTIVEDATE.
NVL (d.COMPANY_CODE, s.COMPANY_CODE) COMPANY_CODE.
(case when ((d.VENDOR = s.VENDOR))
- AND D.ACTIVEDATE = S.ACTIVEDATE
and NVL (d.ACTIVEDATE, trunc (sysdate)) = NVL (s.ACTIVEDATE, trunc (sysdate))
and (d.COMPANY_CODE = s.COMPANY_CODE)
)
then "MATCH".
When d.COMPANY_CODE is null
then 'DELETE '.
When s.COMPANY_CODE is null
then "INSERT."
else 'UPDATE '.
chck end)
from (select * from suppliers where COMPANY_CODE = 2) d
full outer join (select * from vendors_active_date where COMPANY_CODE = 2) s
on (d.COMPANY_CODE = s.COMPANY_CODE and s.vendor = d.vendor)
) d
WE (d.COMPANY_CODE = s.COMPANY_CODE AND d.VENDOR = s.VENDOR AND d.chck in ('UPDATE', 'GAME', 'DELETE'))
WHEN MATCHED THEN
S.ACTIVEDATE = UPDATE SET d.ACTIVEDATE
WHERE d.chck in ('UPDATE', 'DELETE')
DELETE WHERE d.chck = 'DELETE '.
WHEN NOT MATCHED THEN
INSERT (VENDOR, ACTIVEDATE, COMPANY_CODE)
VALUES (d.VENDOR, d.ACTIVEDATE, d.COMPANY_CODE)
-
SQL error: ORA-01031: insufficient privileges
I am trying to create a view. I logged as a DBA. Please suggest.
create or replace view tspace_vw as
SELECT tablespace_name,
Total_Size 'Total_Size (MB).
Free_space "Free_Space (MB).
(Total_size - free_space) "USED_SPACE (MB).
round (((Total_size-Free_Space)/Total_size) * 100, 2) | ' %' "% USED.
DE)
SELECT a.tablespace_name,
Round(sum(a.bytes)/1024/1024,2) Total_Size,.
Round(sum(b.free_bytes)/1024/1024,2) free_space
FROM dba_data_files a, (SELECT file_id, SUM (bytes) free_bytes
FROM dba_free_space
GROUP BY file_id
) b
WHERE a.file_id = b.file_id
and nom_tablespace not in ('SYSTEM', 'SYSAUX', 'UNDOTBS1', 'TEMP')
GROUP BY a.tablespace_name
)
ORDER BY nom_tablespace;
================================================
SQL error: ORA-01031: insufficient privileges
01031 00000 - "insufficient privileges".
978487 wrote:
I am trying to create a view. I logged as a DBA. Please suggest.
SQL error: ORA-01031: insufficient privileges
01031 00000 - "insufficient privileges".
You must grant the right to SELECT user views the two system.
>
Grant select on dba_data_files Scott;
Grant select on dba_free_space Scott;
>
I'm assuming that "connected is a DBA" means that you granted the DBA role to the user. But you need to grant privileges directly so that they are able to create a view.
See CREATE VIEW in the doc of the SQL language
http://docs.Oracle.com/CD/B28359_01/server.111/b28286/statements_8004.htm
>
The owner of the schema containing the view must have the necessary privileges to either select, insert, update, or delete rows from all tables or views on which the opinion is based. The owner must grant these privileges directly, rather than through a role.
>
-
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
-
java.sql.SQLDataException: ORA-01843: not one month valid
We have deployed a custom page that is displayed correctly, but results in the error below when you try to run the search. This happens for all users except one. We have a user who is not the error message and can run the query and display the results.
Everyone ran into an issue similar to this.
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 ContactEO.PERSON_ID,
ContactEO.EMPLOYEE_NUMBER,
ContactEO.FULL_NAME,
ContactEO.JOB_CODE,
ContactEO.LOCATION_NAME,
ContactEO.SUPERVISOR_NAME,
Decode (ManageContactEO.EMPLOYEE_ID, NULL, NULL, 'Y') AS FIRST_APPROVER,
ManageContactEO.INVOICE_CONTACT_ID,
ManageContactEO.INVOICE_CONTACT_CODE
OF CSXXX_CS_EMPLOYEE_LIST_V ContactEO
Join CSCUSTOM. CSXXX_CS_AP_INVOICE_CONTACTS ManageContactEO
On ContactEO.PERSON_ID = ManageContactEO.Employee_ID (+)) QRSLT WHERE ((UPPER (LOCATION_NAME) as UPPER(:1) AND (LOCATION_NAME like: 2 OR LOCATION_NAME as: 3 OR LOCATION_NAME as: 4 OR LOCATION_NAME as: 5)))
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:912)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1169)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2978)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1875)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
in OA. jspService(_OA.java:212)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
to oracle.oc4j.network.ServerSocketReadHandler$ SafeRunnable.run (ServerSocketReadHandler.java:260)
to com.evermind.util.ReleasableResourcePooledExecutor$ MyWorker.run (ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:619)
# # 0 in detail
java.sql.SQLDataException: ORA-01843: not one month valid
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:395)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:802)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:205)
at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:861)
at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1145)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1267)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3449)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3493)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491)
at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:860)
at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:669)
at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3723)
at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection (unknown Source)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4560)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:743)
at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:892)
at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:806)
at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:800)
at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3643)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:439)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.initQuery(OAViewObjectImpl.java:743)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.setCriteriaOnVO(OAWebBeanHelper.java:2334)
at oracle.apps.fnd.framework.webui.OAQueryHelper.handleSubmitButton(OAQueryHelper.java:2871)
at oracle.apps.fnd.framework.webui.OAQueryHelper.processFormRequestAfterController(OAQueryHelper.java:1292)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:851)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
at oracle.apps.fnd.framework.webui.OAQueryHelper.processFormRequest(OAQueryHelper.java:1029)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1205)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2974)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1875)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
in OA. jspService(_OA.java:212)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
to oracle.oc4j.network.ServerSocketReadHandler$ SafeRunnable.run (ServerSocketReadHandler.java:260)
to com.evermind.util.ReleasableResourcePooledExecutor$ MyWorker.run (ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:619)
java.sql.SQLDataException: ORA-01843: not one month valid
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:395)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:802)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:205)
at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:861)
at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1145)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1267)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3449)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3493)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491)
at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:860)
at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:669)
at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3723)
at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection (unknown Source)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4560)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:743)
at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:892)
at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:806)
at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:800)
at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3643)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:439)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.initQuery(OAViewObjectImpl.java:743)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.setCriteriaOnVO(OAWebBeanHelper.java:2334)
at oracle.apps.fnd.framework.webui.OAQueryHelper.handleSubmitButton(OAQueryHelper.java:2871)
at oracle.apps.fnd.framework.webui.OAQueryHelper.processFormRequestAfterController(OAQueryHelper.java:1292)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:851)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
at oracle.apps.fnd.framework.webui.OAQueryHelper.processFormRequest(OAQueryHelper.java:1029)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1205)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2974)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1875)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
in OA. jspService(_OA.java:212)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
to oracle.oc4j.network.ServerSocketReadHandler$ SafeRunnable.run (ServerSocketReadHandler.java:260)
to com.evermind.util.ReleasableResourcePooledExecutor$ MyWorker.run (ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:619)java.sql.SQLDataException: ORA-01843: not one month valid
Check the date format in THE CSXXX_CS_EMPLOYEE_LIST_V and make sure it is correct (or convert you it correctly).
OERR: ORA 1843 a month not valid [19167.1 ID]
Thank you
Hussein -
SQL error: ORA-00910: specified length too long for its data type
Using Oracle 11.2.0.1 on Oracle Linux 5.8 x 64
I try to install Zabbix http://www.zabbix.com and uses the Oracle database as the data store. The script of the diagram provided below does not work.
When I run it, I getCREATE TABLE maintenances ( maintenanceid number(20) NOT NULL, name nvarchar2(128) DEFAULT '' , maintenance_type number(10) DEFAULT '0' NOT NULL, description nvarchar2(2048) DEFAULT '' , active_since number(10) DEFAULT '0' NOT NULL, active_till number(10) DEFAULT '0' NOT NULL, PRIMARY KEY (maintenanceid) );
According to the oracle documentation for nvarchar2 limit is 4000. What am I missing here?Error at Command Line:5 Column:42 Error report: SQL Error: ORA-00910: specified length too long for its datatype 00910. 00000 - "specified length too long for its datatype" *Cause: for datatypes CHAR and RAW, the length specified was > 2000; otherwise, the length specified was > 4000. *Action: use a shorter length or switch to a datatype permitting a longer length such as a VARCHAR2, LONG CHAR, or LONG RAW
"4000 bytes is the ultimate maximum." You can say 4000 * characters *, but it will always be limited to 4000 * bytes *. "
http://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:1224836384599 #201073000346459201\"The maximum length of the column is determined by the definition of national character set. The width of the character NVARCHAR2 data specifications match the number of characters. The authorized maximum column size is 4000 bytes. »
http://docs.Oracle.com/CD/E11882_01/server.112/e26088/sql_elements001.htm#SQLRF50976Furthermore, you treat numbers as STRINGS, remove the quotes around your zero.
Maybe you are looking for
-
restore the Firefox bookmarks on hard drive XP vista
I got a pc running xp, he's dead, I now have a laptop running vista, ive tried to import bookmarks from the old drive hard through a usb port connect but little matter I do this new installation of firefox on vista won't recognize the old bookmarks f
-
RN v1 duo set for Time Machine and after a clean install of Yosemite I can't access my data
Hi guys,. I have the ReadyNas duo v1 set for Time Machine and after a clean install of Yosemite I can't access my data. When I try via the Finder, files look for empty to me while info shows that they are not. I have no more support and I tried every
-
I use my fuse for a few weeks now and I am very satisfied. I have a few minor issues. One is the following: is it possible, by being in suffle mode, to exit this mode at a time and continue to listen to the album that I was led to? In the old days, m
-
Update keeps asking me to update this service pack, I've updated this time at 30, and he is constantly asking me to update. also help pls answer me at the * address email is removed from the privacy * I have problems using your hotmail e-mail.
-
spooler stopped working