Strange Oracle---- ORA-00904

I have below query.. it looks fine but still getting error as shown below ...
Breaking my head to identify error but couldn't.. its prompting me as 'ora-00904: "Y"."TRANSACTION_NUMBER": invalid identifier'
in short my query is of form...
SELECT *
FROM mytab t1
WHERE NOT EXISTS
(SELECT 1
FROM mytab t2
WHERE t1.TX = t2.org_tx)
MY QUERY
===========
<br>
SELECT Y.* FROM
SELECT F1.TRANSACTION_NUMBER,
S.CS_REGION,
PRJ1.PROJECT_NUMBER,
PRJ1.PROJECT_TYPE,
D1.TASK_NUMBER AS TASK_NUMBER,
CALENDAR.CALENDAR_DATE AS EXPENDITURE_DATE,
HIS.ACTION_DATE,
HIS.ACTION_TYPE,
Decode (F1.LINE_STATE, 'O', 'Pending', 'B', 'Bill Later', 'C', 'Closed', 'A', 'Archived', 'T', 'Transfer Later', 'AP', 'Pending Closure', 'MP', 'Move Request By CPM', 'SP', 'Split Request By CPM', 'R', 'Reject Request By CPM', 'TP', 'TP Exception', 'RL', 'RED Line', 'H','Hard Closed', F1.LINE_STATE ) STATUS,
ET.EXPENDITURE_TYPE,
ET.EXPENDITURE_CATEGORY,
---F2.TRANSACTION_NUMBER NEW_TX,
---PRJ2.PROJECT_TYPE NEW_PRJ,
---PRJ2.PROJECT_TYPE NEW_PRJ_TYPE,
---D2.TASK_NUMBER NEW_TASK,
Decode (F2.LINE_STATE, 'O', 'Pending', 'B', 'Bill Later', 'C', 'Closed', 'A', 'Archived', 'T', 'Transfer Later', 'AP', 'Pending Closure', 'MP', 'Move Request By CPM', 'SP', 'Split Request By CPM', 'R', 'Reject Request By CPM', 'TP', 'TP Exception', 'RL', 'RED Line', 'H','Hard Closed', F2.LINE_STATE ) STATUS_N,
NULL PARTS_ORDER_NUMBER,
NULL PARTS_LINE_NUMBER,
AR_INV.AR_INVOICE_NUMBER,
NULL SO_LINE_UNIT_SELLING_PRICE,
nvl(F2.GE_STAT_SALES, F1.GE_STAT_SALES) GE_STAT_SALES,
PO_HEAD.PO_DESCRIPTION,
nvl(F2.VAL_LINE_COMMENT, F1.VAL_LINE_COMMENT) CPM_COMMENTS,
nvl(F2.CS_PO_LINE_NUMBER, F1.CS_PO_LINE_NUMBER) CS_PO_LINE_NUMBER,
PO_HEAD.PO_TYPE,
PO_HEAD.PO_NUMBER,
PO_HEAD.CUSTOMER_PO_NUMBER,
CONT.CONTRACT_NUMBER,
FS.OUTAGE_ID CS_EVENT_#,
FS.OUTAGE_NAME CS_EVENT_NAME,
EQUIP.EQUIPMENT_SERIAL_NUM SERIAL_#,
nvl(F2.TRANSACTION_SOURCE, F1.TRANSACTION_SOURCE) SOURCE,
NULL ITEM_NUMBER,
NULL SHIPPED_QUANTITY,
NULL UOM,
AP_INV.AP_INVOICE_NUMBER AP_INVOICE_#,
NULL PARTS_INVOICE,
nvl(F2.GL_JE_SOURCE_NAME, F1.GL_JE_SOURCE_NAME) JE_SOURCE,
nvl(F2.GL_JE_HEADER_ID, F1.GL_JE_HEADER_ID) JE_HEADER_ID,
nvl(F2.GL_JE_LINE_ID, F1.GL_JE_LINE_ID) JE_LINE#,
nvl(F2.OPERATOR_CODE, F1.OPERATOR_CODE) OPERATOR_CODE,
nvl(F2.TP_ADDER, F1.TP_ADDER) TP_ADDER,
nvl(F2.GE_FIFO_COST, F1.GE_FIFO_COST) TRUE_COST,
CASE when f2.transaction_number is null then PRJ1.PA_SERVICES_CM_RATE ELSE PRJ2.PA_SERVICES_CM_RATE END STAT_CM,
nvl(F2.GE_GAAP_SALES, F1.GE_GAAP_SALES) GAAP_SALES,
CASE when f2.transaction_number is null then PRJ1.PA_CONTRACT_CM_RATE ELSE PRJ2.PA_CONTRACT_CM_RATE END GAAP_CM_PERCENT,
LEGAL.LE_FULLNAME LEGAL,
LEGAL.LE_DESCRIPTION LEGAL_ENTITY_DESC
FROM
CSDWH_PA_TRANSACTIONS_F F1,
CSDWH_PA_TRANSACTIONS_F F2,
CSDWH_PA_TASK_D D1,
CSDWH_PA_TASK_D D2,
CSDWH_PA_EXP_TYPE_D ET,
CSDWH_PROJECT_d PRJ1,
CSDWH_PROJECT_d PRJ2,
CSDWH_SITE_D S,
(select B.CSDWH_PA_TRANSACTIONS_F_KEY, B.TRANSACTION_NUMBER, max(B.ACTION_TYPE) ACTION_TYPE, max(B.ACTION_DATE) ACTION_DATE
from (select CSDWH_PA_TRANSACTIONS_F_KEY, max(ACTION_DATE) ACTION_DATE
from CSDWH_CS_FW_TXN_HIS_T
group by CSDWH_PA_TRANSACTIONS_F_KEY) H, CSDWH_CS_FW_TXN_HIS_T B
where H.CSDWH_PA_TRANSACTIONS_F_KEY = B.CSDWH_PA_TRANSACTIONS_F_KEY
and H.ACTION_DATE=B.ACTION_DATE
group by B.CSDWH_PA_TRANSACTIONS_F_KEY, B.TRANSACTION_NUMBER) HIS,
CSDWH_AR_INV_HEADER_d AR_INV,
CSDWH_AP_INV_HEADER_d AP_INV,
CSDWH_CONTRACT_D CONT,
CSDWH_FS_OUTAGE_D FS,
CSDWH_EQUIPMENT_D EQUIP,
CSDWH_LEGAL_ENTITY_D LEGAL,
CSDWH.CALENDAR_D CALENDAR,
CSDWH_PO_HEADER_D PO_HEAD
WHERE F2.ORIG_TRANSACTION_NUMBER(+)=F1.TRANSACTION_NUMBER
AND nvl(F2.CSDWH_PA_TASK_D_KEY,-100)=D2.CSDWH_PA_TASK_D_KEY
AND CALENDAR.CALENDER_DIM_KEY = F1.EXPENDITURE_ITEM_DATE_KEY
AND ET.CSDWH_PA_EXP_TYPE_D_KEY=F1.CSDWH_PA_EXP_TYPE_D_KEY
AND F1.CSDWH_PA_TASK_D_KEY =D1.CSDWH_PA_TASK_D_KEY
AND D1.TASK_NUMBER in ('IP', 'IU', 'IX')
AND PRJ1.CSDWH_PROJECT_D_KEY =F1.CSDWH_PROJECT_D_KEY
AND PRJ2.CSDWH_PROJECT_D_KEY =nvl(F2.CSDWH_PROJECT_D_KEY,-100)
AND HIS.CSDWH_PA_TRANSACTIONS_F_KEY(+)=F1.CSDWH_PA_TRANSACTIONS_F_KEY
AND AR_INV.CSDWH_AR_INV_HEADER_D_KEY =nvl(F2.CSDWH_AR_INV_HEADER_D_KEY, F1.CSDWH_AR_INV_HEADER_D_KEY)
AND AP_INV.CSDWH_AP_INV_HEADER_D_KEY =nvl(F2.CSDWH_AP_INV_HEADER_D_KEY, F1.CSDWH_AP_INV_HEADER_D_KEY)
AND CONT.CSDWH_CONTRACT_D_KEY =nvl(F2.CSDWH_CONTRACT_D_KEY, F1.CSDWH_CONTRACT_D_KEY)
AND FS.CSDWH_FS_OUTAGE_D_KEY =nvl(F2.CSDWH_FS_OUTAGE_D_KEY, F1.CSDWH_FS_OUTAGE_D_KEY)
AND EQUIP.CSDWH_EQUIPMENT_D_KEY =nvl(F2.CSDWH_EQUIPMENT_D_KEY, F1.CSDWH_EQUIPMENT_D_KEY)
AND LEGAL.CSDWH_LEGAL_ENTITY_D_KEY =nvl(F2.GE_CONT_ORG_D_KEY, F1.GE_CONT_ORG_D_KEY)
--and CALENDAR.CALENDAR_DATE between to_date('10/01/2010','mm/dd/yyyy') and to_date('12/31/2010','mm/dd/yyyy')
AND PO_HEAD.CSDWH_PO_HEADER_D_KEY =nvl(F2.CSDWH_PO_HEADER_D_KEY, F1.CSDWH_PO_HEADER_D_KEY)
AND F1.CSDWH_SALES_ORDER_D_KEY=-100 AND F1.CSDWH_PO_HEADER_D_KEY<>-100
AND S.CSDWH_SITE_D_KEY = nvl(F2.CSDWH_SITE_D_KEY,F1.CSDWH_SITE_D_KEY)
--AND S.CS_REGION='EAST EUROPE'
AND CONT.CONTRACT_STATUS='ACTIVE'
)Y
WHERE NOT EXISTS
SELECT 1 FROM (
SELECT F2.TRANSACTION_NUMBER NT
FROM
CSDWH_PA_TRANSACTIONS_F F1,
CSDWH_PA_TRANSACTIONS_F F2,
CSDWH_PA_TASK_D D1,
CSDWH_PA_TASK_D D2,
CSDWH_PA_EXP_TYPE_D ET,
CSDWH_PROJECT_d PRJ1,
CSDWH_PROJECT_d PRJ2,
CSDWH_SITE_D S,
(select B.CSDWH_PA_TRANSACTIONS_F_KEY, B.TRANSACTION_NUMBER, max(B.ACTION_TYPE) ACTION_TYPE, max(B.ACTION_DATE) ACTION_DATE
from (select CSDWH_PA_TRANSACTIONS_F_KEY, max(ACTION_DATE) ACTION_DATE
from CSDWH_CS_FW_TXN_HIS_T
group by CSDWH_PA_TRANSACTIONS_F_KEY) H, CSDWH_CS_FW_TXN_HIS_T B
where H.CSDWH_PA_TRANSACTIONS_F_KEY = B.CSDWH_PA_TRANSACTIONS_F_KEY
and H.ACTION_DATE=B.ACTION_DATE
group by B.CSDWH_PA_TRANSACTIONS_F_KEY, B.TRANSACTION_NUMBER) HIS,
CSDWH_AR_INV_HEADER_d AR_INV,
CSDWH_AP_INV_HEADER_d AP_INV,
CSDWH_CONTRACT_D CONT,
CSDWH_FS_OUTAGE_D FS,
CSDWH_EQUIPMENT_D EQUIP,
CSDWH_LEGAL_ENTITY_D LEGAL,
CSDWH.CALENDAR_D CALENDAR,
CSDWH_PO_HEADER_D PO_HEAD
WHERE F2.ORIG_TRANSACTION_NUMBER(+)=F1.TRANSACTION_NUMBER
AND nvl(F2.CSDWH_PA_TASK_D_KEY,-100)=D2.CSDWH_PA_TASK_D_KEY
AND CALENDAR.CALENDER_DIM_KEY = F1.EXPENDITURE_ITEM_DATE_KEY
AND ET.CSDWH_PA_EXP_TYPE_D_KEY=F1.CSDWH_PA_EXP_TYPE_D_KEY
AND F1.CSDWH_PA_TASK_D_KEY =D1.CSDWH_PA_TASK_D_KEY
AND D1.TASK_NUMBER in ('IP', 'IU', 'IX')
AND PRJ1.CSDWH_PROJECT_D_KEY =F1.CSDWH_PROJECT_D_KEY
AND PRJ2.CSDWH_PROJECT_D_KEY =nvl(F2.CSDWH_PROJECT_D_KEY,-100)
AND HIS.CSDWH_PA_TRANSACTIONS_F_KEY(+)=F1.CSDWH_PA_TRANSACTIONS_F_KEY
AND AR_INV.CSDWH_AR_INV_HEADER_D_KEY =nvl(F2.CSDWH_AR_INV_HEADER_D_KEY, F1.CSDWH_AR_INV_HEADER_D_KEY)
AND AP_INV.CSDWH_AP_INV_HEADER_D_KEY =nvl(F2.CSDWH_AP_INV_HEADER_D_KEY, F1.CSDWH_AP_INV_HEADER_D_KEY)
AND CONT.CSDWH_CONTRACT_D_KEY =nvl(F2.CSDWH_CONTRACT_D_KEY, F1.CSDWH_CONTRACT_D_KEY)
AND FS.CSDWH_FS_OUTAGE_D_KEY =nvl(F2.CSDWH_FS_OUTAGE_D_KEY, F1.CSDWH_FS_OUTAGE_D_KEY)
AND EQUIP.CSDWH_EQUIPMENT_D_KEY =nvl(F2.CSDWH_EQUIPMENT_D_KEY, F1.CSDWH_EQUIPMENT_D_KEY)
AND LEGAL.CSDWH_LEGAL_ENTITY_D_KEY =nvl(F2.GE_CONT_ORG_D_KEY, F1.GE_CONT_ORG_D_KEY)
--and CALENDAR.CALENDAR_DATE between to_date('10/01/2010','mm/dd/yyyy') and to_date('12/31/2010','mm/dd/yyyy')
AND PO_HEAD.CSDWH_PO_HEADER_D_KEY =nvl(F2.CSDWH_PO_HEADER_D_KEY, F1.CSDWH_PO_HEADER_D_KEY)
AND F1.CSDWH_SALES_ORDER_D_KEY=-100 AND F1.CSDWH_PO_HEADER_D_KEY<>-100
AND S.CSDWH_SITE_D_KEY = nvl(F2.CSDWH_SITE_D_KEY,F1.CSDWH_SITE_D_KEY)
--AND S.CS_REGION='EAST EUROPE'
AND CONT.CONTRACT_STATUS='ACTIVE'
)K WHERE Y.TRANSACTION_NUMBER=K.NT
</br>

Hi,
Somehow your parentheses are placed wrong:
SELECT y.*
FROM   (SELECT f1.transaction_number,
               s.cs_region,
               prj1.project_number,
               prj1.project_type,
               d1.task_number AS task_number,
               calendar.calendar_date AS expenditure_date,
               his.action_date,
               his.action_type,
               DECODE (f1.line_state,
                       'O', 'Pending',
                       'B', 'Bill Later',
                       'C', 'Closed',
                       'A', 'Archived',
                       'T', 'Transfer Later',
                       'AP', 'Pending Closure',
                       'MP', 'Move Request By CPM',
                       'SP', 'Split Request By CPM',
                       'R', 'Reject Request By CPM',
                       'TP', 'TP Exception',
                       'RL', 'RED Line',
                       'H', 'Hard Closed',
                       f1.line_state
                 status,
               et.expenditure_type,
               et.expenditure_category,
               ---F2.TRANSACTION_NUMBER NEW_TX,
               ---PRJ2.PROJECT_TYPE NEW_PRJ,
               ---PRJ2.PROJECT_TYPE NEW_PRJ_TYPE,
               ---D2.TASK_NUMBER NEW_TASK,
               DECODE (f2.line_state,
                       'O', 'Pending',
                       'B', 'Bill Later',
                       'C', 'Closed',
                       'A', 'Archived',
                       'T', 'Transfer Later',
                       'AP', 'Pending Closure',
                       'MP', 'Move Request By CPM',
                       'SP', 'Split Request By CPM',
                       'R', 'Reject Request By CPM',
                       'TP', 'TP Exception',
                       'RL', 'RED Line',
                       'H', 'Hard Closed',
                       f2.line_state
                 status_n,
               NULL parts_order_number,
               NULL parts_line_number,
               ar_inv.ar_invoice_number,
               NULL so_line_unit_selling_price,
               NVL (f2.ge_stat_sales, f1.ge_stat_sales) ge_stat_sales,
               po_head.po_description,
               NVL (f2.val_line_comment, f1.val_line_comment) cpm_comments,
               NVL (f2.cs_po_line_number, f1.cs_po_line_number)
                 cs_po_line_number,
               po_head.po_type,
               po_head.po_number,
               po_head.customer_po_number,
               cont.contract_number,
               fs.outage_id cs_event_#,
               fs.outage_name cs_event_name,
               equip.equipment_serial_num serial_#,
               NVL (f2.transaction_source, f1.transaction_source) source,
               NULL item_number,
               NULL shipped_quantity,
               NULL uom,
               ap_inv.ap_invoice_number ap_invoice_#,
               NULL parts_invoice,
               NVL (f2.gl_je_source_name, f1.gl_je_source_name) je_source,
               NVL (f2.gl_je_header_id, f1.gl_je_header_id) je_header_id,
               NVL (f2.gl_je_line_id, f1.gl_je_line_id) je_line#,
               NVL (f2.operator_code, f1.operator_code) operator_code,
               NVL (f2.tp_adder, f1.tp_adder) tp_adder,
               NVL (f2.ge_fifo_cost, f1.ge_fifo_cost) true_cost,
               CASE
                 WHEN f2.transaction_number IS NULL THEN
                   prj1.pa_services_cm_rate
                 ELSE
                   prj2.pa_services_cm_rate
               END
                 stat_cm,
               NVL (f2.ge_gaap_sales, f1.ge_gaap_sales) gaap_sales,
               CASE
                 WHEN f2.transaction_number IS NULL THEN
                   prj1.pa_contract_cm_rate
                 ELSE
                   prj2.pa_contract_cm_rate
               END
                 gaap_cm_percent,
               legal.le_fullname legal,
               legal.le_description legal_entity_desc
        FROM   csdwh_pa_transactions_f f1,
               csdwh_pa_transactions_f f2,
               csdwh_pa_task_d d1,
               csdwh_pa_task_d d2,
               csdwh_pa_exp_type_d et,
               csdwh_project_d prj1,
               csdwh_project_d prj2,
               csdwh_site_d s,
               (SELECT   b.csdwh_pa_transactions_f_key,
                         b.transaction_number,
                         MAX (b.action_type) action_type,
                         MAX (b.action_date) action_date
                FROM     (SELECT   csdwh_pa_transactions_f_key,
                                   MAX (action_date) action_date
                          FROM     csdwh_cs_fw_txn_his_t
                          GROUP BY csdwh_pa_transactions_f_key) h,
                         csdwh_cs_fw_txn_his_t b
                WHERE    h.csdwh_pa_transactions_f_key =
                           b.csdwh_pa_transactions_f_key
                         AND h.action_date = b.action_date
                GROUP BY b.csdwh_pa_transactions_f_key, b.transaction_number) his,
               csdwh_ar_inv_header_d ar_inv,
               csdwh_ap_inv_header_d ap_inv,
               csdwh_contract_d cont,
               csdwh_fs_outage_d fs,
               csdwh_equipment_d equip,
               csdwh_legal_entity_d legal,
               csdwh.calendar_d calendar,
               csdwh_po_header_d po_head
        WHERE      f2.orig_transaction_number(+) = f1.transaction_number
               AND NVL (f2.csdwh_pa_task_d_key, -100) = d2.csdwh_pa_task_d_key
               AND calendar.calender_dim_key = f1.expenditure_item_date_key
               AND et.csdwh_pa_exp_type_d_key = f1.csdwh_pa_exp_type_d_key
               AND f1.csdwh_pa_task_d_key = d1.csdwh_pa_task_d_key
               AND d1.task_number IN ('IP', 'IU', 'IX')
               AND prj1.csdwh_project_d_key = f1.csdwh_project_d_key
               AND prj2.csdwh_project_d_key =
                     NVL (f2.csdwh_project_d_key, -100)
               AND his.csdwh_pa_transactions_f_key(+) =
                     f1.csdwh_pa_transactions_f_key
               AND ar_inv.csdwh_ar_inv_header_d_key =
                     NVL (f2.csdwh_ar_inv_header_d_key,
                          f1.csdwh_ar_inv_header_d_key
               AND ap_inv.csdwh_ap_inv_header_d_key =
                     NVL (f2.csdwh_ap_inv_header_d_key,
                          f1.csdwh_ap_inv_header_d_key
               AND cont.csdwh_contract_d_key =
                     NVL (f2.csdwh_contract_d_key, f1.csdwh_contract_d_key)
               AND fs.csdwh_fs_outage_d_key =
                     NVL (f2.csdwh_fs_outage_d_key, f1.csdwh_fs_outage_d_key)
               AND equip.csdwh_equipment_d_key =
                     NVL (f2.csdwh_equipment_d_key, f1.csdwh_equipment_d_key)
               AND legal.csdwh_legal_entity_d_key =
                     NVL (f2.ge_cont_org_d_key, f1.ge_cont_org_d_key)
               --and CALENDAR.CALENDAR_DATE between to_date('10/01/2010','mm/dd/yyyy') and to_date('12/31/2010','mm/dd/yyyy')
               AND po_head.csdwh_po_header_d_key =
                     NVL (f2.csdwh_po_header_d_key, f1.csdwh_po_header_d_key)
               AND f1.csdwh_sales_order_d_key = -100
               AND f1.csdwh_po_header_d_key - 100
               AND s.csdwh_site_d_key =
                     NVL (f2.csdwh_site_d_key, f1.csdwh_site_d_key)
               --AND S.CS_REGION='EAST EUROPE'
               AND cont.contract_status = 'ACTIVE') y ---------------------  y scope
WHERE  NOT EXISTS
             (SELECT 1                                              ------------------------------------------------------ Final ")" is opened here
              FROM   (SELECT f2.transaction_number nt
                      FROM   csdwh_pa_transactions_f f1,
                             csdwh_pa_transactions_f f2,
                             csdwh_pa_task_d d1,
                             csdwh_pa_task_d d2,
                             csdwh_pa_exp_type_d et,
                             csdwh_project_d prj1,
                             csdwh_project_d prj2,
                             csdwh_site_d s,
                             (SELECT   b.csdwh_pa_transactions_f_key,
                                       b.transaction_number,
                                       MAX (b.action_type) action_type,
                                       MAX (b.action_date) action_date
                              FROM     (SELECT   csdwh_pa_transactions_f_key,
                                                 MAX (action_date) action_date
                                        FROM     csdwh_cs_fw_txn_his_t
                                        GROUP BY csdwh_pa_transactions_f_key) h,
                                       csdwh_cs_fw_txn_his_t b
                              WHERE    h.csdwh_pa_transactions_f_key =
                                         b.csdwh_pa_transactions_f_key
                                       AND h.action_date = b.action_date
                              GROUP BY b.csdwh_pa_transactions_f_key, b.transaction_number) his,
                             csdwh_ar_inv_header_d ar_inv,
                             csdwh_ap_inv_header_d ap_inv,
                             csdwh_contract_d cont,
                             csdwh_fs_outage_d fs,
                             csdwh_equipment_d equip,
                             csdwh_legal_entity_d legal,
                             csdwh.calendar_d calendar,
                             csdwh_po_header_d po_head
                      WHERE  f2.orig_transaction_number(+) =
                               f1.transaction_number
                             AND NVL (f2.csdwh_pa_task_d_key, -100) =
                                   d2.csdwh_pa_task_d_key
                             AND calendar.calender_dim_key =
                                   f1.expenditure_item_date_key
                             AND et.csdwh_pa_exp_type_d_key =
                                   f1.csdwh_pa_exp_type_d_key
                             AND f1.csdwh_pa_task_d_key =
                                   d1.csdwh_pa_task_d_key
                             AND d1.task_number IN ('IP', 'IU', 'IX')
                             AND prj1.csdwh_project_d_key =
                                   f1.csdwh_project_d_key
                             AND prj2.csdwh_project_d_key =
                                   NVL (f2.csdwh_project_d_key, -100)
                             AND his.csdwh_pa_transactions_f_key(+) =
                                   f1.csdwh_pa_transactions_f_key
                             AND ar_inv.csdwh_ar_inv_header_d_key =
                                   NVL (f2.csdwh_ar_inv_header_d_key,
                                        f1.csdwh_ar_inv_header_d_key
                             AND ap_inv.csdwh_ap_inv_header_d_key =
                                   NVL (f2.csdwh_ap_inv_header_d_key,
                                        f1.csdwh_ap_inv_header_d_key
                             AND cont.csdwh_contract_d_key =
                                   NVL (f2.csdwh_contract_d_key,
                                        f1.csdwh_contract_d_key
                             AND fs.csdwh_fs_outage_d_key =
                                   NVL (f2.csdwh_fs_outage_d_key,
                                        f1.csdwh_fs_outage_d_key
                             AND equip.csdwh_equipment_d_key =
                                   NVL (f2.csdwh_equipment_d_key,
                                        f1.csdwh_equipment_d_key
                             AND legal.csdwh_legal_entity_d_key =
                                   NVL (f2.ge_cont_org_d_key,
                                        f1.ge_cont_org_d_key
                             --and CALENDAR.CALENDAR_DATE between to_date('10/01/2010','mm/dd/yyyy') and to_date('12/31/2010','mm/dd/yyyy')
                             AND po_head.csdwh_po_header_d_key =
                                   NVL (f2.csdwh_po_header_d_key,
                                        f1.csdwh_po_header_d_key
                             AND f1.csdwh_sales_order_d_key = -100
                             AND f1.csdwh_po_header_d_key - 100
                             AND s.csdwh_site_d_key =
                                   NVL (f2.csdwh_site_d_key,
                                        f1.csdwh_site_d_key
                             --AND S.CS_REGION='EAST EUROPE'
                             AND cont.contract_status = 'ACTIVE') k
              WHERE  y.transaction_number = k.nt)   ---------------------------------------------------------------------------- Final ")"

Similar Messages

  • RMAN-06004:ORACLE error from recovery catalog ... ORA-00904: : invalid ...

    Good Morning All,
    One of our RMAN backups is failing with the following error message. Any suggestions would be greatly appreciated.
    ==================================================================================================
    Starting backup at 12/30/2008 22:03:47
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 12/30/2008 22:03:47
    RMAN-06004: ORACLE error from recovery catalog database: ORA-00904: : invalid identifier
    RMAN>
    RMAN> ##BACKUP ARCHIVELOG ALL FORMAT '%d_bkp_al_%t_Set%s_Piece%p' delete input;
    2>
    3> # DELETE ARCHIVELOG UNTIL TIME 'SYSDATE-7';
    4>
    5> # check if database can be restored
    6> # RESTORE DATABASE VALIDATE;
    7>
    8> # check if controlfile can be restored
    9> ##RESTORE CONTROLFILE to '/backups/admin/custpr/custpr_bkp_cntlfile.ctl' VALIDATE;
    10>
    11> # check if archivelogs for the past two weeks can be restored
    12> # RESTORE ARCHIVELOG FROM TIME 'SYSDATE-7' VALIDATE;
    13>
    14> # - Verify all backups on backup media are intact
    15> # CROSSCHECK BACKUP OF DATABASE;
    16>
    17> # - Display a list of files that need to be backed up based on the retention
    18> # policy. For this case study, files that don't have at least 1 backups
    19> # will be reported.
    20> REPORT NEED BACKUP;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to recovery window of 7 days
    Report of files whose recovery needs more than 7 days of archived logs
    File Days Name
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of report command at 12/30/2008 22:03:48
    RMAN-06004: ORACLE error from recovery catalog database: ORA-00904: : invalid identifier
    RMAN>
    RMAN> # - delete un-necessary backups. This command deletes backups based on the
    2> # retention policy.
    3> ######### commented out DELETE OBSOLETE - TSM not configured to delete on 68
    4> #########DELETE OBSOLETE;
    5>
    6> # - get complete list of existing backups
    7> LIST BACKUP;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of list command at 12/30/2008 22:03:49
    RMAN-06004: ORACLE error from recovery catalog database: ORA-00904: : invalid identifier
    RMAN>
    RMAN> #-end of file-
    2> **end-of-file**
    RMAN>
    Edited by: ORA_UMAIR on Dec 31, 2008 7:51 AM

    This Oracle Database is 9.2.0.6.0. Here is the complete log file. The RMAN script that I am using ran successfully many times before.
    ====================================================================================================
    Recovery Manager: Release 9.2.0.6.0 - 64bit Production
    Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
    RMAN>
    connected to recovery catalog database
    RMAN>
    connected to target database: CUSTPR (DBID=525071053)
    RMAN>
    RMAN> #########################################################################
    2> # LEVEL 0 BACKUP #
    3> #########################################################################
    4>
    5> # Configure backups to be written to disk.
    6> CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    old RMAN configuration parameters:
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    new RMAN configuration parameters:
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    new RMAN configuration parameters are successfully stored
    starting full resync of recovery catalog
    full resync complete
    RMAN>
    RMAN> # Set the retention policy to a recovery window of 7 days. This ensures that
    2> # RMAN retains all backups needed to recover the database to any point in time
    3> # in the last 7 days. You can use the DELETE OBSOLETE command to delete
    4> # backups that are no longer required by the retention policy. To exclude a
    5> # backup from consideration by the policy, you can use KEEP option with the
    6> # BACKUP command.
    7> CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    old RMAN configuration parameters:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    new RMAN configuration parameters:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    new RMAN configuration parameters are successfully stored
    starting full resync of recovery catalog
    full resync complete
    RMAN>
    RMAN> # Configure RMAN to use two disk channels for backup, restore, recovery, and
    2> # maintenance operations.
    3> CONFIGURE DEVICE TYPE DISK PARALLELISM 1;
    old RMAN configuration parameters:
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1;
    new RMAN configuration parameters:
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1;
    new RMAN configuration parameters are successfully stored
    starting full resync of recovery catalog
    full resync complete
    RMAN>
    RMAN> # Configure RMAN to write disk backups to the /backup directory.
    2> # The format specifier %t is replaced with a 4-byte timestamp, %s with the
    3> # backup set number, and %p with the backup piece number.
    4> CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/backups/admin/custpr/%d_bkp_df%t_Set%s_Piece%p';
    old RMAN configuration parameters:
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/backups/admin/custpr/%d_bkp_df%t_Set%s_Piece%p';
    new RMAN configuration parameters:
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/backups/admin/custpr/%d_bkp_df%t_Set%s_Piece%p';
    new RMAN configuration parameters are successfully stored
    starting full resync of recovery catalog
    full resync complete
    RMAN>
    RMAN> # Configure RMAN to back up the control file after each backup.
    2> CONFIGURE CONTROLFILE AUTOBACKUP ON;
    old RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    new RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    new RMAN configuration parameters are successfully stored
    starting full resync of recovery catalog
    full resync complete
    RMAN>
    RMAN> # Configure RMAN to write controlfile autobackups to the /backup directory.
    2> CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/backups/admin/custpr/%d_bkp_cf%F';
    old RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/backups/admin/custpr/%d_bkp_cf%F';
    new RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/backups/admin/custpr/%d_bkp_cf%F';
    new RMAN configuration parameters are successfully stored
    starting full resync of recovery catalog
    full resync complete
    RMAN>
    RMAN> # Enable the backup optimization feature introduced in 9i to make sure that
    2> # RMAN won't backup an archivelog or datafile if there already exists a backup
    3> # of that file. The FORCE option can be used to override optimization on a
    4> # specific BACKUP command.
    5> CONFIGURE BACKUP OPTIMIZATION ON;
    old RMAN configuration parameters:
    CONFIGURE BACKUP OPTIMIZATION ON;
    new RMAN configuration parameters:
    CONFIGURE BACKUP OPTIMIZATION ON;
    new RMAN configuration parameters are successfully stored
    starting full resync of recovery catalog
    full resync complete
    RMAN>
    RMAN> # Use the SHOW ALL command to see the current configuration settings.
    2> SHOW ALL ;
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE 'SBT_TAPE' TO '%d_bkp_cf%F';
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/backups/admin/custpr/%d_bkp_cf%F';
    CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 1;
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' FORMAT '%d_bkp_df%t_Set%s_Piece%p';
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/backups/admin/custpr/%d_bkp_df%t_Set%s_Piece%p';
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/orahome2/custprdb/9.2.0/dbs/snapcf_custpr.f'; # default
    RMAN>
    RMAN> # The following commands are run each day to start the backup cycle.
    2> # The steps are:
    3> # - Take an incremental level 0 backup of the database. A level 0 backup is
    4> # a complete backup of the entire file which can be used as the basis
    5> # for a subsequent incremental backup.
    6> # - Backup all archivelogs that have not already been backed up.
    7> # - Delete on-disk archivelogs older than seven days.
    8>
    9> BACKUP INCREMENTAL LEVEL 0 FORMAT '/backups/admin/custpr/%d_bkp_df%t_Set%s_Piece%p'
    10> DATABASE maxsetsize 33G
    11> PLUS ARCHIVELOG FORMAT '/backups/admin/custpr/%d_bkp_al%t_Set%s_Piece%p'
    12> delete all input;
    Starting backup at 12/30/2008 22:01:40
    current log archived
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=11 devtype=DISK
    channel ORA_DISK_1: starting archive log backupset
    channel ORA_DISK_1: specifying archive log(s) in backup set
    input archive log thread=1 sequence=8008 recid=7910 stamp=674638862
    input archive log thread=1 sequence=8009 recid=7911 stamp=674671207
    input archive log thread=1 sequence=8010 recid=7912 stamp=674697380
    input archive log thread=1 sequence=8011 recid=7913 stamp=674780433
    input archive log thread=1 sequence=8012 recid=7914 stamp=674784211
    input archive log thread=1 sequence=8013 recid=7915 stamp=674863288
    input archive log thread=1 sequence=8014 recid=7916 stamp=674863300
    channel ORA_DISK_1: starting piece 1 at 12/30/2008 22:01:41
    channel ORA_DISK_1: finished piece 1 at 12/30/2008 22:03:47
    piece handle=/backups/admin/custpr/CUSTPR_bkp_al674863300_Set3083_Piece1 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:02:07
    channel ORA_DISK_1: deleting archive log(s)
    archive log filename=/custpr/arch/arch_custpr_8008.log recid=7910 stamp=674638862
    archive log filename=/custpr/arch/arch_custpr_8009.log recid=7911 stamp=674671207
    archive log filename=/custpr/arch/arch_custpr_8010.log recid=7912 stamp=674697380
    archive log filename=/custpr/arch/arch_custpr_8011.log recid=7913 stamp=674780433
    archive log filename=/custpr/arch/arch_custpr_8012.log recid=7914 stamp=674784211
    archive log filename=/custpr/arch/arch_custpr_8013.log recid=7915 stamp=674863288
    archive log filename=/custpr/arch/arch_custpr_8014.log recid=7916 stamp=674863300
    Finished backup at 12/30/2008 22:03:47
    Starting backup at 12/30/2008 22:03:47
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 12/30/2008 22:03:47
    RMAN-06004: ORACLE error from recovery catalog database: ORA-00904: : invalid identifier
    RMAN>
    RMAN> ##BACKUP ARCHIVELOG ALL FORMAT '%d_bkp_al_%t_Set%s_Piece%p' delete input;
    2>
    3> # DELETE ARCHIVELOG UNTIL TIME 'SYSDATE-7';
    4>
    5> # check if database can be restored
    6> # RESTORE DATABASE VALIDATE;
    7>
    8> # check if controlfile can be restored
    9> ##RESTORE CONTROLFILE to '/backups/admin/custpr/custpr_bkp_cntlfile.ctl' VALIDATE;
    10>
    11> # check if archivelogs for the past two weeks can be restored
    12> # RESTORE ARCHIVELOG FROM TIME 'SYSDATE-7' VALIDATE;
    13>
    14> # - Verify all backups on backup media are intact
    15> # CROSSCHECK BACKUP OF DATABASE;
    16>
    17> # - Display a list of files that need to be backed up based on the retention
    18> # policy. For this case study, files that don't have at least 1 backups
    19> # will be reported.
    20> REPORT NEED BACKUP;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to recovery window of 7 days
    Report of files whose recovery needs more than 7 days of archived logs
    File Days Name
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of report command at 12/30/2008 22:03:48
    RMAN-06004: ORACLE error from recovery catalog database: ORA-00904: : invalid identifier
    RMAN>
    RMAN> # - delete un-necessary backups. This command deletes backups based on the
    2> # retention policy.
    3> ######### commented out DELETE OBSOLETE - TSM not configured to delete on 68
    4> #########DELETE OBSOLETE;
    5>
    6> # - get complete list of existing backups
    7> LIST BACKUP;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of list command at 12/30/2008 22:03:49
    RMAN-06004: ORACLE error from recovery catalog database: ORA-00904: : invalid identifier
    RMAN>
    RMAN> #-end of file-
    2> **end-of-file**
    RMAN>
    Recovery Manager complete.

  • Oracle query on dblinked SQL Server tables returns ORA-00904 error

    Hi,
    I have created a dblink to a SQL Server database from Oracle using Generic Connectivity.
    The following query returns ORA-00904 Invalid Identifier error in the WHERE clause (tblEmp.Empno)
    SELECT "EmpNo","EmpName", "DeptName"
    FROM tblEmp@sqlserver,
    tblDept@sqlserver
    WHERE tblDept.DeptNo = tblEmp.Empno
    I had to enclose the column names in double quotes due to case sensitivitiy of the columns, but I can't do the
    same for the WHERE clause.
    1) So, how do I fix this error ?
    2) Also how do I include Deptno column with table alias in the columns list?
    (Deptno is ambiguous in Emp and Dept tables)
    Regards,
    Sam

    Alex
    Because using the aliases all the time can become annoying and lead to disparate standards when used by multiple developers. For a one-off query I would go with aliases in the query but if the linked tables are going to be interrogated extensively I would prefer to create vanilla views of the underlying tables so that the aliases aren't necessary.
    Just my opinion, it feels a bit cleaner to do it this way - you only do the work once in creating the view and then you don't need to worry about the case sensitivity of the linked database. You can also refer to the source in the name of the view so you don't have to think about different source databases with the same table names.
    Cheers
    Ben

  • Pl/SQL Error ORA-00904 not showing in Oracle SQL Developer

    Hi,
    I am new to Oracle and the various development tools available.
    Whilst using Oracle SQL Developer we have come across a scenario where a PL/SQL package does not compile, but only shows warnings in the compiler log.
    The same packeage when compiled using PL/SQL Navigator shows a much more detailed list of errors, and highlights the real problem.
    Why does Oracle SQL Developer not show the following error?
    PL/SQL: ORA-00904: "SERIAL_LINE_ID": invalid identifier
    Regards
    Adrian

    There are various settings you can give to messages. (eg, informational, warning, severe).
    Tools-PL/SQL compiler options.
    Normally, just the first 20 messages are displayed.
    Either change code to get rid of warning messages, or change settings to ignore informational and warning messages.
    P.S. There is a dedicated sqldeveloper forum where your question should really have been posted.
    Edited by: Keith Jamieson on Mar 9, 2009 1:45 PM

  • Oracle 8i full export fails (ORA-00904)

    Hello Guru's.
    I encounter this problem when i try a full export.
    Database version is 8.1.7.4 and the export utility is also 8.1.7.4
    When i try exporting it generates a ORA-00904 error. I traced on this error and see the following:
    *** SESSION ID:(8.57) 2007-03-21 10:33:53.738
    *** 2007-03-21 10:33:53.738
    ksedmp: internal or fatal error
    ORA-00904: invalid column name
    Current SQL statement for this session:
    SELECT GRANTOR, GRANTORID, GRANTEE, PRIV, WGO, ISDIR, TYPE FROM SYS.EXU8GRN WHERE OBJID = :1 ORDER BY WGO DESC, SEQUENCE
    I checked the compatible parameter:
    (compatible string 8.1.7)
    Any reply greatly appreciated.

    Yeah, well, maybe running catexp.sql will solve that .....
    And it did.
    But more stuff is coming up, proberly when i try to import this thingie into Oracle 10g.
    Thanks, and reply!

  • Oracle GateWay ORA-00904:  invalid identifier - How Fixed it

    Database: 11.2.0 Windows 32-bit (on WindowsXP SP3)
    ORACLE_HOME = D:\Oracle\Product\11.2.0\dbhome
    GATEWAY_HOME = D:\Oracle\Product\11.2.0\gw
    odbc : sqlserver (working... i can import table's data in MS Excel) its ok...
    odbc : dg4msql (working... i can import table's data in MS Excel) its ok...
    Oracle GateWay Listener
    D:\Oracle\Product\11.2.0\gw\NETWORK\ADMIN
    # listener.ora Network Configuration File: D:\Oracle\Product\11.2.0\gw\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_GWLISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = dg4msql)
    (ORACLE_HOME = D:\Oracle\Product\11.2.0\gw)
    (ENVS = "EXTPROC_DLLS=ONLY:D:\Oracle\Product\11.2.0\gw\bin\oraclr11.dll")
    (PROGRAM = dg4msql)
    (SID_DESC=
    (SID_NAME=dg4msql)
    (ORACLE_HOME = D:\Oracle\Product\11.2.0\gw)
    (PROGRAM = dg4msql)
    GWLISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.90)(PORT = 1522))
    ADR_BASE_GWLISTENER = D:\Oracle\Product\11.2.0\gw
    Gateway Listener Status
    LSNRCTL> status GWLISTENER
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1522)))
    STATUS of the LISTENER
    Alias GWLISTENER
    Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Produ
    ction
    Start Date 13-OCT-2011 11:36:16
    Uptime 0 days 0 hr. 29 min. 43 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File D:\Oracle\Product\11.2.0\gw\network\admin\listener.ora
    Listener Log File d:\oracle\product\11.2.0\gw\diag\tnslsnr\appsdba\gwlis
    tener\alert\log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1522ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.90)(PORT=1522)))
    Services Summary...
    Service "dg4msql" has 1 instance(s).
    Instance "dg4msql", status UNKNOWN, has 2 handler(s) for this service...
    The command completed successfully
    LSNRCTL>
    D:\Oracle\Product\11.2.0\gw\network\admin\sqlnet.ora
    # sqlnet.ora Network Configuration File: D:\Oracle\Product\11.2.0\gw\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    # This file is actually generated by netca. But if customers choose to
    # install "Software Only", this file wont exist and without the native
    # authentication, they will not be able to connect to the database on NT.
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    D:\Oracle\Product\11.2.0\gw\dg4msql\admin\initdg4msql.ora
    # This is a customized agent init file that contains the HS parameters
    # that are needed for the Database Gateway for Microsoft SQL Server
    # HS init parameters
    #HS_FDS_CONNECT_INFO=[192.168.0.8]/SRV-TULIP/WZHRM
    HS_FDS_CONNECT_INFO=192.168.0.8,1433//wzhrm
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    D:\Oracle\Product\11.2.0\dbhome\NETWORK\ADMIN\tnsnames.ora
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.90)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    PROD=
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.230)(PORT=1521))
    (CONNECT_DATA=(SID=PROD))
    sqlserver =
    (DESCRIPTION=
         (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.90)(PORT=1521))
    (CONNECT_DATA =
    (SID=sqlserver))
    (HS = OK)
    dg4msql =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.90)(PORT=1522))
    (CONNECT_DATA=(SID=dg4msql))
    (HS=OK)
    Database Link
    create database link dg4msql connect to usroracle identified by usroracle using 'dg4msql';
    1* select from rvwHLoanApp@dg4msql*
    SQL> /
    empId description
    0001 Mr. Ali Jawad
    0002 Mr. Imran Farooq
    0003 Mr. Ali Ejaz
    0004 Mr. Mujahid Muhammad
    0005 Mr. Sharjeel Malik
    0006 Mr. Kashif Imran
    0009 Mr. Adeel Sadiq
    empId description
    0010 Mr. Hafiz Muhammad Bilal
    0012 Mr. Asif Ahmad Arif
    0018 Mr. Muhammad Akram
    0019 Mr. Aftab Hussain
    0020 Mr. Ehtisham Maqsood Attari
    0022 Mr. Adnan Raza Saleem
    0023 Mr. Badar-Uz- Zaman
    15 rows selected.
    When try for selected clumns its showing some error. Where is problem
    SQL> select empId from rvwHLoanApp@dg4msql;
    select empId from rvwHLoanApp@dg4msql
    ERROR at line 1:
    ORA-00904: "EMPID": invalid identifier
    SQL> select empId,description from rvwHLoanApp@dg4msql;
    select empId,description from rvwHLoanApp@dg4msql
    ERROR at line 1:
    ORA-00904: "DESCRIPTION": invalid identifier
    SQL>
    SQL>
    Waiting for help. What thing im missing.....

    Naeem,
    There is no setting that would allow you to drop the double quotes round the object names as the translation to upper case is made by the Oracle database.
    The only solution would be to create views in Oracle that translate the names to upper case, for example -
    CREATE VIEW EMP (EMPNO, ENAME, SAL, HIREDATE)
    AS SELECT "empno", "ename", "sal", "hiredate"
    FROM "emp"@DG4MSQL;
    and then select from the view -
    SELECT EMPNO, ENAME FROM EMP;
    This is discussed in the documentation -
    Oracle® Database Gateway for SQL Server User’s Guide, 11g Release 2 (11.2)
    in the section -
    SQL Server Gateway Features and Restriction
    - Case Sensitivity
    Regards,
    Mike

  • 11.5.10.2 to R12.1.1 upgrade : ORA-20000: Oracle Error Rebuild1= -904 - ORA-00904: "TAB"."USER_PROP": invalid identifier

    EBS version : 11.5.10.2
    DB version : 11.2.0.3
    OS version : AIX 6.1 (64 bit)
    As a part of 11.5.10.2 to R12.1.1 upgrade, while applying merged 12.1.1 upgrade driver(u6678700.drv), I got below error :
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++
    ATTENTION: All workers either have failed or are waiting:
    FAILED: file ECXQBKUP.sql on worker 1.
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Worker 1 log:
    ========================================
    Start time for file is: Mon Aug 05 2013 10:54:29
    sqlplus -s APPS/***** @/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql/ECXQBKUP.sql &un_apps &pw_apps &un_fnd
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    declare
    ERROR at line 1:
    ORA-20000: Oracle Error Rebuild1= -904 - ORA-00904: "TAB"."USER_PROP": invalid
    identifier
    ORA-06512: at line 46

    I tried fix inside 12.0.6 Patch 6728000 Fails On Ecxqbkup.Sql (Doc ID 760122.1) but getting same error :
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>sqlplus apps/apps
    SQL*Plus: Release 10.1.0.5.0 - Production on Tue Aug 6 11:51:44 2013
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> @ECXQBKUP.sql apps apps applsys
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
      select count(*) into in_cnt from ecx_inqueue
    ERROR at line 26:
    ORA-06550: line 26, column 36:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 26, column 3:
    PL/SQL: SQL Statement ignored
    drix10:/home/appltest>sqlplus '/as sysdba'
    SQL*Plus: Release 11.2.0.3.0 Production on Tue Aug 6 11:47:38 2013
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> exec dbms_aqadm.drop_queue_table( queue_table=> 'APPS.ECX_INQUEUE',force=>true);
    PL/SQL procedure successfully completed.
    SQL> exec dbms_aqadm.drop_queue_table( queue_table=> 'APPS.ECX_OUTQUEUE',force=>true);
    PL/SQL procedure successfully completed.
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>sqlplus apps/apps
    SQL*Plus: Release 10.1.0.5.0 - Production on Tue Aug 6 11:52:07 2013
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> @ECXINQ.sql
    Enter value for 4: system
    Enter value for 5: manager
    Connected.
    Enter value for 1: apps
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Enter value for 2: apps
    Connected.
    PL/SQL procedure successfully completed.
    Commit complete.
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>sqlplus apps/apps
    SQL*Plus: Release 10.1.0.5.0 - Production on Tue Aug 6 11:53:38 2013
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> @ECXGINQ.sql
    Enter value for 4: system
    Enter value for 5: manager
    Connected.
    Enter value for 1: apps
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Enter value for 2: apps
    Connected.
    PL/SQL procedure successfully completed.
    Commit complete.
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>sqlplus apps/apps
    SQL*Plus: Release 10.1.0.5.0 - Production on Tue Aug 6 11:54:04 2013
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> @ECXOUTQ.sql
    Enter value for 4: system
    Enter value for 5: manager
    Connected.
    Enter value for 1: apps
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Enter value for 2: apps
    Connected.
    PL/SQL procedure successfully completed.
    Commit complete.
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>sqlplus apps/apps @ECXQBKUP.sql apps apps applsys
    SQL*Plus: Release 10.1.0.5.0 - Production on Tue Aug 6 11:54:26 2013
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    declare
    ERROR at line 1:
    ORA-20000: Oracle Error Rebuild1= -904 - ORA-00904: "TAB"."USER_PROP": invalid
    identifier
    ORA-06512: at line 46
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options

  • ORA-00904 Oracle express 10g

    I've downloaded oracle express 10g and am trying to learn application builder. When I build a new application the database used on the last tab gets a ORA-00904. If I drop the table and recreate it the problem goes away until I try to build another application. I suspect this is a bug rather than a feature. Any Ideas anyone
    Dave H.

    I think your answer is in this thread:
    Re: stopping a query
    Regards, Marc

  • Exp 报EXP-00008: ORACLE error 904 encountered;ORA-00904错误

    环境:RAC11gR2+Redhat6.1
    [oracle@bppfedb1 mouse]$ exp BPPF_EAS/ApNCNOZqGx BUFFER=64000 FILE='/home/oracle/mouse/exp_bppf_tvs20121126.DMP' log='/home/oracle/mouse/exp_bppf_tvs20121126.log' OWNER=BPPF_EAS
    Export: Release 11.2.0.3.0 - Production on Tue Nov 27 00:12:16 2012
    Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, Oracle Label Security,
    OLAP, Data Mining,
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses ZHS16GBK character set (possible charset conversion)
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user BPPF_EAS
    . exporting PUBLIC type synonyms
    EXP-00008: ORACLE error 904 encountered
    ORA-00904: : invalid identifier
    EXP-00000: Export terminated unsuccessfully
    使用
    expdp BPPF_EAS/ApNCNOZqGx directory=DATA_PUMP_DIR dumpfile=exp_bppf_tvs20121126.dmp schemas=BPPF_EAS logfile=exp_bppf_tvs20121126.log
    换用expdp可以成功
    尝试了几台服务器都遇到这个问题,暂时没有找到问题的原因

    问题已解决:
    ORACLE error 904 问题是因为回收了public 的dbms_java执行权限,重新授予解决。
    trace=y需要的权限问题: 应该需要grant dba to xxx; 单exp_full_database好像不行,下面是测试的情况
    when the Data Pump TRACE parameter is used in Oracle10g Release 2 or higher, then the user who connects to the database and runs the export DataPump job needs to have the DBA role or the EXP_FULL_DATABASE role (the same applies to Import DataPump with TRACE parameter: DBA or IMP_FULL_DATABASE role required), e.g.:
    GRANT exp_full_database TO scott;
    -- or:
    GRANT dba TO expdp_role;
    测试:
    oracle@linux:~/mouse> sqlplus /nolog
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 5 07:23:00 2012
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    SQL> conn /as sysdba
    Connected.
    SQL> drop user mouse cascade;
    User dropped.
    SQL> create user mouse identified by mouse_2012
    2 default tablespace users
    3 temporary tablespace temp
    4 quota unlimited on users ;
    grant connect to mouse;
    grant resource to mouse;
    grant select any table to mouse;
    grant select any dictionary to mouse;
    grant exp_full_database to mouse;
    User created.
    SQL>
    Grant succeeded.
    SQL>
    Grant succeeded.
    SQL>
    Grant succeeded.
    SQL>
    Grant succeeded.
    SQL>
    Grant succeeded.
    SQL>
    SQL>
    SQL> conn mouse/mouse_2012
    create table test as select * from dba_users;Connected.
    SQL>
    Table created.
    SQL> !
    oracle@linux:~/mouse> exp mouse/mouse_2012 tables=test file=test.dmp feedback=100000 buffer=10000000 indexes=y triggers=y trace=y;
    Export: Release 11.2.0.1.0 - Production on Wed Dec 5 07:24:35 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    EXP-00056: ORACLE error 1031 encountered
    ORA-01031: insufficient privileges
    EXP-00000: Export terminated unsuccessfully
    oracle@linux:~/mouse> exit
    exit
    SQL> conn /as sysdba
    Connected.
    SQL> grant dba to mouse;
    Grant succeeded.
    SQL> !
    oracle@linux:~/mouse> exp mouse/mouse_2012 tables=test file=test.dmp feedback=100000 buffer=10000000 indexes=y triggers=y trace=y;
    Export: Release 11.2.0.1.0 - Production on Wed Dec 5 07:24:50 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses ZHS16GBK character set (possible charset conversion)
    About to export specified tables via Conventional Path ...
    . . exporting table TEST
    33 rows exported
    Export terminated successfully without warnings
    继续跟踪

  • ORA-00904 not documented since Oracle 10.1!

    Hi,
    I am not very sure if this has been left out for some purpose, but frequently encountered error like ORA-00904 is not there is the Error messages anymore. It is not documented since 10gR1 (http://download.oracle.com/docs/cd/B14117_01/server.101/b10744/toc.htm).
    Also, the Chapter headings do not have that number in the range.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14219/toc.htm
    2 ORA-00000 to ORA-00832
    3 ORA-00910 to ORA-01497 -- 904 missed out
    Even 11g documentation is the same (http://download.oracle.com/docs/cd/B19306_01/server.102/b14219/toc.htm).
    Is this intentional? Has this error been deprecated? If yes, what is the alternative error number?
    Probably there are many other error numbers that do not seem to be documented if we compare the Error message Chapter titles between 8.1.7 and 10.1.
    Regards,

    Hello. Beginning in 10gR1, we began importing the descriptions of the error messages directly from the code into the book. The scripts we use capture only those messages with "Cause" and "Action" text in the code, because it would be meaningless to publish the error numbers without this information. Unfortunately the series of messages you mention do not have this text in the code, so they are omitted from the book. I have filed a code bug to get this fixed.
    Regards,
    Diana

  • PL/SQL: ORA-00904: invalid identifier (DG4ODBC 11.2.0.2 & MySQL)

    I have a PL/SQL script processing information between Oracle database and MySQL database. My script ran perfectly with DG4ODBC 11.1.0.7. Then we upgraded Oracle to 10.2.0 and DG4ODBC 11.2.0.2. Now if I run my script from Solaris command line like ./myscript.shl, I get the following errors:
    PL/SQL: ORA-00904: "cmswhit_moodle1"."mdl_grade_grades"."finalgrade": invalid identifier
    PL/SQL: ORA-00904: "cmswhit_moodle1"."mdl_question_states"."attempt": invalid identifier
    The strange thing is if I run the same query by cut and paste into sqlplus from command line, the query works perfectly without any problems.
    What is the cause of this problem?
    Any help would be greatly appreciated.
    Jeffrey

    Hi Klaus,
    The problem was solved after I updated MySQL ODBC to a new version from 5.1.8 to 5.1.13.
    Summary of the problem and its solution:
    The Problem: It appears that dg4odbc 11.2.0.2 requires a newer version of MyODBC. Previously I used MyODBC 5.1.8 which ran into problems with dg4odbc 11.20.0.2.
    The Solution: After I updated MyODBC to 5.1.13, my PL/SQL scripts all work.
    I need to point out that with MyODBC 5.1.8, I can run queries and updates from SQL*Plus console, but now PL/SQL scripts.
    I'll close this thread.
    Once again, thank you and happy holidays.
    Jeffrey

  • Getting ora:00904 invalid indentifier error while running i query

    Hi,
    I have a remote database and local database both are oracle 10gR2.Now i have written the below mentioned query in my local database and is working fine,but in case remote database it is throughing error ora:00904 invalid indentifier.
    I had export the dump from remote db and import it on my local db and i tried the same and it is working fine on local after that also.
    As i believe that this error usually come for column name not exist or column name or it's length or for any special character in column name of the table.But as i said it is working fine on local db but not in remote db though i am using the same dump for local and remote.
    Though when i am querying the table i can able to fetch data for the any record but when i am using the below mentioned query for the same i am getting the error.As i am doing this to fecth the data for child parent related relationship.
    Can any one suggest is there anything related to configaration or something else.
    Please do let me know if you do want some more information on the query what i am doing inside of it.
    Rgds,
    Anit
    Edited by: Anit A. on Sep 1, 2008 2:32 AM
    Edited by: Anit A. on Sep 1, 2008 2:33 AM

    WITH t
    AS
    SELECT decode(t.spnlevel
    ,3,t.u_quotesdtlid
    ,2,decode((select count(*)
    from u_quotesdtl t2
    where t2.u_quotesdtlid = t.u_quotesdtlid
    and t2.parentspn = (t2.jobgroupid||':'||t2.jobtype)
    ),0,(select t1.u_quotesdtlid
    from u_quotesdtl t1
    where t1.spnitemcode = t.parentspn
    and t1.spnlevel = '3'
    and t1.jobtype = t.jobtype
    and t1.jobgroupid = t.jobgroupid
    and t1.QUOTEID = t.QUOTEID
    ),t.u_quotesdtlid
    ,1,decode((select count(*)
    from u_quotesdtl t2
    where t2.QUOTEID = t.QUOTEID
    and t2.parentspn = (t2.jobgroupid||':'||t2.jobtype)
    ),0,t.u_quotesdtlid,decode((select count(*)
    from u_quotesdtl t3
    where t3.QUOTEID = t.QUOTEID
    and t3.parentspn = (t3.jobgroupid||':'||t3.jobtype)
    and t3.u_quotesdtlid in (select t1.u_quotesdtlid
    from u_quotesdtl t1
    where t1.spnitemcode = t.parentspn
    and t1.spnlevel = '2'
    and t1.jobtype = t.jobtype
    and t1.jobgroupid = t.jobgroupid
    and t1.QUOTEID = t.QUOTEID
    ),0,(select t4.u_quotesdtlid
    from u_quotesdtl t4
    ,(select t1.parentspn
    ,t1.jobtype
    ,t1.jobgroupid
    from u_quotesdtl t1
    where t1.spnitemcode = t.parentspn
    and t1.spnlevel = '2'
    and t1.jobtype = t.jobtype
    and t1.jobgroupid = t.jobgroupid
    and t1.QUOTEID = t.QUOTEID
    ) t5
    where t4.spnitemcode = t5.parentspn
    and t4.spnlevel = '3'
    and t4.jobtype = t5.jobtype
    and t4.jobgroupid = t5.jobgroupid
    and t4.QUOTEID = t.QUOTEID
    (select t1.u_quotesdtlid
    from u_quotesdtl t1
    where t1.spnitemcode = t.parentspn
    and t1.spnlevel = '2'
    and t1.jobtype = t.jobtype
    and t1.jobgroupid = t.jobgroupid
    and t1.QUOTEID = t.QUOTEID
    ,null,t.u_quotesdtlid) as parentquoteid
    ,t.u_quotesdtlid as quotesdtlid
    ,t.spnlevel as spnlevel
    FROM u_quotesdtl t
    WHERE t.QUOTEID ='som key id'
    ORDER BY parentquoteid,t.spnlevel desc
    select * from t;

  • Exception: java.sql.SQLException: ORA-00904: "SEQ_NAME": invalid identifier

    Hi everyone,
    we are facing the below issue when trying to schedule a BI report.
    Error Details:
    +oracle.apps.xdo.servlet.scheduler.ProcessingException: Exception [TOPLINK-4002] (Oracle TopLink - 11g Release 1 (11.1.1.0.0) (Build 080319)): oracle.toplink.exceptions.DatabaseException+
    Internal Exception: java.sql.SQLException: ORA-00904: "SEQ_NAME": invalid identifier
    Error Code: 904
    Call: UPDATE SEQUENCE SET SEQ_COUNT = SEQ_COUNT 50 WHERE SEQ_NAME = 'JOB_ID_SEQ'+
    Query: DataModifyQuery()
    +     at oracle.apps.xdo.servlet.scheduler.toplink.ToplinkDataHandler.insertJob(ToplinkDataHandler.java:830)+
    +     at oracle.apps.xdo.servlet.ui.scheduler.SchedulerServlet.scheduleJob(SchedulerServlet.java:1896)+
    +     at oracle.apps.xdo.servlet.ui.scheduler.SchedulerServlet.doPost(SchedulerServlet.java:293)+
    +     at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)+
    +     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)+
    +     at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)+
    +     at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:94)+
    +     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)+
    +     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)+
    +     at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)+
    +     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)+
    +     at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)+
    +     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)+
    +     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)+
    +     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)+
    +     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)+
    +     at java.lang.Thread.run(Thread.java:595)+
    +Caused by: Exception [TOPLINK-4002] (Oracle TopLink - 11g Release 1 (11.1.1.0.0) (Build 080319)): oracle.toplink.exceptions.DatabaseException+
    Internal Exception: java.sql.SQLException: ORA-00904: "SEQ_NAME": invalid identifier
    Error Code: 904
    Call: UPDATE SEQUENCE SET SEQ_COUNT = SEQ_COUNT 50 WHERE SEQ_NAME = 'JOB_ID_SEQ'+
    Query: DataModifyQuery()
    +     at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:296)+
    +     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:724)+
    +     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:790)+
    +     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:524)+
    +     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:467)+
    +     at oracle.toplink.internal.sessions.AbstractSession.executeCall(AbstractSession.java:795)+
    +     at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:193)+
    +     at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:179)+
    +     at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeNoSelectCall(DatasourceCallQueryMechanism.java:222)+
    +     at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeNoSelect(DatasourceCallQueryMechanism.java:202)+
    +     at oracle.toplink.queryframework.DataModifyQuery.executeDatabaseQuery(DataModifyQuery.java:55)+
    +     at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:671)+
    +     at oracle.toplink.internal.sessions.AbstractSession.internalExecuteQuery(AbstractSession.java:2260)+
    +     at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1074)+
    +     at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1058)+
    +     at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1032)+
    +     at oracle.toplink.sequencing.QuerySequence.update(QuerySequence.java:319)+
    +     at oracle.toplink.sequencing.QuerySequence.updateAndSelectSequence(QuerySequence.java:258)+
    +     at oracle.toplink.sequencing.StandardSequence.getGeneratedVector(StandardSequence.java:62)+
    +     at oracle.toplink.sequencing.DefaultSequence.getGeneratedVector(DefaultSequence.java:144)+
    +     at oracle.toplink.sequencing.Sequence.getGeneratedVector(Sequence.java:256)+
    +     at oracle.toplink.internal.sequencing.SequencingManager$Preallocation_Transaction_NoAccessor_State.getNextValue(SequencingManager.java:444)+
    +     at oracle.toplink.internal.sequencing.SequencingManager.getNextValue(SequencingManager.java:873)+
    +     at oracle.toplink.internal.sequencing.ClientSessionSequencing.getNextValue(ClientSessionSequencing.java:75)+
    +     at oracle.toplink.internal.descriptors.ObjectBuilder.assignSequenceNumber(ObjectBuilder.java:234)+
    +     at oracle.toplink.internal.sessions.UnitOfWorkImpl.assignSequenceNumbers(UnitOfWorkImpl.java:419)+
    +     at oracle.toplink.internal.sessions.UnitOfWorkImpl.calculateChanges(UnitOfWorkImpl.java:497)+
    +     at oracle.toplink.internal.sessions.UnitOfWorkImpl.commitToDatabaseWithChangeSet(UnitOfWorkImpl.java:1407)+
    +     at oracle.toplink.internal.sessions.UnitOfWorkImpl.commitRootUnitOfWork(UnitOfWorkImpl.java:1167)+
    +     at oracle.toplink.internal.sessions.UnitOfWorkImpl.commit(UnitOfWorkImpl.java:939)+
    +     at oracle.apps.xdo.servlet.scheduler.toplink.ToplinkDataHandler.insertJob(ToplinkDataHandler.java:815)+
    +     ... 16 more+
    Caused by: java.sql.SQLException: ORA-00904: "SEQ_NAME": invalid identifier
    +     at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)+
    +     at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)+
    +     at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)+
    +     at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)+
    +     at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:113)+
    +     at oracle.jdbc.driver.T4CStatement.execute_for_rows(T4CStatement.java:561)+
    +     at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1161)+
    +     at oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java:1585)+
    +     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:713)+
    +     ... 45 more+
    Found a thread related to this but there it was explained that the error was occuring when trying to notify regarding output through email. In our case, issue is occuring just during scheduling itslef.
    Also I haved checked the following schedular tables in my database.
    SQL> select table_name from all_tables where table_name like 'S_NQ%'
    +2 /+
    TABLE_NAME
    S_NQ_ERR_MSG
    S_NQ_INSTANCE
    S_NQ_JOB_PARAM
    S_NQ_JOB
    SQL> select SEQ_NAME.CURRVAL FROM DUAL;
    select SEQ_NAME.CURRVAL FROM DUAL
    *+
    ERROR at line 1:
    ORA-02289: sequence does not exist
    Please help me out in solving this as I have tried almost all possible solutions.
    Thanks,
    Sri Harsha.
    Edited by: user10545574 on Dec 20, 2009 10:24 PM

    Hello,
    In the delivery email configuration server page (under BI Publisher Admin Tab), the username / password to enter is the one defined on the email server itself. It is the user that will be user to send the emails when scedhuling a report.
    It may not be Administrator/ Administrator (not a user defined with OBI admin tool) but the username/password defined on the email server itself.
    Moreover, to properly configure the BI Publisher Scheduler, it is a prerequistes to create bipsched user on Oracle DB and install the schema tables in Oracle DB (by clicking on Install Schema button after defining database connection under Admin / Scheduler Configuration tab)
    From the error your are getting 'SEQ_NAME unknown..., it appears that the tables are not created'.
    Hope this helps and good luck
    Matthieu

  • Getting ORA-00904 whle running a procedure!

    hi ,
    the following procedure is meant for getting the details which has name of the user tables alone along with number of columns,but am getting -ERROR IN BLOCK:::ORA-00904: "tablename": invalid identifier.
    DECLARE
    v_cols NUMBER:=0;
    cursor c is SELECT table_name FROM user_tables ORDER BY table_name;
    BEGIN
    FOR rec IN c
    LOOP
    v_cols:=0;
    EXECUTE IMMEDIATE 'select count(COLUMN_NAME) from all_col_comments where TABLE_NAME in ('||rec.table_name||') group by TABLE_NAME' INTO v_num_rows;
    DBMS_OUTPUT.PUT_LINE (RPAD (rec.table_name, 32) || LPAD (v_num_rows, 9));
    END LOOP;
    DBMS_OUTPUT.PUT_LINE ('-------------------End_of_Script-------------------');
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('ERROR IN BLOCK:::'||SQLERRM);
    END;
    if there anything needs to change in procedure ,let me know.

    DECLARE
           v_cols NUMBER:=0;
           cursor c is SELECT table_name FROM user_tables ORDER BY table_name;
    BEGIN
           FOR rec IN c
          LOOP
              v_cols:=0;
          EXECUTE IMMEDIATE 'select count(COLUMN_NAME) from all_col_comments where TABLE_NAME in ('''||rec.table_name||''') group by TABLE_NAME' INTO v_num_rows;      ------> Added '' before and After Table Name to allow Oracle to consider as String
              DBMS_OUTPUT.PUT_LINE (RPAD (rec.table_name, 32) || LPAD (v_num_rows, 9));
          END LOOP;
          DBMS_OUTPUT.PUT_LINE ('-------------------End_of_Script-------------------');
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('ERROR IN BLOCK:::'||SQLERRM);
    END;You can use below version using Parameter Binding (Untested!!!)
    DECLARE
           v_cols NUMBER:=0;
           cursor c is SELECT table_name FROM user_tables ORDER BY table_name;
    BEGIN
           FOR rec IN c
          LOOP
              v_cols:=0;
          EXECUTE IMMEDIATE 'select count(COLUMN_NAME) from all_col_comments where TABLE_NAME in (:1) group by TABLE_NAME' INTO v_num_rows using rec.table_name;
              DBMS_OUTPUT.PUT_LINE (RPAD (rec.table_name, 32) || LPAD (v_num_rows, 9));
          END LOOP;
          DBMS_OUTPUT.PUT_LINE ('-------------------End_of_Script-------------------');
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('ERROR IN BLOCK:::'||SQLERRM);
    END;

  • Multi-row sub query returns  ORA-00904 :invalid identifier error

    I am creating a report from two tables that I am not joining. I want a single line for every row in table1 that meets a date range. Table2 can contain none or many rows for each recored in table1. I want to get up to two fields from table2.
    I was using a case statement to check if there was data and then an in-line query or subquery. Once again, the idea is to have a single line on the report for each table1 record.
    I get this error with the code below. It seems the nested multi-row subquery can not see the a.cr_mas_cr_no identifier.
    ORA-00904: "a"."cr_mas_cr_no": invalid identifier
    Any help is greatly appreciated,
    Sam
    select
    a.cr_mas_cr_no "CRNO", a.cr_mas_type "TYPE", a.cr_mas_status "CR Status",
    a.cr_mas_date_logged "Logged date", a.CR_REL_REQ_APP_DATE "RTP approved",a.CR_REL_REQ_RTP_DATE "RTP Date",
    a.cr_accepted_date "Complete", a.cr_mas_submitted_by "Requester",
    select doc_user FROM crrm_cr_documents WHERE doc_cr_number =a.cr_mas_cr_no and rownum = 1 and DOC_TYPE = 'BD' ) "Bus Design",
    (select doc_user FROM crrm_cr_documents WHERE doc_cr_number = a.cr_mas_cr_no and rownum = 1 and DOC_TYPE = 'TD' ) "Tech Design",
    (select doc_user FROM crrm_cr_documents WHERE doc_cr_number = a.cr_mas_cr_no and rownum = 1 and DOC_TYPE = 'TE' ) "User acceptance test",
    case
    when (select count(appr_user) from crrm_cr_approvals where appr_cr_no = a.cr_mas_cr_no and appr_type = 'RTP') > 0
    then (select appr_user from (select * from crrm_cr_approvals where appr_cr_no = a.cr_mas_cr_no and appr_type = 'RTP') where rownum = 1)
    end
    "RTP #1",
    case
    when (select count(appr_user) from crrm_cr_approvals where appr_cr_no = a.cr_mas_cr_no and appr_type = 'RTP') > 1
    then (select appr_user from (select * from crrm_cr_approvals where appr_cr_no = a.cr_mas_cr_no and appr_type = 'RTP') where rownum = 2)
    end
    "RTP #2",
    a.CR_REL_REQ_RTP_BY "Released by",
    a.CR_ACCEPTED_BY "Post RTP User Acceptance",
    a.cr_mas_title "Title", a.cr_mas_id "ID"
    from
    crrm_crmaster a
    where
    (a.CR_REL_REQ_RTP_DATE >= :P1109_BEGDATE and (a.CR_REL_REQ_RTP_DATE <= :P1109_ENDDATE) and
    (a.cr_mas_status = 'Complete' or (a.cr_mas_status = 'Release Approved'and a.CR_REL_REQ_APP_DATE < :P1109_ENDDATE))
    Message was edited by:
    slavanaway

    Iceman,
    Thanks for the reply I will try your suggestion.
    I will try and explain why I think two subqueries (an in-line query with a subquery?) are required. I will use the creation of the column RTP #1 as the example as the RTP #2 column is only different in the rownum selected.
    Looking only at the lines that fail, here is my analysis. (If I rem out the two case lines the query runs, I just don't get two columns of data I need.) I will only examine the first case as the second is changed to extract the second approval via the rownum = 2 criteria. The first statement checks there is at least one RTP approval stored for the request and then gets the user who approved the request if the test is true.
    case when
    (select count(appr_user) from crrm_cr_approvals where appr_cr_no =a.cr_mas_cr_no and appr_type = 'RTP') > 0
    then
    The above part works fine and the correct count of approvals is returned.
    (select appr_user from (select * from crrm_cr_approvals where appr_cr_no=a.cr_mas_cr_no and appr_type = 'RTP') where rownum = 1)
    end
    "RTP #1",
    I moved the parenthesis to the correct location. There can be multiple approvals for a given parent record. Some parent records need one, some need two approvals. If I replace
    (select appr_user from (select * from crrm_cr_approvals where appr_cr_no =a.cr_mas_cr_no and appr_type = 'RTP') where rownum = 1)
    with
    (select appr_user from approvals where appr_cr_no =a.cr_mas_cr_no and appr_type = 'RTP' and rownum = 1)
    The correct result is returned because it returns exactly one row as rownum=1 limits the query. When rownum = 2 then the query returns null as the rownum never gets to two as the rownum column is built via the set created by the second subquery.
    The subquery builds a set of approvals for a specific "cr_no" and appr_type of "RTP". the outer query then looks at the rownum of the second query
    Here is where I got the rownum information from;
    http://www.oracle.com/technology/oramag/oracle/06-sep/o56asktom.html
    So here is what I think is happening;
    1. Main query From and Where are processed. This should provide the "set" for the query
    2.The from subqueries for RTP #1 and RTP #2 should be able to access the a.cr_mas_cr_no field and build a set from the approvals table.
    3.The RTP #1/2 subquery (inline maybe a better description?) would then get the correct row from the from subquery.
    The error "invalid identifier" refers to the a.cr_mas_cr_no field. I assume it means it can not resolve the table alias inside the subquery.
    So maybe your grouping would help, I will try.
    Sam

Maybe you are looking for

  • More records in Purchasing Cube than in PSA.

    Dear Folks, Right now i'm working on 0PUR_C01 Cube.In Quality server, i checked the data in Cube after executing the DTP and found that records are getting increased.Records in PSA(2152),but in Cube(2359),there are some routines in the Transformation

  • What is wrong With My Query

    Pleas what is wrong with this query      select h.business_unit_id bu, h.edi_sequence_id seq, d.edi_det_sequ_id dseq, s.edi_size_sequ_id sseq, h.po_number po, h.total_unit tUnit, h.total_amount tDollar, s.quantity qty, s.unit_price price, (select (ca

  • Does the Cisco3745 Support TBCT on E1's ?

    Hi, The Cisco 3745 Product documentation states that TBCT supports the National ISDN-2 (NI-2)standard for T1 only. It is unclear whether E1 interfaces are supported. I would like to know what the case is. i.e. Does Cisco now support TBCT on E1's on t

  • IPod with click wheel - will not restore

    Hi all, I know I've got the dinosaur of the iPods, but hey. I have a 20g iPod with click wheel. Every time I load up iTunes with the iPod plugged into the PC, iTunes tells me that my iPod is in recovery mode and needs to be restored. (Not sure how th

  • Is there a way to recover your files from a computer that won't work anymore?

    if my computer stops working, is there a way to recover the files?