Using WHERE NOT EXISTS for a Fact Table Load

I'm trying to set up a fact table load using T SQL, and I need to use WHERE NOT EXISTS. All of the fields from the fact table are listed in the WHERE NOT EXISTS clause. What I expect is that if the value of any one of the fields is different, that the whole
record be treated as a new record, and inserted into the table. However, in my testing, when I 'force' a field value, new records are not inserted.
The following is my query:
declare 
@Created_By nchar(50)
,@Created_Date datetime --do we need utc check?
,@Updated_By nchar(50)
,@Updated_Date datetime
select @Created_By = system_user
,@Created_Date = getdate()
,@Updated_By = system_user
,@Updated_Date = getdate()
insert fact.Appointment
Slot_ID
, Slot_DateTime
, Slot_StartDateTime
, Slot_EndDateTime
, Slot_Duration_min
, Slot_CreateDateTime
, Slot_CreateDate_DateKey
, Healthcare_System_ID
, Healthcare_Service_ID
, Healthcare_Supervising_Service_ID
, Healthcare_Site_ID
, Booked_Appt_ID
, Appt_Notification_Submission_DateKey
, Appt_Notification_Completion_DateKey
, Appt_Notification_Duration
, Appt_Notification_ID
, Patient_ID
, Physician_ID
, Referral_ID
, Specialty
, LanguageRequested
, Created_Date
, Created_By
, Updated_Date
, Updated_By
select distinct
Slot.Slot_ID 
, Slot.Slot_Start_DateTime  as Slot_DateTime --???
, Slot.Slot_Start_DateTime
, Slot.Slot_End_DateTime
, datediff(mi,slot.Slot_Start_DateTime,slot.Slot_End_Datetime) as Slot_Duration_Min 
, Slot.Created_Date as Slot_CreateDateTime
, SlotCreateDate.Date_key as Slot_CreateDate_DateKey
, HSite.Healthcare_System_ID
, HSite.Healthcare_Service_ID
, HSite.Healthcare_Service_ID as Healthcare_Supervising_Service_ID
, HSite.Healthcare_Site_ID 
, Ref.Booked_Appt_ID 
, ApptSubmissionTime.Date_key as Appt_Notification_Submission_DateKey
, ApptCompletionTime.Date_key as Appt_Notification_Completion_DateKey
, datediff(mi,appt.SubmissionTime,appt.CompletionTime) as Appt_Notification_Duration
, Appt.Appt_Notification_ID 
, pat.Patient_ID 
, 0 as Physician_ID
, ref.Referral_ID
, Hsrv.Specialty
, appt.[Language] as LanguageRequested
,@Created_Date as Created_Date
,@Created_By as Created_By
,@Updated_Date as Updated_Date
,@Updated_By as Updated_By
from dim.Healthcare_System HSys
inner join dim.Healthcare_Service HSrv
on HSys.Healthcare_System_ID = HSrv.HealthCare_System_ID 
inner join dim.Healthcare_Site HSite
on HSite.HealthCare_Service_ID = HSrv.Healthcare_Service_ID
and HSite.HealthCare_System_ID = HSrv.HealthCare_System_ID 
inner join dim.Referral Ref 
on Ref.ReferralSite_ID = HSite.Site_ID
and Ref.ReferralService_ID = HSite.Service_ID
and Ref.ReferralSystem_ID = HSite.System_ID 
right join (select distinct Slot_ID, Source_Slot_ID, Slot_Start_DateTime, Slot_End_DateTime, Created_Date from dim.slot)slot
on ref.Source_Slot_ID = slot.Source_Slot_ID
inner join dim.Appointment_Notification appt
on appt.System_ID = HSys.System_ID
inner join dim.Patient pat 
on pat.Source_Patient_ID = appt.Source_Patient_ID
inner join dim.SystemUser SysUser
on SysUser.Healthcare_System_ID = HSys.Healthcare_System_ID
left join dim.Calendar SlotCreateDate
on SlotCreateDate.Full_DateTime = cast(Slot.Created_Date as smalldatetime)
left join dim.Calendar ApptSubmissionTime
on ApptSubmissionTime.Full_DateTime = cast(appt.SubmissionTime as smalldatetime)
left join dim.Calendar ApptCompletionTime
on ApptCompletionTime.Full_DateTime = cast(appt.CompletionTime as smalldatetime)
where not exists
select
Slot_ID
, Slot_DateTime
, Slot_StartDateTime
, Slot_EndDateTime
, Slot_Duration_min
, Slot_CreateDateTime
, Slot_CreateDate_DateKey
, Healthcare_System_ID
, Healthcare_Service_ID
, Healthcare_Supervising_Service_ID
, Healthcare_Site_ID
, Booked_Appt_ID
, Appt_Notification_Submission_DateKey
, Appt_Notification_Completion_DateKey
, Appt_Notification_Duration
, Appt_Notification_ID
, Patient_ID
, Physician_ID
, Referral_ID
, Specialty
, LanguageRequested
, Created_Date
, Created_By
, Updated_Date
, Updated_By
from fact.Appointment
I don't have any issues with the initial insert, but records are not inserted on subsequent inserts when one of the WHERE NOT EXISTS field values changes.
What am I doing wrong?
Thank you for your help.
cdun2

so I set up a WHERE NOT EXIST condition as shown below. I ran the query, then updated Slot_Duration_Min to 5. Some of the Slot_Duration_Min values resolve to 15. What I expect is that when I run the query again, that the records where Slot_Duration_Min resolves
to 15 should be inserted again, but they are not. I am using or with the conditions in the WHERE clause because if any one of the values is different, then a new record needs to be inserted:
declare 
@Created_By nchar(50)
,@Created_Date datetime
,@Updated_By nchar(50)
,@Updated_Date datetime
select
@Created_By = system_user
,@Created_Date = getdate()
,@Updated_By = system_user
,@Updated_Date = getdate()
insert fact.Appointment
Slot_ID
, Slot_DateTime
, Slot_StartDateTime
, Slot_EndDateTime
, Slot_Duration_min
, Slot_CreateDateTime
, Slot_CreateDate_DateKey
, Healthcare_System_ID
, Healthcare_Service_ID
, Healthcare_Supervising_Service_ID
, Healthcare_Site_ID
, Booked_Appt_ID
, Appt_Notification_Submission_DateKey
, Appt_Notification_Completion_DateKey
, Appt_Notification_Duration
, Appt_Notification_ID
, Patient_ID
, Physician_ID
, Referral_ID
, Specialty
, LanguageRequested
, Created_Date
, Created_By
, Updated_Date
, Updated_By
select distinct
Slot.Slot_ID 
, Slot.Slot_Start_DateTime  as Slot_DateTime --???
, Slot.Slot_Start_DateTime
, Slot.Slot_End_DateTime
, datediff(mi,slot.Slot_Start_DateTime,slot.Slot_End_Datetime) as Slot_Duration_Min 
, Slot.Created_Date as Slot_CreateDateTime
, SlotCreateDate.Date_key as Slot_CreateDate_DateKey
, HSite.Healthcare_System_ID
, HSite.Healthcare_Service_ID
, HSite.Healthcare_Service_ID as Healthcare_Supervising_Service_ID
, HSite.Healthcare_Site_ID 
, Ref.Booked_Appt_ID 
, ApptSubmissionTime.Date_key as Appt_Notification_Submission_DateKey
, ApptCompletionTime.Date_key as Appt_Notification_Completion_DateKey
, datediff(mi,appt.SubmissionTime,appt.CompletionTime) as Appt_Notification_Duration
, Appt.Appt_Notification_ID 
, pat.Patient_ID 
, 0 as Physician_ID
, ref.Referral_ID
, Hsrv.Specialty
, appt.[Language] as LanguageRequested
,@Created_Date as Created_Date
,@Created_By as Created_By
,@Updated_Date as Updated_Date
,@Updated_By as Updated_By
from dim.Healthcare_System HSys
inner join dim.Healthcare_Service HSrv
on HSys.Healthcare_System_ID = HSrv.HealthCare_System_ID 
inner join dim.Healthcare_Site HSite
on HSite.HealthCare_Service_ID = HSrv.Healthcare_Service_ID
and HSite.HealthCare_System_ID = HSrv.HealthCare_System_ID 
inner join dim.Referral Ref 
on Ref.ReferralSite_ID = HSite.Site_ID
and Ref.ReferralService_ID = HSite.Service_ID
and Ref.ReferralSystem_ID = HSite.System_ID 
right join (select distinct Slot_ID, Source_Slot_ID, Slot_Start_DateTime, Slot_End_DateTime, Created_Date from dim.slot)slot
on ref.Source_Slot_ID = slot.Source_Slot_ID
inner join dim.Appointment_Notification appt
on appt.System_ID = HSys.System_ID
inner join dim.Patient pat 
on pat.Source_Patient_ID = appt.Source_Patient_ID
inner join dim.SystemUser SysUser
on SysUser.Healthcare_System_ID = HSys.Healthcare_System_ID
left join dim.Calendar SlotCreateDate
on SlotCreateDate.Full_DateTime = cast(Slot.Created_Date as smalldatetime)
left join dim.Calendar ApptSubmissionTime
on ApptSubmissionTime.Full_DateTime = cast(appt.SubmissionTime as smalldatetime)
left join dim.Calendar ApptCompletionTime
on ApptCompletionTime.Full_DateTime = cast(appt.CompletionTime as smalldatetime)
where not exists
select
Slot_ID
, Slot_DateTime
, Slot_StartDateTime
, Slot_EndDateTime
, Slot_Duration_min
, Slot_CreateDateTime
, Slot_CreateDate_DateKey
, Healthcare_System_ID
, Healthcare_Service_ID
, Healthcare_Supervising_Service_ID
, Healthcare_Site_ID
, Booked_Appt_ID
, Appt_Notification_Submission_DateKey
, Appt_Notification_Completion_DateKey
, Appt_Notification_Duration
, Appt_Notification_ID
, Patient_ID
, Physician_ID
, Referral_ID
, Specialty
, LanguageRequested
, Created_Date
, Created_By
, Updated_Date
, Updated_By
from fact.Appointment fact
where 
Slot.Slot_ID  = fact.Slot_ID 
or
Slot.Slot_Start_DateTime   = fact.Slot_DateTime  
or
Slot.Slot_Start_DateTime = fact.Slot_StartDateTime
or
Slot.Slot_End_DateTime = fact.Slot_EndDateTime
or
datediff(mi,slot.Slot_Start_DateTime,slot.Slot_End_Datetime) =
fact.Slot_Duration_min
or
Slot.Created_Date  = fact.Slot_CreateDateTime
or
SlotCreateDate.Date_key = fact.Slot_CreateDate_DateKey
or
HSite.Healthcare_System_ID = fact.Healthcare_System_ID
or
HSite.Healthcare_Service_ID = fact.Healthcare_Service_ID
or
HSite.Healthcare_Service_ID  =
fact.Healthcare_Service_ID 
or
HSite.Healthcare_Site_ID  = fact.Healthcare_Site_ID 
or
Ref.Booked_Appt_ID  = fact.Booked_Appt_ID 
or
ApptSubmissionTime.Date_key =
fact.Appt_Notification_Submission_DateKey
or
ApptCompletionTime.Date_key =
fact.Appt_Notification_Completion_DateKey
or 
datediff(mi,appt.SubmissionTime,appt.CompletionTime)  = fact.Appt_Notification_Duration
or
Appt.Appt_Notification_ID = fact.Appt_Notification_ID 
or
pat.Patient_ID  =
fact.Patient_ID 
or
0 = 0
or
ref.Referral_ID = fact.Referral_ID
or
Hsrv.Specialty = fact.Specialty
or
appt.[Language] = fact.LanguageRequested

Similar Messages

  • Table does not exist for the sys user

    Hey Everyone,
    I am having a strange problem with 10G 10.2. I keep getting the table does not exist for all the tables when I am logged in as sys. It is strange because I can query the same tables being logged in as a regular user say 'scott'. I can't figure out what the problem is since it could not be privileges because the user is sys. Is there something I am missing here. Any advice would be welcome.
    Thanks,
    Sarang

    Yeah i am using the query....
    SELECT * FORM SCOTT.EMP
    It is a little wierd. I did a full database restore yesterday night. I dont know if that has anything to do with this. Will have to take a look at the logs.

  • Content tab for a fact table

    Hi
    Please , help me in knowing the use of content tab for a fact table in the repository in OBIEE.
    Thanks.

    if you have multiple LTS then you should set the content level approprately otherwise you can get errors during consistency checks.not able to find any link which talks only about content level.see these links and let us know if you have any doubts
    http://kr.forums.oracle.com/forums/thread.jspa?threadID=604637
    Content tab is also handy when you are using aggregate tables.
    Regards,
    Sandeep

  • Where to see  dim and fact table names for a cube.

    Hello Experts,
    Where to see  dim and fact table names for a cube.

    Do a wild character search with the cube name (with '*' on both sides of the cube name) in transaction code SE11 or LISTSCHEMA...
    For Eg : Cube Name is ZFIN_C111
    Goto transaction code SE11
    Tables - ZFIN_C111 & then F4 would give you all the associated tables for the InfoCube.

  • Tax code does not exist for jurisdiction code  in creating purchase order

    Hello Experts,
    After doing a technical upgrade from 4.6 C to ECC EHP 4 , while creating a PO , we are facing an error that
    "Tax code A0  does not exist for jurisdiction code  4318702801".  for one plant  .
    But in 4.6C, there is no problem with the field jurisdiction code in Invoice tab at the PO item level data. it allowed to create PO even with out entering jurisdiction code .
    we have  assigned jurisdiction code to   the particular plant  through config settings in T code OX10.And also we have verified the G/L account properties for the material used in creaton of PO. it will allow all tax codes.
    But still we are facing the same error.
    Please suggest where to establish linkgae betweeen Tax code and jurisdiction code at  customize / config level.
    it is very high priority issue . please suggest
    regards,
    Tulasi

    Hi,
    As  tax jurisdiction code is assigned to your plant on OX10 t.code and cross check  Tax code  declared as input tax & assigned to company code in t.code: OBCL with tjurisdiction code.
    Now double cross check Tax code created (FTXP)for your country with jurisdiction code.
    Also check table A003 for entry of tax code and company code.
    Regards,
    Biju K

  • Minus operator versus 'not exists' for faster SQL query

    Hi everybody,
    Does anyone know if rewriting a query to use the MINUS operator instead of using NOT EXISTS in the query is faster, giving all else is the same?
    Thanks very much!
    Bill Loggins
    801-971-6837
    [email protected]

    It really depends on a bunch of factors.
    A MINUS will do a full table scan on both tables unless there is some criteria in the where clause of both queries that allows an index range scan. A MINUS also requires that both queries have the same number of columns, and that each column has the same data type as the corresponding column in the other query (or one convertible to the same type). A MINUS will return all rows from the first query where there is not an exact match column for column with the second query. A MINUS also requires an implicit sort of both queries
    NOT EXISTS will read the sub-query once for each row in the outer query. If the correlation field (you are running a correlated sub-query?) is an indexed field, then only an index scan is done.
    The choice of which construct to use depends on the type of data you want to return, and also the relative sizes of the two tables/queries. If the outer table is small relative to the inner one, and the inner table is indexed (preferrable a unique index but not required) on the correlation field, then NOT EXISTS will probably be faster since the index lookup will be pretty fast, and only executed a relatively few times. If both tables a roughly the same size, then MINUS might be faster, particularly if you can live with only seeing fields that you are comparing on.
    For example, if you have two tables
    EMPLOYEE
    EMPID      NUMBER
    NAME       VARCHAR2(45)
    JOB        VARCHAR2(45)
    HIRE_DATE  DATE
    and
    RETIREE
    EMPID      NUMBER
    NAME       VARCHAR2(45)
    RET_DATE   DATEIf you wanted to see if you had retirees that were not in the employee table, then you could use either MINUS or NOT EXISTS (or even NOT IN, but you didn't ask). However you could possibly get different results.
    SELECT empid,name
    FROM retirees
    MINUS
    SELECT empid,name
    FROM employeeswould show retirees not in the emp table, but it would also show a retiree who had changed their name while retired. A safer version of the above using MINUS would be
    SELECT empid,name
    FROM retirees
    WHERE empid IN (SELECT empid
                    FROM retirees
                    MINUS
                    SELECT empid
                    FROM employees)A full scan of retirees, a full scan of employees (Assuming indexes on both, then maybe an index fast full scan) and two sorts for the minus, at best an index probe then table access by rowid on retirees, possibly a full scan of retirees for the outer query.
    Assuming that employees is indexd on empid then
    SELECT empid,name
    FROM retirees
    WHERE NOT EXISTS (SELECT 1
                      FROM employees
                      WHERE retirees.empid = employees.empid)requires a full scan of retirees and an index access into employees index for each row.
    As with most things SQL, the only real way to tell is to benchmark.
    HTH
    John

  • Problem in merge statement -ORA-27432 Step does not exist for chain

    Hi
    I m getting ORA-27432 Step does not exist for chain error in merge statement.Please explain the same.
    MERGE INTO fos.pe_td_hdr_sd B
    USING (
             SELECT ACTIVE, ADDUID, ADDUIDTIME,TDKEY         FROM pe.pe_td_hdr
              WHERE  (adduidtime like '20070104%' or edituidtime like '20070104%')
              AND NVL(legacy_td,'N')<>'Y'
              AND SUBSTR(adduidtime,1,4)='2007'
              AND AMENDMENT_NO=0)A ON ( B.TDKEY = A.TDKEY)
      WHEN MATCHED THEN
        UPDATE SET B.ACTIVE=A.ACTIVE,
    B.ADDUID=A.ADDUID,
            B.ADDUIDTIME=A.ADDUIDTIME
      WHEN NOT MATCHED THEN
                      INSERT
                              B.ACTIVE,
                              B.ADDUID,
                              B.ADDUIDTIME)
                        VALUES(
                              A.ACTIVE,
                              A.ADDUID,
                              A.ADDUIDTIME)This query is a short version of the main query.It is same but having 180 columns in original table.

    What version of Oracle are you using? This message does not appear in my 10.1 Error Messages document, but the other messages in that range seem to be about DBMS_SCHEDULER.
    Are you using scheduler somewhere around where you are getting the error message?
    John

  • Wrong query is getting generated in WHERE NOT EXISTS  with group by clause

    Query is getting generated wrongly in where not exists section when i use group by function.Please prvoide me any clue to over come the problem.
    /* DETECTION_STRATEGY = NOT_EXISTS */
    INSERT /*+ APPEND */ INTO STG_ETL.I$_DCMT_TIMEZONE_LOOKUP
         TZ_OFFSET,
         ADT_CRT_DT,
         ADT_UPDT_DT,
         IND_UPDATE
    SELECT * FROM (
    SELECT      
         to_number(KOFAX.RECEIVED_TZ)     TZ_OFFSET,
         min(sysdate)     ADT_CRT_DT,
         min(sysdate)     ADT_UPDT_DT,
         'I' IND_UPDATE
    FROM     ESTG.FLAT_FIL_DMS_KOFAX KOFAX
    WHERE     (1=1)
    And (KOFAX.LD_DT = ( select MAX(LD_DT) from ESTG.FLAT_FIL_DMS_KOFAX INNER
    where INNER.ENGAGEMENT=KOFAX.ENGAGEMENT
                   and INNER.KOFAX_FILE_NM = KOFAX.KOFAX_FILE_NM
                   AND INNER.IM_CUST_ID = KOFAX.IM_CUST_ID
              and INNER.BATCH_ID=KOFAX.BATCH_ID)
    AND
    (TO_DATE(KOFAX.LD_DT)>=TO_DATE(SUBSTR('#WAREHOUSE.P_EDW_LAST_RUN',1,10),'YYYY-MM-DD'))
    And (substr(KOFAX.RECEIVED_TZ,1,1) <> '+')
    Group By to_number(KOFAX.RECEIVED_TZ)
    ) S
    WHERE NOT EXISTS (
         SELECT     'X'
         FROM     EDW.DCMT_TIMEZONE_LOOKUP T
         WHERE     T.TZ_OFFSET     = S.TZ_OFFSET AND
         )

    Easiest fix for you would be to change the detection_strategy on the IKM from NOT_EXISTS to either :
    MINUS
    -- Try this out, it should work, it will give the same data through the equiverlant steps.
    NONE
    -- This will load all incoming data into your I$ table, there will be more rows to crunch in the following 'Flag Rows for Update' step, it might give incorrect results potentially - you will have to test it.
    So try MINUS first, failing that, see if NONE gives you what you want in your target.
    Are you inserting only new data or updating existing data?

  • Archieve does not exist for purchase order

    Hello Gururs,
    When i tried to change the delivery date for the PO and when i trying to save the PO
    then it throws the error messages-'Archieve does not exist for purchase order'.
    PO was created in feb.
    Please help me how can i solve this issue.
    BR
    Ashish

    Can you give a more detailed information.
    What transaction you actually use, what you enter step by step until you get to the error: 'Archieve does not exist for purchase order'
    This message sounds like you want change a PO which is already archived.
    A change to an archived PO is not really logical,  as you can only archive closed business cases. and if the business case is closed, then why would you change the delivery date.
    A PO from February should not really be archived already in June. I never saw it in practice, as you could not do any anual reporting
    I would assume further that SAP found the entered PO number in the archive index but did not find the way to the archive itself. This can happen if the archive file was deleted or moved manually.
    I am not sure if the next messae has really anything to do with your purchase order, thats why I ask you to post the exact steps until the messages come up:
    Le fichier archieve 000524-002SD_COND n'existe pas is the message discription
    But even this message explains more or less the same, that the physical archive is no longer in the same place where it is expected to be found according to the info in records of table ADMI_FILES.

  • Logical level for logical fact table sources

    it is clear that for fact aggregates, we should use the Content tab of the Logical Table Source dialog to assign the correct logical level to each dimension.
    question is : is it mandatory to assign even for non-aggregates fact tables the logical level for each dimension (which normally should be set to the most detailed level of each dimension) ? is it any known issue if "logical levels"in content tab are not set ?
    the reason I'm asking this is a strange bug I have (I'm not going to discuss it here) and then only workaround seems to be NOT setting the logical levels (on content tab) for logical fact table sources.
    thank you !

    If levels are not set: By default levels are considered as lowest level
    It should not matter if you set or not
    Generally we set for facts explicitly when we are using Aggregate tables.
    Your current issue might be a case by case; I would suggest to check implicit fact, any table mapped to the source to force a join etc
    Mark if helps
    Let me know how it helps
    Edited by: Srini VEERAVALLI on Feb 5, 2013 8:33 AM
    Any updates on this?+_
    Edited by: Srini VEERAVALLI on Feb 14, 2013 9:09 AM

  • Node id does not exist for the current application server id  on forms

    Hi,
    We have a Two node RAC setup on which Oracle e-business suite R12.0.6 is setup
    We have CP and DB on two RAC nodes and Forms and Web on two separate server(non-RAC)
    while opening oracle forms we are getting" Node id does not exist for the current application server id "
    on checking Concurrent manager logfile we founf no error, we matched Application Server id from DBC file of all the 4 nodes with application table
    Fnd_nodes... which matches ( there is no mismatch of application server id) .
    We have also tried commenting the application server id in dbc file and executed adgendbc.sh to regenarate dbc file but we are facing the same issue.
    Also tried to clear setup with fnd_conc_clone.clean setup and again executing autoconfig on db and application tier but no result yet.
    Can some one guide as to which file has this message "Node id does not exist for the current application server id "
    and what could be the reason for this.
    Help is appreciated.
    Regards,
    Milan

    I already tried the mentioned metalink note id but it did not work.What did you try exactly?
    Can u help out as from where am i getting the message "Node id does not exist for the current application server id" It is already mentioned in the doc referenced above -- From the dbc file under $FND_SECURE directory.
    i mean from which file does the above message comes.Please clean FND_NODES table as per (How to Clean Nonexistent Nodes or IP Addresses From FND_NODES [ID 260887.1]), run AutoConfig on the database tier then on the application tier and check then.
    Thanks,
    Hussein

  • 11.5.10.2 to R12.1.1 upgrade : AutoPatch warning : Product Data File $APPL_TOP/admin/*prod.txt does not exist for product

    Hello Sir,
    OS version : AIX 6.1
    DB version : 11.2.0.3
    EBS version : 11.5.10.2
    As a part of 11.5.10.2 to R12.1.1 upgrade, I am applying merged patch (9179588:R12.AD.B) with 9477107:R12.AD.B and patch 7461070(R12.AD.B.1 upgrade driver).
    I can see AutoPatch warning messages during adpatch session as below so I have not yet started this merged patch. Please suggest.
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    drix10:/fmstop/patches/R1211AD/merge>adpatch
                         Copyright (c) 2002 Oracle Corporation
                            Redwood Shores, California, USA
                             Oracle Applications AutoPatch
                                     Version 12.0.0
    NOTE: You may not use this utility for custom development
          unless you have written permission from Oracle Corporation.
    Attention: AutoPatch no longer checks for unapplied pre-requisite patches.
    You must use OAM Patch Wizard for this feature. Alternatively, you can
    review the README for pre-requisite information.
    Your default directory is '/fmstop/r12apps/apps/apps_st/appl'.
    Is this the correct APPL_TOP [Yes] ?
    AutoPatch records your AutoPatch session in a text file
    you specify.  Enter your AutoPatch log file name or press [Return]
    to accept the default file name shown in brackets.
    Filename [adpatch.log] : adpatch_u_merged_R12AD11.log
    You can be notified by email if a failure occurs.
    Do you wish to activate this feature [No] ?
    Please enter the batchsize [1000] : 2000
    Please enter the name of the Oracle Applications System that this
    APPL_TOP belongs to.
    The Applications System name must be unique across all Oracle
    Applications Systems at your site, must be from 1 to 30 characters
    long, may only contain alphanumeric and underscore characters,
    and must start with a letter.
    Sample Applications System names are: "prod", "test", "demo" and
    "Development_2".
    Applications System Name [FMSTEST] : FMSTEST *
    NOTE: If you do not currently have certain types of files installed
    in this APPL_TOP, you may not be able to perform certain tasks.
    Example 1: If you don't have files used for installing or upgrading
    the database installed in this area, you cannot install or upgrade
    the database from this APPL_TOP.
    Example 2: If you don't have forms files installed in this area, you cannot
    generate them or run them from this APPL_TOP.
    Example 3: If you don't have concurrent program files installed in this area,
    you cannot relink concurrent programs or generate reports from this APPL_TOP.
    Do you currently have files used for installing or upgrading the database
    installed in this APPL_TOP [YES] ? YES *
    Do you currently have Java and HTML files for HTML-based functionality
    installed in this APPL_TOP [YES] ? YES *
    Do you currently have Oracle Applications forms files installed
    in this APPL_TOP [YES] ? YES *
    Do you currently have concurrent program files installed
    in this APPL_TOP [YES] ? YES *
    Please enter the name Oracle Applications will use to identify this APPL_TOP.
    The APPL_TOP name you select must be unique within an Oracle Applications
    System, must be from 1 to 30 characters long, may only contain
    alphanumeric and underscore characters, and must start with a letter.
    Sample APPL_TOP Names are: "prod_all", "demo3_forms2", and "forms1".
    APPL_TOP Name [drix10] : drix10 *
    You are about to apply a patch to the installation of Oracle Applications
    in your ORACLE database 'FMSTEST'
    using ORACLE executables in '/fmstop/r12apps/apps/tech_st/10.1.2'.
    Is this the correct database [Yes] ?
    AutoPatch needs the password for your 'SYSTEM' ORACLE schema
    in order to determine your installation configuration.
    Enter the password for your 'SYSTEM' ORACLE schema:
    The ORACLE username specified below for Application Object Library
    uniquely identifies your existing product group: APPLSYS
    Enter the ORACLE password of Application Object Library [APPS] :
    AutoPatch is verifying your username/password.
    The status of various features in this run of AutoPatch is:
                                               <-Feature version in->
    Feature                          Active?   APPLTOP    Data model    Flags
    CHECKFILE                        Yes       1          1             Y N N Y N Y
    PREREQ                           Yes       6          6             Y N N Y N Y
    CONCURRENT_SESSIONS              No        2          2             Y Y N Y Y N
    PATCH_TIMING                     Yes       2          2             Y N N Y N Y
    PATCH_HIST_IN_DB                 Yes       6          6             Y N N Y N Y
    SCHEMA_SWAP                      Yes       1          1             Y N N Y Y Y
    JAVA_WORKER                      No        1          -1            Y N N Y N N
    CODELEVEL                        No        1          -1            Y N N Y N N
    Identifier for the current session is 2987
    Reading product information from file...
    Reading language and territory information from file...
    Reading language information from applUS.txt ...
    AutoPatch warning:
    Product Data File
    /fmstop/r12apps/apps/apps_st/appl/admin/eaaprod.txt
    does not exist for product "eaa".
    This product is registered in the database but the
    above file does not exist in APPL_TOP.  The product
    will be ignored without error.
    AutoPatch warning:
    Product Data File
    /fmstop/r12apps/apps/apps_st/appl/admin/abmprod.txt
    does not exist for product "abm".
    This product is registered in the database but the
    above file does not exist in APPL_TOP.  The product
    will be ignored without error.
    AutoPatch warning:
    Product Data File
    /fmstop/r12apps/apps/apps_st/appl/admin/evmprod.txt
    does not exist for product "evm".
    This product is registered in the database but the
    above file does not exist in APPL_TOP.  The product
    will be ignored without error.
    AutoPatch warning:
    Product Data File
    /fmstop/r12apps/apps/apps_st/appl/admin/ipdprod.txt
    does not exist for product "ipd".
    This product is registered in the database but the
    above file does not exist in APPL_TOP.  The product
    will be ignored without error.
    AutoPatch warning:
    Product Data File
    /fmstop/r12apps/apps/apps_st/appl/admin/zfaprod.txt
    does not exist for product "zfa".
    This product is registered in the database but the
    above file does not exist in APPL_TOP.  The product
    will be ignored without error.
    AutoPatch warning:
    Product Data File
    /fmstop/r12apps/apps/apps_st/appl/admin/zsaprod.txt
    does not exist for product "zsa".
    This product is registered in the database but the
    above file does not exist in APPL_TOP.  The product
    will be ignored without error.
    AutoPatch warning:
    Product Data File
    /fmstop/r12apps/apps/apps_st/appl/admin/cssprod.txt
    does not exist for product "css".
    This product is registered in the database but the
    above file does not exist in APPL_TOP.  The product
    will be ignored without error.
    AutoPatch warning:
    Product Data File
    /fmstop/r12apps/apps/apps_st/appl/admin/meprod.txt
    does not exist for product "me".
    This product is registered in the database but the
    above file does not exist in APPL_TOP.  The product
    will be ignored without error.
    AutoPatch warning:
    Product Data File
    /fmstop/r12apps/apps/apps_st/appl/admin/xnmprod.txt
    does not exist for product "xnm".
    This product is registered in the database but the
    above file does not exist in APPL_TOP.  The product
    will be ignored without error.
    AutoPatch warning:
    Product Data File
    /fmstop/r12apps/apps/apps_st/appl/admin/xncprod.txt
    does not exist for product "xnc".
    This product is registered in the database but the
    above file does not exist in APPL_TOP.  The product
    will be ignored without error.
    AutoPatch warning:
    Product Data File
    /fmstop/r12apps/apps/apps_st/appl/admin/xnsprod.txt
    does not exist for product "xns".
    This product is registered in the database but the
    above file does not exist in APPL_TOP.  The product
    will be ignored without error.
    AutoPatch warning:
    Product Data File
    /fmstop/r12apps/apps/apps_st/appl/admin/fptprod.txt
    does not exist for product "fpt".
    This product is registered in the database but the
    above file does not exist in APPL_TOP.  The product
    will be ignored without error.
    AutoPatch warning:
    Product Data File
    /fmstop/r12apps/apps/apps_st/appl/admin/okrprod.txt
    does not exist for product "okr".
    This product is registered in the database but the
    above file does not exist in APPL_TOP.  The product
    will be ignored without error.
    AutoPatch warning:
    Product Data File
    /fmstop/r12apps/apps/apps_st/appl/admin/cueprod.txt
    does not exist for product "cue".
    This product is registered in the database but the
    above file does not exist in APPL_TOP.  The product
    will be ignored without error.
    AutoPatch warning:
    Product Data File
    /fmstop/r12apps/apps/apps_st/appl/admin/ibaprod.txt
    does not exist for product "iba".
    This product is registered in the database but the
    above file does not exist in APPL_TOP.  The product
    will be ignored without error.
    AutoPatch warning:
    Product Data File
    /fmstop/r12apps/apps/apps_st/appl/admin/ozpprod.txt
    does not exist for product "ozp".
    This product is registered in the database but the
    above file does not exist in APPL_TOP.  The product
    will be ignored without error.
    AutoPatch warning:
    Product Data File
    /fmstop/r12apps/apps/apps_st/appl/admin/ozsprod.txt
    does not exist for product "ozs".
    This product is registered in the database but the
    above file does not exist in APPL_TOP.  The product
    will be ignored without error.
    AutoPatch warning:
    Product Data File
    /fmstop/r12apps/apps/apps_st/appl/admin/rlaprod.txt
    does not exist for product "rla".
    This product is registered in the database but the
    above file does not exist in APPL_TOP.  The product
    will be ignored without error.
    AutoPatch warning:
    Product Data File
    /fmstop/r12apps/apps/apps_st/appl/admin/vehprod.txt
    does not exist for product "veh".
    This product is registered in the database but the
    above file does not exist in APPL_TOP.  The product
    will be ignored without error.
    AutoPatch warning:
    Product Data File
    /fmstop/r12apps/apps/apps_st/appl/admin/rhxprod.txt
    does not exist for product "rhx".
    This product is registered in the database but the
    above file does not exist in APPL_TOP.  The product
    will be ignored without error.
    AutoPatch warning:
    Product Data File
    /fmstop/r12apps/apps/apps_st/appl/admin/imtprod.txt
    does not exist for product "imt".
    This product is registered in the database but the
    above file does not exist in APPL_TOP.  The product
    will be ignored without error.
    AutoPatch warning:
    Product Data File
    /fmstop/r12apps/apps/apps_st/appl/admin/ahmprod.txt
    does not exist for product "ahm".
    This product is registered in the database but the
    above file does not exist in APPL_TOP.  The product
    will be ignored without error.
    AutoPatch warning:
    Product Data File
    /fmstop/r12apps/apps/apps_st/appl/admin/okbprod.txt
    does not exist for product "okb".
    This product is registered in the database but the
    above file does not exist in APPL_TOP.  The product
    will be ignored without error.
    AutoPatch warning:
    Product Data File
    /fmstop/r12apps/apps/apps_st/appl/admin/okoprod.txt
    does not exist for product "oko".
    This product is registered in the database but the
    above file does not exist in APPL_TOP.  The product
    will be ignored without error.
    AutoPatch warning:
    Product Data File
    /fmstop/r12apps/apps/apps_st/appl/admin/xniprod.txt
    does not exist for product "xni".
    This product is registered in the database but the
    above file does not exist in APPL_TOP.  The product
    will be ignored without error.
    AutoPatch warning:
    Product Data File
    /fmstop/r12apps/apps/apps_st/appl/admin/jtsprod.txt
    does not exist for product "jts".
    This product is registered in the database but the
    above file does not exist in APPL_TOP.  The product
    will be ignored without error.
    AutoPatch warning:
    Product Data File
    /fmstop/r12apps/apps/apps_st/appl/admin/amfprod.txt
    does not exist for product "amf".
    This product is registered in the database but the
    above file does not exist in APPL_TOP.  The product
    will be ignored without error.
    AutoPatch warning:
    Product Data File
    /fmstop/r12apps/apps/apps_st/appl/admin/cunprod.txt
    does not exist for product "cun".
    This product is registered in the database but the
    above file does not exist in APPL_TOP.  The product
    will be ignored without error.
    Reading database to see what industry is currently installed.
    Reading FND_LANGUAGES to see what is currently installed.
    Currently, the following language is installed:
    Code   Language                                Status
    US     American English                        Base
    Your base language will be AMERICAN.
    Setting up module information.
    Reading database for information about the modules.
    Saving module information.
    Reading database for information about the products.
    Reading database for information about how products depend on each other.
    Reading topfile.txt ...
    Saving product information.
    Trying to obtain a lock...
      Attempting to instantiate the current-view snapshot...
      No baseline bug-fixes info available. Will attempt next time.
         **************** S T A R T   O F   U P L O A D ****************
    Start date: Sun Aug 04 2013 18:45:12
    0 "left over" javaupdates.txt files uploaded to DB: Sun Aug 04 2013 18:45:12
    0 patches uploaded from the ADPSV format patch history files: Sun Aug 04 2013 18:45:12
    Uploading information about files copied during the previous runs ...
    0 "left over" filescopied_<session_id>.txt files uploaded to DB: Sun Aug 04 2013 18:45:12
         ****************** E N D   O F   U P L O A D ******************
    End date: Sun Aug 04 2013 18:45:12
    Enter the directory where your Oracle Applications patch has been unloaded
    The default directory is [/fmstop/patches/R1211AD/merge] :
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    I checked under 11i $APPL_TOP/admin directory, I can see only one izuprod.txt file apart from applprod.txt.
    drix10:/fmstop/fmstest/fmstestappl/admin>ls -lrt *prod.txt
    -rwxr-xr-x    1 appltest dba          231650 Oct 30 2004  applprod.txt
    -rwxr-xr-x    1 appltest dba            4966 Sep 21 2007  izuprod.txt
    R12 code tree is newly installed so there is only applprod.txt
    drix10:/fmstop/r12apps/apps/apps_st/appl/admin>ls -lrt *prod.txt
    -rwxr-xr-x    1 appltest dba          226340 Jul 29 15:19 applprod.txt
    Please suggest if I can ignore these warning to proceed with applying merged patch.

  • "Select" Physical table as LTS for a Fact table

    Hi,
    I am very new to OBIEE, still in the learning phase.
    Scenario 1:
    I have a "Select" Physical table which is joined (inner join) to a Fact table in the Physical layer. I have other dimensions joined to this fact table.
    In BMM, I created a logical table for the fact table with 2 Logical Table Sources (the fact table & the select physical table). No errors in the consistency check.
    When I create an analysis with columns from the fact table and the select table, I don't see any data for the select table column.
    Scenario 2:
    In this scenario, I created an inner join between "Select" physical table and a Dimension table instead of the Fact table.
    In BMM, I created a logical table for the dimension table with 2 Logical Table Sources (the dimension table & the select physical table). No errors in the consistency check.
    When I create an analysis with columns from the dimension table and the select table, I see data for all the columns.
    What am I missing here? Why is it not working in first scenario?
    Any help is greatly appreciated.
    Thanks,
    SP

    Hi,
    If I understand your description correctly, then your materialized view skips some dimensions (infrequent ones). However, when you reference these skipped dimensions in filters, the queries are hitting the materialized view and failing as these values do not exist. In this case, you could resolve it as follows
    1. Create dimensional hierarchies for all dimensions.
    2. In the fact table's logical sources set the content tabs properly. (Yes, I think this is it).
    When you skipped some dimensions, the grain of the new fact source (the materialized view in this case) is changed. For example:
    Say a fact is available with the keys for Product, Customer, Promotion dimensions. The grain for this is Product * Customer * Promotion
    Say another fact is available with the keys for Product, Customer. The grain for this is Product * Customer (In fact, I would say it is Product * Customer * Promotion Total).
    So in the second case, the grain of the table is changed. So setting appropriate content levels for these sources would automatically switch the sources.
    So, I request you to try these settings and let me know if it works.
    Thank you,
    Dhar

  • Value does not exist for "..." in connection...

    Hello,
    I have following issue using Design Studio 1.3.
    I was changed my source of dashboard from universe to Bex Query.
    When it was done I have received following Script Problem related to CheckBox
    Description
    Location
    Event Script
    Component
    Application
    Type
    Value "Sourcable" does not exist for "GP_XSRCB" in connection "cuid:AdpcHfZ9h0VKrXD0XhomzOs"
    Line 3
    On Click
    CHECKBOX_1
    [rkams1157] S2P_PROTOTYPE_MDM_001-002 - dev
    Design Studio Script Problem
    Below please find the Script syntax:
    if(CHECKBOX_1.isChecked())
      DS_2.setFilter("GP_XSRCB", "Sourcable");
    else
      DS_2.clearFilter("GP_XSRCB");
    I would like to note that this script on CheckBox works fine based on universe as a source.
    Please advice.

    Dear All,
    I am also facing same problem, while doing PGI (Post Goods Issue)
    Can any one help in this please.
    And the error message was
    Characteristic value  SEL F1P ADD 82947 does not exist for characteristic PAPH4 (ProdHier01-4)
    Message no. KE0C133
    Diagnosis
    The characteristic "PAPH4" ("ProdHier01-4") should be posted to Profitability Analysis (CO-PA). When the system checked the entries, it was established that the transferred characteristic value (" SEL F1P ADD 82947") is not valid in CO-PA.
    System Response
    The data is not consistent and therefore cannot be transferred to CO-PA.
    Procedure
    With the function Maintain Characteristic Values, you can add characteristic values to those that are valid.
    1. When, I check contents of table MARA-PRDHA, it contains 17 character Alphanumeric input "SEL F1P ADD 82947"
    2. When, I check character PAPH4 in KEA5-->Data type was CHAR and length was 17.
    3. Characterstick PAPH4 cannot be maintained using KES1.
    Thanks & Regards
    Sahas

  • Actual activity price does not exist for cost center / activity type

    Hi,
    We are trying to upload the time sheet related data(number of hours an employee workred on a project) ect from Non SAP to SAP.
    We have used a customized program and have loaded the data from se38.
    All this HR data will be saved in CAT2
    Later we transfer the time related data into SAP FI/CO using CAT7.
    +When  tested  with a couple of employees time sheets, they got uploaded in SE38 proerly and when transfered it through CAT7 it was properly taking the hour*rate is cost and was reflecting in the respective cost element.
    For a few time sheets in SE38 we were getting an error saying that the cost center(100501)/ activity type(EAT001) does not exist for 2010.
    Hence we have taken, FY 2010, the cost centes and activity types in KP26 and have given the planned Activity as 1. No planned cost in KP06.
    We have run the price calculation forr the FY 2010.
    Then we were able to uplaod the time sheets, but when we tried to transfer the data through CAT7, it throws an error saying no activity price exist for cost center 100501/ activity type EAT001. If I ignore the warning an proceed, no amount is being calculated.
    When uploaded employee time sheets before, all the cost were getting claculated and were entering into  the respective cost elements, but now no amounts are being calculated and it is taking Zero.
    When checked the previous years data i.e, 2009 all amounts are fine, in KSII I can see the activity quantity filled with some numbers in 2009, where from are they comming? I have checked KBk6 nothing was mentioned.
    PLease assit
    Regards,
    shilpa

    Hi
    I never used CAT* though, but the error means that you need to maintain a activity price in KBK6 (Actual price)
    Regards
    Ajay M

Maybe you are looking for

  • Mount-DiskImage in a remote session exeception- Cannot process Cmdlet Definition XML for the following file:

    Hi everybody, I have a strange problem with Mount-DiskImage command. Environment: Windows server 2012 without any updates. All scripts signed as it was in Hanselman's blogpost http://www.hanselman.com/blog/SigningPowerShellScripts.aspx First script(s

  • Vendor creation using fm 'Vendor_insert'

    Hi experts, I want to create vendor using the FM 'VENDOR_INSERT'. But the problem is I am unable to know what are the required fields to be given in the import structures (ie LFA1,LFB1,LFM1) . Could you please suggest the way to run this FM with mini

  • Drop shipment to generate IC proforma invoice

    We are using standard drop shipment model. Before sending the goods to end customer, we need a proforma invoice between the sending company and receiving company for Custom clearing purpose. Is that possible? For example, Sales Org A100 (Company Code

  • Alternating Row Colors - Interactive Report

    Hello All, I'm hoping someone out there can help me out w/this. :) I'm a newbie working w/an Interactive Report and want to have alternating row colors as a default w/out losing the IR advantages. I've tried javascript, but, whenever filters are appl

  • Table VBRP and VBAP could not actived

    My system is SAP ERP IDES ECC 6.0 SR2. After importing the  support package SAP_APPL from 006 to the newest 016, when I try to user VA03 , the system raise a dump,  after check the error information, I found it caused by Table VBAP and VBRP not activ