A problem with a Materialized View

Hi,
I have a ordinary table with a three column compound primary key (COL_Id, COL_ValidFrom, COL_CaseId)
I also have a MV that selects from that table. This one compiles just fine. It looks like this:
CREATE MATERIALIZED VIEW "MV_02"
REFRESH FORCE ON COMMIT
AS SELECT COL_Id, COL_ValidFrom, MAX(COL_CaseId) CaseId FROM TBL_MediaText GROUP BY COL_Id, COL_ValidFrom;
Works fine. Now I'm trying to create a second MV that selects from the first MV. It looks like this:
CREATE MATERIALIZED VIEW "MV_03"
REFRESH FORCE ON COMMIT
AS
SELECT a.COL_Id, a.CaseId, a.COL_ValidFrom, NVL(MIN(b.COL_ValidFrom)-1, TO_DATE('2099-12-31','yyyy-mm-dd')) ValidTo
FROM MV_02 a, MV_02 b
WHERE a.COL_Id=b.COL_Id(+) AND a.COL_ValidFrom < b.COL_ValidFrom(+)
GROUP BY a.COL_Id, a.CaseId, a.COL_ValidFrom;
This one does not parse. (ORA-12054) There seem to be a probelem with the ON COMMIT command. I have searched the web and found some info on the subject. It tells me to create a MV log, wich I have. I've also tried to put count(*) and count(b.COL_validfrom). But it just wont work.
I see a possibilty of yhe problem laying in te fact that I join using two parts of my PK. Also there might be a problem with the fact that i can't create a log for MV_02 WITH PRIMARY KEY. Or maybe you can't have a MV selecting from another MV?
Do anyone know how i should specify my Logs and/or querys in order for this to parse?
I'm using 10.1, and I do have the ON REFRESH COMMIT-privilege.
Thanks!
Message was edited by:
DavidNils

May be you are trying for this....I don't know how helpful is my solution for you.
SQL> CREATE MATERIALIZED VIEW MVE
  2  TABLESPACE JAM
  3  REFRESH FORCE ON COMMIT
  4  AS SELECT D.DEPTNO,D.DNAME, E.ENAME, E.JOB FROM
  5  EMP E, DEPT D
  6  WHERE D.DEPTNO = E.DEPTNO(+)
  7  /
Materialized view created.
SQL> CREATE MATERIALIZED VIEW MVEF
  2  TABLESPACE JAM
  3  REFRESH FORCE WITH ROWID
  4  AS SELECT * FROM MVE;
Materialized view created.Message was edited by:
Jameel

Similar Messages

  • Problem with dropping materialized view

    Hi there,
    I have a range partitioned materialized view which I can't drop :(
    The view contains 2 columns and about 200.000 records. The actual size on disk
    is 80MB.
    The SQL in the view is:
    SELECT PHONENUMBER, MAX(CREATIONTIME) CREATIONTIME
    FROM CUSTOMERSCONTRACTS
    GROUP BY PHONENUMBER;
    After 3-4 hours I get: ORA-XXXX: End of communication file channel .....
    I have forgotten to mention that this view is created in a new tablespace that is
    completly empty on a brand new HDD.
    What should I do? How to I drop this view without any complains from the DBA
    that I'm making lage IO operations?

    Hello user6673838,
    I do indeed remember this bug, it was pain as its takes sysdba intervention to correct.  It's actually not specific to spatial but rather afflicts any materialized view utilizing a domain index.  It was fixed in the 11.2.0.4 update.  I believe there is a patch for 11.2.0.3.  If you are however stuck on earlier version have your dba first drop the table and then secondly drop the summary.  That will clear the decks and you can recreate the materialized view.
    Cheers,
    Paul

  • Query rewrites with Nested materialized views with different aggregations

    Platform used : Oracle 11g.
    Here is a simple fact table (with measures m1,m2) and dimensions (a) Location (b) Calendar and (c) Product. The business problem is that aggregation operator for measure m1,m2 are different along location dimension and Calendar dimension. The intention is to preaggregate the measures for a product along the calendar dimension and Location dimension and store it as materialized views.
    The direct option is to define a materialized view with Inline queries (Because of the different aggrergation operator, it is not possible to write a query without Inline query). http://download-uk.oracle.com/docs/cd/B28359_01/server.111/b28313/qradv.htm#BABEAJBF documents the limitations that it works only for 'Text match' and 'Equivalent queries' and that is too limiting.
    So decided to have nested materialized view, with first view having just joins(my_dim_mvw_joins), the second view having aggregations along Calendar dimension (my_dim_mvw_calendar) and third view having aggregations along the Location dimension(my_dim_mvw_location). Obviously I do not want the query I fire to know about materialized views and I fire it against the fact table. I see that for the fired query (Which needs aggregations along both Calendar and Location), is rewritten with just second materialized view but not the third. (Had set QUERY_REWRITE_INTEGRITY as TRUSTED) .
    Wanted to know whether there are limitations on Query Writes with nested materialized views? Thanks
    (Have given a simple testable example below. Pls ignore the values given in 'CALENDAR_IDs', 'PRODUCT_IDs' etc as they are the same for all the queries)
    -- Calendar hierarchy table
    CREATE TABLE CALENDAR_HIERARCHY_TREE
    (     "CALENDAR_ID" NUMBER(5,0) NOT NULL ENABLE,
    "HIERARCHY1_ID" NUMBER(5,0),
    "HIERARCHY2_ID" NUMBER(5,0),
    "HIERARCHY3_ID" NUMBER(5,0),
    "HIERARCHY4_ID" NUMBER(5,0),
    CONSTRAINT "CALENDAR_HIERARCHY_TREE_PK" PRIMARY KEY ("CALENDAR_ID")
    -- Location hierarchy table
    CREATE TABLE LOCATION_HIERARCHY_TREE
    (     "LOCATION_ID" NUMBER(3,0) NOT NULL ENABLE,
    "HIERARCHY1_ID" NUMBER(3,0),
    "HIERARCHY2_ID" NUMBER(3,0),
    "HIERARCHY3_ID" NUMBER(3,0),
    "HIERARCHY4_ID" NUMBER(3,0),
    CONSTRAINT "LOCATION_HIERARCHY_TREE_PK" PRIMARY KEY ("LOCATION_ID")
    -- Product hierarchy table
    CREATE TABLE PRODUCT_HIERARCHY_TREE
    (     "PRODUCT_ID" NUMBER(3,0) NOT NULL ENABLE,
         "HIERARCHY1_ID" NUMBER(3,0),
         "HIERARCHY2_ID" NUMBER(3,0),
         "HIERARCHY3_ID" NUMBER(3,0),
         "HIERARCHY4_ID" NUMBER(3,0),
         "HIERARCHY5_ID" NUMBER(3,0),
         "HIERARCHY6_ID" NUMBER(3,0),
         CONSTRAINT "PRODUCT_HIERARCHY_TREE_PK" PRIMARY KEY ("PRODUCT_ID")
    -- Fact table
    CREATE TABLE RETAILER_SALES_TBL
    (     "PRODUCT_ID" NUMBER,
    "PRODUCT_KEY" VARCHAR2(50 BYTE),
    "PLAN_ID" NUMBER,
    "PLAN_PERIOD_ID" NUMBER,
    "PERIOD_ID" NUMBER(5,0),
    "M1" NUMBER,
    "M2" NUMBER,
    "M3" NUMBER,
    "M4" NUMBER,
    "M5" NUMBER,
    "M6" NUMBER,
    "M7" NUMBER,
    "M8" NUMBER,
    "LOCATION_ID" NUMBER(3,0),
    "M9" NUMBER,
    CONSTRAINT "RETAILER_SALES_TBL_LOCATI_FK1" FOREIGN KEY ("LOCATION_ID")
    REFERENCES LOCATION_HIERARCHY_TREE ("LOCATION_ID") ENABLE,
    CONSTRAINT "RETAILER_SALES_TBL_PRODUC_FK1" FOREIGN KEY ("PRODUCT_ID")
    REFERENCES PRODUCT_HIERARCHY_TREE ("PRODUCT_ID") ENABLE,
    CONSTRAINT "RETAILER_SALES_TBL_CALEND_FK1" FOREIGN KEY ("PERIOD_ID")
    REFERENCES CALENDAR_HIERARCHY_TREE ("CALENDAR_ID") ENABLE
    -- Location dimension definition to promote query rewrite
    create DIMENSION LOCATION_DIM
    LEVEL CHAIN IS LOCATION_HIERARCHY_TREE.HIERARCHY1_ID
    LEVEL CONSUMER_SEGMENT IS LOCATION_HIERARCHY_TREE.HIERARCHY3_ID
    LEVEL STORE IS LOCATION_HIERARCHY_TREE.LOCATION_ID
    LEVEL TRADING_AREA IS LOCATION_HIERARCHY_TREE.HIERARCHY2_ID
    HIERARCHY PROD_ROLLUP (
    STORE CHILD OF
    CONSUMER_SEGMENT CHILD OF
    TRADING_AREA CHILD OF
    CHAIN
    -- Calendar dimension definition
    create DIMENSION CALENDAR_DIM
    LEVEL MONTH IS CALENDAR_HIERARCHY_TREE.HIERARCHY3_ID
    LEVEL QUARTER IS CALENDAR_HIERARCHY_TREE.HIERARCHY2_ID
    LEVEL WEEK IS CALENDAR_HIERARCHY_TREE.CALENDAR_ID
    LEVEL YEAR IS CALENDAR_HIERARCHY_TREE.HIERARCHY1_ID
    HIERARCHY CALENDAR_ROLLUP (
    WEEK CHILD OF
    MONTH CHILD OF
    QUARTER CHILD OF
    YEAR
    -- Materialized view with just joins needed for other views
    CREATE MATERIALIZED VIEW my_dim_mvw_joins build immediate refresh complete enable query rewrite as
    select product_id, lht.HIERARCHY1_ID, lht.HIERARCHY2_ID, lht.HIERARCHY3_ID, lht.location_id, cht.HIERARCHY1_ID year,
    cht.HIERARCHY2_ID quarter, cht.HIERARCHY3_ID month, cht.calendar_id week, m1, m3, m7, m9
    from retailer_sales_tbl RS, calendar_hierarchy_tree cht, location_hierarchy_tree lht
    WHERE RS.period_id = cht.CALENDAR_ID
    and RS.location_id = lht.location_id
    and cht.CALENDAR_ID in (10,236,237,238,239,608,609,610,611,612,613,614,615,616,617,618,619,1426,1427,1428,1429,1430,1431,1432,1433,1434,1435,1436,1437,1438,1439,1440,1441,1442,1443,1444,1445,1446,1447,1448,1449,1450,1451,1452,1453,1454,1455,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,1466,1467,1468,1469,1470,1471,1472,1473,1474,1475,1476,1477)
    AND product_id IN (5, 6, 7, 8, 11, 12, 13, 14, 17, 18, 19, 20)
    AND lht.location_id IN (2, 3, 11, 12, 13, 14, 15, 4, 16, 17, 18, 19, 20)
    -- Materialized view which aggregate along calendar dimension
    CREATE MATERIALIZED VIEW my_dim_mvw_calendar build immediate refresh complete enable query rewrite as
    select product_id, HIERARCHY1_ID , HIERARCHY2_ID , HIERARCHY3_ID ,location_id, year, quarter, month, week,
    sum(m1) m1_total, sum(m3) m3_total, sum(m7) m7_total, sum(m9) m9_total,
    GROUPING_ID(product_id, location_id, year, quarter, month, week) dim_mvw_gid
    from my_dim_mvw_joins
    GROUP BY product_id, HIERARCHY1_ID , HIERARCHY2_ID , HIERARCHY3_ID , location_id,
    rollup (year, quarter, month, week);
    -- Materialized view which aggregate along Location dimension
    CREATE MATERIALIZED VIEW my_dim_mvw_location build immediate refresh complete enable query rewrite as
    select product_id, year, quarter, month, week, HIERARCHY1_ID, HIERARCHY2_ID, HIERARCHY3_ID, location_id,
    sum(m1_total) m1_total_1, sum(m3_total) m3_total_1, sum(m7_total) m7_total_1, sum(m9_total) m9_total_1,
    GROUPING_ID(product_id, HIERARCHY1_ID, HIERARCHY2_ID, HIERARCHY3_ID, location_id, year, quarter, month, week) dim_mvw_gid
    from my_dim_mvw_calendar
    GROUP BY product_id, year, quarter, month, week,
    rollup (HIERARCHY1_ID, HIERARCHY2_ID, HIERARCHY3_ID, location_id)
    -- SQL Query Fired (for simplicity have used SUM as aggregation operator for both, but they will be different)
    select product_id, year, HIERARCHY1_ID, HIERARCHY2_ID,
    sum(m1_total) m1_total_1, sum(m3_total) m3_total_1, sum(m7_total) m7_total_1, sum(m9_total) m9_total_1
    from
    select product_id, HIERARCHY1_ID , HIERARCHY2_ID , year,
    sum(m1) m1_total, sum(m3) m3_total, sum(m7) m7_total, sum(m9) m9_total
    from
    select product_id, lht.HIERARCHY1_ID , lht.HIERARCHY2_ID , lht.HIERARCHY3_ID ,lht.location_id, cht.HIERARCHY1_ID year, cht.HIERARCHY2_ID quarter, cht.HIERARCHY3_ID month, cht.calendar_id week,m1,m3,m7,m9
    from
    retailer_sales_tbl RS, calendar_hierarchy_tree cht, location_hierarchy_tree lht
    WHERE RS.period_id = cht.CALENDAR_ID
    and RS.location_id = lht.location_id
    and cht.CALENDAR_ID in (10,236,237,238,239,608,609,610,611,612,613,614,615,616,617,618,619,1426,1427,1428,1429,1430,1431,1432,1433,1434,1435,1436,1437,1438,1439,1440,1441,1442,1443,1444,1445,1446,1447,1448,1449,1450,1451,1452,1453,1454,1455,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,1466,1467,1468,1469,1470,1471,1472,1473,1474,1475,1476,1477)
    AND product_id IN (5, 6, 7, 8, 11, 12, 13, 14, 17, 18, 19, 20)
    AND lht.location_id IN (2, 3, 11, 12, 13, 14, 15, 4, 16, 17, 18, 19, 20)
    GROUP BY product_id, HIERARCHY1_ID , HIERARCHY2_ID , HIERARCHY3_ID , location_id, year
    ) sales_time
    GROUP BY product_id, year,HIERARCHY1_ID, HIERARCHY2_ID
    This Query rewrites only with my_dim_mvw_calendar. (as saw in Query Plan and EXPLAIN_MVIEW). But we would like it to use my_dim_mvw_location as that has aggregations for both dimensions.

    blackhole001 wrote:
    Hi all,
    I'm trying to make my programmer's life easier by creating a database view for them to query the data, so they don't have to worry about joining tables. This sounds like a pretty horrible idea. I say this because you will eventually end up with programmers that know nothing about your data model and how to properly interact with it.
    Additionally, what you will get is a developer that takes one of your views and see's that of the 20 columns in it, it has 4 that he needs. If all those 4 columns comes from a simple 2 table join, but the view has 8 tables, you're wasting a tonne of resources by using the view (and heaven forbid they have to join that view to another view to get 4 of the 20 columns from that other view as well).
    Ideally you'd write stored routines that satisfy exactly what is required (if you are the database resource and these other programmers are java, .net, etc... based) and the front end developers would call those routines customized for an exact purpose.
    Creating views is not bad, but it's by no means a proper solution to having developers not learn or understand SQL and/or the data model.

  • Problems while facing Materialized Views

    Hello All,
    I am facing some problems while creating Materialized Views.
    Senario.
    SCOTT USER:
    sql> Grant select on emp to Public;
    sql> Create materialized view log on emp;
    Connected to LDB User
    sql> CREATE MATERIALIZED VIEW mt_emp
    Refresh fast
    as select * FROM scott.emp;
    I am getting error.. Stating that Table doesnt Exist.
    Please tell me the Reason..
    Note:
    If there is No Log on table Emp then it is throwing the error that there in no LOG on the EMP Table.
    Now when I create a Log on EMP table --> Then it is giving the Problem that Table doesn't Exist.

    Hello paragjp
    The Below are the Steps I am Implementing..
    Connect as Scott User.
    SQL> Grant select on Emp to Public;
    SQL> Create materialized view log on emp with primar key;
    Now I will be Connecting to Other User Say LDB
    Connect as LDB User
    SQL> CREATE MATERIALIZED VIEW mt_emp
    Refresh fast
    as select * FROM scott.emp;
    -- The Below Errors are comming
    ERROR at line 3:
    ORA-12018: following error encountered during code generation for "K5ESK_LDB2"."MT_EMP"
    ORA-00942: table or view does not exist

  • Problem with Local DCs View in NWDS 7.0

    Hi!
    I' ve got a problem with Local DCs view in NWDS: None of the standard-DCs (BI_MMR, BI_UDI, CAF a.s.o.) can be expanded and show their content. I already reinstalled IDE, but without success.
    Has anybody got an idea?
    Thanks a lot in advance!
    Regards,
    Thomas

    Hi,
    This is due to some files missed in Local development.
    Let me know Are you able to see <b>.confdef, .syncdb</b> and <b>buildvariant.config </b> files under Local Developement.
    If you are not able to see, UnInstall your NWDS, Remove Local developement under .dtc folder, then Re-Install NWDS.
    Hope this will help you.
    Thanks & Regards
    Vasundhara

  • Problem with Local DCs View in NWDS

    Hi!
    I' ve got a problem with Local DCs view in NWDS: None of the standard-DCs (BI_MMR, BI_UDI, CAF a.s.o.) can be expanded and show their content. I already reinstalled IDE, but without success.
    Has anybody got an idea?
    Thanks a lot in advance!
    Regards,
    Thomas

    Your setup might be incomplete: The SAR file extraction creates very long paths on your filesystem. If you do not extract to the rootfolder of disk, chances are the paths become too long and the installation exits, without any warning.
    If this is not the cause of your problem, check if the .dcdef files for the local DCs (plugin com.sap.tc.ap if I'm correct) were copied during installation.

  • Problem with pdf chrome viewer and javascript

    I have a problem with chrome pdf viewer. We have created a form with acrobat 9 pro, this form contains a javascript. When the form is printed or saved the javascript checks that all the mandatiry fields are completed and displays a message if some fields are uncompleted. The chrome pdf viewer doesn't display the warning message when the form is saved, and doesn't display the check box included in the warning message pop up to confirm that the user accepts to print the form. The control is correct with FF et IE
    Thanks for your help

    There are many PDF viewers. Adobe's, third party downloads, things that come with systems (Apple Preview, Microsoft 8 Reader), things built into browsers (Chrome, Firefox...) Adobe's software understands the full set of JavaScript. Some ignoresJavaScript altogether. Some do selected JavaScript. This is a bit of a mess, but nothing can be done about it EXCEPT that you can demand your users use Adobe Reader. Whether they actually will depends on how important your needs are to them.

  • Problem with the crystal viewer

    Hi there,
    I have a problem with thw crystal viewer. I have reports developped in Crystal XI that run in vb.net within the "CrystalDecision.Windows.Forms.CrystalReportViewer" object. On all computer client everything works fin except on one of them. When the print button is pressed, it gave a "Object reference not set to an instance of an object" error. Since this error is raised by the "Crystal report windows form viewer" preview window i have no idea why this occured. We tried to uninstall the viewer and reinstall it without chance.
    The only thing i can tell is that this client use a "HP deskjet 3420 series" printer. that's the only difference there is on this computer. Anyone as an idea?
    Thanks
    Ben

    Hi Ben,
    Try moving that printer to another PC and install the print driver. If it fails there it's likely a driver issue. HP and Cr has a history of problems. Mostly it's HP drivers returning the wrong memory structure size.
    If you can find someone who is using Windows XP and Windows 2003 and see if either work. Or possibly plug the printer ina print server and see if that works.
    Next option is if you wrote the software you are running run it in debug mode and see if it captures anything when printing. If did not write it then ask the person who did to test it also.
    Next option if you want to dig deeper into the cause is go to Windows site and download a program called DebugDiag. Run this program and set it to capture crashes. It will generate a dump file which can be analyzed. It should tell you which API or function caused the crash.
    Thank you
    Don

  • Problems with Standard Apps views (eBusiness Suite)

    Hi all,
    I am working with Oracle Application Express and Oracle eBusiness Suite 11.5.10. We have integrated OAE with EBS, but now we are having problems with the standard views (owner APPS).
    I would need the help from somebody that works with OAE and EBS.
    Once we want to query one of the standard views, like ap_invoices, it is necessary to initialize the session with a script like this:
    begin
    DBMS_APPLICATION_INFO.SET_CLIENT_INFO(219);
    end;
    This script lets us to access to the data from the table AP_INVOICES_ALL using the view AP_INVOICES.
    Once I have run the script from SQL Commands (SQL Workshop), I try to run a query using the standard view, for example:
    SELECT * FROM apps.ap_invoices
    From a Report or from SQL Commands (SQL Workshop) always I get the next error:
    "ORA-01722: invalid number."
    However, if I run this query from SQL Plus (same db user), there is any problem, the query works and retrieves rows.
    If I get the source code of the view, remove all the columns, keeping the next SQL:
    SELECT 1
    FROM ap.AP_INVOICES_ALL
    WHERE NVL(ORG_ID,NVL(TO_NUMBER(DECODE(SUBSTRB(USERENV('CLIENT_INFO'),1,1),' ',NULL,SUBSTRB(USERENV('CLIENT_INFO'),1,10))),-99)) = NVL(TO_NUMBER(DECODE(SUBSTRB(USERENV('CLIENT_INFO'),1,1),' ',NULL,SUBSTRB(USERENV('CLIENT_INFO'),1,10))),-99)
    Run this SQL in OAE and I obtain the error again, however from SQL Plus the query works correctly.
    I suppose somebody that works this EBS and OAE has had this problem. How did you solve it?
    Thanks in advance.
    Regards, Luis
    PD. I have tried to not used the views and use the tables filtering the ORG_ID and looks it can work, but I do not like this option.

    Luis - I don't know where you are running these blocks - the SQL Command Processor in APEX? Anyway, for every APEX page request the engine executes something like the following, depending on your version:    begin
        dbms_application_info.set_client_info(g_user);
        dbms_session.set_identifier(substr(g_user,1,(64 - length(g_instance)-1))||':'||to_char(g_instance));
        dbms_application_info.set_module('APEX:APPLICATION '||to_char(g_flow_id),'PAGE '||to_char(g_flow_step_id));       
        exception when others then null;
        end;In the above code, the value of g_user is the logged-in username, perhaps ADMIN in your case.
    Keep in mind that when you do a set_client_info in the database session, that persists only for the duration of the session. On the next page request, you'll get a new database session (or a recycled one).
    Scott

  • Problems in creating Materialized View from 10g R2  to 11g

    Hi,
    We have two databases in 10g Release 2. These databases are on two different servers and we use
    Materialized views to replicate data between these servers. We are currently using 64 bit version of
    oracle 10g release 2 for LINUX.
    Oracle Database 10g Release 10.2.0.1.0 - 64 bit Production
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    We use CENTOS 5 - 64 bit edition
    We upgraded one of the databases to 11g (We exported the data from old database and
    imported it in new database) . Then we tried to create a Materialized view with incremental refresh
    on it where the base table is in the second Oracle 10g database.
    The problem is that it is not letting us create the view with FAST Refresh. It kept on giving ORA-12028
    error. We tried different remedies suggested on forums like creating a view with ROWID, but still it
    continued giving us the same error. We also synchronized the characterset of Oracle 10g and Oracle 11g
    installations but still it did not work.
    Our base table size is pretty large (over 10 Million records) and if we do a full refresh, it takes hours to
    refresh it.
    Without incremental refresh, we will not be able to fucntion, and to upgrade both database simultaneously
    we will need a large down-time which also we can not afford.
    Please advise what should we do.
    Best Regards
    Madhup
    Edited by: Madhup on Mar 2, 2009 10:45 AM

    Hello,
    Yesterday I met the same problem and very sad about this, however, my story is much more complicated (I think so).
    I have 6 databases:
    2 - 11g
    2 - 10g
    2 - 9i
    Every database of each release has different characterset(UTF8 and AL16UTF16).
    I am trying to create Materialized view with FAST REFRESH on Oracle 11g, when master tables are located on 10g database and 9i database.
    Materialized view, which points to 9i database, was successfully created.
    Materialized view, which points to 10g database, gets ORA-12028
    Like you, I tried many notes from METALINK and thought at the begining that the problem is my characterset. But, when the materialized views were successfully built on Oracle 9i database, I understood that the problem is something else.
    Did you find the actual reason why this issue does not work??
    Thanks,
    Alex

  • Problem with Packaging Material Type

    Hello all Gurus,
    I have a problem with a packaging material type that I have created copying the standrad Packaging material type LEIH. I created a new packing material type ZPAC - Packaging Material copying LEIH.
    I then created a new material master record using this new material type ZPAC.
    When I am using this material for packing in outbound delivery document - VL01N, I am getting the following strange error message:
    20333 does not have packaging material type and is therefore not a pack.mat.
    Please suggest me why this error is coming and how I can rectify this error. Is there any further configuration that I need to do for packaging material types??? Kindly suggest.
    Thanks and Regards,
    Umakanth.

    Hi,
    Material type is not enough, you have to maintain proper master data as well as config.
    At least please maintain value in MARA-VHART for the packaging material. Please also check these links how HUM works:
    http://www.sap-img.com/sap-hu.htm
    http://help.sap.com/saphelp_crm40/helpdata/en/c8/a44b779f3211d2858d0000e81ddea0/frameset.htm
    Regards,
    Csaba

  • Hi experts pls help me with this materialized view refresh time!!!

    Hi Expeerts ,
    Please clarify my doubt about this materialized view code
    [\n]
    CREATE MATERIALIZED VIEW SCHEMANAME.products_mv
    REFRESH WITH ROWID
    AS SELECT * from VIEW_TABLE@DATAOPPB;
    [n]
    Here i am creating a materialized view named products_mv of the view_table present in the remote server.Can anyone tell me when will my table product_mv will get refreshed if i follow this code.As what i read from the books is that the refresh period is implicit and is carried out by the database implicitly.so can u tell me suppose i insert 2 new records into my view_table when will this record get updated into my product_mv table.
    I cant use primary key approach so this is the approach i am following .Kindly help me in understanding when will refresh of records occur in the materialized view product_mv...Pls help
    regards
    debashis

    Hi Justin ,
    Yes, my database can reasonably schedule other jobs too .Its not an issue.
    Actually what i meant "fine in all aspects" is that will the matrerialized view will get refreshed w.r.t the documetum_v table present in my remote server.This is all i need to refresh my materialized view .
    I queries the DBA_JOBS table .I could see the following result i have pasted below:-
    [\n]
    NLS_ENV
    MISC_ENV INSTANCE
    dbms_refresh.refresh('"WORKFLOW"."PRODUCTS_MV2"');
    JOB LOG_USER PRIV_USER
    SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
    FAILURES
    WHAT
    [n]
    here WORKFLOW"."PRODUCTS_MV2 is the materialized view i have created.So can u tell me that whether we can predict our refresh part is functioning fine from this data.If so how?
    Actually i am asking u in details as i dont have much exposure to materialized view .I am using it for the very first time.
    Regds
    debashis

  • RMDATIND uploading problem with external material numbers

    Hi,
    I'm using LSMW direct input program RMDATIND (Object:0020 Method:0000) for creating materials.
    I have a problem with uploading materials which have two types of external material numbers.
    For example one material number is 1111-333 and then we have 10000000. The problem is that direct input won't create materials with number 1111-333 though it's possible to create them manually. It works fine with material 10000000.
    Does anyone know how fix this issue?

    Sweth123 wrote:
    Hi Guys:
    >
    > Clicked check box External number assignment without Check., When I am creating a material (mm01) with only numeric characters it is giving me an eror message saying for this material type Numeric characters are not allowed.
    >
    > i should be able to create a material with external number range and it can be numeric or alpha numeric?
    >
    >
    > Thanks
    > Sweth
    Hi,
    go to the path Define Number Ranges for Each Material Type click on maintain groups & select the materila type & select the mouse on material type & click on maintain after that maintain the number ranges.
    for ex: from 300000000 to 399999999 internal no.range
                from A                to ZZZZZZ     external no.range
    from this u can able to create a material with external number range and it can be numeric or alpha numeric
    Regards
    Raj.

  • MS - contention with empty materialized view on demand - 10.2.0.4

    Could somebody explain what is MS - contention? I've searched everywhere and got just that it is used to setup materialized view log. I need more deeper explanation. Why is it needed? And the main thing - I have this materialized view:
    CREATE MATERIALIZED VIEW "CLIENT_MV"
    ORGANIZATION HEAP PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 1048576 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    BUILD IMMEDIATE
    USING INDEX
    REFRESH FAST ON DEMAND
    WITH PRIMARY KEY USING DEFAULT LOCAL ROLLBACK SEGMENT
    DISABLE QUERY REWRITE
    AS SELECT CLIENT_ID FROM CLIENT WHERE 1=0
    And mlog on it. What activity can cause MS-contention on it? I tried concurrent updates on a master table, refreshed it at the same time, but can't get contention. May be it is important that I saw this contention in v$active_history view
    Edited by: user6895786 on 26.02.2010 6:11

    user626582 wrote:
    Hi all
    I have trouble on a 10.2.0.4. All Users have lost their Passwords, that means that the column password in the view dba_users is empty an Users can't login anymore.
    I didn't found a logfile or something else. Have you got an idea ? Profiles eg ?
    Thanks for your help.What is the error that the users are getting, invalid user name and password, is it? Did you do any recent patching of your system/db? I would suggest that you raise an SR with oracle as it would highly descreuctive to play with base tables on your own.
    HTH
    Aman....

  • Problem with maintain table views SM30 Transaction

    Hello All,
    i have a problem with the table maintenance view SM30, it doesn't permit me to modify the rows in the table.
    we have added a field into the table and when i tried to change the table view from menu: Utilities ==> table maintenance generator==> change the system propose me a message that the screen 0001 will be deleted and recreated...but the system has deleted the screen and doesn't recreate it...in somewehere on internet we find that we should use the transaction SE55 menu:
    Environment==> modification ==> Maintenance screen ==> button Layout which open the tool Screen Painter and from that we have created our screen with 4 fields of our table...our result that the screen is created and i can see it from the SM30 transaction but i can't insert rows in the table...when i try to go to maintain table: menu: Utilities ==> Table maintenance generator to try if i can modify something the system give me a message: "set the compare flag dialog ZIV_DP_PLCHAR_LA"
    the ZIV_DP_PLCHAR_LA is the name of my table...
    can you give me some advices please how should i do to fix this problem to insert rows in table throughout the transaction
    SM30 "maintain table views: initial screen"
    if i want to delete the screen from the SE55 transaction to recreate it newly what should i do to take care about some options
    to have a new screen?
    thanks for all
    Bilal

    Hi
    First delete the old table maintainence generator.
    Now Recreate the screen and your table is good to go..
    These error messages come when we add new fields and different version of the table maintainence generator in database.

Maybe you are looking for

  • Safari 2.0.1 Crashes upon opening

    Try as I might, I can't get the updated version of safari to open. I just installed OSX 10.4 (From a brand new DVD I just purchased from the Apple Store) And was running a much older version of Safari (1.2 or so) I have attempted to remove all the fi

  • Receiver HTTP(S) connection

    Scenario: IDOC-XI-HTTP(S) Can I do a HTTP(S) connection with Receiver comm channel ? I wan to do a secured HTTP post to the 3rd party.But When I try to create a 'Receiver' Comm channel, I only see Transport protocol of HTTP 1.0 and there is no option

  • Redirect issue - attempt to retrieve PDF file via web link

    This redirect did not work. Had to manually change the link to access the download. javascript:_hbRedirect('PDF%20Downloads','us/White%20Paper','http://www.apcmedia.com/salestools/SNIS-7AULCP_R2_EN.pdf','&c1=Virtualization%3A%20Optimized%20Power%20an

  • Qosmio F60 - No picture on webcam

    Have just purchased a new Qosmio F60 and the webcam was working, it worked for a day or two and now the webcam light comes on but no picture. I have audio when I do the settings but I cannot get any picture. Have tried everything my limited knowledge

  • SAP MM Modifications in SAP Include MM06EF0B

    I want to implement enhancement / modification to Include MM06EF0B. There is already some code in this form and I want to add some more. Please help.  Thanks, mini