Inconsistent Catalog View

There are 2 schemas in one instance . We are using oracle 9.2.0.7 version and when trying to access from java using ojdbc14 driver I am seeing an error "Inconsistent catalog view" . Am getting this error only when am accessing oracle types in one schema. Same oracle types are accessible when connecting to another schema. I checked and confirmed that all the grants are given for the user. Can any one help me in this regard?

Have a look at Bug 3643391 if your java access to the objects is via synonyms.

Similar Messages

  • Getting Inconsistent catalog view error  while invoking OCI.

    Hi,
    I am using OCI calls in my java application for communicating with the Oracle database. I am facing a problem while invoking the function "CHANGE_PACKAGE".
    The problem that i'm facing is:
    e :
    java.sql.SQLException: Internal Error: Inconsistent catalog view
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.sql.StructDescriptor.initMetaData1_9_0(StructDescriptor.java:1838)
         at oracle.sql.StructDescriptor.initMetaData1(StructDescriptor.java:1782)
         at oracle.sql.StructDescriptor.isInstantiable(StructDescriptor.java:1027)
         at oracle.sql.STRUCT.<init>(STRUCT.java:126)
         at com.comviva.irancell.test.LoyaltyService.main(LoyaltyService.java:273)
    Description of the function is as follows:
    Oracle Function Script
    CREATE OR REPLACE FUNCTION CHANGE_PACKAGE
    I_CHANGE_PACKAGE IN TI_CHANGE_PACKAGE,
    O_CHANGE_PACKAGE OUT T_ABILLITY_OUTPUT
    RETURN NUMBER;
    CREATE OR REPLACE TYPE TI_CHANGE_PACKAGE
    UNDER T_ENTITY_ID
    PACKAGE_CODE VARCHAR (7),
    REASON_CODE VARCHAR2(10)
    CREATE OR REPLACE TYPE T_ENTITY_ID
    UNDER T_ABILLITY_INPUT
    ENTITY_ID NUMBER(16)
    ) NOT FINAL;
    CREATE OR REPLACE TYPE T_ABILLITY_INPUT AS OBJECT
    EXTERNAL_USER VARCHAR2(255),
    EXTERNAL_APPLICATION VARCHAR2(255),
    EXTERNAL_REFERENCE VARCHAR2(30)
    ) NOT FINAL;
    Below is the piece of code which i tried:
    StructDescriptor structdesc = StructDescriptor.createDescriptor("TI_CHANGE_PACKAGE", con);
    Object[] obj = new Object[structdesc.getLength()];
    obj[0] = new String("ussdapp");
    obj[1] = new String("ussdapp");
    obj[2] = new String("12345");
    obj[3] = new BigDecimal("123456789");
    obj[4] = new String("test");
    obj[5] = new String("test");
    oracle.sql.STRUCT inputobj = new oracle.sql.STRUCT(structdesc, con, obj);
    cstmt.setObject(2, obj, OracleTypes.STRUCT);
    cstmt.registerOutParameter(3, OracleTypes.STRUCT, sql_type_name);
    i'm facing the problem in the line:
    oracle.sql.STRUCT inputobj = new oracle.sql.STRUCT(structdesc, con, obj);
    Please help me out regarding this, Since i have to deliver this application on friday
    Thanks in Advance,
    Sucheth

    why are you passing the object array in the problem line.

  • Java.sql.SQLException: Internal Error: Inconsistent catalog view

    Hi all,
    I have an Oracle procedure defined like:
    pkgoms.p_oms_audit ( in_tab_oms_audit in tab_oms_audit,out_status out number)
    tab_oms_audit is a collection of t_oms_audit
    Here is the structure for the type (with 16 fileds)
    create or replace type t_oms_audit as object(
    Username_ VARCHAR2(101),
    d_Date_ Date,
    <other fields>) ;
    In my Java code I have:
    // conn is the connections to db
    oracle.sql.StructDescriptor structDesc = oracle.sql.StructDescriptor.createDescriptor("TAB_OMS_AUDIT", conn);
    Object[] attributes = new Object[16];
    // Fill out the array: attributes[] in the same structure that t_oms_audit is defined
    // Receive the following error on the next line:
    // java.sql.SQLException: Internal Error: Inconsistent catalog view
    oracle.sql.STRUCT struct = new oracle.sql.STRUCT(structDesc, conn, attributes);
    anOracleCallableStatement.setObject(1, struct, java.sql.Types.STRUCT);
    anOracleCallableStatement.execute();I searched for the above error and the only thing I could find was that its a permission issue; I can execute select, update, insert, delete, ... on db, so not sure if its in fact a permission issue or I am doing sth. else wrong. Any help is greatly appreciated.

    Hi all
    I have the same problem.
    it's not a GRANT problem because in PL/SQL the object works fine.
    JDBC Release problem?
    Any help is greatly appreciated.

  • Getting error as Inconsistent catalog view while inoking the OCI from JAVA

    Hi,
    I am using OCI calls in my java application for communicating with the Oracle database. I am facing a problem while invoking the function "CHANGE_PACKAGE".
    The problem that i'm facing is:
    e :
    java.sql.SQLException: Internal Error: Inconsistent catalog view
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.sql.StructDescriptor.initMetaData1_9_0(StructDescriptor.java:1838)
         at oracle.sql.StructDescriptor.initMetaData1(StructDescriptor.java:1782)
         at oracle.sql.StructDescriptor.isInstantiable(StructDescriptor.java:1027)
         at oracle.sql.STRUCT.<init>(STRUCT.java:126)
         at com.comviva.irancell.test.LoyaltyService.main(LoyaltyService.java:273)
    Description of the function is as follows:
    Oracle Function Script
    CREATE OR REPLACE FUNCTION CHANGE_PACKAGE
    I_CHANGE_PACKAGE IN TI_CHANGE_PACKAGE,
    O_CHANGE_PACKAGE OUT T_ABILLITY_OUTPUT
    RETURN NUMBER;
    CREATE OR REPLACE TYPE TI_CHANGE_PACKAGE
    UNDER T_ENTITY_ID
    PACKAGE_CODE VARCHAR (7),
    REASON_CODE VARCHAR2(10)
    CREATE OR REPLACE TYPE T_ENTITY_ID
    UNDER T_ABILLITY_INPUT
    ENTITY_ID NUMBER(16)
    ) NOT FINAL;
    CREATE OR REPLACE TYPE T_ABILLITY_INPUT AS OBJECT
    EXTERNAL_USER VARCHAR2(255),
    EXTERNAL_APPLICATION VARCHAR2(255),
    EXTERNAL_REFERENCE VARCHAR2(30)
    ) NOT FINAL;
    Below is the piece of code which i tried:
    StructDescriptor structdesc = StructDescriptor.createDescriptor("TI_CHANGE_PACKAGE", con);
    Object[] obj = new Object[structdesc.getLength()];
    obj[0] = new String("ussdapp");
    obj[1] = new String("ussdapp");
    obj[2] = new String("12345");
    obj[3] = new BigDecimal("123456789");
    obj[4] = new String("test");
    obj[5] = new String("test");
    oracle.sql.STRUCT inputobj = new oracle.sql.STRUCT(structdesc, con, obj);
    cstmt.setObject(2, obj, OracleTypes.STRUCT);
    cstmt.registerOutParameter(3, OracleTypes.STRUCT, sql_type_name);
    i'm facing the problem in the line:
    oracle.sql.STRUCT inputobj = new oracle.sql.STRUCT(structdesc, con, obj);
    Please help me out regarding this, Since i have to deliver this application on friday
    Thanks in Advance,
    Sucheth

    Note this forum is only for issues with the SQL Developer tool. Please post these questions only under a dedicated Java forum, as you did already. Don't duplicate threads without reference.
    Regards,
    K.

  • Business partner maintenance for Product catalog view - Problem

    Hi All,
    I am using the FM 'CRM_PRP_MAINTAIN' to create Business partner assignment for product catalog view.
    Can anyone help me with this FM?
    I am passing the following:
            gs_prp_bupa_i-ref_kind = 'B'.
            gs_prp_bupa_i-processing_mode = 'A'.
            gs_prp_bupa_i-bupa_ref_guid = gv_partner_guid.
            gs_prp_bupa_i-partner_id = gv_partner.
            APPEND gs_prp_bupa_i TO gt_prp_bupa_i.
            ls_input_fields-ref_kind = 'D'.
            ls_input_fields-objectname = 'PRP_BUPA_I'.
            ls_input-fieldname = 'BUPA_REF_GUID'.
            APPEND ls_input TO ls_input_fields-field_names.
            ls_input-fieldname = 'PARTNER_ID'.
            APPEND ls_input TO ls_input_fields-field_names.
            ls_input-fieldname = 'PROCESSING_MODE'.
            APPEND ls_input TO ls_input_fields-field_names.
            ls_input-fieldname = 'TYPE'.
            APPEND ls_input TO ls_input_fields-field_names.
            APPEND ls_input_fields TO lt_input_fields.
            CALL FUNCTION 'CRM_PRP_MAINTAIN'
              EXPORTING
                it_prp_bupa_i                   = gt_prp_bupa_i
              CHANGING
                ct_prpadm_h                     = lt_prpadm_h
                ct_prpadm_i                      = lt_prpadm_i
                ct_input_fields                   = lt_input_fields
                cv_log_handle                   = lv_log_handle
             EXCEPTIONS
               error_occurred                  = 1
               prp_locked                      = 2
               no_authority                    = 3
               status_change_not_allowed       = 4
               prp_id_already_exists           = 5
               invalid_prp_id                  = 6
               OTHERS                          = 7 .
    But i don see the partner assignment working.
    My doubt here is wat GUID shud b passed in the field gs_prp_bupa_i-GUID. As of now i m not passing any value here.
    Please help me.
    IF not this FM wat else can i use?

    Hi Ganesh,
    Thanks for your response.
    i hope you understood my question.i have already performed all the steps which you have mentioned.Understand my query first.
    I could solve that query myself.
    Message was edited by: mdv sapcrm

  • R/3 ISA B2B:  Catalog Views

    Hello experts in the group,
    I need to create catalog views for R/3 ISA B2B application. I have to use cross division 00 to handle multiple sales areas and I want to address these divisions using catalog views. I already have one of the four product catalogs that we would need, in place.
    I have tried to use followed SAP Notes:
    696095: ISA R/3 4.0: Collective note on Catalog Views
    695978: How to create function modules for ISA R/3
    677319: Coding sample assignment of customers to views
    677320: Coding sample catalog item assignments to views
    610393: Example for using catalog exit after read
    and
    Note 837119, that was referenced by SAP Help but I could not find.
    Problem is, despite spending all that time and effort, I am not able to make much headway here. I would really appreciate if someone could help me out here and tell me how to create a catalog view. I needs to reference this catalog view to a few layout areas and items in the product catalog, and then assign it to a webshop where a customer (who has access to the web shop) can see only these products that are contained in the view.
    Thanks in Advance,
    Biren Bugati

    Hi Biren,
    I simply went to t.code SRMO (Search Server Relation Monitor) and went to <i>Index Category (index)</i> tab. There I searched for all indexes and painstakingly deleted each one, one by one by clicking "Delete Category." I'm not sure if this is the right way to do it, but it worked in the end. After deleting all indexes when I executed ISA_CAT_REPLICATION tcode, instead of error code 2007, I saw a green indicator light, and "No documents in deletion pending status" text.
    The TrexAdmin tool that I am using is Python based and delivered with TREX itself. Its in /sap/usr/trex<instance_number>/python_support/TrexAdmin.py
    You can find more info about how to launch and use this tool here:
    http://help.sap.com/saphelp_erp2004/helpdata/en/3f/d4ae0fc46e1d1ee10000000a114cbd/frameset.htm
    Hope this helps.
    By the way, I didn't know about ISA_CAT_REPL_DELETE and TREXADMIN tcodes. Do you have a list of all ISA-relevant tcodes?

  • Catalog views in PL/SQL

    Does anybody know if the catalog views
    are accessible inside PL/SQL blocks?
    It is strange that I cannot access the
    catalog views.

    Does anybody know if the catalog views
    are accessible inside PL/SQL blocks?
    It is strange that I cannot access the
    catalog views.

  • Reg creating Catalog Views through R/3

    Hi Guys,
    I am working on an internet sales application with backend as SAP R/3 ECC 6.0. We are not supposed to use CRM. Can someone tell me how to create them?
    I have to create Catalog Views. I tried to acess the SAP Note 998453 and 998458, but i am getting the message "The requested SAP Note is either in reworking or is released internally only". Can someone tell me how to access these notes. 
    I have also gone through the SAP Notes : 696095, 677319, 677320 but couldn't find much help.
    What is a BP or a target group?
    I have gone through the the following sdn link also but couln't find much help.
    Creating Catalog Views
    Can someone provide me the step by step process.
    Any kind of help will be deeply appreciated. Please do reply.
    Thanks,
    Ibrahim

    Hi Ibrahim,
    I understand your requirement is slightly different than ours.
    Based on the customer type (let's say: gold and silver) the catalog view should be displayed, right?
    The question is: how do you match a material with the customer type? Let's say you have 20 materials in the catalog, how do you know what materials can be displayed, and what not? In order to do so, you will need to put a "label" on every material.
    The option we choose for this is using attributes.
    trx. CT04 - define the attributes (1 attribute, with 2 values 'gold'  and 'silver')
    trx. CL02 - create a class (of type 001 - material class). The class is only used as a dummy, so you can attach the attributes to it.
    Now add the attributes to the class.
    Now, for every material you maintain the class (dummy) and the attribute (gold or silver).
    Mat 1    gold
    mat 2    gold
    mat 3    silver
    mat 4     silver
    Now, with the coding I gave to you, the product catalog is replicated to TREX. Every material is given a label "VIEWS_ID", which is filled with value "gold" or "silver".
    Now, when the customer logs on to the webshop, it's checked what customer type he is (gold or silver). Let's say it's gold, then from all materials, the VIEWS_ID is read, and materials with a matching VIEWS_ID (gold) are shown to the customers. So material 1 and 2 are shown, 3 and 4 are hidden.
    In case you have a catalog with a large structure, you might want to show also a limited piece of the catalog structure to the customer. In that case, you do the same for catalog branches, with classification type 060 layout areas.
    Hope this helps you out.
    regards,
    Wim

  • Order product out of catalog view

    Hi
    On default in b2b webshop, if the product is valid for the org. unit but invalid for the determined catalog, you still can order this product even it is not inlcuded in the product catalog.
    Therefore, we disable the parameter 'enable.nonCatalogProducts’ of ‘ui’
    component in ‘b2b’ xcm configuration, then message 'CRM_SALES 307' raises in web to avoid ordering the product out of the catalog succesfully.
    However, if we exclude certain product from catalog view(but the product still exists in the catalog), the product disappears in product catalog view in web shop as we expected, but we still can order this product by directly input in order, which disobeys our request, our request is that you only can order the products in your product catalog VIEW.
    Did anybody encounter this problem before?
    Patrick

    Hi Patrick,
    please check if for the catalog views Partner Product ranges are maintained. Use SPRO and under
    CRM ->Master Data ->Partner/Product Range ->Basic settings
    check the following settings:     
    Define general settings for PPR - check if the flag to use PPR checks in the application (and for given processes) has been set. Check the checkbox "Check PPRs in Business transactions and Applications"
    (ii) PPR Tape for Product Catalog View - make sure that type 0002 is selected
    (iii) Define transaction types and Applications relevant for check - please check the existing SPRO documentation as I am not sure about this point, but in general it should be the transaction type used in your shop
    I hope this will help you resolve the issue. Have you already asked our Support for assistance? Please let me know the message number or write my comments in the message so that my colleagues know about it.
    Regards
    Borislav

  • INVALID Oracle Database Catalog Views 10.1.0.5.0

    I am trying to resolve an INVALID state on the Oracle Database Catalog Views component of an Oracle 10.1.0.5.0 database.
    I was trying to resolve an issue with Data Pump by running: catalog.sql, catproc.sql and catexp.sql as SYS to add the EXFSYS schema.
    Doing this made the Oracle Database Catalog Views go INVALID.
    I have 61 invalid objects after running utlrp.sql, 26 of these are owned by SYS.
    Anyone know of a good way to resolve this issue or a metalink note, other link they can guide me to? I would like to avoid having to rebuild the database.
    Thanks!!!

    Anyway .... this is how to resolve this issue:
    Note: Ensure that the SHARED_POOL_SIZE and JAVA_POOL_SIZE parameters are set to at least 150M each, and then restart the instance in MIGRATE mode and execute catpatch as detailed in the following steps:
    Before starting this process, notify users of database that the database will be unavailable for approximately 2 hours. Proceed with proper notification procedures before shutting down the database.
    1.     sqlplus /nolog
    2.     spool $ORACLE_HOME/rdbms/log/catpatch_ddmmyy.log
    3.     connect / as sysdba
    4.     alter system set shared_pool_size = 200M scope=spfile; (if necessary)
    5.     alter system set java_pool_size = 150M scope=spfile; (if necessary)
    6.     shutdown immediate
    7.     startup migrate
    8.     @$ORACLE_HOME/rdbms/admin/catpatch.sql
    9.     spool off
    10.     shutdown immediate
    11.     startup
    12.     (validate): select comp_name,version,status from dba_registry;

  • Creating the customer specific catalog view....

    Hi All,
    I am working for e-Commerce with mySAP ERP scenario where the customer wants to implement customer specific Catalog View. As it is not a standard functionality provided by SAP. So, I was searching through the SAP notes on how to implement it and found the note 998453 and 998458 which details on how this can be achieved.
    I implemented the relevant SAP Notes i.e. 998453, 998458, 677319 and 677320 in a system. However, the appropriate result is not appearing.  This is my perception; some customizing setting will also be required for the same. Moreover would be the possibility, I have missed some technical steps.
    On this regards only, Could you provide me some reference documents or suggestion based upon these notes which help me in implementation? Apart form that, Could you suggest me any another approach for implementing the catalog view? This is really great help from your end.
    Regards,
    Ashutosh Jain

    it is done...

  • Sql Server 2012 Integration Services Catalog views - cpu usage history

    Hi,
    I am new to SQL Server 2012. I have deployed and executed a SSIS package on the Integration Services catalog.
    Now, to analyze the performance of the executed package I wish to query the SSISDB catalog views to retrieve the cpu & memory usage history. Please let me know in which catalog view/table I can find this info. 
    There is a column named "Process_Id" in the "catalog.operations" table. Can we tie this id to the Sql Server pid/kid and then retrieve the cpu
    usage history ?
    ** I am using Sql Server 2012 **
    Thanks

    Hi All,
    Thanks all for your inputs. One final question - 
    As I mentioned earlier, the Sql Server 2012 catalog views
    DO NOT  capture various performance metrics
    (e.g. cpu usage history, memory usage history etc) of
    an executing SSIS package . However, I am cognizant of the fact that it is possible to retrieve this exact info
    (ie. cpu usage history, memory usage history etc) for
    a Sql-Server internally generated SPID (present in [sys].[dm_exec_sessions]).
    The approach is to find a way to join/relate the catalog provided "Process_id" to the Sql Server generated internal SPIDs in a session. If I am successful in joining these 2 process ids together,
    it will allow me to gather all the information available from both sides - ie the catalog views + the sql-server internal process SPIDs of the session. Thus, by tagging the SSIS pprocess_id to
    its sql-server session it will allow to retrieve the resource usage details by the executed SSIS process.
    **Please also let me know if the above could be achieved by any other approach.
    Any help is appreciated.
    Thanks

  • ISA catalog viewing restrictions in a B2B scenario

    Hi,
    We are implementing ISA for our B2B customers to order marketing material via internet.
    Does anyone know or have implemented security controls to restrict viewing and ordering of product catalog at node level.
    So when customers logs into ISA from web he/she should only be able to see and order the section of catalog that they have access to.
    Any help would be appreciated. Thanks

    Hi Junaid!
    I'm actually working with something similar at the moment - haven't implemented it yet but looked at it. There is a possibility of restricting what items a customer can see in the product catalog by creating specific catalog views.
    Check out the following SAP notes:
    696095 - Collective note on catalog views
    677319 - Coding sample assignment of customers to views
    677320 - Coding sample catalog item assignments to views
    695978 - How to create function modules for ISA R/3 Edition
    These solutions are based on that you use TREX.
    Hope this will help you!
    //Ulrika

  • Catalog views for ERP E-Commerce for MySAP ERP ECC 5.0

    We are implementing the R/3 version of CRM-ISA (ERP E-Commerce for MySAP ERP ECC 5.0).
    We need to implement product catalog views to allow filtering based on specific attributes.
    We have created a custom function module Z_ISA_READ_CATALOG_COMPLETE to replace ISA_READ_CATALOG_COMPLETE and  Z_ISA_CUSTOMER_READ_CAT_VIEWS to replace ISA_CUSTOMER_READ_CAT_VIEWS.
    But when we test from ISA the FM Z_ISA_READ_CATALOG_COMPLETE does not get invoked through RFC.
    There is an  SAP NOTE 998453 that we checked but it is still a pilot version.
    Has anyone implemented the catalog views without the notes? Can we do the catalog views without the note? If so, how can we meke custom FM work? Please advice.
    Thanks,
    VK

    Check the following.
    1. The XCM file modification-config.xml replaces both the function modules
    2. The checkbox to use the catalog views is checked for your webshop
    3. Catalog is published to TREX and you are using TREX catalog instead of Memory catalog.
    I don't think these notes work without TREX. I'd be interested in learning if anyone successfully implemented Catalog views with ECC ECO without using TREX.
    - Kishore

  • SAP ECO for ERP 5.0: customer specific catalog views?

    Hello,
    SAP E-Commerce for ERP 5.0:
    How can I  create and process catalog views for Web shop customers and assign Web shop customers (as users) to the chosen views?
    Is this business process only available in CRM?
    Thanks in advance.
    Best regards,
    AEV

    See the following notes:
    [Note 696095 - ISA R/3 4.0: Collective note on Catalog Views|https://service.sap.com/sap/support/notes/696095]
    To add items to the views:
    [Note 677320  ISA R/3 4.0: Coding sample catalog item assignments to views|https://service.sap.com/sap/support/notes/677320]
    and finally have customer specific views:
    [Note 677319 - ISA R/3 4.0 : Coding sample assignment of customers to views|https://service.sap.com/sap/support/notes/677319]

Maybe you are looking for

  • "cannot connect to the Itunes store" through Iphone

    Ok, I can't get into Itunes on my 1st gen Iphone. It shows that I have no wifi network connected but I don't even know what wifi is. I'm giving this phone to my roommate and she wants to DL ringers. Any idea what I should do? If you tell me like the

  • Imac freezes in Leopard

    My iMac freezes and locks-up when I do certain things. a) Go into the Video/Audio pane on ichat prefs b) when I'm scrolling through image sin preview c) when using time machine sometimes d) once or twice when switching to full screen in Parallels e)

  • Change notification E_mail text doesn't work in Portal 7.0

    I am changing notification E_Mail text accroding this link: <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/33/d494c86203ea40b7b44ddd471baab1/frameset.htm">http://help.sap.com/saphelp_nw04s/helpdata/en/33/d494c86203ea40b7b44ddd471baab1/framese

  • How to give diff addresses for two webcams

    I need to access two webcams at a time. when I tried to search through webcam JMFRegistry is taking same address for both the cameras. vfw://:0. But my code is addressing vfw://:0,vfw://:1,etc

  • How can i get localecontext within customer validator?

    Hi, I want to localize my error message ,so I need to get entity attribute label within customer validator,I write code as follows( eo is entityImpl object eo=valCtx.getSource();) String attributeLable=eo.getStructureDef().findAttributeDef(tempAttrNa