Merger clause retrieves ORA-00923 FROM keyword not found where expected
Hello worldI want to be able to update/insert records using the MERGE clause of each
15 minutes, so I probe every segment of this code and its work, in
fact the segment with the FUSION works perfect replacement the
the variables vPMM_DATETIME and vEND_DATETIME for constants, but (and his)
crazy me!) When I probe this huge query, I get the error:
Error: ORA-00923: KEYWORD not found where expected
ORA-06512: at line 63, batch 1 row 1, Col 1
Line 63 is the MERGER IN OM_DB. CDRS_VALIDOS 'X', so what is
happening? because each segment of code works if I have one tube
one!, please help!
DECLARE
vPMM_DATETIME TIMESTAMP(3);
vMAX_PMM_DATETIME TIMESTAMP(3);
vEND_DATETIME TIMESTAMP(3);
v_rows_processed INT;
count_violated INT;
BEGIN
dbms_output.enable(40000);
dbms_output.put_line('Inicio de procedimiento: ' || TO_CHAR(sysdate, 'YYYY-MM-DD HH24:MI:SS'));
-- Valida si existe informacion en la tabla de origen
-- *****************************************************************************
count_violated := 0;
SELECT COUNT(START_TIME) INTO count_violated FROM OM_DB.CDRS_PRUEBA;
IF (count_violated=0) THEN
dbms_output.put_line('No hay informacion en la tabla de origen');
ELSE
SELECT TO_DATE(TO_CHAR(MIN(START_TIME),'YYYY-MM-DD HH24') || ':00:00','YYYY-MM-DD HH24:MI:SS')
INTO vPMM_DATETIME
FROM OM_DB.CDRS_PRUEBA;
vEND_DATETIME := vPMM_DATETIME + 1/24;
SELECT TO_DATE(TO_CHAR(MAX(START_TIME),'YYYY-MM-DD HH24') || ':59:59','YYYY-MM-DD HH24:MI:SS')
INTO vMAX_PMM_DATETIME
FROM om_db.CDRS_PRUEBA;
WHILE (vPMM_DATETIME <= vMAX_PMM_DATETIME) LOOP
MERGE INTO OM_DB.CDRS_VALIDOS "X"
USING (
SELECT
DISTINCT(ESTADO) AS "ESTADO",
MUNICIPIO,
CALL_SOURCE_REGID,
SUM(EXITOSOS) AS "EXITOSOS",
SUM(NO_EXITOSOS) AS "NO_EXITOSOS",
SUM(NO_CONECT) AS "NO_CONECT",
PMM_DATETIME
FROM (
SELECT
COALESCE(V_EXITOSOS.ESTADO, V_NO_EXITOSOS.ESTADO, V_NO_CONECT.ESTADO) AS "ESTADO",
COALESCE(V_EXITOSOS.MUNICIPIO, V_NO_EXITOSOS.MUNICIPIO, V_NO_CONECT.MUNICIPIO) AS "MUNICIPIO",
COALESCE(V_EXITOSOS.CALL_SOURCE_REGID, V_NO_EXITOSOS.CALL_SOURCE_REGID, V_NO_CONECT.CALL_SOURCE_REGID) AS "CALL_SOURCE_REGID",
COALESCE(V_EXITOSOS.EXITOSOS,0) AS "EXITOSOS",
COALESCE(V_NO_EXITOSOS.NO_EXITOSOS,0) AS "NO_EXITOSOS",
COALESCE(V_NO_CONECT.NO_CONECT,0) AS "NO_CONECT",
'2009-03-17 17:00:00' AS "PMM_DATETIME"
FROM
(
SELECT
DISTINCT(ESTADO) AS "ESTADO",
MUNICIPIO,
CALL_SOURCE_REGID,
COUNT(CALL_SOURCE_REGID) AS "EXITOSOS"
FROM (
SELECT
A.CALL_SOURCE_REGID,
B.ESTADO,
B.MUNICIPIO
FROM OM_DB.CDRS_PRUEBA A, OM_DB.COFETEL B
WHERE A.START_TIME BETWEEN vPMM_DATETIME AND vEND_DATETIME
AND TO_NUMBER(A.CALLED_PARTY_ON_DEST_PART3) between B.NIR_INICIAL AND B.NIR_FINAL
AND A.CALL_DURATION_INT >= 5
AND B.MODALIDAD IN ('CPP','FIJO','MPP')
)
GROUP BY
ESTADO,
MUNICIPIO,
CALL_SOURCE_REGID
) "V_EXITOSOS"
FULL OUTER JOIN
(
SELECT
DISTINCT(ESTADO) AS "ESTADO",
MUNICIPIO,
CALL_SOURCE_REGID,
COUNT(CALL_SOURCE_REGID) AS "NO_EXITOSOS"
FROM (
SELECT
C.CALL_SOURCE_REGID,
D.ESTADO,
D.MUNICIPIO
FROM OM_DB.CDRS_PRUEBA C, OM_DB.COFETEL D
WHERE C.START_TIME BETWEEN vPMM_DATETIME AND vEND_DATETIME
AND TO_NUMBER(C.CALLED_PARTY_ON_DEST_PART3) between D.NIR_INICIAL AND D.NIR_FINAL
AND C.CALL_DURATION_INT >= 1 AND C.CALL_DURATION_INT < 5
AND D.MODALIDAD IN ('CPP','FIJO','MPP')
)
GROUP BY
ESTADO,
MUNICIPIO,
CALL_SOURCE_REGID
) "V_NO_EXITOSOS"
ON
V_EXITOSOS.ESTADO = V_NO_EXITOSOS.ESTADO
AND V_EXITOSOS.MUNICIPIO = V_NO_EXITOSOS.MUNICIPIO
AND V_EXITOSOS.CALL_SOURCE_REGID = V_NO_EXITOSOS.CALL_SOURCE_REGID
FULL OUTER JOIN
(
SELECT
DISTINCT(ESTADO) AS "ESTADO",
MUNICIPIO,
CALL_SOURCE_REGID,
COUNT(CALL_SOURCE_REGID) AS "NO_CONECT"
FROM (
SELECT
C.CALL_SOURCE_REGID,
D.ESTADO,
D.MUNICIPIO
FROM OM_DB.CDRS_PRUEBA C, OM_DB.COFETEL D
WHERE C.START_TIME BETWEEN vPMM_DATETIME AND vEND_DATETIME
AND TO_NUMBER(C.CALLED_PARTY_ON_DEST_PART3) between D.NIR_INICIAL AND D.NIR_FINAL
AND C.CALL_DURATION_INT = 0
AND D.MODALIDAD IN ('CPP','FIJO','MPP')
)
GROUP BY
ESTADO,
MUNICIPIO,
CALL_SOURCE_REGID
) "V_NO_CONECT"
ON
V_NO_CONECT.ESTADO = V_EXITOSOS.ESTADO
AND V_NO_CONECT.MUNICIPIO = V_EXITOSOS.MUNICIPIO
AND V_NO_CONECT.CALL_SOURCE_REGID = V_EXITOSOS.CALL_SOURCE_REGID
)
GROUP BY
PMM_DATETIME,
CALL_SOURCE_REGID,
ESTADO,
MUNICIPIO
) "Y" -- Cierra USING
ON (
X.PMM_DATETIME = Y.PMM_DATETIME
AND X.CALL_SOURCE_REGID = Y.CALL_SOURCE_REGID
AND X.ESTADO = Y.ESTADO
AND X.MUNICIPIO = Y.MUNICIPIO
)
WHEN MATCHED THEN UPDATE SET
X.EXITOSOS = X.EXITOSOS + Y.EXITOSOS,
X.NO_EXITOSOS = X.NO_EXITOSOS + Y.NO_EXITOSOS,
X.NO_CONECT = X.NO_CONECT + Y.NO_CONECT
WHEN NOT MATCHED THEN INSERT (X.ESTADO, X.MUNICIPIO, X.CALL_SOURCE_REGID, X.EXITOSOS, X.NO_EXITOSOS, X.NO_CONECT, X.PMM_DATETIME)
VALUES (Y.ESTADO, Y.MUNICIPIO, Y.CALL_SOURCE_REGID, Y.EXITOSOS, Y.NO_EXITOSOS, Y.NO_CONECT, Y.PMM_DATETIME);
vPMM_DATETIME := vPMM_DATETIME + 1/24;
vEND_DATETIME := vPMM_DATETIME + 1/24;
END LOOP;
COMMIT;
END IF;
dbms_output.put_line('Fin de procedimiento: ' || TO_CHAR(sysdate, 'YYYY-MM-DD HH24:MI:SS'));
END;
Published by: user6754713 on 22-Apr-2009 12:31
The role of labour said in my previous post:
perform merge every 15 minutes every day?
You want to run your merge every 15 minutes a day or?
Tags: Database
Similar Questions
-
ORA-00923: THE KEYWORD not found where expected
Getting an error in a function:
It's a small piece of a package can list the tables and if necessary rest.FUNCTION gross_sal (emp_no IN NUMBER) RETURN NUMBER IS emp_before_tax Number; BEGIN SELECT emp.Sal coalesce(ed.Deduction_amount,0) result INTO emp_before_tax FROM emp emp --****ORA-00923: FROM keyword not found where expected**** LEFT JOIN Emp_Deductions ed ON ed.fk_empno = emp.EmpNo AND ed.Before_or_After_Flag = 'B'; EXCEPTION WHEN NO_DATA_FOUND THEN DBMS_OUTPUT.PUT_LINE('Employee has no salary listed.'); END gross_sal;
emp.Sal coalesce(ed.Deduction_amount,0) result
an operator is missing between the two, WHERE the...
In addition, to add... BACK is missing in your pl/sql code.
Concerning
Biju -
PL/SQL error: ORA-00923: KEYWORD not found where expected
Hi all
I get this error when I generate the code mentioned bellow.
Error of calculation of the value of the default element for the element on the page P1_JORNADA_ANUAL.
ORA-06550: line 42, column 17: PL/SQL: ORA-00923: THE KEYWORD not found where expected to ORA-06550: line 8, column 1: PL/SQL: statement ignored
Code:
--------------------------------------------------------------------------------------------
DECLARE
L_EMPRESA B_LISTA_EMPLEADOS. EMPRESA % TYPE;
BEGIN
Select case when ((select EMPRESA
of B_LISTA_EMPLEADOS
where USERNAME = v('APP_USER'))) = "EMPRESA1".
then ((select to_char (JORNADA_ANUAL)
of B_JORNADAS_Y_RATIOS
where CATEGORY = (())
Select the CATEGORY
of B_LISTA_EMPLEADOS
where username = v('APP_USER')
))
and EMPRESA = (())
Select the EMPRESA
of B_LISTA_EMPLEADOS
where username = v('APP_USER')
))
and ANO = v ('P1_ANO')
))
When ((select EMPRESA
of B_LISTA_EMPLEADOS
where USERNAME =: APP_USER)) = "EMPRESA2".
then "EMPRESA2 Jornada.
When ((select EMPRESA
of B_LISTA_EMPLEADOS
where USERNAME =: APP_USER)) = "EMPRESA3".
then "EMPRESA3 Jornada.
else 'Empresa desconocida '.
end
in L_EMPRESA
like the Jornada
of B_JORNADAS_Y_RATIOS
The COMPANY group
RETURN L_EMPRESA;
EXCEPTION
WHEN NO_DATA_FOUND THEN
RETURNS A NULL VALUE.
END;
--------------------------------------------------------------------------------------------
Does anyone know who or where is the error?
Thank you very much.
Concerning
Also
Check this box...
IN
L_EMPRESA AS Jornada
you send a value to the variable, if no name alias need here.
use like this.
IN
L_EMPRESA
Of
-
java.sql.SQLException: ORA-00923: KEYWORD not found where expected
Hi all
I wrote a stored procedure where I variables defined for selectColumn, fromClause and whereClause and I'm paasing to another procedure.
But, while running, I get an error:
"java.sql.SQLException: ORA-00923: KEYWORD not found where expected.
XL_SPG_GetPagingSql (strColumnList,
strFromClause,
strWhereClause,
strOrderByClause,
intSortDirection_in,
intStartRow_in,
intPageSize_in,
select_stmt);
Please adviceI think so.
You will want to ensure that columns used in ORDER BY are listed in the SELECT statement since you use SEPARATE.
-
ORA-00923: keyword not found where expected
I am moving a MS SQL to Oracle database and having some problems with the code below.
SELECT TOP 5
STAFF. PNAME AS PNAME,
sum ("SALES_ORDER". "ITEMS_NET") AS SumSales "
Of
("ACCOUNT_MANAGERS"INNER JOIN "SALES_ORDER" ON 'SALES_ORDER'." ACCOUNT_REF"="ACCOUNT_MANAGERS. " ("' INNER JOIN ACCOUNT_REF STAFF") ON "ACCOUNT_MANAGERS". PREF = STAFF. PREF
WHERE
"SALES_ORDER". "" ORDER_OR_QUOTE "="command ".
GROUP BY
STAFF. PNAME
HAVING
sum ("SALES_ORDER". "ITEMS_NET") > 5000 "
whenever I run it I get the error ORA-00923: keyword not found where expected can help anyone?TOP 5 isn't a syntax valid oracle
-
Error with subquery - keyword not found where expected
Hello
I have some difficulties with a query that contains multiple subqueries. I receive the error: oracle ORA-00923: KEYWORD not found where expected
After much troubleshooting, I still was not able to determine the cause of this error. All the work of subqueries individually, but once combined, it error.
Can you see what I did wrong? Any help is greatly appreciated,
SELECT qryAllocations.CUSTOMER_CODE, qryAllocations.CUST_SHORT AS roaster, qryAllocations.CUSTOMER_NAME,
qryAllocations.ITEM_NAME, qryAllocations.CONC_SO_NUMBER, qryAllocations.POSITION_NAME, qryAllocations.SPOT_YN,
qryAllocations.PO_NUMBER, qryAllocations.CONC_PO_NUMBER, qryAllocations.Bags AS Allocated, qryAllocations.Lbs bags AS allocated, Lbs
qryAllocations.DELVPERIOD_FROM, qryAllocations.DELVPERIOD_TO, qryInvoicesSumBySO.SumOfDELI_BAGS AS charged, bags
qryInvoicesSumBySO.SumOfNET_QTY HAVE charged Lbs, qryInvoicesSumBySO.MinOfINVOICE_DATE, qryInvoicesSumBySO.MaxOfINVOICE_DATE, qryAllocations.REP
Of
(
SELECT CO_SORDER. SO_PREFIX, CO_SORDER. SO_NUMBER, CO_ITEM. SHORT_NAME, CO_ITEM. NOM_ELEMENT,
CO_SORDER. SO_SUFFIX, CO_SORDER. SO_PREFIX | '-' || CO_SORDER. SO_NUMBER | '-' || CO_SORDER. SO_SUFFIX AS CONC_SO_NUMBER,
CO_POSITION. POSITION_NAME, CO_POSITION. SPOT_YN, qryAllocationsGrouper.SumOfPO_ALLOC_QTY AS bags, SumOfQTY_ALLOC * 2204.62 Lbs AS.
CO_SORDER. DELVPERIOD_FROM, CO_SORDER. DELVPERIOD_TO, CO_SORDER. PRICE,
CO_PORDER. PO_PREFIX | '-' || CO_PORDER. PO_NUMBER | '-' || CO_PORDER. PO_SUFFIX AS CONC_PO_NUMBER, CO_PORDER. PO_NUMBER,
CO_PORDER. PO_SUFFIX, CO_PORDER. PRICE AS PO_PRICE, CO_SORDER. CUSTOMER_CODE, CO_CUSTOMER. SHORT_NAME AS CUST_SHORT,
CO_CUSTOMER. CLIENT_NAME, CO_SORDER. ORDER_DATE, qryAllocationsGrouper.SO_KEY, qryAllocationsGrouper.PO_KEY, GN_USERS. SHORT_NAME AS REP,
CO_SORDER. STATUS
OF CO_ORIGIN
JOIN INTERNAL (INNER JOIN CO_ITEM (((CO_SORDER INNER JOIN CO_CUSTOMER ON CO_SORDER. CUSTOMER_CODE = CO_CUSTOMER. CUSTOMER_CODE)
JOIN INTERNAL (INNER JOIN CO_PORDER
(
SELECT CO_ALLOCATION_TAIL. PO_KEY, CO_ALLOCATION_TAIL. SO_KEY, Sum (CO_ALLOCATION_TAIL. QTY_ALLOC) AS SumOfQTY_ALLOC,
Sum (CO_ALLOCATION_TAIL. PO_ALLOC_QTY) AS SumOfPO_ALLOC_QTY, Min (CO_ALLOCATION_TAIL. ALLOC_DATE) AS MinOfALLOC_DATE,
Max (CO_ALLOCATION_TAIL. ALLOC_DATE) AS MaxOfALLOC_DATE, CO_SORDER. STATUS
FROM CO_ALLOCATION_TAIL INNER JOIN CO_SORDER ON CO_ALLOCATION_TAIL. SO_KEY = CO_SORDER. SO_KEY
GROUP OF CO_ALLOCATION_TAIL. PO_KEY, CO_ALLOCATION_TAIL. SO_KEY, CO_SORDER. STATUS
HAVE (((CO_SORDER. (STATUS) = "O"))
) qryAllocationsGrouper
ON CO_PORDER. PO_KEY = qryAllocationsGrouper.PO_KEY)
ON CO_SORDER. SO_KEY = qryAllocationsGrouper.SO_KEY) INNER JOIN GN_USERS ON CO_SORDER. ENTERED_USER = GN_USERS. USER_ID)
INNER JOIN CO_POSITION ON CO_SORDER. POSITION = CO_POSITION. POSITION_CODE) ON CO_ITEM. ITEM_CODE = CO_PORDER. ITEM_CODE)
ON CO_ORIGIN. ORIGIN_CODE = CO_ITEM. ORIGIN_CODE
WHERE (((CO_SORDER. (STATUS) = "O"))
ORDER OF CO_PORDER. PO_NUMBER / / DESC
) qryAllocations
LEFT JOIN
(
SELECT qryInvoices.PO_KEY, qryInvoices.SO_KEY, qryInvoices.SHORT_NAME, qryInvoices.CUSTOMER_NAME, qryInvoices.CONC_SO_NUMBER, qryInvoices.CONC_PO_NUMBER,
Sum (qryInvoices.DELI_BAGS) as SumOfDELI_BAGS, Sum (qryInvoices.NET_QTY) AS SumOfNET_QTY, Min (qryInvoices.INVOICE_DATE) as MinOfINVOICE_DATE,
Max (qryInvoices.INVOICE_DATE) AS MaxOfINVOICE_DATE
Of
(
SELECT CO_FINAL_INVOICE. INVOICE_NUMBER, CO_FINAL_INVOICE. INVOICE_DATE, CO_TRF_DELIVERY. DELI_NO, CO_TRF_DELIVERY. DELI_DATE,
CO_PAYTERMS. PAYTERMS_NAME, CO_FINAL_INVOICE. END_DATE, CO_CUSTOMER. SHORT_NAME, CO_CUSTOMER. CLIENT_NAME,
CO_FINAL_INVOICE. INVOICE_FINAL_AMOUNT, CO_FINAL_INVOICE. PAYTERMS_CODE, CO_TRF_DELICONTAINER. DELI_BAGS, CO_FINAL_INVOICE_DETAIL.NET_QTY,
CO_FINAL_INVOICE_DETAIL. INV_PRICE, CO_SORDER. SO_PREFIX | '-' || CO_SORDER. SO_NUMBER | '-' || CO_SORDER. SO_SUFFIX AS CONC_SO_NUMBER,
CO_PORDER. PO_PREFIX | '-' || CO_PORDER. PO_NUMBER | '-' || CO_PORDER. PO_SUFFIX AS CONC_PO_NUMBER, CO_ORIGIN. SHORT_NAME AS ORIGIN,
CO_ITEM. SHORT_NAME AS ITEM_SHORT, CO_ITEM. ITEM_DESCRIPTION, CO_PORDER. CHARACTERISTICS OF CO_TRF_DELIVERY. PAID_BY,
CO_FINAL_INVOICE_DETAIL. DELI_CODE, CO_FINAL_INVOICE_DETAIL.TR_KEY, CO_FINAL_INVOICE. INVOICE_KEY, CO_TRF_DELIVERY. MDO_KEY,
CO_PORDER. PO_KEY, CO_SORDER. SO_KEY, CO_FINAL_INVOICE. CANCELED_YN
OF (((CO_FINAL_INVOICE INNER JOIN CO_FINAL_INVOICE_DETAIL ON CO_FINAL_INVOICE. INVOICE_KEY = CO_FINAL_INVOICE_DETAIL. INVOICE_KEY)
INNER JOIN CO_CUSTOMER ON CO_FINAL_INVOICE. BUYER_CODE = CO_CUSTOMER. CUSTOMER_CODE)
JOIN INTERNAL CO_TRF_DELIVERY
ON (CO_FINAL_INVOICE_DETAIL. SO_KEY = CO_TRF_DELIVERY. SO_KEY)
AND (CO_FINAL_INVOICE_DETAIL.TR_KEY = CO_TRF_DELIVERY.TR_KEY)
AND (CO_FINAL_INVOICE_DETAIL. DELI_CODE = CO_TRF_DELIVERY. DELI_CODE))
INNER JOIN CO_SORDER ON (CO_CUSTOMER. CUSTOMER_CODE = CO_SORDER. CUSTOMER_CODE)
AND (CO_FINAL_INVOICE_DETAIL. SO_KEY = CO_SORDER. CO_PORDER INNER JOIN SO_KEY))
ON CO_TRF_DELIVERY. PO_KEY = CO_PORDER. CO_PAYTERMS INNER JOIN PO_KEY)
ON CO_FINAL_INVOICE. PAYTERMS_CODE = CO_PAYTERMS. CO_TRF_DELICONTAINER INNER JOIN PAYTERMS_CODE)
ON CO_TRF_DELIVERY. DELI_CODE = CO_TRF_DELICONTAINER. JOIN IN-HOUSE DELI_CODE) (CO_ORIGIN INNER JOIN CO_ITEM
ON CO_ORIGIN. ORIGIN_CODE = CO_ITEM. ORIGIN_CODE) ON CO_SORDER. ITEM_CODE = CO_ITEM. ITEM_CODE
GROUP OF CO_FINAL_INVOICE. INVOICE_NUMBER, CO_FINAL_INVOICE. INVOICE_DATE, CO_TRF_DELIVERY. DELI_NO,
CO_TRF_DELIVERY. DELI_DATE, CO_PAYTERMS. PAYTERMS_NAME, CO_FINAL_INVOICE. END_DATE, CO_CUSTOMER. SHORT_NAME,
CO_CUSTOMER. CLIENT_NAME, CO_FINAL_INVOICE. INVOICE_FINAL_AMOUNT, CO_FINAL_INVOICE. PAYTERMS_CODE,
CO_TRF_DELICONTAINER. DELI_BAGS, CO_FINAL_INVOICE_DETAIL.NET_QTY, CO_FINAL_INVOICE_DETAIL. INV_PRICE,
CO_SORDER. SO_PREFIX | '-' || CO_SORDER. SO_NUMBER | '-' || CO_SORDER. SO_SUFFIX,
CO_PORDER. PO_PREFIX | '-' || CO_PORDER. PO_NUMBER | '-' || CO_PORDER. PO_SUFFIX, CO_ORIGIN. SHORT_NAME,
CO_ITEM. SHORT_NAME, CO_ITEM. ITEM_DESCRIPTION, CO_PORDER. CHARACTERISTICS OF CO_TRF_DELIVERY. PAID_BY,
CO_FINAL_INVOICE_DETAIL. DELI_CODE, CO_FINAL_INVOICE_DETAIL.TR_KEY, CO_FINAL_INVOICE. INVOICE_KEY,
CO_TRF_DELIVERY. MDO_KEY, CO_PORDER. PO_KEY, CO_SORDER. SO_KEY, CO_FINAL_INVOICE. CANCELED_YN
HAVE (((CO_FINAL_INVOICE. CANCELED_YN) Is Nothing))
ORDER OF CO_FINAL_INVOICE. INVOICE_NUMBER / / DESC
) qryInvoices
GROUP OF qryInvoices.PO_KEY, qryInvoices.SO_KEY, qryInvoices.SHORT_NAME, qryInvoices.CUSTOMER_NAME, qryInvoices.CONC_SO_NUMBER, qryInvoices.CONC_PO_NUMBER
) qryInvoicesSumBySO
WE (qryAllocations.PO_KEY = qryInvoicesSumBySO.PO_KEY) AND (qryAllocations.SO_KEY = qryInvoicesSumBySO.SO_KEY)
ORDER BY qryAllocations.DELVPERIOD_TO
No test!
SELECT qryAllocations.CUSTOMER_CODE,
qryAllocations.CUST_SHORT AS roaster,
qryAllocations.CUSTOMER_NAME,
qryAllocations.ITEM_NAME,
qryAllocations.CONC_SO_NUMBER,
qryAllocations.POSITION_NAME,
qryAllocations.SPOT_YN,
qryAllocations.PO_NUMBER,
qryAllocations.CONC_PO_NUMBER,
qryAllocations.Bags AS BagsAllocated,
qryAllocations.Lbs AS LbsAllocated,
qryAllocations.DELVPERIOD_FROM,
qryAllocations.DELVPERIOD_TO,
qryInvoicesSumBySO.SumOfDELI_BAGS AS BagsInvoiced,
qryInvoicesSumBySO.SumOfNET_QTY AS LbsInvoiced,
qryInvoicesSumBySO.MinOfINVOICE_DATE,
qryInvoicesSumBySO.MaxOfINVOICE_DATE,
qryAllocations.REP
FROM (SELECT CO_SORDER. SO_PREFIX,
CO_SORDER. SO_NUMBER,
CO_ITEM. SHORT_NAME,
CO_ITEM. NOM_ELEMENT,
CO_SORDER. SO_SUFFIX,
CO_SORDER. SO_PREFIX
|| '-'
|| CO_SORDER. SO_NUMBER
|| '-'
|| CO_SORDER. SO_SUFFIX
AS CONC_SO_NUMBER,
CO_POSITION. POSITION_NAME,
CO_POSITION. SPOT_YN,
qryAllocationsGrouper.SumOfPO_ALLOC_QTY AS bags,
SumOfQTY_ALLOC * 2204.62 AS Lbs,.
CO_SORDER. DELVPERIOD_FROM,
CO_SORDER. DELVPERIOD_TO,
CO_SORDER. PRICE,
CO_PORDER. PO_PREFIX
|| '-'
|| CO_PORDER. PO_NUMBER
|| '-'
|| CO_PORDER. PO_SUFFIX
AS CONC_PO_NUMBER,
CO_PORDER. PO_NUMBER,
CO_PORDER. PO_SUFFIX,
CO_PORDER. PO_PRICE PRICE,
CO_SORDER. CUSTOMER_CODE,
CO_CUSTOMER. SHORT_NAME AS CUST_SHORT,
CO_CUSTOMER. CLIENT_NAME,
CO_SORDER. ORDER_DATE,
qryAllocationsGrouper.SO_KEY,
qryAllocationsGrouper.PO_KEY,
GN_USERS. SHORT_NAME AS REP,
CO_SORDER. STATUS
OF CO_ORIGIN
JOIN IN-HOUSE (CO_ITEM
JOIN IN-HOUSE
(((CO_SORDER
JOIN INTERNAL CO_CUSTOMER
ON CO_SORDER. CUSTOMER_CODE =
CO_CUSTOMER. CUSTOMER_CODE)
JOIN IN-HOUSE
(CO_PORDER
JOIN IN-HOUSE
(SELECT CO_ALLOCATION_TAIL. PO_KEY,
CO_ALLOCATION_TAIL. SO_KEY,
SUM)
CO_ALLOCATION_TAIL. QTY_ALLOC)
AS SumOfQTY_ALLOC,
SUM)
CO_ALLOCATION_TAIL. PO_ALLOC_QTY)
AS SumOfPO_ALLOC_QTY,
MIN)
CO_ALLOCATION_TAIL. ALLOC_DATE)
AS MinOfALLOC_DATE,
MAX)
CO_ALLOCATION_TAIL. ALLOC_DATE)
AS MaxOfALLOC_DATE,
CO_SORDER. STATUS
OF CO_ALLOCATION_TAIL
JOIN INTERNAL CO_SORDER
ON CO_ALLOCATION_TAIL. SO_KEY =
CO_SORDER. SO_KEY
GROUP OF CO_ALLOCATION_TAIL. PO_KEY,
CO_ALLOCATION_TAIL. SO_KEY,
CO_SORDER. STATUS
HAVE (((CO_SORDER. STATUS) =
'O')))
qryAllocationsGrouper
ON CO_PORDER. PO_KEY =
qryAllocationsGrouper.PO_KEY)
ON CO_SORDER. SO_KEY =
qryAllocationsGrouper.SO_KEY)
JOIN INTERNAL GN_USERS
ON CO_SORDER. ENTERED_USER = GN_USERS. USER_ID)
JOIN INTERNAL CO_POSITION
ON CO_SORDER. POSITION =
CO_POSITION. POSITION_CODE)
ON CO_ITEM. ITEM_CODE = CO_PORDER. ITEM_CODE)
ON CO_ORIGIN. ORIGIN_CODE = CO_ITEM. ORIGIN_CODE
WHERE (((CO_SORDER. (STATUS) = 'O'))
ORDER OF CO_PORDER. QryAllocations PO_NUMBER DESC)
LEFT JOIN
(SELECT qryInvoices.PO_KEY,
qryInvoices.SO_KEY,
qryInvoices.SHORT_NAME,
qryInvoices.CUSTOMER_NAME,
qryInvoices.CONC_SO_NUMBER,
qryInvoices.CONC_PO_NUMBER,
SUM (qryInvoices.DELI_BAGS) AS SumOfDELI_BAGS,
SUM (qryInvoices.NET_QTY) AS SumOfNET_QTY,
MIN (qryInvoices.INVOICE_DATE) AS MinOfINVOICE_DATE,
MAX (qryInvoices.INVOICE_DATE) AS MaxOfINVOICE_DATE
FROM (SELECT CO_FINAL_INVOICE. INVOICE_NUMBER,
CO_FINAL_INVOICE. INVOICE_DATE,
CO_TRF_DELIVERY. DELI_NO,
CO_TRF_DELIVERY. DELI_DATE,
CO_PAYTERMS. PAYTERMS_NAME,
CO_FINAL_INVOICE. END_DATE,
CO_CUSTOMER. SHORT_NAME,
CO_CUSTOMER. CLIENT_NAME,
CO_FINAL_INVOICE. INVOICE_FINAL_AMOUNT,
CO_FINAL_INVOICE. PAYTERMS_CODE,
CO_TRF_DELICONTAINER. DELI_BAGS,
CO_FINAL_INVOICE_DETAIL.NET_QTY,
CO_FINAL_INVOICE_DETAIL. INV_PRICE,
CO_SORDER. SO_PREFIX
|| '-'
|| CO_SORDER. SO_NUMBER
|| '-'
|| CO_SORDER. SO_SUFFIX
AS CONC_SO_NUMBER,
CO_PORDER. PO_PREFIX
|| '-'
|| CO_PORDER. PO_NUMBER
|| '-'
|| CO_PORDER. PO_SUFFIX
AS CONC_PO_NUMBER,
CO_ORIGIN. SHORT_NAME AS ORIGIN,
CO_ITEM. SHORT_NAME AS ITEM_SHORT,
CO_ITEM. ITEM_DESCRIPTION,
CO_PORDER. SPECIFICATIONS,
CO_TRF_DELIVERY. PAID_BY,
CO_FINAL_INVOICE_DETAIL. DELI_CODE,
CO_FINAL_INVOICE_DETAIL.TR_KEY,
CO_FINAL_INVOICE. INVOICE_KEY,
CO_TRF_DELIVERY. MDO_KEY,
CO_PORDER. PO_KEY,
CO_SORDER. SO_KEY,
CO_FINAL_INVOICE. CANCELED_YN
OF (((CO_FINAL_INVOICE
JOIN INTERNAL CO_FINAL_INVOICE_DETAIL
ON CO_FINAL_INVOICE. INVOICE_KEY =
CO_FINAL_INVOICE_DETAIL. INVOICE_KEY)
JOIN INTERNAL CO_CUSTOMER
ON CO_FINAL_INVOICE. BUYER_CODE =
CO_CUSTOMER. CUSTOMER_CODE)
JOIN INTERNAL CO_TRF_DELIVERY
ON (CO_FINAL_INVOICE_DETAIL. SO_KEY =
CO_TRF_DELIVERY. SO_KEY)
AND (CO_FINAL_INVOICE_DETAIL.TR_KEY =
CO_TRF_DELIVERY.TR_KEY)
AND (CO_FINAL_INVOICE_DETAIL. DELI_CODE =
CO_TRF_DELIVERY. DELI_CODE))
JOIN INTERNAL CO_SORDER
ON (CO_CUSTOMER. CUSTOMER_CODE =
CO_SORDER. CUSTOMER_CODE)
AND (CO_FINAL_INVOICE_DETAIL. SO_KEY =
CO_SORDER. SO_KEY))
JOIN INTERNAL CO_PORDER
ON CO_TRF_DELIVERY. PO_KEY = CO_PORDER. PO_KEY)
JOIN INTERNAL CO_PAYTERMS
ON CO_FINAL_INVOICE. PAYTERMS_CODE =
CO_PAYTERMS. PAYTERMS_CODE)
JOIN INTERNAL CO_TRF_DELICONTAINER
ON CO_TRF_DELIVERY. DELI_CODE =
CO_TRF_DELICONTAINER. DELI_CODE)
JOIN IN-HOUSE
(CO_ORIGIN
JOIN IN-HOUSE CO_ITEM
ON CO_ORIGIN. ORIGIN_CODE = CO_ITEM. ORIGIN_CODE)
ON CO_SORDER. ITEM_CODE = CO_ITEM. ITEM_CODE
GROUP OF CO_FINAL_INVOICE. INVOICE_NUMBER,
CO_FINAL_INVOICE. INVOICE_DATE,
CO_TRF_DELIVERY. DELI_NO,
CO_TRF_DELIVERY. DELI_DATE,
CO_PAYTERMS. PAYTERMS_NAME,
CO_FINAL_INVOICE. END_DATE,
CO_CUSTOMER. SHORT_NAME,
CO_CUSTOMER. CLIENT_NAME,
CO_FINAL_INVOICE. INVOICE_FINAL_AMOUNT,
CO_FINAL_INVOICE. PAYTERMS_CODE,
CO_TRF_DELICONTAINER. DELI_BAGS,
CO_FINAL_INVOICE_DETAIL.NET_QTY,
CO_FINAL_INVOICE_DETAIL. INV_PRICE,
CO_SORDER. SO_PREFIX
|| '-'
|| CO_SORDER. SO_NUMBER
|| '-'
|| CO_SORDER. SO_SUFFIX,
CO_PORDER. PO_PREFIX
|| '-'
|| CO_PORDER. PO_NUMBER
|| '-'
|| CO_PORDER. PO_SUFFIX,
CO_ORIGIN. SHORT_NAME,
CO_ITEM. SHORT_NAME,
CO_ITEM. ITEM_DESCRIPTION,
CO_PORDER. SPECIFICATIONS,
CO_TRF_DELIVERY. PAID_BY,
CO_FINAL_INVOICE_DETAIL. DELI_CODE,
CO_FINAL_INVOICE_DETAIL.TR_KEY,
CO_FINAL_INVOICE. INVOICE_KEY,
CO_TRF_DELIVERY. MDO_KEY,
CO_PORDER. PO_KEY,
CO_SORDER. SO_KEY,
CO_FINAL_INVOICE. CANCELED_YN
HAVE (((CO_FINAL_INVOICE. CANCELED_YN) IS NOTHING))
ORDER OF CO_FINAL_INVOICE. QryInvoices INVOICE_NUMBER DESC)
QryInvoices.PO_KEY GROUP,
qryInvoices.SO_KEY,
qryInvoices.SHORT_NAME,
qryInvoices.CUSTOMER_NAME,
qryInvoices.CONC_SO_NUMBER,
qryInvoicesSumBySO of qryInvoices.CONC_PO_NUMBER)
WE (qryAllocations.PO_KEY = qryInvoicesSumBySO.PO_KEY)
AND (qryAllocations.SO_KEY = qryInvoicesSumBySO.SO_KEY)
ORDER BY qryAllocations.DELVPERIOD_TO;
See you soon,.
Manik.
-
Keyword not found where expected - in PL/SQL ONLY.
Hello
I use Oracle 10.2.0.3 on Windows 7 on laptop using Toad.
The following SQL code selects the PK and FK views columns DBA.
It is running very well and gives the desired result.
Whenever I put the same query in a PL/SQL block, I get the following error:WITH temp AS ( select rownum RN, R_constraint_name pk, constraint_name fk from user_constraints where constraint_type = 'R' --and table_name = 'EMPLOYEES' ) select pk.tname "PK Table", pk.cname "PK Column", fk.tname "FK Table", fk.cname "FK Column", decode(pk.tname, fk.tname,'Self Join', 'Equi Join') "Join Type" from ( select t.rn RN, u.table_name tname, u.column_name cname FROM user_cons_columns u, temp t where u.constraint_name = t.pk ) PK, ( select t.rn RN, u.table_name tname, u.column_name cname FROM user_cons_columns u, temp t where u.constraint_name = t.fk ) FK WHERE pk.RN=fk.RN(+) ORDER BY 1, 3
< font color = "red" >
ORA-06550: line 19, column 44:
PL/SQL: ORA-00923: KEYWORD not found where expected
ORA-06550: line 13, column 1:
PL/SQL: SQL statement ignored
< / make >
Surely I'm missing something, a limitation in PL/SQL syntax, perhaps.DECLARE TYPE OBJ_DETAIL_TYPE IS TABLE OF VARCHAR2(30); v_pk_tname OBJ_DETAIL_TYPE; v_pk_cname OBJ_DETAIL_TYPE; v_fk_tname OBJ_DETAIL_TYPE; v_fk_cname OBJ_DETAIL_TYPE; v_join_type OBJ_DETAIL_TYPE; BEGIN --***************************************************** WITH temp AS ( select rownum RN, R_constraint_name pk, constraint_name fk from user_constraints where constraint_type = 'R' --and table_name = 'EMPLOYEES' ) select pk.tname into v_pk_tname , pk.cname into v_pk_cname, fk.tname into v_fk_tname, fk.cname into v_fk_cname, decode(pk.tname, fk.tname,'Self Join', 'Equi Join') into v_join_type from ( select t.rn RN, u.table_name tname, u.column_name cname FROM user_cons_columns u, temp t where u.constraint_name = t.pk ) PK, ( select t.rn RN, u.table_name tname, u.column_name cname FROM user_cons_columns u, temp t where u.constraint_name = t.fk ) FK WHERE pk.RN=fk.RN(+) ORDER BY 1, 3; --***************************************************** END; /
Can someone guide me please on this...
Thank you in advance.
Kind regards.Here's your resolution:
Hoping that you will get your solution less change.
DECLARE TYPE OBJ_DETAIL_TYPE IS TABLE OF VARCHAR2(30); v_pk_tname OBJ_DETAIL_TYPE; v_pk_cname OBJ_DETAIL_TYPE; v_fk_tname OBJ_DETAIL_TYPE; v_fk_cname OBJ_DETAIL_TYPE; v_join_type OBJ_DETAIL_TYPE; BEGIN --***************************************************** WITH temp AS ( select rownum RN, R_constraint_name pk, constraint_name fk from user_constraints where constraint_type = 'R' --and table_name = 'EMPLOYEES' ) select pk.tname, pk.cname, fk.tname, fk.cname, decode(pk.tname, fk.tname,'Self Join', 'Equi Join') bulk collect into v_pk_tname, v_pk_cname, v_fk_tname, v_fk_cname, v_join_type from ( select t.rn RN, u.table_name tname, u.column_name cname FROM user_cons_columns u, temp t where u.constraint_name = t.pk ) PK, ( select t.rn RN, u.table_name tname, u.column_name cname FROM user_cons_columns u, temp t where u.constraint_name = t.fk ) FK WHERE pk.RN=fk.RN(+) ORDER BY 1, 3; --***************************************************** END; / Regards, P.
-
keyword not found where expected
Hello
I have this query that I'm get keyword not found where expected
kindly help meselect sum_view.transport, formula_view.transport_formula, sum_view.sload, formula_view.sload_formula, sum_view.opn_job_desc,sum_view.OPN_VALUE from ( select ( SUM(case when F.ITEM_UOM = 'Cubic Feet' then (case when upper(substr(H.SLURRY_TYPE,1,3)) <> upper('Top') then ROUND(((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD)) else 0 end) else 0 end) + SUM(case when F.ITEM_UOM = 'Cubic Feet' then (case when upper(substr(H.SLURRY_TYPE,1,3)) = upper('Top') then nvl(H.CLASS_V_CEMENT,0) else 0 end) else 0 end) )*(0.047) + SUM(case when F.ITEM_UOM = 'Pound' then Ceil((ROUND(((H.SLURRY_VOL_ACTUAL * 5.6146)/DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD)))*94)*F.ITEM_PERCENT/100 )ELSE 0 end)*0.0005 )*(j.opn_value/2)transport, SUM(case when F.ITEM_UOM = 'Cubic Feet' then ROUND(((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD))end)sload , e.opn_job_desc,J.OPN_VALUE---e.invoice_ref,e.invoice_ref_m,f.item_number,f.item_name,f.item_uom,f.description,J.OPN_VALUE FROM xxnp_opn_joblog_001 E, XXNP_OPN_JOBLOG_EST_002 F, XXNP_OPN_JOBLOG_STAGE_002 G, XXNP_OPN_JOBLOG_SLURRY_003 H, XXNP_OPN_JOBLOG_RES_005 J WHERE E.OPN_JOB_DESC = E.OPN_JOB_DESC AND E.MANUAL='N' and J.opn_resource_desc='4X4 PICK-UP OR LIGHT VEHICLES' AND E.OPN_JOBLOG_001_ID = J.OPN_JOBLOG_001_ID AND E.OPN_JOBLOG_001_ID = G.OPN_JOBLOG_001_ID AND G.OPN_JOBLOG_006_ID = H.OPN_JOBLOG_006_ID AND H.OPN_JOBLOG_007_ID = F.OPN_JOBLOG_007_ID AND G.OPN_JOBLOG_006_ID = H.OPN_JOBLOG_006_ID AND H.OPN_JOBLOG_007_ID = F.OPN_JOBLOG_007_ID group by e.opn_job_desc,J.OPN_VALUE ) sum_view, ( SELECT opn_value,opn_job_desc, '((' ||DECODE(cubic_feet_no_top_formula, NULL, NULL, 'SUM('||cubic_feet_no_top_formula||')') ||DECODE(cubic_feet_top_formula, NULL, NULL, '+SUM('||cubic_feet_top_formula||')')||'*0.047+)' ||DECODE(pound_formula, NULL, NULL, 'SUM('||pound_formula||')')||'*0.0005' ||')' ||'*(' ||opn_value ||'/2)' transport_formula, DECODE(cubic_feet_no_top_formula, NULL, NULL, 'SUM('||cubic_feet_no_top_formula||')') ||DECODE(cubic_feet_top_formula, NULL, NULL, '+SUM('||cubic_feet_top_formula||')') sload_formula FROM ( SELECT DISTINCT a.opn_value,a.opn_job_desc ,rowtocol('SELECT formula FROM test23 WHERE opn_value = ' || '''' || a.opn_value || '''' || ' AND top_yes_no = ' || '''' || 'N' || '''' || ' AND opn_job_desc = ' || '''' || a.opn_job_desc || '''' ||' AND item_uom IN ('''||'Cubic Feet'''||')',' + ') AS cubic_feet_no_top_formula ,rowtocol('SELECT formula FROM test23 WHERE opn_value = ' || '''' || a.opn_value || '''' || ' AND top_yes_no = ' || '''' || 'Y' || '''' || ' AND opn_job_desc = ' || '''' || a.opn_job_desc || '''' ||' AND item_uom IN ('''||'Cubic Feet'''||')',' + ') AS cubic_feet_top_formula ,rowtocol('SELECT formula FROM test23 WHERE opn_value = ' || '''' || a.opn_value || '''' || ' AND opn_job_desc = ' || '''' || a.opn_job_desc || '''' ||' AND item_uom IN ('''||'Pound'''||')',' + ') AS pound_formula ,rowtocol('SELECT formula FROM test23 WHERE opn_value = ' || '''' || a.opn_value || '''' || ' AND opn_job_desc = ' || '''' || a.opn_job_desc || '''' ||' AND item_uom IN ('''||'Gallon'''||')',' + ') AS gallon_formula FROM test23 a ) ) formula_view where 1=1 and sum_view.opn_value = formula_view.opn_value and sum_view.opn_job_desc=formula_view.opn_job_desc;
thanking in advanceI found 2 things:
first of all, this
when upper(substr(H.SLURRY_TYPE,1,3)) upper('Top')
should be present
when upper(substr(H.SLURRY_TYPE,1,3)) = upper('Top')
and second, there is a support missing on the third line;
select sum_view.transport, formula_view.transport_formula, sum_view.sload, formula_view.sload_formula, sum_view.opn_job_desc,sum_view.OPN_VALUE from ( ( -- this needs to be added in select ( sum ( case when F.ITEM_UOM = 'Cubic Feet' then (case when upper(substr(H.SLURRY_TYPE,1,3)) = 'TOP' then round ( ( (H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD ) ) else 0 end ) else 0 end ) + sum ( case when F.ITEM_UOM = 'Cubic Feet' then (case when upper(substr(H.SLURRY_TYPE,1,3)) = 'TOP' then nvl(H.CLASS_V_CEMENT,0) else 0 end ) else 0 end ) ) * (0.047) + sum ( case when F.ITEM_UOM = 'Pound' then ceil ( (round ( ( (H.SLURRY_VOL_ACTUAL * 5.6146)/decode(H.SLURRY_YIELD,0,null,H.SLURRY_YIELD) ) ) * 94 ) *F.ITEM_PERCENT/100 ) else 0 end ) * 0.0005 ) * (j.opn_value/2) as Transport , sum(case when F.ITEM_UOM = 'Cubic Feet' then round(((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD)) end ) as sload ,e.opn_job_desc ,J.OPN_VALUE from xxnp_opn_joblog_001 E, XXNP_OPN_JOBLOG_EST_002 F, XXNP_OPN_JOBLOG_STAGE_002 G, XXNP_OPN_JOBLOG_SLURRY_003 H, XXNP_OPN_JOBLOG_RES_005 J where E.OPN_JOB_DESC = E.OPN_JOB_DESC and E.MANUAL ='N' and J.opn_resource_desc='4X4 PICK-UP OR LIGHT VEHICLES' and E.OPN_JOBLOG_001_ID = J.OPN_JOBLOG_001_ID and E.OPN_JOBLOG_001_ID = G.OPN_JOBLOG_001_ID and G.OPN_JOBLOG_006_ID = H.OPN_JOBLOG_006_ID and H.OPN_JOBLOG_007_ID = F.OPN_JOBLOG_007_ID and G.OPN_JOBLOG_006_ID = H.OPN_JOBLOG_006_ID and H.OPN_JOBLOG_007_ID = F.OPN_JOBLOG_007_ID group by e.opn_job_desc ,J.OPN_VALUE ) sum_view,
P;
-
2.1 EA 1: ORA-00923: KEYWORD not found where expected
Hello
There is a simple table that is causing this error when opening the data tab. All the other tabs are ok. 1.5 the table can be opened with the data tab.
Columns:
ID NUMBER no 1
PARENT_ID Yes NUMBER 2
Node_name VARCHAR2 (50 BYTE) Yes 3
KREDFILIALE VARCHAR2 (50 BYTE) Yes 4
DATE of VALID_FROM Yes to_date('20081001','yyyymmdd') 5
DATE of VALID_TO Yes to_date('20090930','yyyymmdd') 6
Yes NUMBER (2.0) LEVEL 7
LIEFERANTENNR VARCHAR2 (50 BYTE) Yes 8
SCGROUP Yes NUMBER 9
Kind regards
JürgenBug 9000729 - ea1 connected: otnforum: datatab opens for a reserved keyword column name
-Rambeau -
Listagg function displays the keyword not found error message
is version of Oracle 11 g
can you please suggest me to find exactly the problemcreate or replace function fn_months_attended return number is v_array varchar2(1000); begin select LISTAGG(c.act_id,',') within group (order by c.act_id desc) INTO V_ARRAY from programmes a,campaigns b,activities c where a.pro_id=b.cam_pro_id and b.cam_id=c.act_act_id order by act_id DESC ; return v_array; end; Error i received Error(6,3): PL/SQL: SQL Statement ignored Error(6,39): PL/SQL: ORA-00923: FROM keyword not found where expected
Hello
In the LIST of 11 GR 1 tot material. function does not work. It works in only 11 GR 2.
Kind regards
Champion. -
Hello
I am to evaluate a tool that allows you to migrate a database from MySQL to oracle. Everything seems fine, until the tool is gone through the import of the target Oracle database process. The following error arises: ORA-12520: TNS:listener could not find a Manager is available for the requested server type
Following is part of the output of the migration, just tool before and where the error occurs:
---
...
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SWS_core_documentation_ID SEQUENCE of FALL
*+
ERROR on line 1:
ORA-02289: sequence does not exist
Order of creation.
Trigger created.
Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
Core_group for Oracle table import
Creating table and its constraints using the Oracle SQL * more utilitarian
SQL * more: Release 10.2.0.1.0 - Production kills Mar 31 16:20:14 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12520: TNS:listener could not find Manager available for requested type
Server
Enter user name:
---
I searched around and raised that potentially the problem could lie with the MAX_UTILIZATION value for the number of PROCESSES. How can I increase the value?
Some diagnoses are:
---
+ $> lsnrctl services +.
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on March 31, 2009 16:37:44
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC_FOR_XE)))
Summary of services...
Service 'CLRExtProc' has 1 instance (s).
Instance of 'CLRExtProc', status UNKNOWN, has 1 operation for this service...
Managers:
+ 'DEDICATED' set up: 0 denied: 0 +.
LOCAL SERVER
Service 'PLSExtProc' has 1 instance (s).
Instance of 'PLSExtProc', status UNKNOWN, has 1 operation for this service...
Managers:
+ 'DEDICATED' set up: 0 denied: 0 +.
LOCAL SERVER
Service 'XEXDB' has 1 instance (s).
Instance "xe", State LOAN, has 1 operation for this service...
Managers:
+ "D000" put in place: 0 denied: 0 current: 0 max: 1002 State: loan +.
DISPATCHER < machine: xxxxxxx, pid: 2552 >
+ (Address = (Protocol = TCP (port = 1044))(Host=xxxxxxx)) +.
Service 'XE_XPT' has 1 instance (s).
Instance "xe", State LOAN, has 1 operation for this service...
Managers:
+ 'DEDICATED' set up: 38 refused: 0 status: ready +.
LOCAL SERVER
"Xe" service has 1 instance (s).
Instance "xe", State LOAN, has 1 operation for this service...
Managers:
+ 'DEDICATED' set up: 38 refused: 0 status: ready +.
LOCAL SERVER
The command completed successfully
+ $> +.
---
+ $> lsnrctl status +.
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on March 31, 2009 16:51:52
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC_FOR_XE)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
Beginning of March 31, 2009 15:58:13
Uptime 0 days 0 h 53 min 38 s
Draw level off
Security ON: OS Local Authentication
SNMP OFF
Default Service XE
Listener parameter File C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.ora
Listener log file C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
Summary of endpoints listening...
+(Description=(address=(Protocol=IPC)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))+
+ (Description = (Address = (Protocol = TCP) (Host = xxxxxxx (port = 1521))) +)
+ (Description = (Address = (Protocol = TCP)(Host=127.0.0.1) (port = 8080)) (Presentation = http)(session=RAW)) +.
Summary of services...
Service 'CLRExtProc' has 1 instance (s).
Instance of 'CLRExtProc', status UNKNOWN, has 1 operation for this service...
Service 'PLSExtProc' has 1 instance (s).
Instance of 'PLSExtProc', status UNKNOWN, has 1 operation for this service...
Service 'XEXDB' has 1 instance (s).
Instance "xe", State LOAN, has 1 operation for this service...
Service 'XE_XPT' has 1 instance (s).
Instance "xe", State LOAN, has 1 operation for this service...
"Xe" service has 1 instance (s).
Instance "xe", State LOAN, has 1 operation for this service...
The command completed successfully
+ $> +.
---
+ $> sqlplus /nolog +.
SQL * more: Release 10.2.0.1.0 - Production kills Mar 31 16:54:04 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL > connect sys as sysdba
Enter the password:
Connected.
SQL > select * from v$ resource_limit where resource_name = '' process. ''
RESOURCE_NAME CURRENT_UTILIZATION MAX_UTILIZATION INITIAL_AL
------------------------------ ------------------- --------------- ----------
LIMIT_VALU
----------
processes 21 33 40
+ 40 +.
SQL > SELECT count (*) FROM THE process of v$.
COUNT (*)
----------
+ 21 +.
SQL > SELECT count (*) FROM $session v;
COUNT (*)
----------
+ 15 +.
SQL > SELECT * FROM v$ resource_limit;
RESOURCE_NAME CURRENT_UTILIZATION MAX_UTILIZATION INITIAL_ALLOCATION LIMIT_VALUE
----------------------------------------------------------------------------------------------------------------------------------------------------
gcs_shadows 0 0 0 0
dml_locks 0 57 212 UNLIMITED
temporary_table_locks 0 9 UNLIMITED UNLIMITED
0 7 53 UNLIMITED transactions
0 0 53 UNLIMITED branches
0 1 53 UNLIMITED cmtcallbk
sort_segment_locks 0 1 UNLIMITED UNLIMITED
11 11 53 65535 max_rollback_segments
max_shared_servers 4 4 UNLIMITED UNLIMITED
0 0 0 3600 PARALLEL_MAX_SERVERS
---
Any ideas as to what could be the problem?
Thank you
Amedeo.
P. S.
What is the syntax to create a block of code, if this forum?Hello
It isn't dinamyc parameter, so you need to modify the init.ora file.
that is incase you are usning init.ora file.
If you use spfile, you should
Run change processes control system = <# of="" proccesses="">scope = spfile;#>Thank you
Benjamin Gopal -
Error retrieving Tecra A6 (hard drive not found. Error: F3E1000001)
Hello
I want to recovery my Tecra A6, but when I insert the first (of three) DVD and restart my system to get to the recoveryMenu (when booting from the recovery DVD) just rebooted my laptop and every time I try this (very simple procedure) this
happen again.
That's why I tried to get it back to Win XP > Toshiba Recovery Wizard... in the first DVD in the 'BIN' folder there isn'ta "RECOVERY.bat" batch file when I run this file will open a CMD window and checks are willing (and then the
following text is displayed in the CMD window :)
"
Verification of DMI
Verification of RAID
Failed to initialize the raid class.
Check the HARD disk
End of the error
"
and a new window opens with the following text:
"
an error has occurred.
Error: F3E1000001
Hard drive not found.
Please press [OK] to turn the computer off.
"
If I press OK the any immediately goes down (without shut down windows) and I have to restart.
Also my laptop works properly my recovery DVDs sounds great, I want to just recover my system because of the speed morein Win XP.
Maybe there is a new firmware for my HARD drive or an update of the BIOS so that the laptop could detect my HDD.
In Device Manager, my HARD drive is: HTS541010G9SA00Wait a minute: you try to run recovery as OS installation?
The recovery procedure must be on path:
Turn on the laptop and press the F12 key
When the bootable devices appear put the first media for recovery in the optical disc drive
Choose CD/DVD media from the list and press ENTER
Follow the menu on the screen. -
Internal hard drive from Dell not found 8 place
Its broke
The bios cannot locate the drive. The on-board diagnostics can find and test without problem. It passes all the tests. Help!
I'm done with the same problem after having accidentally reset the Bios of my meeting place 8 Pro 3845 it is "optimized" parameters by default and after a bunch of hours of frustration, I tried a mixture of solutions different people had posted. Because I wanted a clean install anyway, I didn't have the data on the disk.
Long story short, the venue Pro 3845 8 will not start via microSD, insert the microSD card into a card reader USB and that attaching an OTG cable has worked to get the boot made in this sense. I have used Rufus to create this bootable microSD/USB key, based on a Windows 10 iso home x 86 which I had downloaded through Microsofts MediaCreationTool. The next challenge was the support of the mouse/touchscreen missing when installing Windows. I'm managed by addition of AutoUnattended.xml, the first round with some standard settings disc missed a great time (i.e. Setup was not able to copy the files because he had problems to access the internal disk (MEM).
I came across a tabletpcreview.com topic that contains the details of the right disk in the provided AutoUnattended.xml, where I caught the "DiskConfiguration" and "ImageInstall" section for my Windows 10 compatible file.
-
get a mistake-keyword not found if necessary.
Please reaply ASAP!
What is the problem with the query?
SELECT
AAA.user_id
AAA. ISpeak,
SUM (ROUND (AAA. ADURATION_SECONDS/DECODE(AAA.) ISPEAK, 0, OFFPEAKPULSE, PEAKPULSE)) * DECODE(ISPEAK,0,OFFPEAKPULSE,PEAKPULSE)) DURATION.
SRT. Circle,
SRT.package_id,
SRT.peak_rate,
SRT.offpeak_rate,
SRT.bst_plantype,
SRT.free_value,
SRT.peak_pulse,
SRT.offpeak_pulse,
SRT.pulse_unit,
SRT.rating_unit
To aaa, subscriber_rate_tab srt aaa_sessions
WHERE aaa.user_id = srt.externalid (+)
AND (aaa.start_time_utc between srt.activedt and srt.inactivedt)
AND (aaa.end_time_utc between srt.activedt and srt.inactivedt);Where is the comma in the first line? Use aaa.user_id. So tell us what is the following error that appeal to you!
-
Hello
My advice to this error?
SQL > SELECT a.ZSR_OP ORIGIN_PORT, a.ZSR_LP LOAD_PORT, a.ZSR_TS DISC_POR
T, a.ZSR_DP DEST_PORT, a.ZSR_ACTUALPOL ACTUAL_PORT, to_char (ZSR_LOADATE,' dd/mm/year)
yyy') load_date, to_char(ZSR_ARRDATE,'dd/mm/yyyy') Arrival_date, b.ZBL_NUMBER BL
NO, ZBL PACKCODE | ' ' || ZBL_PACKSIZE Pack, ZBL_SVC SOC, b.ZBL_QNT QUANTITY,
ZBL_WTN W_TON, ZBL_FWT R_TON, RTRIM (ZBL_FEEDVSL) | » '|| RTrim (ZBL_FEEDVOY) FEEDER
CODE ZRV_CODE, RVC_NAME CODE_NAME, ZRV_PC PREPAID_COLLECT, ZRV_CURRENCY CURREN
CY, round (nvl(ZRV_LOCAL,0) /decode (NVL(Zbl_netqnt,0), 0, NVL(Zbl_fwt,1), Zbl_netqnt))
(AVERAGE 2), LOCAL_AMT, USD_AMT, PAY_PORT, ZRV_GLVERSION_SAP SA ZRV_USD ZRV_LOCAL
ZRV_GLVERSION_11I GL11, NOTE ZBL_NOTE, ZCT_NUMBER CONTAINER, SIZE ZCT_SIZE, P, Z
WEIGHT OF CT_WTN, ZCT_FTN FREIGHT_WEIGHT
16:16:21 ZIP_STR 2A,.
16:16:21 3 B ZIP_BL,
16:16:21 ZIP_REV 4 C.
16:16:21 REVENUE_CODES 5 D.
16:16:21 6 ZIP_CNT E
16:16:21 7 WHERE ZSR_VSL = "VMY.
16:16:21 8 AND ZSR_VOY = 14
"16: 16:21 9 AND ZSR_DIR = S"
16:16:21 10 AND ZSR_ID = ZBL_STRID
16:16:21 11 AND ZBL_ID = ZRV_BLID
16:16:21 12 AND ZRV_CODE = RVC_CODE
16:16:21 13 AND ZCT_BLID = ZRV_BLID
16:16:21 14 AND TO_CHAR (ZSR_LOADATE, 'yyyy') = '2012'.
SELECT a.ZSR_OP ORIGIN_PORT, a.ZSR_LP LOAD_PORT, a.ZSR_TS DISC_PORT, a.ZSR_DP OF
ST_PORT, a.ZSR_ACTUALPOL ACTUAL_PORT, to_char(ZSR_LOADATE,'dd/mm/yyyy') load_dat
e, to_char(ZSR_ARRDATE,'dd/mm/yyyy') Arrival_date, b.ZBL_NUMBER BL_NO, ZBL_PACKC
ODE | ' ' || ZBL_PACKSIZE Pack, SOC ZBL_SVC, QUANTITY, ZBL_WTN W_TON, B.ZBL_QNT
ZBL_FWT R_TON, RTRIM (ZBL_FEEDVSL) | » '|| RTrim (ZBL_FEEDVOY) FEEDER, COD ZRV_CODE
E, RVC_NAME CODE_NAME, ZRV_PC PREPAID_COLLECT, ZRV_CURRENCY CURRENCY, round (nvl)
ZRV_LOCAL, 0) /decode (NVL(Zbl_netqnt,0), 0, 2) AVERAGE, ZR (Zbl_fwt, 1), Zbl_netqnt), NVL
V_LOCAL LOCAL_AMT, ZRV_USD USD_AMT, PAY_PORT, ZRV_GLVERSION_SAP SAP ZRV_GLVERSI
ON_11I GL11 ZBL_NOTE NOTE, CONTAINER ZCT_NUMBER, SIZE ZCT_SIZE, ZCT_WTN WEIGHT,
ZCT_FTN FREIGHT_WEIGHT
*
ERROR on line 1:
ORA-00923: THE KEYWORD not found where expected
ConcerningThe size is a reserved - word try changing this alias to another thing.
Maybe you are looking for
-
Bing is loading before my home page. How can I get rid of Bing?
Just today, Bing started to load when I started FireFox before my home page. I looked around Bing on my computer and can't find it. What I did today to ask you... Well I load two programs... which I have since deleted. Still stuck with Bing. I have c
-
Without opening the package. How can I know when this ink expires?
Can I use the code on the packaging to know when this ink expires? I don't want to open it. Thank you. I appreciate your help!
-
The problem: you have two directories structures identical, a source and a target. (Let's say \\srchost\srcfolder and c:\destfolder.) The goal: using a batch file in Windows XP, browse to the source folders and add all files to the destination tree
-
Records photos & music view all content on the 'C' drive
My Pictures folder and my music folder show all on my 'C' driveWhen I start my Windows Media Player it always shows "Updating media library: C:\. "and it drives my computer (& me) crazy. All 4 cores leap to 100%, the RAM usage goes from 40% to 80% an
-
VPN host name address in config
I am trying to create my vpn tunnel to use ip instead of host names, so in the case where change us the ip addresses I don't need to change a load of routers. However when I get my orders as below, the host name resolves automatically and when I do a