User Generated Data and Cardinality Estimates

Platform Information:
Windows Server 2003 R2
Oracle Enterprise Edition 10.2.0.4
Optimizer Parameters:
NAME                                 TYPE        VALUE
object_cache_optimal_size            integer     102400
optimizer_dynamic_sampling           integer     2
optimizer_features_enable            string      10.2.0.4
optimizer_index_caching              integer     90
optimizer_index_cost_adj             integer     30
optimizer_mode                       string      CHOOSE
optimizer_secure_view_merging        boolean     TRUE
Test Case:
var csv VARCHAR2(250);
exec :csv := '1,2,3,4,5,6,7,8,9,10';
EXPLAIN PLAN FOR WITH csv_to_rows AS
        SELECT UPPER(
                        TRIM(
                                SUBSTR
                                        txt
                                ,       INSTR (txt, ',', 1, level  ) + 1
                                ,       INSTR (txt, ',', 1, level+1) - INSTR (txt, ',', 1, level) -1
                )       AS token
        FROM    (
                        SELECT ','||:csv||',' txt
                        FROM dual
                )       t
        CONNECT BY LEVEL <= LENGTH(:csv)-LENGTH(REPLACE(:csv,',',''))+1
SELECT * FROM csv_to_rows;
SELECT  * FROM TABLE(DBMS_XPLAN.DISPLAY);
Results:
Execution Plan
Plan hash value: 2403765415
| Id  | Operation                     | Name | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT              |      |     1 |    19 |     2   (0)| 00:00:01 |
|   1 |  VIEW                         |      |     1 |    19 |     2   (0)| 00:00:01 |
|*  2 |   CONNECT BY WITHOUT FILTERING|      |       |       |            |          |
|   3 |    FAST DUAL                  |      |     1 |       |     2   (0)| 00:00:01 |
Predicate Information (identified by operation id):
   2 - filter(LEVEL<=LENGTH(:CSV)-LENGTH(REPLACE(:CSV,',',''))+1)
Statistics
          1  recursive calls
          0  db block gets
          0  consistent gets
          0  physical reads
          0  redo size
        502  bytes sent via SQL*Net to client
        396  bytes received via SQL*Net from client
          2  SQL*Net roundtrips to/from client
          1  sorts (memory)
          0  sorts (disk)
         10  rows processed
Question:
Every once in a while I need to use [Tom Kyte's Varying in Lists|http://tkyte.blogspot.com/2006/06/varying-in-lists.html] method (for 9i as indicated in his blog entry) to convert a comma separated list to a "bindable" in list.
As one can see above the cardinality estimates are not correct. The execution plans I have seen from this method usually result in a nested loop join using an index. While this makes sense for small result sets it may not be the most efficient method with larger number of entries in the comma separated list.
Has anyone found a way to expose the correct or near correct cardinality to the optimizer at runtime? I can use the cardinality hint but the problem with that is that it must be defined as a scalar value and that may not work for all cases. The dynamic sampling won't work in this scenario because cardinality statistics already exist against DUAL.
I haven't noticed any detrimental effects in my environment so this may be purely an academic discussion but I thought I'd throw it out there :)

I have definitely considered using this as a possibility but I have tried to shy away from writing data (even temporarily) when all I'm looking to do is query data.I agree with you about hard-coding the cardinality values.
A silight variation on David's suggestion is to use the dynamic sampling hint to get the statistics at run-time. There will be a slight performance cost to do this.
Remember that all of the explain plan statistics are estimates, which may or may not be accurate. Usually they are good, but every once in a while they are incorrect.

Similar Messages

  • User status Date and  time

    Hi EXPERTS,
    In notification when we change user status, system logs date and time in action log
    I want to know in which table does user status date and time can be found.
    Regards
    Anil Kumar

    Anil Kumar,
    I'm not a t a system right now, but have a look at JEST and JCDS.
    PeteA

  • Getting user name, date and time into 1 field

    Hi All,
    I have to add a new field in a customising include of AUFK table. This field should have user name, date and time. How do I store all these values in a single field of the table? Please help.

    Ok Thanks all. Will try your suggestions. But there is one problem. As i have already mentioned that i will have to display this detail in one field of the table control, The format of display is: user name should be seen above and the date and time separated by space should be displayed below the name. How can i ultimately display this in the table control. Do i have to create 2 different fields (one for name and other for date and time) in the AUFK table or is there any other solution?
    Thanks

  • Generate date and ID in textboxes automatically

    Hi,
      Can anyone send me the code to generate date and Id automatically in the textboxes.im using SAP NWDS.Should I write the code 4 this in the jsp or Servlet?
    With Regards,
    Jais.

    Hi Jaisamma,
    let me know , what u mean with this ID?.
      In JSP , you have two options,
    1) You can use javascript to find out the Current date and format it.
    2) You can use java code itself to find out current days date and format it.
    In JSP
    Using javascript
    <b><html>
    <script language="javascript">
    function onLoadin()
    d = new Date();
    var date = d.getDate();//For getting date range 1-31
    var month = d.getMonth()+1;//Value  range 0-11
    var year = d.getYear();
    for formatting it  to presentable format
    var sydate = date + "/" + month + "/" +year;
    document.myForm.datum.value= sydate;
    </script>
    <body onLoad="onLoadin()">
    <form name="myForm">
    <input name="datum" type="text" size="13" maxlength="10"/>
    </form>
    </body>
    </html>
    go through this.
    http://www.javascriptkit.com/jsref/date.shtml
    </b>
    this contains details of javascript date object
    http://www.w3schools.com/jsref/jsref_obj_date.asp
    Using java code
    <%@ page import="java.text.*" %>
    <%@ page import="java.util.*" %>
    <%
    Format formater = new SimpleDateFormat("dd/MM/yyyy");
    Date  syDatum = new Date();
    <td><font SIZE="1">Date</FONT></td>
                        <td align="left"><i><%=formater.format(syDatum)%></i></td>
    %>
    let me know , is your application using any database for storing the ID ?.
                           Regards
                           Kishor Gopinathan
    Message was edited by: Kishor Gopinathan

  • ICal doesn't show delegation, and generates date and time error messages in /var/log/system.log

    I have a problem with my iCal, when I use my caldav account, I can only see my own calendar on my MBA, on my co-workers MBP it works fine with both my account and his. My co-worker can't see other calendars than his own when he uses iCal on my laptop.
    We can reproduce this problem on his computer by setting Location to Automatic rather than Amsterdam, then after deleting iCal's cache files, the caldav account and setting the Location back to Amsterdam solves the problem for him.
    It does not solve the problem for me (or several other co-workers). We've been looking at this for a few weeks, and we can not find any clear pattern why certain machines have this problem and others don't.
    All machines (both affected and unaffected) are running Mac OS 10.7.2 with iCal 5.0.1
    I've spoken to Apple support over the phone (in the Netherlands), unfortunately, they couldn't help with this.
    So far we've tried numerous location and language settings, but on affected machines nothing appears to solve the delegation problem (which we assume to be connected to the error messages iCal generates)
    Starting iCal yeilds the following error messages in /var/log/system.log:
    Jan  5 11:31:05 dhcp-91 [0x0-0x58f58f].com.apple.iCal[23884]: line 1,1: expecting FREQUENCE, found 'BYDAY' as token type 5
    Jan  5 11:31:05 dhcp-91 iCal[23884]: iCalendar recurrence failure BYDAY=-1SU;FREQ=YEARLY;BYMONTH=3
              line 1,6: unexpected char: '='
    Jan  5 11:31:05 dhcp-91 [0x0-0x58f58f].com.apple.iCal[23884]: line 1,1: expecting FREQUENCE, found 'BYDAY' as token type 5
    Jan  5 11:31:05 dhcp-91 iCal[23884]: iCalendar recurrence failure BYDAY=-1SU;FREQ=YEARLY;BYMONTH=10
              line 1,6: unexpected char: '='
    Jan  5 11:31:05 dhcp-91 iCal[23884]: Unexpected EOF, returning last token as fallback
    Jan  5 11:31:05 dhcp-91 iCal[23884]: VTIMEZONE does not match System Time Zone (Europe/Amsterdam) for 20100105T000000 to 20120105T000000: (
                  "interval: 2001-01-01 01:00:00 +0100, offset: 3600"
              ) != (
                  "interval: 2010-03-28 03:00:00 +0200, offset: 7200",
                  "interval: 2010-10-31 02:00:00 +0100, offset: 3600",
                  "interval: 2011-03-27 03:00:00 +0200, offset: 7200",
                  "interval: 2011-10-30 02:00:00 +0100, offset: 3600"
              BEGIN:VTIMEZONE
              X-LIC-LOCATION:Europe/Amsterdam
              TZID:Europe/Amsterdam
              BEGIN:DAYLIGHT
              TZOFFSETFROM:+0100
              TZNAME:CEST
              TZOFFSETTO:+0200
              DTSTART:19700329T020000
              END:DAYLIGHT
              BEGIN:STANDARD
              TZOFFSETFROM:+0200
              TZNAME:CET
              TZOFFSETTO:+0100
              DTSTART:19701025T030000
              END:STANDARD
              END:VTIMEZONE
    Jan  5 11:31:05 dhcp-91 [0x0-0x58f58f].com.apple.iCal[23884]: line 1,1: expecting FREQUENCE, found 'BYDAY' as token type 5
    Jan  5 11:31:05 dhcp-91 iCal[23884]: iCalendar recurrence failure BYDAY=-1SU;FREQ=YEARLY;BYMONTH=3
              line 1,6: unexpected char: '='
    Jan  5 11:31:05 dhcp-91 [0x0-0x58f58f].com.apple.iCal[23884]: line 1,1: expecting FREQUENCE, found 'BYDAY' as token type 5
    Jan  5 11:31:05 dhcp-91 iCal[23884]: iCalendar recurrence failure BYDAY=-1SU;FREQ=YEARLY;BYMONTH=10
              line 1,6: unexpected char: '='
    Jan  5 11:31:05 dhcp-91 iCal[23884]: Unexpected EOF, returning last token as fallback
    Jan  5 11:31:05 dhcp-91 iCal[23884]: VTIMEZONE does not match System Time Zone (Europe/Amsterdam) for 20100105T000000 to 20120105T000000: (
                  "interval: 2001-01-01 01:00:00 +0100, offset: 3600"
              ) != (
                  "interval: 2010-03-28 03:00:00 +0200, offset: 7200",
                  "interval: 2010-10-31 02:00:00 +0100, offset: 3600",
                  "interval: 2011-03-27 03:00:00 +0200, offset: 7200",
        "interval: 2011-10-30 02:00:00 +0100, offset: 3600"
              BEGIN:VTIMEZONE
              X-LIC-LOCATION:Europe/Amsterdam
              TZID:Europe/Amsterdam
              BEGIN:DAYLIGHT
              TZOFFSETFROM:+0100
              TZNAME:CEST
              TZOFFSETTO:+0200
              DTSTART:19700329T020000
              END:DAYLIGHT
              BEGIN:STANDARD
              TZOFFSETFROM:+0200
              TZNAME:CET
              TZOFFSETTO:+0100
              DTSTART:19701025T030000
              END:STANDARD
              END:VTIMEZONE
    And when I close iCal I get:
    Jan  5 11:33:25 dhcp-91 [0x0-0x592592].com.apple.iCal[23894]: token mismatch: 4 != 5

    I'm seeing the same thing, and I can't even find where OS X stores calendars on disk anymore...

  • Last three user logon date and time

    Hi Everybody,
    I would like to find out last few user logon details of an user. Where can I get this information if ST01 trace is not turn on? Table USR02 only shows the last logon that is insufficient.
    Thanks!

    You can use the dynamic audit logs in SM19 to record a successfull logon event for a single or all users.
    If you want the information readily available, you can activate parameter rsau/enable and set static filters.
    If it is too late for this, then you would need to look in the application statistics (ST03N in Expert Mode) to get the information.

  • User Generated Reports and Save.

    Hi,
    I have the following queries (using ApEx 3.0.1):
    1) Is it possible to create a page by where the user can dynamically create there own reports based on a selection of tables they can choose from, together with columns and where conditions, similar to "Query Builder" ?
    - are there any how-tos or sample apps that could assist with this?
    2) Based on the above, would it be possible to actually save this query to be used again in the future within the application?
    Basically want the user to be able to create there own queries/reports and allow them to save the reports for future runs.
    Thanks.
    Tony.

    <quote>If you want to create something yourself like the query builder, you can look how the APEX development team did the query builder and copy that ;-)
    Hope that helps,
    Dimitri
    </quote>
    Dimitri or anyone else,
    I am looking for a query builder that an Ap-Ex user (not developer) can utilize. How can I look at what you are describing above?
    Thanks!
    Bryan
    Message was edited by:
    BryanG
    Message was edited by: BryanG
    BryanG

  • User-Provided Data: Scrubbing & Displaying Thereof

    I'm in the middle of completely rebuilding an old application from the ground up and wanted to get some feedback on user-provided data and security, see what new methods people are using, and get some general feedback. With past applications I've always made use of CFQUERYPARAM on my database transactions, verified the proper length of all data provided by the user, and ran each form field through a custom tag that, rather harshly, checked for characters commonly used within SQL injection strings and cross-site scripting attacks. This time around I'd like to maintain, if not increase the security of my application when it comes to user-provided data, but at the same time not hinder or upset users by blocking just so many "suspect" characters.
    Of course about half of the user data I get can be scrubbed easily enough: E-Mail addresses, passwords, telephone numbers.
    Where I've run into problems in the past is the more free-form fields such as names, addresses, search criteria, and "comments" boxes, all which could easily have characters such as ', /, %, --, and the like. In the past I've judged these and many other characters harshly but I wonder if I've been too harsh?
    So, I'm curious to hear some opinions on the much-discussed topic of SQL injection and XSS and how it relates to user-provided data.
    What characters are you checking for in user data? How do you go about handling them? Escape them? Remove them? Generate an error to the user?
    Some things I've heard in the past that I'm curious if people do:
    01) htmleditformat() every piece of user data as it is outputted as text within a page.
    02) htmleditformat() every piece of user data as it is inserted into the database. An issue with this is that as htmleditformat() translates characters into lengthy ASCII strings and often extends user input beyond the MAXLENGTH of the given form/database field, and the customer won't understand why.

    Some reccomendations:
    1. Continue use of CFQUERYPARAM and data length/type verification.  This should keep you safe from SQL injection.
    2. Use HtmlEditFormat for output only.  Using HtmlEditFormat for input will cause a problem if the text is ever consumed by an application that doesn't understand HTML entities.
    3. Use a whitelist/blacklist specific to the data you are collecting.  For example, I think you can safely assume that a first name won't contain angle brackets. 
    4. Take a look at the Portcullis project.  From RIA Forge: "Portcullis is a CFC based url,form,cookie filter to help protect against SQL Injection and XSS (Cross Site Scripting) attacks."
    http://portcullis.riaforge.org/
    5. Tell the user when you're going to replace/escape their input with something else.  This will keep your site user friendly.

  • Date and Time generation

    hi,
    I need to "Generate Date and Time between two date ranges" ie
    For Example if my start date is 12/Jan/2007 00:00:00 AM and end Date is 13/Jan /2007 00:00:00 PM. i need to generate
    my output as
    Date
    12/Jan/2007 00:00:00
    12/02/2007 00:01:01
    12/03/2007 00:02:00
    12/04/2007 00:03:00
    12/05/2007
    12/06/2007
    12/07/2007
    12/08/2007
    so on till
    13/Jan/2007
    I need a record for every minute in the date range ir 24hrs or 1 day.
    my output should be 1440 records(24* 60)
    Thanks a ton in advance

    sql>
    alter session
    set nls_date_format = 'dd/Mon/yyyy hh:mi:ss am'
    Session altered.
    sql>define dt1 = '12/Jan/2007 12:00:00 am'
    SP2-0863: iSQL*Plus processing completed
    sql>define dt2 = '13/Jan/2007 12:00:00 am'
    SP2-0863: iSQL*Plus processing completed
    sql>
    select to_date('&dt1')+(1/(24*60))*(n-1)
    from
      (select rownum n
       from dual
       connect by level <= (to_date('&dt2')-to_date('&dt1')) * (24*60));
    TO_DATE('12/JAN/200712: 
    12/Jan/2007 12:00:00 am 
    12/Jan/2007 12:01:00 am 
    12/Jan/2007 12:02:00 am 
    12/Jan/2007 12:03:00 am 
    12/Jan/2007 12:04:00 am 
    12/Jan/2007 12:05:00 am 
    12/Jan/2007 11:57:00 pm 
    12/Jan/2007 11:58:00 pm 
    12/Jan/2007 11:59:00 pm 
    1440 rows selected.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to display records that match user input date

    hi all,
      i need to display records that match user input date (i.e., for example if the difference between user input date and record date is less than 5 years then display those records) , this is for hr bw. any exit is there to check for validation for records to be displayed based on some abap coding.
    vijay

    I just see getApplication method but "Retrieves a list of all the deployed applications."
    My scenario is: I get user, end i want to discorver how application this user i enable to see.

  • Safegaurd User master Data during a System Copy

    Hello Gurus,
    I have a 3 system landscape and we are planning to have a system copy from PRD to QTY. Can any one suggest me the available options for safegaurding my User Master Data and retain it back as it is... What is the best practice methods that can be done in this scenario.
    Points gauranteed...
    Br,
    Sri

    Hello Raghu,
    User master data will get copied from source system during system copy. However if you want to protect this then I would suggest an unconventional way. In case you have CUA then before system  copy you need to  discontinue CUA.
    After this make a transport of all the roles along with user assignment. Include this transport in a transport of copies and release it with a target though please dont import it in the target system.
    After system copy is done follow the following proceedure.
    Delete all role assignments that the users have.
    You can make a CATT tool for this.
    Once user deletion is done import  the role tranport with user assignments.
    Now reset CUA and do SCUG activities.
    Hope it helps.
    Please award points accordingly.
    Regards.
    Ruchit.

  • W7: User Profile Service service failed at log on: Apparently W7 is no longer creating any user profile data other than username and picture.

    First time poster, but I think I've done my homework on this issue.
    This issue has similar symptoms to a problem with vista: http://www.vistax64.com/tutorials/130095-user-profile-service-failed-logon-user-profile-cannot-loaded.html
    However, it is definitely not the same issue (see further).
    Current Config:
    HP dv7-1450.
    W7 RC 7100 x64
    Last update (up to date as of 8/31/09) installed succesfully 8/26/09 and should be unrelated to this issue (not verified yet by a pre-update restore).
    Running with Admin account while diagnosing/troubleshooting.
    Currently have two working accounts, one standard, one admin.
    Symptom:
    New user accounts cannot be logged into.  On an attempted login to the new account, the following information is displayed on the login screen:  "The User Profile Service service failed the logon.  User profile cannot be loaded."  Windows then logs off the operator and returns to the initial user selection screen.  All other aspects of use are normal.
    Current Diagnostics:
    First attempts to resolve this problem were to recreate the new account.  This was attempted when logged in as both Standard and Admin.  This was also attempted under safe mode.  This has been attempted with virus protection disabled.  All to no difference in the symptom.
    The similarity to the Vista issue (linked above) caused me to check the registry entry under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\ for the new profile (as suggested by that link).  Unlike that issue, there simply is no entry for the new user.  Examination of the new log entries from creation of account to attempted log in provides the following entries:
    Level Date and Time Source Event ID Task Category
    Information 8/31/2009 12:34:31 PM Microsoft-Windows-Winlogon 6000 None The winlogon notification subscriber <SessionEnv> was unavailable to handle a notification event.
    Warning 8/31/2009 12:34:11 PM Microsoft-Windows-Winlogon 6001 None The winlogon notification subscriber <Profiles> failed a notification event.
    Information 8/31/2009 12:34:11 PM Microsoft-Windows-Winlogon 6000 None The winlogon notification subscriber <SessionEnv> was unavailable to handle a notification event.
    Warning 8/31/2009 12:34:11 PM Microsoft-Windows-Winlogon 6001 None The winlogon notification subscriber <Sens> failed a notification event.
    Error 8/31/2009 12:34:10 PM Microsoft-Windows-User Profiles Service 1500 None "Windows cannot log you on because your profile cannot be loaded. Check that you are connected to the network, and that your network is functioning correctly.
    DETAIL - Only part of a ReadProcessMemory or WriteProcessMemory request was completed.
    Warning 8/31/2009 12:34:10 PM Microsoft-Windows-User Profiles General 1509 None "Windows cannot copy file C:\Users\Default\AppData\Local\Microsoft\Windows Live\SqmApi\SqmData720896_00.sqm to location C:\Users\TEMP\AppData\Local\Microsoft\Windows Live\SqmApi\SqmData720896_00.sqm. This error may be caused by network problems or insufficient security rights.
    DETAIL - Access is denied.
    Error 8/31/2009 12:34:09 PM Microsoft-Windows-User Profiles Service 1511 None Windows cannot find the local profile and is logging you on with a temporary profile. Changes you make to this profile will be lost when you log off.
    Warning 8/31/2009 12:34:09 PM Microsoft-Windows-User Profiles General 1509 None "Windows cannot copy file C:\Users\Default\AppData\Local\Microsoft\Windows Live\SqmApi\SqmData720896_00.sqm to location C:\Users\{New Username}\AppData\Local\Microsoft\Windows Live\SqmApi\SqmData720896_00.sqm. This error may be caused by network problems or insufficient security rights.
    DETAIL - Access is denied.
    Naturally I started with the earliest error first, and decided to look to see what is going on.  The file that is trying to be copied is there, but the destination folder does not exist.  As near as I can tell, whatever process (the User Profiles General Service?) is trying to perform the copy does not have sufficient access to perform the operation.  Specifically I suspect it may not be able to create the appropriate folders before performing the copy.  Interestingly, it appears that when windows attempts to open/create a temporary account profile, the same issue occurs.  Since there is no registry entry either, I suspect that the issue also extends to the creation of registry keys, but I am not familiar enough with the sequence of events in the creation of a user profile to determine if this would come before or after a user profile's first login.
    I attempted to find more information, and was able to investigate the UPS diagnostic event log (for a different, but identical attempt at creating and using the new profile).  The following two (unhelpful to me) log entries were generated.
    Level Date and Time Source Event ID Task Category
    Information 8/31/2009 12:34:10 PM Microsoft-Windows-User Profiles Service 1002 (1001) "The description for Event ID 1002 from source Microsoft-Windows-User Profiles Service cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
    If the event originated on another computer, the display information had to be saved with the event.
    The following information was included with the event:
    The message id for the desired message could not be found
    Information 8/31/2009 12:34:09 PM Microsoft-Windows-User Profiles Service 1001 (1001) "The description for Event ID 1001 from source Microsoft-Windows-User Profiles Service cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
    It seems to imply that the User Profiles Service may be corrupted, but this may also be unrelated.  I do not know how to specifically repair this service anyway (but am open to try it if someone can walk me through it a bit).
    There's the info.  I'd like to figure out how to watch the account creation process in more detail to see if I gleen more, but I don't have the experience to know what to do to enable such a log.  I will not perform a reinstall and am loath to do a restore, instead looking more for a cause and effect repair: something that would actually help MS fix the problem rather than have the customer fix the symptom.
    Thanks in advance to responders!

    First time poster, but I think I've done my homework on this issue.
    This issue has similar symptoms to a problem with vista: http://www.vistax64.com/tutorials/130095-user-profile-service-failed-logon-user-profile-cannot-loaded.html
    However, it is definitely not the same issue (see further).
    Current Config:
    HP dv7-1450.
    W7 RC 7100 x64
    Last update (up to date as of 8/31/09) installed succesfully 8/26/09 and should be unrelated to this issue (not verified yet by a pre-update restore).
    Running with Admin account while diagnosing/troubleshooting.
    Currently have two working accounts, one standard, one admin.
    Symptom:
    New user accounts cannot be logged into.  On an attempted login to the new account, the following information is displayed on the login screen:  "The User Profile Service service failed the logon.  User profile cannot be loaded."  Windows then logs off the operator and returns to the initial user selection screen.  All other aspects of use are normal.
    Current Diagnostics:
    First attempts to resolve this problem were to recreate the new account.  This was attempted when logged in as both Standard and Admin.  This was also attempted under safe mode.  This has been attempted with virus protection disabled.  All to no difference in the symptom.
    The similarity to the Vista issue (linked above) caused me to check the registry entry under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\ for the new profile (as suggested by that link).  Unlike that issue, there simply is no entry for the new user.  Examination of the new log entries from creation of account to attempted log in provides the following entries:
    Level Date and Time Source Event ID Task Category
    Information 8/31/2009 12:34:31 PM Microsoft-Windows-Winlogon 6000 None The winlogon notification subscriber <SessionEnv> was unavailable to handle a notification event.
    Warning 8/31/2009 12:34:11 PM Microsoft-Windows-Winlogon 6001 None The winlogon notification subscriber <Profiles> failed a notification event.
    Information 8/31/2009 12:34:11 PM Microsoft-Windows-Winlogon 6000 None The winlogon notification subscriber <SessionEnv> was unavailable to handle a notification event.
    Warning 8/31/2009 12:34:11 PM Microsoft-Windows-Winlogon 6001 None The winlogon notification subscriber <Sens> failed a notification event.
    Error 8/31/2009 12:34:10 PM Microsoft-Windows-User Profiles Service 1500 None "Windows cannot log you on because your profile cannot be loaded. Check that you are connected to the network, and that your network is functioning correctly.
    DETAIL - Only part of a ReadProcessMemory or WriteProcessMemory request was completed.
    Warning 8/31/2009 12:34:10 PM Microsoft-Windows-User Profiles General 1509 None "Windows cannot copy file C:\Users\Default\AppData\Local\Microsoft\Windows Live\SqmApi\SqmData720896_00.sqm to location C:\Users\TEMP\AppData\Local\Microsoft\Windows Live\SqmApi\SqmData720896_00.sqm. This error may be caused by network problems or insufficient security rights.
    DETAIL - Access is denied.
    Error 8/31/2009 12:34:09 PM Microsoft-Windows-User Profiles Service 1511 None Windows cannot find the local profile and is logging you on with a temporary profile. Changes you make to this profile will be lost when you log off.
    Warning 8/31/2009 12:34:09 PM Microsoft-Windows-User Profiles General 1509 None "Windows cannot copy file C:\Users\Default\AppData\Local\Microsoft\Windows Live\SqmApi\SqmData720896_00.sqm to location C:\Users\{New Username}\AppData\Local\Microsoft\Windows Live\SqmApi\SqmData720896_00.sqm. This error may be caused by network problems or insufficient security rights.
    DETAIL - Access is denied.
    Naturally I started with the earliest error first, and decided to look to see what is going on.  The file that is trying to be copied is there, but the destination folder does not exist.  As near as I can tell, whatever process (the User Profiles General Service?) is trying to perform the copy does not have sufficient access to perform the operation.  Specifically I suspect it may not be able to create the appropriate folders before performing the copy.  Interestingly, it appears that when windows attempts to open/create a temporary account profile, the same issue occurs.  Since there is no registry entry either, I suspect that the issue also extends to the creation of registry keys, but I am not familiar enough with the sequence of events in the creation of a user profile to determine if this would come before or after a user profile's first login.
    I attempted to find more information, and was able to investigate the UPS diagnostic event log (for a different, but identical attempt at creating and using the new profile).  The following two (unhelpful to me) log entries were generated.
    Level Date and Time Source Event ID Task Category
    Information 8/31/2009 12:34:10 PM Microsoft-Windows-User Profiles Service 1002 (1001) "The description for Event ID 1002 from source Microsoft-Windows-User Profiles Service cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
    If the event originated on another computer, the display information had to be saved with the event.
    The following information was included with the event:
    The message id for the desired message could not be found
    Information 8/31/2009 12:34:09 PM Microsoft-Windows-User Profiles Service 1001 (1001) "The description for Event ID 1001 from source Microsoft-Windows-User Profiles Service cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
    It seems to imply that the User Profiles Service may be corrupted, but this may also be unrelated.  I do not know how to specifically repair this service anyway (but am open to try it if someone can walk me through it a bit).
    There's the info.  I'd like to figure out how to watch the account creation process in more detail to see if I gleen more, but I don't have the experience to know what to do to enable such a log.  I will not perform a reinstall and am loath to do a restore, instead looking more for a cause and effect repair: something that would actually help MS fix the problem rather than have the customer fix the symptom.
    Thanks in advance to responders!
    To resolve this issue, I suggst you delete the file C:\Users\Default\AppData\Local\Microsoft\Windows Live\SqmApi\SqmData720896_00.sqm.Arthur Xie - MSFT

  • Export and import change document for user master data

    Dear Gurus,
    I have two queries on change document for user master data:
    1. Are there any approaches to export and import change document for user master data?
    We often do system copy from PRD to QAS for UAT and troubleshooting. Before system copy we export the user master data from QAS and then import after the copy process. We would like to keep the change document for user master data on QAS from being refreshed from PRD for security reason.
    2. Change document for Role change in QAS
    When the role is created or modified in DEV and then transported to QAS, the role change document doen't include this change log. The role change document in QAS only records those role changes directly made in QAS.
    Could you advise this is by SAP design or are there any approaches to record this transported role change  in the role change document in QAS?
    Thanks
    YBY

    1. Perhaps you want to consider a system copy to a "virtual system" for UAT?
    2. Changes in QAS (as with PROD as well) will give you the delta. They should ideally be clean... You need to check the source system.
    Another option is to generate the profiles in the target system. But for that your config has to be sqeaky clean and in sync, including very well maintained and sync'ed Su24 data.
    Cheers,
    Julius

  • Ideas for Providing User Level Data Backup and Restore

    I'm looking for ideas for implementing a user level application data backup and restore in an Apex app.
    What would be great is to have a user be provided an export file and a way to import this file. A bit overkill but hopefully never needed.
    Another option that is perfectly doable is a report that simply provides a means to create an export of the data. Since I already have an interface I can use an export to interface an export.
    Any thoughts?
    Hopefully I'm missing something already there for an end user to use.

    jlincoln wrote:
    "Do you mean "export" and "import" colloquially, or in the specific sense of the exp/imp/datapump utilities?"': I mean as in imp/exp Oracle utilities. Generally speaking, it would be neat to be able to export and import via an Apex an application. In this hosted environment I don't have that access but would this be a bad idea if you don't care about the existing data in the schema in which the data resides?I can envisage a mechanism using <tt>exp/imp</tt>, but since it requires <tt>dbms_scheduler</tt> external jobs and access to the file system it's highly unlikely to be possible in a hosted environment. (Unless you're doing the hosting?)
    Backup: Necessary for piece of mind and flexibility. I am working on a VB/Access user who does this today to get to the point when they can be comfortable with the backups occurring regularly and by the hosting site's DBA group.
    Restore: Like I said. I am working on a VB/Access user who does this today to get to the point when they can be comfortable with the backups occurring regularly and by the hosting site's DBA group. This is a very small data set. A restore would simply remove existing data and replace it with the new data.My opinion is that time would be better spent working on the user rather than a redundant backup and restore feature. Involve them in a disaster recovery exercise with whoever is hosting the environment to prove that their data is safe. Normally the inclusion of data in regular, effective database backups is sold as a major feature of APEX solutions.
    "What about security/privacy when this data ends up in uncontrolled environments?": I don't understand the point of this question. The data should not end up in uncontrolled environments. Just like the data in the database or its backups.Again, having data in a central, shared location protected by multiple levels of application, database, and OS security is usually seen as a plus for APEX over VB/Access. Exporting the data in toto to a PC/laptop that can be stolen or lost, and where it can be copied to USB drives/phones/email loses this protection.
    User Level: Because the end user must have access to the backup and restore mechanisms of the application.
    Application Data: The application data. Less than 10MB. Very small. It can be exported in a flat file downloaded by the end user. This file can then be used to upload and import via an existing application interface. For example.
    "I'm struggling to parse this for meaning.": When I say I have an existing interface I am referring to a program residing in the Apex application that will take data from a flat table structure (i.e. interface table), validate the data, derive data, and load into the target table structure.Other than the report export capability linked to above, there's nothing built-in to APEX that comes close to your requirement. If the data is simple enough that it can be handled in such a report, and you have a process that can read and recreate this export, then you have your backup/restore capability. If the data can't be handled in a simple report, then you'll need a more complex PL/SQL process to generate the file.

  • Date and version should be generating by

    Hello All,
    We are also using with IBM websphere portal in our environment.
    But this is a Linux question than a product.
    For our routine deployment we are doing export/import.
    I want to run export by script for both source and target.
    Regardless of how many time I run the same script I want export file will be generated by name,date and version #.
    First time script will create source_fulltest20091215_1.xml,
    if user runs scripts again it will create the name as source_fulltest20091215_2.xml.
    Third time script will generates file name as source_fulltest20091215_3.xml
    Please notice name of the file its increment by number.
    Below is a general format of the script,
    if I run exactly same script it will create the file called ‘source_fulltest20091215_1.xml”.
    ./xmlaccess.sh -in exportBase.xml -out source_fulltest20091215_1.xml -url http://hostname:port#/wps/config -user svc_wpsadmin -password 'helloworld'.
    I want date and version should be generating by auto script.
    Thanks

    Review the output formatting of the date(1) command:
    $ man dateand use it to compose part of the filename:
    fn=fulltest$(date '+%Y%m%d%H%M')The version number is a bit tricky, there are so many choices about how to do it. One way, assuming you just want the filenames to be unique is to:
    if [ -f ${fn} ]; then
       seqno=1
       while [ -f ${fn}_${seqno} ]; do
            seqno=$(expr ${seqno} + 1)
       done
       fn="${fn}_${seqno}"
    fiThere are more succinct ways of expressing this, but this way will work everywhere.

Maybe you are looking for