Error ORA-02070:  while creating view - Help Needed.

ISSUE:
~~~~~
When i am creating the view for the below SQL script I am getting the error as
==>ORA-02070:DATABASE DOES NOT SUPPORT OPERATOR NLS_CHARSET_DECL_LEN in this context <==
Sql script
~~~~~~~
create or replace view test11 as
WITH x AS
(SELECT column_name,
DECODE (column_id, 7,to_char(eff_to_dt,'MMDDRRRR'),
                                   8,active_flg,
                                   9,nm_long,
                                   10,nm_short,
                                   11,rplcmnt_bu_id,
                                   12,pc_cc_cd,
                                   13,tax_cd,
                                   14,bu_type_cd,
                                   15,ledger_cd) COL_VAL_NEW,
'' COL_VAL_OLD,
                                   fre_id,
                                   bu_id,
eff_from_dt,
rec_eff_from_dt,
                                   rec_type
FROM BUSINESS m, all_tab_columns u
WHERE table_name = 'BUSINESS'
AND column_name in ('EFF_TO_DT'
,'ACTIVE_FLG'
,'NM_LONG'
,'NM_SHORT'
,'RPLCMNT_BU_ID'
,'PC_CC_CD'
,'TAX_CD'
,'BU_TYPE_CD'
,'LEDGER_CD')
AND rec_type ='A'
ORDER BY rec_eff_from_dt
y as
(SELECT column_name,
DECODE (column_id, 7,to_char(eff_to_dt,'MMDDRRRR'),
                                   8,active_flg,
                                   9,nm_long,
                                   10,nm_short,
                                   11,rplcmnt_bu_id,
                                   12,pc_cc_cd,
                                   13,tax_cd,
                                   14,bu_type_cd,
                                   15,ledger_cd) COL_VAL_NEW,
'' COL_VAL_OLD,
                                   fre_id,
                                   bu_id,
eff_from_dt,
rec_eff_from_dt,
                                   rec_type
FROM BUSINESS m, all_tab_columns u
WHERE table_name = 'BUSINESS'
AND column_name in ('EFF_TO_DT'
,'ACTIVE_FLG'
,'NM_LONG'
,'NM_SHORT'
,'RPLCMNT_BU_ID'
,'PC_CC_CD'
,'TAX_CD'
,'BU_TYPE_CD'
,'LEDGER_CD')
AND rec_type <> 'A'
ORDER BY rec_eff_from_dt
a as (select y.column_name,
y.col_val_new,
x.col_val_new col_val_old,
y.fre_id,
y.bu_id,
y.eff_from_dt,
min(y.rec_eff_from_dt),
y.rec_type
from y, x
where (y.fre_id = x.fre_id and y.bu_id = x.bu_id and y.eff_from_dt = x.eff_from_dt and y.column_name = x.column_name
and nvl(y.col_val_new,'^') <> nvl(x.col_val_new,'~') and y.rec_type ='C')
group by y.column_name,
y.col_val_new,
x.col_val_new,
y.fre_id,
y.bu_id,
y.eff_from_dt,
y.rec_type)
select * from a
union all
select y.column_name,
y.col_val_new,
x.col_val_new,
y.fre_id,
y.bu_id,
y.eff_from_dt,
min(y.rec_eff_from_dt),
y.rec_type
from y, x
where (y.fre_id = x.fre_id and y.bu_id = x.bu_id and y.eff_from_dt = x.eff_from_dt and y.column_name = x.column_name
and y.col_val_new = x.col_val_new and y.rec_type ='D')
group by y.column_name,
y.col_val_new,
x.col_val_new,
y.fre_id,
y.bu_id,
y.eff_from_dt,
y.rec_type
union all
SELECT column_name,
DECODE (column_id, 7,to_char(eff_to_dt,'MMDDRRRR'),
                                   8,active_flg,
                                   9,nm_long,
                                   10,nm_short,
                                   11,rplcmnt_bu_id,
                                   12,pc_cc_cd,
                                   13,tax_cd,
                                   14,bu_type_cd,
                                   15,ledger_cd) COL_VAL_NEW,
'' COL_VAL_OLD,
                                   fre_id,
                                   bu_id,
eff_from_dt,
rec_eff_from_dt,
                                   rec_type
FROM BUSINESS m, all_tab_columns u
WHERE table_name = 'BUSINESS'
AND column_name in ('EFF_TO_DT'
,'ACTIVE_FLG'
,'NM_LONG'
,'NM_SHORT'
,'RPLCMNT_BU_ID'
,'PC_CC_CD'
,'TAX_CD'
,'BU_TYPE_CD'
,'LEDGER_CD')
AND rec_type ='A'
The sql script is nothing but to compare the record to get the attribute level changes.
Please help me out why the error is being caused.
Thanks in advance.

Is one of the used table/view referencing a non-Oracle database with a database link ?
ORA-02070: database [i]stringstring does not support string in this context
Cause: The remote database does not support the named capability in the context in which it is used.
Action: Simplify the SQL statement.

Similar Messages

  • Getting Error ORA-00604 While Creating View from front Ent

    Hello All,
    I am getting ORA-00604 while creating view from the front end. And some time I get Maximum cursor open, It is ok amy be I am opening cursors in while loop. While ORA-00604 is giving lots of truble to me. In help it said to contact Oracle service, I dont know how to do that. Help me.

    Please post your view definition including the complete error_message and also the relevant parts of your code with the while loop.

  • Error: ORA-02298 while creating a new app at DRM 11.1.2.3.300

    Hi All,
            There's something weird happening when I try to create a new DRM app at DRM Management Console. After provide all information about database connection and admin long on i am getting the following error during the repository creation :
    Creating Repository ...  Done.
    Creating Tables ...  Done.
    Creating Views ...  Done.
    Creating Stored Procedures ...  Done.
    Creating Indexes ...  Done.
    Creating Primary Keys ...  Done.
    Initializing schema with predefined data ...
    Database creation failed with this error: ORA-02298: cannot validate (EPM_DRM_DB.FK_CATUSER02) - parent keys not found
         It is a fresh install and I don't know why I am having this error.  Did someone had this issue too ? How to solve that ?
    Thanks in advance

    ...To whom it may concern.....
    This issue was related to privileges in database. I've generated the scripts and ran with system user and it worked.
    Case closed.

  • Error ORA-10980 while creating MV

    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jun 21 11:43:02 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    CREATE MATERIALIZED VIEW ebOrganizationStructure AS
    SELECT DEPT.DeptStructureString Structure,
    DEPT.DeptShortName DeptCode,
    DEPT.DeptName DeptDesc,
    NULL DivCode,
    NULL DivDesc,
    NULL GrpCode,
    NULL GrpDesc,
    NULL SecCode,
    NULL SecDesc,
    NULL SSecCode,
    NULL SSecDesc
    FROM erDepartment DEPT
    UNION
    SELECT DivStructureString Structure,
    DEPT.DeptShortName DeptCode,
    DEPT.DeptName DeptDesc,
    DIV.DivShortName DivCode,
    DIV.DivName DivDesc,
    NULL GrpCode,
    NULL GrpDesc,
    NULL SecCode,
    NULL SecDesc,
    NULL SSecCode,
    NULL SSecDesc
    FROM erDepartment DEPT,
    erDivision DIV ,
    erOrgUnit_Orgunit OGU_OGU1
    WHERE OGU_OGU1.OguEntId2 = DIV.EntId
    AND OGU_OGU1.OguEntDomId2 = DIV.EntDomId
    AND DEPT.EntId = OGU_OGU1.OguEntId1
    AND DEPT.EntDomId = OGU_OGU1.OguEntDomId1
    UNION
    SELECT GRP.GrpStructureString Structure,
    DEPT.DeptShortName DeptCode,
    DEPT.DeptName DeptDesc,
    DIV.DivShortName DivCode,
    DIV.DivName DivDesc,
    GRP.GrpShortName GrpCode,
    GRP.GrpName GrpDesc,
    NULL SecCode,
    NULL SecDesc,
    NULL SSecCode,
    NULL SSecDesc
    FROM erDepartment DEPT,
    erDivision DIV ,
    erGroup GRP,
    erOrgUnit_Orgunit OGU_OGU1,
    erOrgUnit_Orgunit OGU_OGU2
    WHERE OGU_OGU1.OguEntId2 = GRP.EntId
    AND OGU_OGU1.OguEntDomId2 = GRP.EntDomId
    AND DIV.EntId = OGU_OGU1.OguEntId1
    AND DIV.EntDomId = OGU_OGU1.OguEntDomId1
    AND OGU_OGU2.OguEntId2 = DIV.EntId
    AND OGU_OGU2.OguEntDomId2 = DIV.EntDomId
    AND DEPT.EntId = OGU_OGU2.OguEntId1
    AND DEPT.EntDomId = OGU_OGU2.OguEntDomId1
    UNION
    SELECT SEC.SecStructureString Structure,
    DEPT.DeptShortName DeptCode,
    DEPT.DeptName DeptDesc,
    DIV.DivShortName DivCode,
    DIV.DivName DivDesc,
    GRP.GrpShortName GrpCode,
    GRP.GrpName GrpDesc,
    SEC.SecShortName SecCode,
    SEC.SecName SecDesc,
    NULL SSecCode,
    NULL SSecDesc
    FROM erDepartment DEPT,
    erDivision DIV ,
    erGroup GRP,
    erSection SEC,
    erOrgUnit_Orgunit OGU_OGU1,
    erOrgUnit_Orgunit OGU_OGU2,
    erOrgUnit_Orgunit OGU_OGU3
    WHERE OGU_OGU1.OguEntId2 = SEC.EntId
    AND OGU_OGU1.OguEntDomId2 = SEC.EntDomId
    AND GRP.EntId = OGU_OGU1.OguEntId1
    AND GRP.EntDomId = OGU_OGU1.OguEntDomId1
    AND OGU_OGU2.OguEntId2 = GRP.EntId
    AND OGU_OGU2.OguEntDomId2 = GRP.EntDomId
    AND DIV.EntId = OGU_OGU2.OguEntId1
    AND DIV.EntDomId = OGU_OGU2.OguEntDomId1
    AND OGU_OGU3.OguEntId2 = DIV.EntId
    AND OGU_OGU3.OguEntDomId2 = DIV.EntDomId
    AND DEPT.EntId = OGU_OGU3.OguEntId1
    AND DEPT.EntDomId = OGU_OGU3.OguEntDomId1
    UNION
    SELECT SSEC.SubSecStructureString Structure,
    DEPT.DeptShortName DeptCode,
    DEPT.DeptName DeptDesc,
    DIV.DivShortName DivCode,
    DIV.DivName DivDesc,
    GRP.GrpShortName GrpCode,
    GRP.GrpName GrpDesc,
    SEC.SecShortName SecCode,
    SEC.SecName SecDesc,
    SSEC.SubSecShortName SSecCode,
    SSEC.SubSecName SSecDesc
    FROM erDepartment DEPT,
    erDivision DIV ,
    erGroup GRP,
    erSection SEC,
    erSubSection SSEC,
    erOrgUnit_Orgunit OGU_OGU1,
    erOrgUnit_Orgunit OGU_OGU2,
    erOrgUnit_Orgunit OGU_OGU3,
    erOrgUnit_Orgunit OGU_OGU4
    WHERE OGU_OGU1.OguEntId2 = SSEC.EntId
    AND OGU_OGU1.OguEntDomId2 = SSEC.EntDomId
    AND SEC.EntId = OGU_OGU1.OguEntId1
    AND SEC.EntDomId = OGU_OGU1.OguEntDomId1
    AND OGU_OGU2.OguEntId2 = SEC.EntId
    AND OGU_OGU2.OguEntDomId2 = SEC.EntDomId
    AND GRP.EntId = OGU_OGU2.OguEntId1
    AND GRP.EntDomId = OGU_OGU2.OguEntDomId1
    AND OGU_OGU3.OguEntId2 = GRP.EntId
    AND OGU_OGU3.OguEntDomId2 = GRP.EntDomId
    AND DIV.EntId = OGU_OGU3.OguEntId1
    AND DIV.EntDomId = OGU_OGU3.OguEntDomId1
    AND OGU_OGU4.OguEntId2 = DIV.EntId
    AND OGU_OGU4.OguEntDomId2 = DIV.EntDomId
    AND DEPT.EntId = OGU_OGU4.OguEntId1
    AND DEPT.EntDomId = OGU_OGU4.OguEntDomId1
    Trace file showing error ORA-10980. MV hangs forever and never compiles. If I execute the query it comes up with correct results.
    Thanks
    Rajesh

    I've seen MVs on 10g to be a bit tempermental. What happens if you build the MV but defer population and populate it as a second step?

  • Error ORA-01779 while updating view

    I am using oracle 9i version is 9.2.0.1.0, While updating i am getting error,which i mention below.
    ORA-01779:cannot modify a column which maps to a non key-preserved table
    In this view there is no any group function.
    Help me please.

    ORA-01779:
         cannot modify a column which maps to a non key-preserved table
    Cause:      An attempt was made to insert or update columns of a join view which map to a non-key-preserved table.
    Action:      Modify the underlying base tables directly.

  • Error ora-12028 while creating a read-only snapshot

    Hi !
    I'm in trouble creating a read-only snapshot of a simple table.
    The Master table belongs to an ORACLE 7.3.4 database instance, while the snapshot site belongs to an ORACLE 8.1 database. The read-only snapshot should have a refresh type FAST, but while I'm running the CREATE SNAPSHOT statement in the snapshot site I receive the following message:
    "ORA-12028 snapshot type is not supported by master site string
    Cause: Pre-Oracle master sites are not able to support primary key or
    subquery snapshots that are able to perform a fast refresh.
    Action: Create a ROWID snapshot or use a master table from an Oracle8 site. "
    This message doesn't help me enough. Is there anyone who can give me an advice ?
    Thanks you all.
    Laura

    Well laura earlier version doesn't support snap shot based on primary key
    u should disable primary key constraint from master site
    and create snap shot on the basis of row id.
    for further detail mail me at [email protected]

  • ORA-02070: While inserting data through a DB link

    Hi,
    I am trying to insert into a table using the DB link. This Db link is created between similar schemas in different Instances.
    I am getting following error.
    SQL Error: ORA-02070: database  does not support  in this context
    Select statement is working fine using the DB link.
    Can any one of you please help me to resolve this?

    >
    oerr ora 02070
    02070, 00000, "database %s%s does not support %s in this context"
    // *Cause: The remote database does not support the named capability in
    // the context in which it is used.
    // *Action: Simplify the SQL statement.
    >
    Kindly show us the SQL statement you are trying to insert. We need to understand structure of the table you are trying to insert into and the SQL statement.
    Regards,
    MupetaH

  • ERROR ORA-00942: table or view does not exist

    Hi:
    I created a .sql file and a loader file. Running the .sql file with sql * plus Worksheet:
    declare
    gr sdo_georaster;
    begin
    select image into gr from gis.RasterImages where geoid=1 for update;
    sdo_geor.generatePyramid(gr,'resampling=NN');
    update gis.RasterImages set image=gr where geoid=1;
    commit;
    end;
    I trying to create a pyramid,but the error appeared:
    ERROR at line 1:
    ORA-29400: DATA CONTROL ERROR ORA-00942: table or view does not exist
    ORA-06512: &#22312; "MDSYS.SDO_GEOR_INT", line 162
    ORA-06512: &#22312; "MDSYS.SDO_GEOR", line 826
    ORA-06512: &#22312; line 5
    I don't know why?
    Anyone can help me?
    Thanks.

    Hi,
    I think you are executing the select statement for schema X and the table is in the schema srnr.
    And schema X is not having select privilege on the table 'students' present in schema srnr.
    Goto schema srnr.
    Execute the following statement:
    grant select on students to X;
    This will give schema X the privilege to query the table students present in srnr.
    Regards,
    Anupama

  • SQL Error: ORA-00942: table or view does not exist + CX_RS_SQL_ERROR

    HI ,
    we are facing below issue while activating info object xxxxxxxx
    " SQL Error: ORA-00942: table or view does not exist "  and   " CX_RS_SQL_ERROR  "
    can any one help us out to resolve this issue.
    Thanks,
    EDK......

    Hi,
    Check the corrections given in the note 990764:
    Reason and Prerequisites
    Up to now, using a characteristic with its own master data read class as the InfoProvider was not supported. This is now released but it is not available for all modelings. Using the attributes in the query is not supported for characteristics that have their own master data read class. Using the attributes in the query causes a termination. The following errors may occur in this case:
    ORA-00942: table or view does not exist
    Fehler in CL_SQL_RESULT_SET  Include NEXT_PACKAGE
    RAISE_READ_ERROR in CL_RSDRV_VPROV_BASE
    Solution
    SAP NetWeaver 2004s BI
               Import Support Package 11 for SAP NetWeaver 2004s BI (BI Patch 11 or SAPKW70011) into your BI system. The Support Package is available once Note 0914305 "SAPBINews BI 7.0 Support Package 11", which describes this Support Package in more detail, has been released for customers.
    In urgent cases you can implement the correction instructions.
    The correction instructions contain the tightened inspection for characteristics.
    Regards,
    Anil Kumar Sharma .P

  • Accounts determination error is coming while create billing.

    Hi Experts,
    Accounts determination error is coming while create billing for Account Assignment Group A4 . In some cases only this error is appearing . I m a ABAPer I got this case and I  m debugging the code  . Can anyone  suggest me what all the things i need to check to know the root cause . This error is coming very  rarely but I want to find the reasons.  I saw some of scn post bt it was not clear .
    Please suggest briefly what w'd be the probable cause of this error and how to correct it.
    Thanks in advance

    Hi Dharmkrit,
    In one of your earlier posts, you have mentioned that you have assigned G/L accounts by selecting table 1. This is probably where you might be going wrong.
    Please follow the below steps to cross check your entries and you should hopefully have a solution.
    (1) First of all, start from the account determination procedure and check which procedure is assigned to the billing type.
    (2) Check the account determination type that is maintained in the procedure.
    (3) Check which access sequence assigned in that condition type
    (4) Check which table/tables have been maintained in the access sequence
    * In most probability, you would have maintained a different table in the access sequence while you are trying to assign your G/L accounts to some other table
    * Also, since you say that this error is only for a particular account determination type, check if you have maintained the correct combination of application/chart of account/Customer account assignment group/material account assignment group/G/L account in the correct table. However, this combination of fields depends on the table that you have used in the condition technique.
    I suggest that you write your entries down while checking the flow. This will give you a clear picture if a connection is missing somewhere in the condition technique.
    The customer/material account assignment groups are just keys (two digit codes) and their determination has nothing to do with Z1/Z2/A1 or any other code that you have defined in the system. The main determination is purely based on the condition technique and how correctly you have maintained the connections between the tables, access sequences, types and procedures. Just recheck these entries and you should be able to resolve the issue.
    Hope this helps
    Regards,
    Sumita Mittra

  • Keychain error -25299 occurred while creating a System Keychain entry for t

    Keychain error -25299 occurred while creating a System Keychain entry for the username “Angela Rosario” and URL “afp://Angela%[email protected]/Data”.
    I keep getting the error above every time I try to set up my time capsule
    Could use some help?
    Mahalo

    Same here.

  • Error handling function: ORA-20001: get_dbms_sql_cursor error:ORA-00942: table or view does not exist  is not trapped. Why?

    Why APEX 4.1 Error handling function does not trap  the error of missing table?
    Say, I create simple application with single IR report page and I also assign standard simple error handling function.
    Function works perfectly, except but this case:
    If I just drop a table used by report page and then refresh the page I am getting usual APEX error message:
    ORA-20001: get_dbms_sql_cursor error ORA-00942: table or view does not exist
    and error handling function is not invoked at all.
    Is this a feature or a bug?

    Hi,
    Check the corrections given in the note 990764:
    Reason and Prerequisites
    Up to now, using a characteristic with its own master data read class as the InfoProvider was not supported. This is now released but it is not available for all modelings. Using the attributes in the query is not supported for characteristics that have their own master data read class. Using the attributes in the query causes a termination. The following errors may occur in this case:
    ORA-00942: table or view does not exist
    Fehler in CL_SQL_RESULT_SET  Include NEXT_PACKAGE
    RAISE_READ_ERROR in CL_RSDRV_VPROV_BASE
    Solution
    SAP NetWeaver 2004s BI
               Import Support Package 11 for SAP NetWeaver 2004s BI (BI Patch 11 or SAPKW70011) into your BI system. The Support Package is available once Note 0914305 "SAPBINews BI 7.0 Support Package 11", which describes this Support Package in more detail, has been released for customers.
    In urgent cases you can implement the correction instructions.
    The correction instructions contain the tightened inspection for characteristics.
    Regards,
    Anil Kumar Sharma .P

  • Error ORA-02375 while trying to export/import JTF.JTF_PF_REPOSITORY table

    We have already created an SR, In the mean time, trying to see whether anyone else has come across this issue.  Thanks.
    On : 11.2.0.3 version, Data Pump Import
    Error ORA-02375 while trying to import JTF.JTF_PF_REPOSITORY table
    We are getting the below error while performing the full db
    import.
    ORA-02375: conversion error loading table
    "JTF"."JTF_PF_REPOSITORY" partition "EBIZ"
    ORA-22337: the type of accessed
    object has been evolved
    ORA-02372: data for row: SYS_NC00040$ :
    0X'8801FE000004AD0313FFFF0009198401190A434F4E4E454354'
    This issue is
    stopping our upgrade of database from 10.2.0.4 to 11.2.0.3. This is very
    critical for us to be resolved.

    Hi,
    seems this is Character set issue fo source and Target DB check this doc:Unable to Export Table WF_ITEM_ATTRIBUTE_VALUES due to errors ORA-02374, ORA-22337, and ORA-02372 (Doc ID 1522761.1)
    HTH

  • HT201514 I keep getting this message "Unable to complete back up an error has occurred while creating back up folder" Why is this happening and is it time to purchase a new tim machine?

    I keep getting this message “Unable to complete back up an error has occurred while creating back up folder” Why is this happening and is it time to purchase a new tim machine?

    Check out the Apple Support Communities Time Machine expert Pondini's troubleshooting article on this exact topic. Hopefully, it will help.

  • Keep getting an error message that reads, "LR An error has occurred while creating the book on Blurb" An error has occurred while trying to create texts and fonts.  Pleas advise as Blurb has said that it's a LR issue.

    Keep getting an error message that reads, "LR An error has occurred while creating the book on Blurb" An error has occurred while trying to create texts and fonts.  Pleas advise as Blurb has said that it's a LR issue.

    Are you behind a firewall or double NAT??
    What is the device that is immediately plugged into the main modem or router? Has that one been able to update?
    It is plugged in of course isn't it.. no nasty join wireless anywhere??
    The best way to work around these sort of problems is to simplify the network.. Plug each device directly into the main router.. by ethernet. You can trigger the firmware upgrade by wireless but use ipad or iphone version of airport utility and see what happens.

Maybe you are looking for