Query based on date partition

Hi,
I am trying to output only a successful job during the past 24 hrs of each day. If there is job that has an outcome of a success and a failure within the last
24 hrs for each day, I want to only output the successful one. If there are no success for the same job, I will output the last attempted failed job.
Here are my columns:
current output:
JOB_ID     JOBDATE               GROUP     PATH          OUTCOME          FAILED     LEVEL     ASSET
3400908     7/27/2012 10:01:18 AM     polA     target1          Success          0     incr     clone1
3400907     7/27/2012 10:01:09 AM     polA     target1          Failed          0     incr     clone1
3389180     7/23/2012 10:01:14 AM     polA     target1          Failed          1     incr     clone1
3374713     7/23/2012 10:01:03 AM     polA     target1          Success          0     incr     clone1
3374712     7/22/2012 11:24:32 AM     polA     target1          Success          0     Full     clone1
3367074     7/22/2012 11:24:00 AM     polA     target1          Failed          1     Full     clone1
3167074     7/21/2012 10:01:13 AM     polA     target1          Success          0     incr     clone1
336074     7/21/2012 10:01:08 AM     polA     target1          Success          0     incr     clone1
desired output:
JOB_ID     JOBDATE               GROUP     PATH          OUTCOME          FAILED     LEVEL     ASSET
3400908     7/27/2012 10:01:18 AM     polA     target1          Success          0     incr     clone1
3374713     7/23/2012 10:01:03 AM     polA     target1          Success          0     incr     clone1
3374712     7/22/2012 11:24:32 AM     polA     target1          Success          0     Full     clone1
3167074     7/21/2012 10:01:13 AM     polA     target1          Success          0     incr     clone1
Here is a code I am trying to use without success:
select *
from
   (selectjob_id, jobdate, group, path, outcome, Failed, level, asset,
          ROW_NUMBER() OVER(PARTITION BY group, path, asset ORDER BY jobdate desc) as rn
               from job_table where jobdate between trunc(jobdate) and trunc(jobdate) -1 )
   where rn = 1
   order by jobdate desc;Thanks,
-Abe

Hi, Abe,
You're on the right track, using ROW_NUMBER to assign numbers, and picking only #1 in the main query. The main thing you're missing is the PARTITION BY clause.
You want to assign a #1 for each distinct combination of group_id, path, asset and calendar day , right?
Then you need to PARTITION BY group_id, path, asset and calendar day . I think you realized that when you named this thread "Query Based *on date partition* ".
The next thing is the analytic ORDER BY clause. To see which row in each partition gets assigned #1, you need to order the rows by outcome ('Success' first, then 'Failed'), and after that, by jobdate (latest jobdate first, which is DESCending order).
If so, this is what you want:
WITH     got_r_num     AS
     SELECT  j.*     -- or list columns wanted
     ,     ROW_NUMBER () OVER ( PARTITION BY  group_id     -- GROUP is not a good column name
                               ,                    path
                         ,             asset
                         ,             TRUNC (jobdate)
                               ORDER BY          CASE  outcome
                                             WHEN  'Succcess'
                                     THEN  1
                                     ELSE  2
                                         END 
                         ,             jobdate     DESC
                       )      AS r_num
     FROM    job_table  j
     WHERE     outcome     IN ('Success', 'Failed')
--     AND     ...     -- Any other filtering, if needed
SELECT     *       -- or list all columns except r_num
FROM     got_r_num
WHERE     r_num     = 1
;If you'd care to post CREATE TABLE and INSERT statements for the sample data, then I could test it.
It looks like you posted multiple copies of this thread.  I'll bet that's not your fault; this site can cause that.  Even though it's not your fault, please mark all the duplicate versions of this thread as "Answered" right away, and continue in this thread if necessary.
Edited by: Frank Kulash on Jul 28, 2012 11:47 PM
This site is flakier than I thought! I did see at least 3 copies of this same thread earlier, but I don't see them now.

Similar Messages

  • Select Query Based on date condition

    Hi ,
    Is it Possible.
    i want to run select query based on date condition.
    Eg...
    if the date between 01-jan-01 and 01-jan-05 then
    select * from table1;
    if the date between 02-jan-05 and 01-jan-08 then
    select * from table2;
    Becaz i have data in 2 diffrent tables , based on the date condition i wnt to run the select statement to diffrent tables.
    i dont want plsql here Just SQL needed.
    thanks,
    -R
    Edited by: infant_raj on May 5, 2009 11:48 PM

    Helo Kanish,
    this is not the one i was asking..
    wht i mean was .
    i use bind variable to get date while running the select statement , once i get the date then i want to choose any one of the table to run select query.
    EG..
    select col1,col2 from table1 where date between only if 01-jan-01 and 01-jan-05;
    select col1,col2 from table2 where date between only if 02-jan-05 and 01-jan-08;
    Run any one of the two . not all
    thanks,
    _raj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Query based on date

    Have you guys ever tried to write a query based on CMP?
    The EJB QL is:
    select object(a) from ActionItems as a where a.duedate = ?1
    When I deployed it to OC4J, I got the following error:
    Error compiling D:\oc4j903\j2ee\home\applications\biogen/biogen.jar: Error trans
    lating EJBQL: Invalid type for expression (a.dueDate = ?1)
    EJB QL statement : 'select object(a) from ActionItems as a where a.dueDate = ?1'
    EJB QL method : public abstract java.util.Collection ActionItemsLocalHome.findByDueDate(java.sql.Date) throws javax.ejb.FinderException
    Auto-deploying file:/D:/oc4j903/j2ee/home/applications/biogen/biogen/ (Assembly
    had been updated)...
    So, any query that is based on date will not work for OC4J, is this a bug or what?
    Thanks for the reply.
    Jingzhi

    I would post this question (and your date range question) to the J2EE group. More J2EE/EJB specific questions are answered there.
    To my understanding the standard ejb2.0 specification is weak in date comparisons for queries. I believe you need to add your date queries to your application server specific orion-ejb-jar.xml file. I'm not sure of how, I would post that question to the J2EE forum, or look it up in the 9ias documentation.
    -Mark

  • Auto-expire from query based on date

    I have some records in my MySQL db that contain dates for upcoming events.. I need a way to query upcoming events and expire them from the query once the date passes without necessarily deleting them from the database. (I'm publishing the next 5 upcoming events to the homepage via 'LIMIT 5').
    Is there an easy way to do this within a MySQL db query? This section of the site (both insert record, display, current query, etc) is all created with ADDT.
    Please let me know!
    Thanks!

    Hi Nathan,
    I reckon you´d just need to display those events which come later than what MySQL calls "CURDATE()"
    (aka "current date") -- so a query like...
    SELECT * FROM tablename WHERE CURDATE() > 'datefield'
    ...should filter the past dates. Works ??
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Query based on Dates

    Hi,
    There are two :p1_start and :p2_end bind variable
    If the above two bind variables are null it must show all the data.
    if two bind variables are not null then it will show the dates between two date pickers.
    select actual_end,status from schedule
    where
    actual_end is between to_date(:p1_start) and to_date(:p1_end)
    Please suggest me in modifying the query.
    Thanks
    Sudhir

    I disagree with using notional start and end dates and agree with Roel that the column should be equated to itself instead.
    However using NVL may negate the index on the column, so I would suggest this instead (logically its the same as Roel's suggestion though)...
    SELECT *
    FROM   my_table
    WHERE  date_col BETWEEN CASE WHEN TO_DATE(:P_STARTDATE) IS NULL
                                 THEN  date_col
                                 ELSE TO_DATE(:P_STARTDATE)
                            END
                    AND
                            CASE WHEN TO_DATE(:P_ENDDATE) IS NULL
                                 THEN  date_col
                                 ELSE TO_DATE(:P_ENDDATE)
                            ENDCheers
    Ben

  • Query Based on Date & Time Range

    Hello Users,
    There is a requirement to display weekly report from saturday 8:00 AM to previous saturday 08:00 AM.
    I have a table "Downtime"
    IPADDRESS       First Occurrence                   Last Occurrence           Downtime
    172.29.10.12    31-JUL-10 08:12:50             01-AUG-10 09:00:00      1
    172.29.11.54    01-AUG-10 11:12:00            01-AUG-10 01:10:00      3
    172.29.58.7      07-AUG-10 04:10:00            07-AUG-10 05:00:00      2I will not have problem when I run the report on saturday as I can give condition as sysdate - 7.
    First problem is how will I default to 8 AM.
    Second if the report is run on sunday or in between before next saturdya I have to query the records only from satuday 8 AM to previous saturday 8 AM.
    Can anyone please help me on this?
    Thanks.
    Ravi.

    Hi,
    hoek wrote:
    That's a great hint, Solomon, thanks.
    I always end up getting frustrated because trunc on a date returns a NULL for 'midnight'....and the ability to perform date arithmetic is gone all of a sudden. Why isn't Oracle just resetting to '00:00:00' when truncating a date, I wonder?I must not understand what you're asking.
    It sounds as if you're saying that TRUNC (dt) sometimes returns something that is NULL (or somehow partially NULL), but I'm sure you don't really think that.
    For other readers who may be wondering:
    TRUNC (dt), where dt is a DATE (and not NULL) , always returns a DATE, and DATEs always have a time. Either the whole DATE is NULL or none of it is; you can't have a year-month-day in a DATE column and not have a time, or have a NULL time.
    TRUNC(dt, x) may return a DATE where the time is not midnight, but only if x is a format string like 'MI' that specifies an interval less than a day. When x indicates a longer interval (e,g, 'IW'), or when x is omitted, the time is always midnight. In any event, you can do date arithmetic on the results.
    I'm sure you understand this, but your question makes it sound like you don't.
    This should illustrate my point:
    -- generating hours, starting 14 days ago:
    with t as (
    select trunc(sysdate-14)+ level/24-1 dt
    from   dual
    connect by level <= 24*14
    -- querying generated data:
    select dt
    --,      trunc(dt,'iw') - 5/3  -- great workaround, but why can't we just work with 00:00:00 for the time component?
    from   t;
    -- generating hours, starting 14 days ago:
    with t as (
    select trunc(sysdate-14)+ level/24-1 dt
    from   dual
    connect by level <= 24*14
    -- querying data between saturday and previous saturday
    -- from the same resultset and 'it doesn't work'
    select dt
    from   t
    where  dt between trunc(dt-7)+8/24 and trunc(sysdate)+8/24;
    Is this a parody of a poorly written question?
    Are you trying to make the point that no one should ever say "it doesn't work" without explaining exactly what doesn't work, and what the expected output is?
    I get the same 336 rows when I run either of the queries above.
    As you've often said, posters should always show exactly what results they want.

  • VERY URGENT:Query based on data passed by Button event

    Hiiiiiiiiiiii friends...
    I am new to fwk, and its very hard time to me,please help..
    I have 2 pages. On first page I am going to enter Pid, then by selecting FIND button I want to execute query for 2nd page for that Pid and get details.
    I have 2 COs.
    For calling page it is as....
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    if (pageContext.getParameter("FIND") != null)
    String PerNum = pageContext.getParameter("PersonId");
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    Serializable[] parameters = { PerNum };
    am.invokeMethod("initDetails",parameters);
    pageContext.setForwardURL("OA.jsp?page=/NEW_PAGE/oracle/apps/PER/person/webui/detailsPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
    OAWebBeanConstants.IGNORE_MESSAGES);
    and for 2nd CO i have..
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    String PerNum = pageContext.getParameter("PersonId");
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    Serializable[] parameters = { PerNum };
    am.invokeMethod("initDetails",parameters);
    and initquery and initDetails methods are written on VOIMPL and AMIMPL classes respectivly...
    I have used only one VO.
    but i unable to pass Pid to second page so that I get result.
    Please help me.....
    Thanks
    Message was edited by:
    Madhav_gharge
    Message was edited by:
    Madhav_gharge

    The parameters are not correct in your setForwardURL method. Use either
    public void setForwardURL(String functionName,
    byte menuContextAction,
    String menuName,
    com.sun.java.util.collections.HashMap parameters,
    boolean retainAM,
    String addBreadCrumb,
    byte messagingLevel)
    or
    public void setForwardURL(String url,
    String functionName,
    byte menuContextAction,
    String menuName,
    com.sun.java.util.collections.HashMap parameters,
    boolean retainAM,
    String addBreadCrumb,
    byte messagingLevel)
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Query based on a date range

    I want to query based on a date range. I wrote the following EJB QL:
    "select object(a) from ActionItems as a where a.dueDate
    between ?1 and ?2"
    But when I deployed the application to Oracle's EJB server, I got the following error:
    Auto-deploying biogen.jar (No previous deployment found)... Invalid type for expression (a.dueDate BETWEEN ?1 AND ?2)
    EJB QL statement : 'select object(a) from ActionItems as a where a.dueDate between ?1 and ?2'
    EJB QL method : public abstract java.util.Collection ActionItemsLocalHome.findByDueDateRange(java.sql.Date,java.sql.Date) throws javax.ejb.FinderException
    at com.sun.ejb.ejbql.parser.EjbQLParser.parse EjbQLParser.java:218)
    at com.sun.ejb.ejbql.EjbQLDriver.parse(EjbQLDriver.java:86)
    at com.sun.ejb.sqlgen.SQLGenerator.generateSQLForEjbQLQueries(SQLGenerator.java:704)
    It works fine for a number range, but does not work for a date range.
    Any one has an idea on how to write a correct EJB QL for a query based on date range?
    Thanks.
    Jingzhi

    Re-posted. Please help!

  • MDX calculation based on date logic for the Jan 1 of current year through the 15th of the previous month

    Hello, 
    We need some help with an SSAS MDX query based on date logic. One of the problems is that I don't have access to the Cube but have been given a query example with the logic needed for the calculation. Here's the scenario; 
    The ETL process will run on the first Tuesday after the 15<sup>th</sup> of a given month. The Analysis Cube data queried should include the current year up to the end of the previous month. For example, on May 19<sup>th</sup>
    (the first Tuesday on or after the 15th) the query should include data from January 1<sup>st</sup> through April 30<sup>th</sup>.
    The 15<sup>th</sup> of the month is not part of the query, it is a factor in when the query is run. The query will always be in terms of complete months.
    SELECT
                    NON EMPTY { [Measures].[Revenue Amount],
                    [Measures].[Utilization],
                    [Measures].[AVG Revenue Rate],
                    [Measures].[Actual Hours] }
    ON
                    COLUMNS,
                    NON EMPTY { ([dimConsultant].[User Id TT].[User Id TT].ALLMEMBERS * [dimConsultant].[Full Name].[Full Name].ALLMEMBERS * [dimConsultant].[Employee
    Type].[Employee Type].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION,
                    MEMBER_UNIQUE_NAME
    ON
                    ROWS
    FROM
                    ( SELECT
    ( { [dimDate].[Week Date].[1/4/2015], [dimDate].[Week Date].[1/11/2015], [dimDate].[Week Date].[1/18/2015], [dimDate].[Week Date].[1/25/2015], [dimDate].[Week Date].[2/1/2015] } )
                    ON
                                    COLUMNS
                    FROM
                                    ( SELECT
    ( { [dimIsBillable].[Is Billable].&[True] } )
                                    ON
    COLUMNS
                                    FROM
    [SSASRBA]
    WHERE
                    ( [dimIsBillable].[Is Billable].&[True], [dimDate].[Week Date].CurrentMember ) CELL PROPERTIES VALUE,
                    BACK_COLOR,
                    FORE_COLOR,
                    FORMATTED_VALUE,
                    FORMAT_STRING,
                    FONT_NAME,
                    FONT_SIZE,
                    FONT_FLAGS

    Hi Hans,
    Thank you for your question.  
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.  
    Thank you for your understanding and support. 
    Regards,
    Simon Hou
    TechNet Community Support

  • Alter table partition based on date and status

    Hi!
    I have a strange scenario where in 100,000 to 500,000 records are created every day and records are to be maintained for 3 yrs. So to manage this table we have it partitioned based on date (so every day one new partition is created). And any partition older than 3 years are to be purged. But the catch is - the table has a 'Creation_date' and 'Close_date' parameter and as per my company's rule, I can only purge the 3 yr old data based on the 'Closed_date'. Basically we end up getting some entries with 'Close_date' that don't fall in the 3+ yr category and hence we just cannot purge the whole partition and reclaim the space.
    What would be the ideal way to partition this table to make easy maintenance!?
    eg -
    Table_1: Partition_03152006
    Col-1 Creation-date Col-2 Close-date
    AAAA 03/15/2006 BBBB 03/16/2006 I can drop this entry+
    XXXX 03/15/2006 YYYY 05/20/2006 I cannot drop this entry+
    So, I am left with non-empty partitions which I cannot purge completely. Right now, I am moving these remaining entries to another partition and purging them when they complete the 3+yr time period.
    Hope I could put in my query properly.
    NOTE: RDBMS - ORACLE 10.2.0.4 on Solaris/SPARC 64Bit
    Thanks in advance,
    Arindam
    Edited by: AB007 on Jun 19, 2009 1:15 PM

    Hi! Below is the table description and the first 5 entries of the table.
    Hi,
    Thanks for your help. Below is the table structure with the index associated with it -
    CREATE TABLE "T3TKTHEADER"
    ( "TKTNUM" VARCHAR2(13) NOT NULL ENABLE,
    "ALTTKTNUM" VARCHAR2(20),
    "CREATEDTTM" DATE,
    "CREATEUSERID" NUMBER,
    "CREATEWKGRPID" NUMBER,
    "MASTERTKTNUM" VARCHAR2(13),
    "CUSID" VARCHAR2(15),
    "CUSNAME" VARCHAR2(80),
    "CUSCNCTNAME" VARCHAR2(80),
    "CUSCNCTPHN" VARCHAR2(22),
    "ALTCUSCNCTNAME" VARCHAR2(80),
    "ALTCUSCNCTPHN" VARCHAR2(22),
    "PRTY" VARCHAR2(1),
    "SVRITY" VARCHAR2(10),
    "CURACTSEQNUM" NUMBER(*,0),
    "LASTSTASTSCHANGETM" DATE,
    "ACKNOWLEDGEFLAG" VARCHAR2(1),
    "TMGRP" NUMBER,
    "TOPGRP" NUMBER,
    "TMUSER" NUMBER,
    "TOPUSER" NUMBER,
    "RECENTTKTSCOUNT" NUMBER,
    "PRINEID" VARCHAR2(53),
    "PRINEIDSVCTYPE" VARCHAR2(128),
    "PRINEIDDETDTTM" DATE,
    "PRINEIDLOCACITY" VARCHAR2(3),
    "PRINEIDLOCASTATE" VARCHAR2(21),
    "PRINEIDLOCZCITY" VARCHAR2(3),
    "PRINEIDLOCZSTATE" VARCHAR2(21),
    "TKTTYPE" VARCHAR2(10),
    "DOMAIN" VARCHAR2(10),
    "PRODTYPE" VARCHAR2(10),
    "SYMCODE" VARCHAR2(10),
    "SYMCODEDESC" VARCHAR2(50),
    "RPTSRC" VARCHAR2(10),
    "TOTALTKTTM" NUMBER,
    "SHELLTKTTM" NUMBER(*,0),
    "OTGCLOCKON" VARCHAR2(1),
    "OTGCLOCKSEQ" VARCHAR2(5),
    "OTGTM" NUMBER,
    "ORIGNEID" VARCHAR2(80),
    "NADCODE" VARCHAR2(30),
    "NADDTTM" DATE,
    "NADCODEDESC" VARCHAR2(50),
    "OTGCAUSE" VARCHAR2(50),
    "RESLCODE" VARCHAR2(10),
    "PLATFORM" VARCHAR2(30),
    "CATEQUIP" VARCHAR2(30),
    "RESOLVEDDT" DATE,
    "CLOSEDDT" DATE,
    "PROBSUMMARY" VARCHAR2(500),
    "TOPGRPESCSTS" VARCHAR2(1),
    "TOPGRPESCLEV" VARCHAR2(2),
    "TOPGRPLASTESCTM" DATE,
    "TMGRPESCSTS" VARCHAR2(1),
    "TMGRPESCLEV" VARCHAR2(2),
    "TMGRPLASTESCTM" DATE,
    "FAIFLAG" VARCHAR2(1),
    "MSIFLAG" VARCHAR2(1),
    "CHRONICFLAG" VARCHAR2(1),
    "SLAMTTR" NUMBER,
    "TSPCODE" VARCHAR2(13),
    "DEFERREDSTARTTM" DATE,
    "TOTALDEFERREDDUR" NUMBER,
    "CURSTA" VARCHAR2(10),
    "CURSTS" VARCHAR2(10),
    "STSCOMMENT" VARCHAR2(100),
    "ACTIVEINTREFERRALS" NUMBER(*,0),
    "ACTIVEEXTREFERRALS" NUMBER(*,0),
    "NUMOFXREFS" NUMBER(*,0),
    "LASTUPDDTTM" DATE,
    "LASTUPDUSERID" NUMBER,
    "CREATEUSERID_NAME" VARCHAR2(21),
    "CREATEWKGRPID_NAME" VARCHAR2(21),
    "TMGRP_NAME" VARCHAR2(21),
    "TOPGRP_NAME" VARCHAR2(21),
    "TMUSER_NAME" VARCHAR2(21),
    "TOPUSER_NAME" VARCHAR2(21),
    "RESLCODEDESC" VARCHAR2(50),
    "RDB_INSERT_DATE" DATE,
    "CUSCNCTHOMEPHN" VARCHAR2(22),
    "CUSCNCTCELLPHN" VARCHAR2(21),
    "CUSCNCTFAXNUM" VARCHAR2(22),
    "CUSCNCTEMAIL" VARCHAR2(47),
    "ALTCUSCNCTHOMEPHN" VARCHAR2(22),
    "ALTCUSCNCTCELLPHN" VARCHAR2(21),
    "ALTCUSCNCTFAXNUM" VARCHAR2(22),
    "ALTCUSCNCTEMAIL" VARCHAR2(47),
    "CUSCNCTALTPHN" VARCHAR2(22),
    "ALTCUSCNCTALTPHN" VARCHAR2(22),
    "CREATEUSERNAME" VARCHAR2(21),
    "CREATEWKGRPNAME" VARCHAR2(21),
    "TMGRPNAME" VARCHAR2(21),
    "TOPGRPNAME" VARCHAR2(21),
    "TMUSERNAME" VARCHAR2(21),
    "TOPUSERNAME" VARCHAR2(21),
    "LASTUPDUSERNAME" VARCHAR2(21),
    "CURINTROGNAME" VARCHAR2(22),
    "CURINTROUSERNAME" VARCHAR2(22),
    "CURETTRID" NUMBER,
    "CURLECNAME" VARCHAR2(21),
    "CUREXTRODTTM" DATE,
    "RESOLVEBYUSERNAME" VARCHAR2(21),
    "RESOLVEBYWKGRPNAME" VARCHAR2(21),
    "RESOLVEDBYUSERID" NUMBER,
    "RESOLVEDBYWKGRP" NUMBER,
    "NUMOFNEIDS" NUMBER,
    "PRINEIDLOCACTYNAME" VARCHAR2(40),
    "PRINEIDLOCZCTYNAME" VARCHAR2(40),
    "SYMPTCAT" VARCHAR2(32),
    "RECEIVEDVIA" VARCHAR2(32),
    "RECENTAPPERRORCODE" VARCHAR2(10),
    "CORPID" VARCHAR2(15),
    "KEYWORDS" VARCHAR2(25),
    "SLALEVEL" VARCHAR2(1),
    "ROGSTSCOMMENT" VARCHAR2(100),
    "TOGSTSCOMMENT" VARCHAR2(100),
    "TMGSTSCOMMENT" VARCHAR2(100),
    "CUSCNCTPAGER" VARCHAR2(47),
    "ALTCUSCNCTPAGER" VARCHAR2(47),
    "METANAMETBL" VARCHAR2(10),
    "NEXTACTIONDTTM" DATE,
    "TOPWKGRPSTATUS" VARCHAR2(10),
    "INTGRPID" VARCHAR2(21),
    "INTPUBFLAG" VARCHAR2(1),
    "INTTKTNUM" VARCHAR2(30),
    "BILLEVENTFLAG" VARCHAR2(1),
    "WHN_OTGTM" NUMBER DEFAULT 0,
    "ILEC_OTGTM" NUMBER DEFAULT 0,
    "EVENTID" VARCHAR2(15),
    "NUMCIRCUITS" NUMBER,
    "TMASSIGNDTTM" DATE,
    "TOPASSIGNDTTM" DATE,
    "ALERTCUSFLAG" VARCHAR2(1),
    "MCIPRODNAME" VARCHAR2(40),
    "ALTNEID" VARCHAR2(53),
    "CONTROLSITE" VARCHAR2(14),
    "CRITICALINDICATOR" VARCHAR2(1),
    "REPORTEDBYNAME" VARCHAR2(80),
    "REPORTEDBYPHN" VARCHAR2(22),
    "REPORTEDBYCELLPHN" VARCHAR2(21),
    "REPORTEDBYEMAIL" VARCHAR2(47),
    "REPORTEDBYFAXNUM" VARCHAR2(22),
    "REPORTEDBYHOMEPHN" VARCHAR2(22),
    "REPORTEDBYPAGER" VARCHAR2(47),
    "REPORTEDBYALTPHN" VARCHAR2(22),
    "DISPATCHIND" VARCHAR2(1),
    "BILLCUSTNOTIFY" VARCHAR2(1) DEFAULT 0,
    "ACCESSID" NUMBER DEFAULT 0 NOT NULL ENABLE,
    "GARMLEVEL" VARCHAR2(10) DEFAULT 1 NOT NULL ENABLE,
    "GARMID" VARCHAR2(100) DEFAULT ' ' NOT NULL ENABLE,
    "GARMIDTYPE" VARCHAR2(50) DEFAULT ' ' NOT NULL ENABLE,
    "T1AINDICATOR" VARCHAR2(15),
    "TKTSOURCE" VARCHAR2(20),
    "SOURCETEXT" VARCHAR2(40),
    "RCOCIRCUITID" VARCHAR2(53),
    "RCOTKTNUM" VARCHAR2(13)
    ) PCTFREE 20 PCTUSED 50 INITRANS 1 MAXTRANS 255 LOGGING
    STORAGE(INITIAL 134217728 NEXT 134217728
    BUFFER_POOL DEFAULT)
    TABLESPACE "TS_MED1"
    PARTITION BY RANGE ("TKTNUM")
    (PARTITION "PART_OLD" VALUES LESS THAN ('2003080100001')
    PCTFREE 20 PCTUSED 50 INITRANS 1 MAXTRANS 255
    STORAGE(INITIAL 134217728 NEXT 5242880 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TS_TKTHEAD_OLD" NOCOMPRESS ,
    PARTITION "PART04Q1" VALUES LESS THAN ('2004033199999')
    PCTFREE 20 PCTUSED 50 INITRANS 1 MAXTRANS 255
    STORAGE(INITIAL 52428800 NEXT 52428800 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TS_TKTHEAD_04_OLD" NOCOMPRESS ,
    PARTITION "PART04Q2" VALUES LESS THAN ('2004063099999')
    PCTFREE 20 PCTUSED 50 INITRANS 1 MAXTRANS 255
    STORAGE(INITIAL 52428800 NEXT 52428800 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TS_TKTHEAD_04_OLD" NOCOMPRESS ,
    PARTITION "PART04Q3" VALUES LESS THAN ('2004093099999')
    PCTFREE 20 PCTUSED 50 INITRANS 1 MAXTRANS 255
    STORAGE(INITIAL 20971520 NEXT 52428800 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TS_TKTHEAD_04_OLD" NOCOMPRESS ,
    PARTITION "PART04Q4" VALUES LESS THAN ('2004123199999')
    PCTFREE 20 PCTUSED 50 INITRANS 1 MAXTRANS 255
    STORAGE(INITIAL 20971520 NEXT 52428800 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TS_TKTHEAD_04_OLD" NOCOMPRESS ,
    PARTITION "PART05Q1Q2" VALUES LESS THAN ('2005063199999')
    PCTFREE 20 PCTUSED 50 INITRANS 1 MAXTRANS 255
    STORAGE(INITIAL 20971520 NEXT 20971520 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TS_TKTHEADER_05Q1Q2" NOCOMPRESS ,
    PARTITION "PART05Q3Q4" VALUES LESS THAN ('2005123199999')
    PCTFREE 20 PCTUSED 50 INITRANS 1 MAXTRANS 255
    STORAGE(INITIAL 20971520 NEXT 20971520 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TS_TKTHEAD_05Q3Q4" NOCOMPRESS ,
    PARTITION "PART06Q1Q2" VALUES LESS THAN ('2006063199999')
    PCTFREE 20 PCTUSED 50 INITRANS 1 MAXTRANS 255
    STORAGE(INITIAL 20971520 NEXT 20971520 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TS_TKTHEAD_06Q1Q2" NOCOMPRESS ,
    PARTITION "PART06Q3Q4" VALUES LESS THAN ('2006123199999')
    PCTFREE 20 PCTUSED 50 INITRANS 1 MAXTRANS 255
    STORAGE(INITIAL 20971520 NEXT 5242880 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TS_TKTHEAD_06Q3Q4" NOCOMPRESS ,
    PARTITION "PART07Q1Q2" VALUES LESS THAN ('2007063199999')
    PCTFREE 20 PCTUSED 50 INITRANS 1 MAXTRANS 255
    STORAGE(INITIAL 20971520 NEXT 5242880 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TS_TKTHEAD_07Q1Q2" NOCOMPRESS ,
    PARTITION "PART07Q3Q4" VALUES LESS THAN ('2007123199999')
    PCTFREE 20 PCTUSED 50 INITRANS 1 MAXTRANS 255
    STORAGE(INITIAL 20971520 NEXT 5242880 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TS_TKTHEAD_07Q3Q4" NOCOMPRESS ,
    PARTITION "PART08Q1Q2" VALUES LESS THAN ('2008063199999')
    PCTFREE 20 PCTUSED 50 INITRANS 1 MAXTRANS 255
    STORAGE(INITIAL 20971520 NEXT 5242880 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TS_TKTHEAD_08Q1Q2" NOCOMPRESS ,
    PARTITION "PART08Q3Q4" VALUES LESS THAN ('2008123199999')
    PCTFREE 20 PCTUSED 50 INITRANS 1 MAXTRANS 255
    STORAGE(INITIAL 20971520 NEXT 5242880 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TS_TKTHEAD_08Q3Q4" NOCOMPRESS ,
    PARTITION "PART09Q1Q2" VALUES LESS THAN ('2009063099999')
    PCTFREE 20 PCTUSED 50 INITRANS 1 MAXTRANS 255
    STORAGE(INITIAL 20971520 NEXT 5242880 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TS_TKTHEAD_09Q1Q2" NOCOMPRESS ,
    PARTITION "PART09Q3Q4" VALUES LESS THAN (MAXVALUE)
    PCTFREE 20 PCTUSED 50 INITRANS 1 MAXTRANS 255
    STORAGE(INITIAL 20971520 NEXT 5242880 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TS_TKTHEAD_09Q3Q4" NOCOMPRESS )
    CREATE INDEX "ETMS"."XTKTHDR9" ON "ETMS"."T3TKTHEADER" ("LASTUPDDTTM", "INTPUB
    FLAG", "CURSTS")
    PCTFREE 10 INITRANS 2 MAXTRANS 255
    STORAGE(
    BUFFER_POOL DEFAULT) LOCAL
    (PARTITION "PART_OLD"
    PCTFREE 10 INITRANS 2 MAXTRANS 255
    STORAGE(INITIAL 5242880 NEXT 5242880 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TS_TKTHEAD_OLD" ,
    PARTITION "PART04Q1"
    PCTFREE 10 INITRANS 2 MAXTRANS 255
    STORAGE(INITIAL 20971520 NEXT 20971520 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TS_IND_TKTHEAD_04_OLD" ,
    PARTITION "PART04Q2"
    PCTFREE 10 INITRANS 2 MAXTRANS 255
    STORAGE(INITIAL 20971520 NEXT 20971520 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TS_IND_TKTHEAD_04_OLD" ,
    PARTITION "PART04Q3"
    PCTFREE 10 INITRANS 2 MAXTRANS 255
    STORAGE(INITIAL 20971520 NEXT 20971520 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TS_IND_TKTHEAD_04_OLD" ,
    PARTITION "PART04Q4"
    PCTFREE 10 INITRANS 2 MAXTRANS 255
    STORAGE(INITIAL 20971520 NEXT 20971520 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TS_IND_TKTHEAD_04_OLD" ,
    PARTITION "PART05Q1Q2"
    PCTFREE 10 INITRANS 2 MAXTRANS 255
    STORAGE(INITIAL 10485760 NEXT 10485760 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TS_IND_TKTHEADER_05Q1Q2" ,
    PARTITION "PART05Q3Q4"
    PCTFREE 10 INITRANS 2 MAXTRANS 255
    STORAGE(INITIAL 10485760 NEXT 10485760 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TS_IND_TKTHEAD_05Q3Q4" ,
    PARTITION "PART06Q1Q2"
    PCTFREE 10 INITRANS 2 MAXTRANS 255
    STORAGE(INITIAL 5242880 NEXT 5242880 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TS_IND_TKTHEAD_06Q1Q2" ,
    PARTITION "PART06Q3Q4"
    PCTFREE 10 INITRANS 2 MAXTRANS 255
    STORAGE(INITIAL 1048576 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TS_IND_TKTHEAD_06Q3Q4" ,
    PARTITION "PART07Q1Q2"
    PCTFREE 10 INITRANS 2 MAXTRANS 255
    STORAGE(INITIAL 1048576 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TS_IND_TKTHEAD_07Q1Q2" ,
    PARTITION "PART07Q3Q4"
    PCTFREE 10 INITRANS 2 MAXTRANS 255
    STORAGE(INITIAL 1048576 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TS_IND_TKTHEAD_07Q3Q4" ,
    PARTITION "PART08Q1Q2"
    PCTFREE 10 INITRANS 2 MAXTRANS 255
    STORAGE(INITIAL 1048576 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TS_IND_TKTHEAD_08Q1Q2" ,
    PARTITION "PART08Q3Q4"
    PCTFREE 10 INITRANS 2 MAXTRANS 255
    STORAGE(INITIAL 1048576 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TS_IND_TKTHEAD_08Q3Q4" ,
    PARTITION "PART09Q1Q2"
    PCTFREE 10 INITRANS 2 MAXTRANS 255
    STORAGE(INITIAL 1048576 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TS_IND_TKTHEAD_09Q1Q2" ,
    PARTITION "PART09Q3Q4"
    PCTFREE 10 INITRANS 2 MAXTRANS 255
    STORAGE(INITIAL 1048576 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TS_IND_TKTHEAD_09Q3Q4" )
    PARALLEL 4
    DATA:
    2000120600662 06-Dec-2000 11:39:56 PM 12671 1243 UNKNOWN 5 11 0 1243 1243 -1 0 0 916 576 2675 06-Dec-2000 03:48:22 PM ANI CUSTOMER 0 0 -1 916 576 2675 0 06-Dec-2000 03:48:22 PM 0 06-Dec-2000 03:48:22 PM 0 0 0 0 CLOSED VOID 0 0 0 10-May-2001 10:17:18 PM 10873 unknown TXSAN.CSLOC TXSAN.CSLOC TXSAN.CSLOC 16-May-2008 05:50:29 PM unknowni TXSAN.CSLOC TXSAN.CSLOC TXSAN.CSLOC sburke 0 1 ALL PHONE 0 1
    2001021300976 23-Apr-2001 03:00:49 PM 50766 2113 UNKNOWN 5 2 0 2113 2113 -1 0 0 75fnode 13-Feb-2001 11:12:48 AM EQUIPMENT 0 0 1 75fnode 0 13-Feb-2001 11:12:48 AM 0 13-Feb-2001 11:12:48 AM 0 0 0 0 CLOSED VOID 0 0 0 22-May-2001 01:30:37 PM 10866 unknown MABST.3CMNOD MABST.3CMNOD MABST.3CMNOD 16-May-2008 05:50:29 PM unknown MABST.3CMNOD MABST.3CMNOD MABST.3CMNOD jcece 0 1 ALL PHONE 0 1
    2001022100287 21-Mar-2001 07:00:37 PM 62393 9974 UNKNOWN 5 14 0 9974 9974 -1 0 0 3P19S.S63.0031 20-Feb-2001 08:53:57 PM CIRCUIT CUSTOMER 0 0 0 -1 3P19S.S63.0031 0 20-Feb-2001 08:53:57 PM 0 20-Feb-2001 08:53:57 PM 0 0 0 0 CLOSED VOID 0 0 0 28-Apr-2001 03:47:18 PM 12782 mclement9486 CASAC.SSO CASAC.SSO CASAC.SSO 16-May-2008 05:50:29 PM mclement9486 CASAC.SSO CASAC.SSO CASAC.SSO unknown 0 01-Jan-1970 12:00:00 AM 1 ALL PHONE 1 N N 0 1
    2001022101367 21-Feb-2001 09:57:41 PM 42424 2935 UNKNOWN 5 4 0 2935 2935 -1 0 0 0808 105 0020 21-Feb-2001 10:46:50 AM SWITCHED CLI 0 0 -1 0808 105 0020 0 21-Feb-2001 10:46:50 AM 0 21-Feb-2001 10:46:50 AM 0 0 0 0 CLOSED VOID VOID 0 0 0 23-Apr-2001 05:54:57 PM 11063 unknown UKLN.CSCCO UKLN.CSCCO UKLN.CSCCO 16-May-2008 05:50:29 PM gharvey UKLN.CSCCO UKLN.CSCCO UKLN.CSCCO unknown 0 01-Jan-1970 12:00:00 AM 1 ALL PHONE 0 1
    Hope this helps.
    Thanks in advance,
    Arindam

  • How to calculate a boolean based on data from a table fed by a BI Query

    Hi Gurus,
    I am currently struggling with the following issue:
    - I have a query in my VC model wich returns 4 ratios
    - I put the result of the query in a table in the VC model
    - then, I added a column in the table. this column is a boolean which should be true if the value of one of my 4 ratios is not 0, otherwise, it is false
    - I want that boolean to be "updatable" by the users.
    I tried to define the default value of the boolean based on the value from the signficant ratio... no luck
    I tried to change the value from the configuration tab of the column, but then I can not update afterwards....
    Has anyone ever seen that issue and found a solution ?
    Thansk for your help
    PY

    Hi Deep!
    Thanks for your feedback! I felt a bit alone in my world before you answered
    Your idea is great and it would work if I hadn't to display the data with a hierarchy.
    Actually, the only thing I did not mention is that we are posting data against fiscal period, and we are budgeting for the next 10 years (no comment on that, and the precision we could reach ). So, to display the information we are using a cusomized hierarchy on 0FISCPER using 0FISCYEAR.
    So when I used your option, the hierarchy has been deactivated on the table. But to be sure I correctly implemented your proposition, here are the steps we used :
    1) connect the query output port "data" to the share
    2) add the boolean in the share
    3) map the boolean with the rule based on the data coming from the query
    4) connect the share to the table.
    Note that we the current version we use of VC I am not able to edit the field mapping between the share and the table...
    Did I miss something ?
    If yes, could you drive me to the correct procedure ?
    If no, would you have any idea ? I already tried to change the default value of the field in the "define Data" maintenance popup of the table. I also tried to assign a value to the boolean based on the Action option of the column used in my condition...
    Thanks for your help
    PY

  • Incorrect data for proportional factor in query based on Planning Book

    hi,
    We have upgraded from APO 3.1 to SCM 5.0.
    Post upgrade, the proportional factor is being displayed incorrectly in the BEX query based on the Planning Book data if we run the query for multiple months.
    for eg,
    if, in the planning book, the proportional factor for months 10.2009 and 11.2009 are as follows :
    Brand  >> Month >> Proportional Factor
    B1 >> 10.2009 >> 70%
    B2 >> 10.2009 >> 30%
    B1 >> 11.2009 >> 80%
    B2 >> 11.2009 >> 20%
    When we execute the query for the above brands for months 10.2009 and 11.2009,
    then, at the total level, the % displayed is 100% and the data at brand level is halved.
    We do not have any exits or formulae operating at the key figure level in the query and hence are unable to figure out why this is happenning...
    Any clue on this ?
    regards,
    Anirudha

    Resolved.

  • Query output based on date - Oracle 8i

    I am trying to write a very simple query to output data based
    on date ranges, but I keep encountering an error.
    When I do this statement:
    select * from my.table
    where startdate > '2008-01-01'
    I get this error:
    [ODBC][Ora]ORA-01861: literal does not match format string
    When I format the select statement this way:
    select * from my.table
    where startdate > #2008-01-01#
    i get this error:
    [ODBC][Ora]ORA-00932: inconsistent datatypes: expected DATE
    got NUMBER
    Currently using CF8, and what I believe is Oracle 8i. I have
    tried formatting this data in many other ways, but can't get it to
    work. I know that when I query the database via access, it has no
    problem returning results with the SQL date formatted like
    #01/01/2008#

    You can use the Oracle to_date() function to convert your
    string to a date/time object:
    select * from my.table
    where startdate > to_date('2008-01-01', 'YYYY-MM-DD')
    Or, since you are using an ODBC connection to Oracle, you can
    try using the ColdFusion CreateODBCDate() function:
    select * from my.table
    where startdate > #CreateODBCDate("2008-01-01")#
    Or, as already suggested, use cfqueryparam with the
    appropriate CFSQLType, such as
    CF_SQL_TIMESTAMP instead of CF_SQL_INTEGER like you are
    attempting to do.
    You can't use a "string" date value against a date/time
    column in an Oracle query, as it won't perform an implicit type
    conversion.
    Phil

  • Partitioning of existing tables.. based on date

    Hello Friends,
    I have some tables where their is a column called x_as_of_dt COLUMN with DATE as the datatype.
    All the tables have already got data populated.
    Now I want to partition the tables based on column x_as_of_dt by YYYYMM
    How to approach this scenario..
    Appreciate your help
    thanks/kumar

    Hello Justin,
    I found that all the tables have indexes and check constraint only ( no primary and foreign key constraints ) for the tables that need to be partitioned .
    The actual table structure is like this.. ( Am using toad and this is the script from toad )
    CREATE TABLE X_FA_X_HOUSEHOLD
    FINANCIAL_ADVISOR_RK NUMBER(10) NOT NULL,
    HOUSEHOLD_RK NUMBER(10) NOT NULL,
    X_AS_OF_DATE DATE NOT NULL,
    FINANCIAL_ADVISOR_ID VARCHAR2(6 BYTE),
    HOUSEHOLD_ID NUMBER(10),
    X_BRANCH_ID VARCHAR2(3 BYTE),
    X_FA_HHD_PCT_SPLIT NUMBER(7,4) NOT NULL,
    X_RANK_NUM NUMBER(3),
    PROCESSED_DTTM DATE
    TABLESPACE KAW_DATA
    PCTUSED 0
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    LOGGING
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    MONITORING;
    CREATE UNIQUE INDEX XPKX_FINANCIAL_ADVISOR_X_HOUSE ON X_FA_X_HOUSEHOLD
    (FINANCIAL_ADVISOR_RK, HOUSEHOLD_RK, X_AS_OF_DATE)
    LOGGING
    TABLESPACE KAW_IDX
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    NOPARALLEL;
    GRANT SELECT ON X_FA_X_HOUSEHOLD TO KAW_READ_ROLE;
    REQUIREMENT: - I got to implement the partion on this table for the column - X_AS_OF_DATE
    STEP 1 - CREATE A PARTITIONed table
    CREATE TABLE PARTITION_X_FA_X_HOUSEHOLD
    FINANCIAL_ADVISOR_RK NUMBER(10) NOT NULL,
    HOUSEHOLD_RK NUMBER(10) NOT NULL,
    X_AS_OF_DATE DATE NOT NULL,
    FINANCIAL_ADVISOR_ID VARCHAR2(6 BYTE),
    HOUSEHOLD_ID NUMBER(10),
    X_BRANCH_ID VARCHAR2(3 BYTE),
    X_FA_HHD_PCT_SPLIT NUMBER(7,4) NOT NULL,
    X_RANK_NUM NUMBER(3),
    PROCESSED_DTTM DATE
    PARTITION BY RANGE (X_AS_OF_DATE)(
    PARTITION P200712 VALUES LESS THAN (TO_DATE(' 2008-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P200801 VALUES LESS THAN (TO_DATE(' 2008-02-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P200802 VALUES LESS THAN (TO_DATE(' 2008-03-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P200803 VALUES LESS THAN (TO_DATE(' 2008-04-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P200804 VALUES LESS THAN (TO_DATE(' 2008-05-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P200805 VALUES LESS THAN (TO_DATE(' 2008-06-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P200806 VALUES LESS THAN (TO_DATE(' 2008-07-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P200807 VALUES LESS THAN (TO_DATE(' 2008-08-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P200808 VALUES LESS THAN (TO_DATE(' 2008-09-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P200809 VALUES LESS THAN (TO_DATE(' 2008-10-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P200810 VALUES LESS THAN (TO_DATE(' 2008-11-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P200811 VALUES LESS THAN (TO_DATE(' 2008-12-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P200812 VALUES LESS THAN (TO_DATE(' 2009-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P200901 VALUES LESS THAN (TO_DATE(' 2009-02-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P200902 VALUES LESS THAN (TO_DATE(' 2009-03-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P200903 VALUES LESS THAN (TO_DATE(' 2009-04-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P200904 VALUES LESS THAN (TO_DATE(' 2009-05-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P200905 VALUES LESS THAN (TO_DATE(' 2009-06-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P200906 VALUES LESS THAN (TO_DATE(' 2009-07-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P200907 VALUES LESS THAN (TO_DATE(' 2009-08-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P200908 VALUES LESS THAN (TO_DATE(' 2009-09-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P200909 VALUES LESS THAN (TO_DATE(' 2009-10-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P200910 VALUES LESS THAN (TO_DATE(' 2009-11-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P200911 VALUES LESS THAN (TO_DATE(' 2009-12-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P200912 VALUES LESS THAN (TO_DATE(' 2010-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P201001 VALUES LESS THAN (TO_DATE(' 2010-02-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P201002 VALUES LESS THAN (TO_DATE(' 2010-03-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P201003 VALUES LESS THAN (TO_DATE(' 2010-04-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P201004 VALUES LESS THAN (TO_DATE(' 2010-05-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P201005 VALUES LESS THAN (TO_DATE(' 2010-06-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P201006 VALUES LESS THAN (TO_DATE(' 2010-07-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P201007 VALUES LESS THAN (TO_DATE(' 2010-08-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P201008 VALUES LESS THAN (TO_DATE(' 2010-09-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P201009 VALUES LESS THAN (TO_DATE(' 2010-10-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P201010 VALUES LESS THAN (TO_DATE(' 2010-11-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P201011 VALUES LESS THAN (TO_DATE(' 2010-12-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P201012 VALUES LESS THAN (TO_DATE(' 2011-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P201101 VALUES LESS THAN (TO_DATE(' 2011-02-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P201102 VALUES LESS THAN (TO_DATE(' 2011-03-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P201103 VALUES LESS THAN (TO_DATE(' 2011-04-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P201104 VALUES LESS THAN (TO_DATE(' 2011-05-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P201105 VALUES LESS THAN (TO_DATE(' 2011-06-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P201106 VALUES LESS THAN (TO_DATE(' 2011-07-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P201107 VALUES LESS THAN (TO_DATE(' 2011-08-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P201108 VALUES LESS THAN (TO_DATE(' 2011-09-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P201109 VALUES LESS THAN (TO_DATE(' 2011-10-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P201110 VALUES LESS THAN (TO_DATE(' 2011-11-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P201111 VALUES LESS THAN (TO_DATE(' 2011-12-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P201112 VALUES LESS THAN (TO_DATE(' 2012-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION PMAX VALUES LESS THAN (MAXVALUE) )
    STEP 2 - Loading the data ---------
    loading of data is as follows..
    INSERT INTO PARTITION_X_FA_X_HOUSEHOLD
    (FINANCIAL_ADVISOR_RK,
    HOUSEHOLD_RK,
    X_AS_OF_DATE,
    FINANCIAL_ADVISOR_ID,
    HOUSEHOLD_ID,
    X_BRANCH_ID,
    X_FA_HHD_PCT_SPLIT,
    X_RANK_NUM,
    PROCESSED_DTTM
    ) SELECT FINANCIAL_ADVISOR_RK,
    HOUSEHOLD_RK,
    X_AS_OF_DATE,
    FINANCIAL_ADVISOR_ID,
    HOUSEHOLD_ID,
    X_BRANCH_ID,
    X_FA_HHD_PCT_SPLIT,
    X_RANK_NUM,
    PROCESSED_DTTM
    FROM X_FA_X_HOUSEHOLD
    Step 3: - Creating indexes
    CREATE UNIQUE INDEX XPKX_FINANCIAL_ADVISOR_X_HOUSE ON PARTITION_X_FA_X_HOUSEHOLD
    (FINANCIAL_ADVISOR_RK, HOUSEHOLD_RK, X_AS_OF_DATE)
    Step 4: - Droping the actual table
    DROP TABLE X_FA_X_HOUSEHOLD
    Step 5: Renaming the partitioned table to old tablemame
    ALTER TABLE PARTITION_X_FA_X_HOUSEHOLD RENAME TO X_FA_X_HOUSEHOLD
    Does the above steps are correct - pls confirm.
    thanks/kumar

  • Multiple LDAP Servers and Attribute-Based Data Partitioning

    Hello
    We currently want to implement following szenario on Netweaver 2004s. From the
    following SAP Help documentation we want attribute based data partitioning:
    http://help.sap.com/saphelp_nw70/helpdata/EN/4e/4d0d40c04af72ee10000000a1550b0/frameset.htm
    The difference to the SAP document is that we want a distribution of attributes over
    multiple LDAP servers. So we tried to fit that concept into xml. see attached xml source.
    The Portal finds both LDAP Systems but it is NOT that the useres are beeing merged
    but they appear as two distict users in the portal UME. If you do a lookup in the portal
    usernamagent system you get and see two users.
    User1: unique ID = USER.Datasource1.uid
    User2: unique ID = USER.Datasource2.uid
    Obviously the UME system was not able to merge that information of the two distict
    LDAP Systems. MSADS and Lotus Notes.
    Hence my questions:
    1) is it possible to distribute attributes over multiple ldap data sources
    2) any ideas why UME constructs two different users based in Datasource ID's specified in XML
    Thanks for any contributions or ideas,
    Ulrich Scherb
    <?xml version="1.0" encoding="UTF-8"?>
    <dataSources>
        <dataSource id="PRIVATE_DATASOURCE"
                    className="com.sap.security.core.persistence.datasource.imp.DataBasePersistence"
                    isReadonly="false"
                    isPrimary="true">
            <homeFor>
                <principals>
                     <principal type="group"/>
                     <principal type="user"/>
                     <principal type="account"/>
                    <principal type="team"/>
                    <principal type="ROOT" />
                    <principal type="OOOO" />
                </principals>
            </homeFor>
            <notHomeFor/>
            <responsibleFor>
                <principals>
                     <principal type="group"/>
                     <principal type="user"/>
                     <principal type="account"/>
                    <principal type="team"/>
                    <principal type="ROOT" />
                    <principal type="OOOO" />
                </principals>
            </responsibleFor>
            <privateSection>
            </privateSection>
        </dataSource>
        <dataSource id="NOTES_LDAP"
              className="com.sap.security.core.persistence.datasource.imp.LDAPPersistence"
              isReadonly="true"
              isPrimary="true">
              <homeFor/>
              <responsibleFor>
                   <principal type="account">
                        <nameSpace name="com.sap.security.core.usermanagement">
                             <attribute name="j_user"/>
                             <attribute name="logonalias"/>
                             <attribute name="j_password"/>
                             <attribute name="userid"/>
                        </nameSpace>
                       <nameSpace name="com.sap.security.core.authentication">
                            <attribute name="principal"/>
                       </nameSpace>
                   </principal>
                   <principal type="user">
                        <nameSpace name="com.sap.security.core.usermanagement">
                             <attribute name="firstname" populateInitially="true"/>
                             <attribute name="lastname" populateInitially="true"/>
                             <attribute name="email"/>
                             <attribute name="uniquename" populateInitially="true"/>
                        </nameSpace>
                        <nameSpace name="$usermapping$">
                             <attribute name="REFERENCE_SYSTEM_USER"/>
                        </nameSpace>
                   </principal>
              </responsibleFor>
              <attributeMapping>
                   <principal type="account">
                        <nameSpace name="com.sap.security.core.usermanagement">
                             <attribute name="j_user">
                                  <physicalAttribute name="uid"/>
                             </attribute>
                             <attribute name="logonalias">
                                  <physicalAttribute name="uid"/>
                             </attribute>
                             <attribute name="j_password">
                                  <physicalAttribute name="unicodepwd"/>
                             </attribute>
                             <attribute name="userid">
                                  <physicalAttribute name="*null*"/>
                             </attribute>
                        </nameSpace>
                       <nameSpace name="com.sap.security.core.authentication">
                            <attribute name="principal">
                                 <physicalAttribute name="uid"/>
                            </attribute>
                       </nameSpace>                    
                   </principal>
                   <principal type="user">
                        <nameSpace name="com.sap.security.core.usermanagement">
                             <attribute name="firstname">
                                  <physicalAttribute name="givenname"/>
                             </attribute>
                             <attribute name="lastname">
                                  <physicalAttribute name="sn"/>
                             </attribute>
                             <attribute name="uniquename">
                                  <physicalAttribute name="uid"/>
                             </attribute>
                             <attribute name="loginid">
                                  <physicalAttribute name="*null*"/>
                             </attribute>
                             <attribute name="email">
                                  <physicalAttribute name="mail"/>
                             </attribute>
                        </nameSpace>
                        <nameSpace name="$usermapping$">
                             <attribute name="REFERENCE_SYSTEM_USER">
                                  <physicalAttribute name="sapusername"/>
                             </attribute>
                        </nameSpace>
                   </principal>
              </attributeMapping>
            <privateSection>
                   <ume.ldap.access.server_type>MSADS</ume.ldap.access.server_type>
                   <ume.ldap.access.server_name>ldap1</ume.ldap.access.server_name>
                   <ume.ldap.access.server_port>389</ume.ldap.access.server_port>
                   <ume.ldap.access.authentication>simple</ume.ldap.access.authentication>
                   <ume.ldap.access.user>xxxxx</ume.ldap.access.user>
                   <ume.ldap.access.password>xxxxx</ume.ldap.access.password>
                   <ume.ldap.access.base_path.user>O=SMT_TEST</ume.ldap.access.base_path.user>
                   <ume.ldap.record_access>TRUE</ume.ldap.record_access>
                   <ume.ldap.unique_uacc_attribute>uid</ume.ldap.unique_uacc_attribute>
                   <ume.ldap.unique_user_attribute>uid</ume.ldap.unique_user_attribute>
                   <ume.ldap.access.context_factory>com.sun.jndi.ldap.LdapCtxFactory</ume.ldap.access.context_factory>
                   <ume.ldap.access.user_as_account>true</ume.ldap.access.user_as_account>
                   <ume.ldap.access.ssl_socket_factory>com.sap.security.core.server.https.SecureConnectionFactory</ume.ldap.access.ssl_socket_factory>
                   <ume.ldap.access.objectclass.user>person</ume.ldap.access.objectclass.user>
                   <ume.ldap.access.objectclass.uacc>person</ume.ldap.access.objectclass.uacc>
                   <ume.ldap.access.naming_attribute.user>cn</ume.ldap.access.naming_attribute.user>
                   <ume.ldap.access.auxiliary_naming_attribute.user>uid</ume.ldap.access.auxiliary_naming_attribute.user>
                   <ume.ldap.access.naming_attribute.uacc>cn</ume.ldap.access.naming_attribute.uacc>
                   <ume.ldap.access.auxiliary_naming_attribute.uacc>uid</ume.ldap.access.auxiliary_naming_attribute.uacc>
              </privateSection>
         </dataSource>
        <dataSource id="CORP_LDAP"
              className="com.sap.security.core.persistence.datasource.imp.LDAPPersistence"
              isReadonly="true"
              isPrimary="true">
              <homeFor/>
              <responsibleFor>
                   <principal type="account">
                        <nameSpace name="com.sap.security.core.usermanagement">
                             <attribute name="j_user"/>
                             <attribute name="logonalias"/>
                             <attribute name="j_password"/>
                             <attribute name="userid"/>
                        </nameSpace>
                       <nameSpace name="com.sap.security.core.authentication">
                            <attribute name="principal"/>
                            <attribute name="realm"/>
                            <attribute name="domain"/>
                       </nameSpace>
                   </principal>
                   <principal type="user">
                        <nameSpace name="com.sap.security.core.usermanagement">
                             <attribute name="firstname" populateInitially="true"/>
                             <attribute name="displayname" populateInitially="true"/>
                             <attribute name="lastname" populateInitially="true"/>
                             <attribute name="fax"/>
                             <attribute name="title"/>
                             <attribute name="department"/>
                             <attribute name="description"/>
                             <attribute name="mobile"/>
                             <attribute name="telephone"/>
                             <attribute name="streetaddress"/>
                             <attribute name="uniquename" populateInitially="true"/>
                        </nameSpace>
                        <nameSpace name="com.sap.security.core.usermanagement.relation">
                             <attribute name="PRINCIPAL_RELATION_PARENT_ATTRIBUTE"/>
                        </nameSpace>
                        <nameSpace name="$usermapping$">
                             <attribute name="REFERENCE_SYSTEM_USER"/>
                        </nameSpace>
                   </principal>
                   <principal type="group">
                        <nameSpace name="com.sap.security.core.usermanagement">
                             <attribute name="displayname" populateInitially="true"/>
                             <attribute name="description" populateInitially="true"/>
                             <attribute name="uniquename"/>
                        </nameSpace>
                        <nameSpace name="com.sap.security.core.usermanagement.relation">
                             <attribute name="PRINCIPAL_RELATION_MEMBER_ATTRIBUTE"/>
                             <attribute name="PRINCIPAL_RELATION_PARENT_ATTRIBUTE"/>
                        </nameSpace>
                        <nameSpace name="com.sap.security.core.bridge">
                             <attribute name="dn"/>
                        </nameSpace>
                   </principal>
              </responsibleFor>
              <attributeMapping>
                   <principal type="account">
                        <nameSpace name="com.sap.security.core.usermanagement">
                             <attribute name="j_user">
                                  <physicalAttribute name="samaccountname"/>
                             </attribute>
                             <attribute name="logonalias">
                                  <physicalAttribute name="samaccountname"/>
                             </attribute>
                             <attribute name="j_password">
                                  <physicalAttribute name="unicodepwd"/>
                             </attribute>
                             <attribute name="userid">
                                  <physicalAttribute name="*null*"/>
                             </attribute>
                        </nameSpace>
                       <nameSpace name="com.sap.security.core.authentication">
                            <attribute name="principal">
                                 <physicalAttribute name="samaccountname"/>
                            </attribute>
                            <attribute name="realm">
                                 <physicalAttribute name="*null*"/>
                            </attribute>
                            <attribute name="domain">
                                 <physicalAttribute name="*null*"/>
                            </attribute>
                       </nameSpace>                    
                   </principal>
                   <principal type="user">
                        <nameSpace name="com.sap.security.core.usermanagement">
                             <attribute name="firstname">
                                  <physicalAttribute name="givenname"/>
                             </attribute>
                             <attribute name="displayname">
                                  <physicalAttribute name="displayname"/>
                             </attribute>
                             <attribute name="lastname">
                                  <physicalAttribute name="sn"/>
                             </attribute>
                             <attribute name="fax">
                                  <physicalAttribute name="facsimiletelephonenumber"/>
                             </attribute>
                             <attribute name="uniquename">
                                  <physicalAttribute name="samaccountname"/>
                             </attribute>
                             <attribute name="loginid">
                                  <physicalAttribute name="*null*"/>
                             </attribute>
                             <attribute name="mobile">
                                  <physicalAttribute name="mobile"/>
                             </attribute>
                             <attribute name="telephone">
                                  <physicalAttribute name="telephonenumber"/>
                             </attribute>
                             <attribute name="department">
                                  <physicalAttribute name="ou"/>
                             </attribute>
                             <attribute name="description">
                                  <physicalAttribute name="description"/>
                             </attribute>
                             <attribute name="streetaddress">
                                  <physicalAttribute name="postaladdress"/>
                             </attribute>
                             <attribute name="pobox">
                                  <physicalAttribute name="postofficebox"/>
                             </attribute>
                        </nameSpace>
                        <nameSpace name="com.sap.security.core.usermanagement.relation">
                             <attribute name="PRINCIPAL_RELATION_PARENT_ATTRIBUTE">
                                  <physicalAttribute name="memberof"/>
                             </attribute>
                        </nameSpace>
                        <nameSpace name="$usermapping$">
                             <attribute name="REFERENCE_SYSTEM_USER">
                                  <physicalAttribute name="sapusername"/>
                             </attribute>
                        </nameSpace>
                   </principal>
                   <principal type="group">
                        <nameSpace name="com.sap.security.core.usermanagement">
                             <attribute name="displayname">
                                  <physicalAttribute name="displayname"/>
                             </attribute>
                             <attribute name="description">
                                  <physicalAttribute name="description"/>
                             </attribute>
                             <attribute name="uniquename" populateInitially="true">
                                  <physicalAttribute name="cn"/>
                             </attribute>
                        </nameSpace>
                        <nameSpace name="com.sap.security.core.usermanagement.relation">
                             <attribute name="PRINCIPAL_RELATION_MEMBER_ATTRIBUTE">
                                  <physicalAttribute name="member"/>
                             </attribute>
                             <attribute name="PRINCIPAL_RELATION_PARENT_ATTRIBUTE">
                                  <physicalAttribute name="memberof"/>
                             </attribute>
                        </nameSpace>
                        <nameSpace name="com.sap.security.core.bridge">
                            <attribute name="dn">
                                  <physicalAttribute name="*null*"/>
                             </attribute>
                        </nameSpace>
                   </principal>
              </attributeMapping>
            <privateSection>
                   <ume.ldap.access.server_type>MSADS</ume.ldap.access.server_type>
                   <ume.ldap.access.server_name>ldap2</ume.ldap.access.server_name>
                   <ume.ldap.access.server_port>389</ume.ldap.access.server_port>
                   <ume.ldap.access.authentication>simple</ume.ldap.access.authentication>
                   <ume.ldap.access.user>yyyyy</ume.ldap.access.user>
                   <ume.ldap.access.password>yyyyy</ume.ldap.access.password>
                   <ume.ldap.access.base_path.user>O=SMT_TEST</ume.ldap.access.base_path.user>
                   <ume.ldap.access.base_path.grup>O=SMT_TEST</ume.ldap.access.base_path.grup>
                   <ume.ldap.record_access>TRUE</ume.ldap.record_access>
                   <ume.ldap.unique_uacc_attribute>samaccountname</ume.ldap.unique_uacc_attribute>
                   <ume.ldap.unique_user_attribute>samaccountname</ume.ldap.unique_user_attribute>
                   <ume.ldap.access.context_factory>com.sun.jndi.ldap.LdapCtxFactory</ume.ldap.access.context_factory>
                   <ume.ldap.access.authentication>simple</ume.ldap.access.authentication>
                   <ume.ldap.access.flat_group_hierachy>true</ume.ldap.access.flat_group_hierachy>
                   <ume.ldap.access.user_as_account>true</ume.ldap.access.user_as_account>
                   <ume.ldap.access.dynamic_groups>false</ume.ldap.access.dynamic_groups>
                   <ume.ldap.access.ssl_socket_factory>com.sap.security.core.server.https.SecureConnectionFactory</ume.ldap.access.ssl_socket_factory>
                   <ume.ldap.access.objectclass.user>User</ume.ldap.access.objectclass.user>
                   <ume.ldap.access.objectclass.uacc>User</ume.ldap.access.objectclass.uacc>
                   <ume.ldap.access.objectclass.grup>Group</ume.ldap.access.objectclass.grup>
                   <ume.ldap.access.naming_attribute.user>cn</ume.ldap.access.naming_attribute.user>
                   <ume.ldap.access.auxiliary_naming_attribute.user>samaccountname</ume.ldap.access.auxiliary_naming_attribute.user>
                   <ume.ldap.access.naming_attribute.uacc>cn</ume.ldap.access.naming_attribute.uacc>
                   <ume.ldap.access.auxiliary_naming_attribute.uacc>samaccountname</ume.ldap.access.auxiliary_naming_attribute.uacc>
                   <ume.ldap.access.naming_attribute.grup>cn</ume.ldap.access.naming_attribute.grup>
              </privateSection>
         </dataSource>
    </dataSources>

    Hi Ulrich,
    Hope your problem is resolved. We are using EP7 and SP18. We are doing some study on your first issue. i.e. Distributing a user attribute into multiple LDAPs. Can you please let me know the feasibility? If yes, what are all step do I have to follow? Expecting your valuable answer. Thanks in advance!
    Regards,
    Kabali

Maybe you are looking for

  • 2014 Mac Mini 4k

    Is this possible with the HDMI connection on the brand new Mac Mini (Intel HD 5000 & Iris)? Thanks.

  • Iplanet 4.1 server failed to shutdown

    OK I have IPlanet web server 4.2 with SP7 and in the admin screens I want to turn the server off and back on. When I click "off" I get... server failed to shutdown (0: unknown early startup error) What in the world is going on? I deleted the wdnotify

  • Error -7 in iChat 4 (10.5)

    Hello, i posted this Topic in "iChat AV" and read that 10.5 related Apps should/could be posted here. So here is the same Post again, hopefully in the right Place Hey there, well iChat appears to make Trouble again and as i read, i´m not the only one

  • How Do I Enhance Black and White Images in Elements 4.0?

    On PhototshopTV, I saw a tip for enhancing B&W in PhotoShop CS: Select Layer-New Adjustment layer-Channel Mixer; click the Monochrome box; change values to: Red +74, Green +26, Blue +48, Contrast -12. I don't see Channel Mixer in Elements 4.0. Is the

  • Yosemite macbook pro early 2011 camera light blinks

    I tried to find a similar question that I saw with a Google Search but couldn't find here... But I REALLY like the Yosemite upgrade... I have problems with FaceTime - sometimes I hang up and it continues to ring, and can not connect as reliably as I