ORA-12054:while trying to create mview based on table in other schema

HI all
show user
user is "NAAMA"
CREATE TABLE USERS
  user_id               NUMBER,
   user_name             VARCHAR2(15 CHAR),
  user_password         VARCHAR2(50 CHAR),
CONSTRAINT user_pk PRIMARY KEY (user_id));
TABLE created.
show user
user is "TEST"
create materialized view log on NAAMA.USERS WITH ROWID
create materialized view users_mv
build immediate
refresh fast on commit with rowid
as
select  user_name  ,
          user_password        
from naama.users;
ORA-12054: cannot set the ON COMMIT refresh attribute for the materialized view
  I suspect this problem is all about priviliges .
please you help
Thanks In advanced
Naama

Hi Ranit ,
thanks for your response , i disagree with you lets take a look at those scenarios :
scenario 1 :
show user
user is "NAAMA"
create materialized view log on users with primary key;
show user
user is "TEST"
CREATE MATERIALIZED VIEW users_mv
BUILD immediate
REFRESH FAST ON COMMIT  
AS
SELECT
user_id,
user_name  ,
user_password , 
naama.get_name(user_id) FIRST_name
FROM naama.users
ORA-12054: cannot set the ON COMMIT refresh attribute for the materialized view.
according to this there is nothing to do to the primary key,scenarion 2:
show user
user is "NAAMA"
create MATERIALIZED VIEW LOG ON USERS WITH rowid.
create or replace function get_name (user_name_in IN varchar2) return varchar2
is
begin
return 'NAAMA';
end  get_name;
show user
user is "TEST"
CREATE MATERIALIZED VIEW users_mv
BUILD immediate
REFRESH FAST ON COMMIT with primary key
AS
SELECT
user_name  ,
user_password , 
naama.get_name(user_name) FIRST_name
FROM naama.users;
ORA-12054: cannot set the ON COMMIT refresh attribute for the materialized view.scenarion 3:
show user
user is "NAAMA"
create MATERIALIZED VIEW LOG ON USERS WITH rowid.
show user
user is "TEST"
CREATE MATERIALIZED VIEW users_mv
BUILD immediate
REFRESH FAST ON COMMIT   WITH rowid
AS
SELECT
user_name  ,
user_password , 
SUBSTR(user_name,1,5)
FROM naama.USERS;
materialized view created.so we cannot say that the mview has problem using functions.
What seems to be the problem ?
Thanks In Advanced
Naama

Similar Messages

  • ORA-01422: while trying to create a job

    Hi all,
    WE need a help from you, group of experts
    we are getting the following error
    ORA-01422: exact fetch returns more than requested number of rows
    ORA-06512: at "SYS.DBMS_ISCHED", while trying to create a job using the following code
    BEGIN
    DBMS_SCHEDULER.create_program
    (program_name => 'FAILURE_MONITOR_PRG',
    program_action => 'JOB_MGR.SPR_FAILURE_MONITOR',
    program_type => 'STORED_PROCEDURE',
    number_of_arguments => 1,
    enabled => FALSE
    DBMS_SCHEDULER.define_metadata_argument
    (program_name => 'FAILURE_MONITOR_PRG',
    argument_position => 1,
    metadata_attribute => 'EVENT_MESSAGE'
    DBMS_SCHEDULER.create_job
    (job_name => 'FAILURE_MONITOR_JOB',
    program_name => 'FAILURE_MONITOR_PRG',
    enabled => TRUE,
    auto_drop => FALSE,
    start_date => SYSDATE,
    event_condition => 'tab.user_data.event = ''FAILED''',
    queue_spec => 'event_queue'
    END;
    Oracle allows us to create the job if the parameter values for enabled is "false" in the DBMS_SCHEDULER.create_job call. But we got the same error
    when tried to enable the job using exec DBMS_SCHEDULER.ENABLE ('FAILURE_MONITOR_JOB');
    ORA-01422: exact fetch returns more than requested number of rows
    ORA-06512: at "SYS.DBMS_ISCHED", line 2751
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 1794
    ORA-06512: at line 1
    Please help us to solve this issue
    Thanks,
    Reghu
    null

    Hi Ravi,
    Thank you for your kind support
    That issue has been solved. Problem was with the event queue and only for that particular job i mentioned in the first post (I was able to create other jobs with different Events using the same queue) . After recreating the event queue i am able to create the same job. I got the same error when I tired to drop the queue, and then I dropped the queue table itself. Do you have any idea about what might had caused the issue?
    Thanks
    Reghu

  • 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

  • ORA-12054 when trying to create an MV

    10gR2
    I'm trying to create an MV, but is failing with the mentioned error. I've tried to search for the reason(s), but cannot seem to find it. Can somebody help? Thanks.
    create materialized view MV_POC
    build immediate
    refresh on commit
    enable query rewrite
    as
    SELECT
    SRBU.SRV_REQ_ID as SRID,
    ORGNZ.NAME as DIVISION ,
    SRVRQ.CREATED as OPENED,
    SRVRQ.SR_SUBTYPE_CD as SOURCE,
    USR.LOGIN as OWNER
    FROM SIEBEL.S_PARTY PRTY,
    SIEBEL.S_ORG_EXT ORGNZ,
    SIEBEL.S_SRV_REQ_BU SRBU,
    SIEBEL.S_BU BU,
    SIEBEL.S_SRV_REQ SRVRQ,
    SIEBEL.S_USER USR
    WHERE SRVRQ.ROW_ID = SRBU.SRV_REQ_ID (+)
    AND
    SRVRQ.OWNER_EMP_ID = USR.PAR_ROW_ID (+)
    AND
    ( PRTY.ROW_ID = ORGNZ.PAR_ROW_ID AND PRTY.ROW_ID = BU.PAR_ROW_ID AND SRBU.BU_ID = PRTY.ROW_ID)
    AND (ORGNZ.INT_ORG_FLG = 'Y' AND BU.BU_FLG = 'Y')
    AND (ORGNZ.PAR_BU_ID = (SELECT ROW_ID FROM SIEBEL.S_ORG_EXT WHERE NAME = 'State of Washington')))

    From the documentation you failed to search
    ORA-12054 cannot set the ON COMMIT refresh attribute for the materialized view
    Cause: The materialized view did not satisfy conditions for refresh at commit time.
    Action: Specify only valid options.
    Those valid conditions are likely documented, and likely they have to do with the numerous outer joins, maybe on primary key columns, may be not.
    Most views must be 'key-preserved' to be updatable.
    Sybrand Bakker
    Senior Oracle DBA

  • Error while trying to create tree using same EMP how to tutorial

    Hi,
    I get the following error while trying to create a sample tree similar to the one
    posted in the how-tos web page.
    The final query that creates the tree is also as follows
    The Current Query shown in my apex window and the one on the howtos tutorial is as follows
    select "EMPNO" id,
    "MGR" pid,
    "ENAME" name,
    null link,
    null a1,
    null a2
    from "RJOSEEMPCLUB"."EMP"
    where DEPTNO = 1
    The error is as follows
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    Debug:
    1: begin
    2: wwv_flow_wiz_confirm.create_tree (
    3: p_flow_id => :FB_FLOW_ID,
    4: p_region_template => replace(:F4000_P112_REGION_TEMPLATE,'%'||'null%',null),
    5: p_start_option => :F4000_P112_START_OPTION,
    6: p_owner => :F4000_P112_OWNER,
    7: p_table_name => :F4000_P112_TABLE,
    8: p_id => :F4000_P112_ID,
    9: p_pid => :F4000_P112_PID,
    10: p_name => :F4000_P112_NAME,
    11: p_link_option => :F4000_P112_LINK_OPTION,
    12: p_link_page_id => :F4000_P112_LINK_PAGE_ID,
    13: p_link_item => :F4000_P112_LINK_ITEM,
    14: p_where => :F4000_P112_WHERE,
    15: p_order_by => :F4000_P112_ORDER_BY,
    16: p_page_id => :F4000_P112_PAGE_ID,
    17: p_page_name => :F4000_P112_PAGE_NAME,
    18: p_tab_set => :F4000_P112_TAB_SET,
    19: p_tab_text => :F4000_P112_TAB_TEXT,
    20: p_region_name => :F4000_P112_REGION_NAME,
    21: p_tree_name => :F4000_P112_TREE_NAME,
    22: p_tree_type => :F4000_P112_TREE_TYPE,
    23: p_max_levels => :F4000_P112_MAX_LEVELS);
    24: end;

    Hi Kart,
    If you have the sample EMP table, the DEPTNO values are 10, 20 or 30.
    Did you specify a root value for the tree?
    Regards
    Andy

  • Application hangs while trying to create a socket

    Hello,
    We have a third party application that makes HTTP connections using a old version of HTTPClient. Recently we have run into problems where the application hangs as one thread seems to hang while trying to create a socket (thread dumps show the hang occurs in native code) and other threads end up waiting for this thread as they need to obtain a lock on HTTPClient.HTTPConnection. We found out that HTTPClient was not setting a timeout on the underlying socket (SO_TIMEOUT) and the relevant patch has been implemented in the hope that if the condition arises again the offending thread will be timed out and allow other threads to try and continue.
    We will not be able to see if the patch works until Monday and I would like to understand the problem a little better if it fails. My question at what point will the socket timeout starting ticking? As our offending thread is waiting in native code is there a chance that the timeout will not be "active".
    Also can anyone provide reasons for an application hanging while trying to create a socket and any suggestions for monitoring or mitigating this problem?
    Thanks a lot.
    Sun Solaris 5.8
    JDK 1.4.1 b02

    It looks like our version of the JDK offer a connect method with a timeout value, I think this will do the trick.

  • Error while trying to create a new company

    Hey All
    I found an error while trying to create a new company.
    the Error like - No matching Records Found - [ODBC -2028]
    This can generate only database but not any tables in that database.
    Please help me.
    Thanking you
    Hepil Doshi

    Hello,
    I would prefer local language instead of US english.....
    My tips.
    1. DID you tried to Not apply the UDO/UDF things?
    2. Do not log in to the database, start from
    3. Please post the error message itself....
    4. If you are running on MS SQL 2005 server (not express) , You can start SQL profiler, and monitor the New Database creation.... you will see in profielr where is the error message and which tables / data is missing.
    If i know well,
    When you create a new company, the SBO-COMMON database is used to deploy the new database....
    If you get stock, reinstall your sbo-common from the last applyied patch..... (Detach SBO-common, move the files another directory, and start upgarder.exe).
    Regards,
    J.

  • Getting error while trying to create the push certificate...

    I am getting the following error while trying to create a push certificate for the mdm from the apple site.
    Certificate Signature Verification failed because the signature  is invalid.
    I am mdm vendor as well as the customer. I did the following steps.
    openssl x509 -inform der -in mdm_identity.cer -out mdm.pem
    openssl x509 -inform der -in AppleWWDRCA.cer -out intermediate.pem
    openssl x509 -inform der -in AppleIncRootCertificate.cer -out root.pem
    openssl req -inform pem -outform der -in customer.csr -out customer.der
    created the plist_encoded file using a java program which uses the "SHA1WthRSA"
    When i tried to upload the plist_encoded file to the apple site (https://identity.apple.com/pushcert/), it creates a file with the following error
    {"ErrorCode":-80018,"ErrorMessage":"Certificate Signature Verification failed","ErrorDescription":"Certificate Signature Verification failed because the <a href=\"http://www.apple.com/business/mdm\" target=\"_blank\">signature<\/a> is invalid."}
    Any help would be greatly appreciated....

    Please see the solution in (The Descriptive Flexfield With Application Name Receivables (AR) and Name Party Site Information (HZ_PARTY_SITES) Is Not Frozen [ID 743262.1]).
    Thanks,
    Hussein

  • Issue while trying to create Sales Order from Inbound Idoc ORDER05

    Hi All,
    I am trying to create a sales order through an Inbound idoc ORDERS05 created out of a Purchase order. The header pricing conditions from the Purchase orders gets populated in E1EDK05 segment and this needs to go to the Sales order header conditions while trying to create the Sales order.
    But when the fields are getting incorrectly mapped to the Sales order. Issue  being, the segment E1EDK05-BETRG contains the condition value. But this fields gets populated to the KOMV-KWERT (condition value) screen field on the Sales order header conditions. But this should have got mapped to field KOMV-KBETR (Rate). If I look at the Purchase order, E1EDK05-BETRG is the field getting fetched from field KOMV-KBETR on the Purchase order. So this should have correspondingly got mapped to KOMV-KBETR on the Sales order as well.
    This looks like a standard behavior. But if any of you have encountered this issue before please let me know if any Correction instructions are available for the same. If this some issue in Pricing conditions configuration, do let me know.

    Hi Paaavan
    You can set a break-point include "FV45PFAP_VBAP_BEARBEITEN_VORBE" that is called by both the SAP Standard and BAPI where the data is prepared and checked in the internal table XVBAP. Compare both SAP standard VA01 and your 'Z' program for what may be different in XVBAP.
    I think the problem my be with regards to the business_object number that is hardcoded in the standard function module. It has given me issues before and hence I tend to use the function module  SD_SALESDOCUMENT_CREATE to create sales documents with.
    Regards,
    Marius

  • Bar Code entry while trying to create one through FB03

    Hi Guru
    We recently had techical upgrade to ECC6.0. While trying to create a barcode entry for a document through FB03 I am getting the following error message
    oa280 - Bar code not active -system administration .
    All the configuration are in place in OAC5,OBD2 . I couldnt able to find any relevant notes regarding to this issue . Can some one help me out in fixing this issue
    Thanks
    Auroar

    Hi
    I raised the question to SAP and they provided me the notes 173521 as suggested by  you . But  following this note will open bar code entry access for all user and for all accounting document which will be an issue .  After few trial and error I was able to get an solution for this issue .  I created an entry in oac5  with barcode active  for object type and user specified and an another entry with barcode inactive for object type ,document type FIIInvoice and user .  This enabled only the authorized user for bar code entry to make changes . One drawback is that it does allow permitted user for all document type
    Thanks all for your suggestion
    Regards
    auroar

  • 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.

  • HT201289 Aperture keeps 3.6 on Yosemite keeps going "non responsive" while trying to create a new vault or back up to an existing vault. Any help would be great.

    Aperture keeps 3.6 on Yosemite keeps going "non responsive" while trying to create a new vault or back up to an existing vault.
    Any help would be great.

    Where is your vault stored? Is it on a drive with the correct formatting - MacOS Extended (Journaled)?

  • TS3297 the 'none' payment option is not displayed in the preferred payment method while trying to create an apple id?

    While trying to create a new apple ID, I do not see the option of 'NONE' payment.  Only the VISA and MASTERCARD options are displayed.  What is the reason?

    Welcome to the Apple Support Communities, Joseph
    http://support.apple.com/kb/ht2534

  • Getting an exception while trying to create a territory

    Hi All,
    I got a dump while trying to create a territory using tcode crmm_terrman. The dump was in program CRM_TERRMAN_READ_EMP_OF_POS saying NO_ACTIVE_PLVAR Found Exception. Request you all to please guide me in finding the reason behind this dump.
    Regards
    Mandeep

    Hi All,
    The dump was coming because there were empty postitions created in the org structure.
    Regards
    Mandeep

  • Create a View from tables of different schemas

    hi all,
    can u pls give solution to create a View from tables of different schemas.
    i have to bring data from one DB Server A,
    which contains different schemas and tables in the schemas...
    i need to insert that data in another DBServer B.
    i made a procedure for this...
    but when the connection fails from A, then i could not get data...
    please suggest some solution..
    thanks,
    neelima

    I don't know what database system you use, but in the most I know it is done that way:
    SELECT
    A.COL1,A.COL2.....
    FROM
    SCHEMA_NAME.TABLENAME A,
    SCHEMA_NAME.TABLE_NAME B
    WHERE
    A.COL1 = B.COL2
    ...

Maybe you are looking for

  • 11.0.06 crashes and update don't install

    Hi, Sorry if I'm starting a new discussion if not absolutely necessary but I'm at a point where I'm a little frustrated. Can't get the support on the Adobe website which I needed. Got a call centre in England but due to bad telephone lines the suppor

  • InDesign Crashes when Accessing Character Panel

    I just updated my Mac OS 10.6.7 with CS5 after uninstalling CS3, which functioned without any problems.  Now, after both creating new documents and opening previously created documents, InDesign is having all kinds of problems when I attempt to acces

  • Maintain Config Id for the Start page of e-rec application

    Hi, I've a requirement wherein I need to hide one of the links in the startup pages for the internal candidates. I have made the necessary configuration settings . Also , defined "WDCONFIGURATIONID" parameter for the "hrrcf_a_startpage_int_cand". But

  • Any cross platform chat app (eg. Whatsapp) for Ash...

    Hello, Does anyone know any cross platform chat app which can be used on Asha 501? I bought the phone today and I was only able to find Nokia Chat which is preinstalled on the phone but that app is not available on android. Any help regarding this? T

  • How to call UME API from ABAP?

    Hello all, I want to call the UME API using ABAP to change portal users from backend system. Is this possible without JAVA development? How? Thanks for your help, Regards, Guido Knapp