Why dateformat matters?

I am running into a problem with casting on Date, it firstly seems a bug in Oracle DB, but I tried both 9i and 10g and got the same result. Could someone please explain why dateformat matters in this case?
Thanks in avdance.
1.
select BirthDate,
cast(cast(BirthDate as CHARACTER (60)) as DATE)
from Employees
1937/09/19 00:00:00 2037/09/19 00:00:00 <----- ???
1948/12/08 00:00:00 2048/12/08 00:00:00 <----- ???
1952/02/19 00:00:00 1952/02/19 00:00:00
1955/03/04 00:00:00 1955/03/04 00:00:00
2. use default dateformat
select BirthDate, to_date(to_char(BirthDate))from Employees
1937/09/19 00:00:00 2037/09/19 00:00:00 <----- ???
1948/12/08 00:00:00 2048/12/08 00:00:00 <----- ???
1952/02/19 00:00:00 1952/02/19 00:00:00
1955/03/04 00:00:00 1955/03/04 00:00:00
3. Specify dateformat
select BirthDate,
to_date(to_char(BirthDate, 'YYYY-MM-DD' ), 'YYYY-MM-DD')
from Employees
1937/09/19 00:00:00 1937/09/19 00:00:00
1948/12/08 00:00:00 1948/12/08 00:00:00
1952/02/19 00:00:00 1952/02/19 00:00:00
1955/03/04 00:00:00 1955/03/04 00:00:00

The RR format mask exists to help people who still have two digit years. It defines a window for when Oracle assumes a 19xx year and a window for when Oracle assumes a 20xx year. If you are told that something happened in "78", Oracle assumes that you mean 1978 when you use the RR format mask. If you are told that something happend in "04", Oracle assumes that you mean 2004.
Just to clarify what is happening here, Oracle is evaluating things as follows
CAST( BirthDate AS CHARACTER(60) )uses the session's NLS_DATE_FORMAT to create a string, i.e.
"19-Sep-37"Now, it evaluates
CAST( "19-Sep-37" AS DATE )again using the default NLS_DATE_FORMAT. However, "RR" is not completely reversable, and assumes that "37" here refers to a date in the future, 2047.
You can modify your NLS_DATE_FORMAT at a session level. Doing so would change the behavior of your CAST statements, which may be desirable if you have existing code that you need to hack to work. Obviously, though, since this is a session-level setting, it can cause maintenance nightmares if different sessions have different settings
SCOTT @ HP92 Local> create table t1( col1 DATE );
Table created.
SCOTT @ HP92 Local> insert into t1 values( to_date('09/19/1937', 'MM/DD/YYYY' ) );
1 row created.
SCOTT @ HP92 Local> ed
Wrote file afiedt.buf
  1* insert into t1 values( to_date('09/19/2037', 'MM/DD/YYYY' ) )
SCOTT @ HP92 Local> /
1 row created.
SCOTT @ HP92 Local> select cast( cast( col1 AS CHARACTER(60) ) AS DATE ) from t1;
CAST(CAST
19-SEP-37
19-SEP-37
SCOTT @ HP92 Local> alter session set nls_date_format = 'DD-MON-YYYY HH24:MI:SS';
Session altered.
SCOTT @ HP92 Local> select cast( cast( col1 AS CHARACTER(60) ) AS DATE ) from t1;
CAST(CAST(COL1ASCHAR
19-SEP-1937 00:00:00
19-SEP-2037 00:00:00Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

Similar Messages

  • Why won't mail verify my account?

    Ever since i had my ipad i have never being able to set up mail on it and its really annoyng. it just comes up with we cant verify your account. The account was made back in 2005 but i dont see why it matters how old it is. I dont want to have to make a new account cause EVERYTHING gets sent to my current one =(

    Ive been trying to get my e-mail to work for about a year though and it just comes up with something like the pop.live (or whatever it is) password is incorrect.

  • Why do you need an iPad?

    How does an iPad serve your needs compared to say, a macbook air, or something similar (ie. another small netbook or laptop) ?
    The reason I ask is because as I have started using my iPad, I am realizeing some magor deficiencies such as inability to watch flash-based content on websites, no USB, no camera, etc..
    Your thoughts?

    fiosron wrote:
    How does an iPad serve your needs compared to say, a macbook air, or something similar (ie. another small netbook or laptop) ?
    The reason I ask is because as I have started using my iPad, I am realizeing some magor deficiencies such as inability to watch flash-based content on websites, no USB, no camera, etc..
    Your thoughts?
    My iPad has completely replaced my MBP in one week. I still need the MBP for horsepower in some massive spreadsheets, but that's about it. I now use the iPad for about 75% of my work, and it makes it easy. I still type faster on a normal keyboard, so I await the keyboard dock. And the iPad does things better than a laptop. Reading books for example. I just sold my Kindle, because the Kindle App is near perfect (I may or may not switch to iBooks depending solely on pricing).
    As for your other points:
    • Flash. I never liked it, and I don't miss it. I didn't miss it with my iPhone. I block Flash content on Safari. I really don't consider this a deficiency, I consider it leaving being 90's technology for the dustbin of history. In fact, because iPhone and iPad users are, in general, wealthier and more tech savvy than the average consumer, an intelligent advertiser will realize he's missing 100 million iPhone and iPad users (and growing) by not having flash. Lots of websites are dumping flash. Adobe is crying. Who cares about them.
    • USB port. I cannot imagine why this matters. I can print over wireless. And....what else do I need? This is a canard put out by individuals on the internet to put down the iPad. They were the same ones that whined and laughed when Apple went to Firewire (then dumped it), then to USB 2.0, or removed the floppy disk (who misses that format?), or pushed wireless over ethernet. Please show me one thing that I'm missing because I don't have a USB port?
    • Camera. I'm almost with you there, but I really don't care. Pictures on the iPhone (or any mobile phone) are horrible because they're being taken with a $25 part in the phone. The images are terrible. But, even if there is some use for the camera, it's going to be very odd to hold up the iPad to take a photo. I guess you can use it for iChat, which might be nice. But there is no way I'm going to get cleaned up, shaved, and get my haircut just so I might chat with my girlfriend on iChat. BTW, there is a 99 cent app that allows your iPad to control your iPhone's camera. Check it out.
    For me, I haven't found one deficiency of the iPad, except that it's a tad too heavy for reading over a longer period of time. But when I'm in bed, I just place it on a pillow, and I'm happy. I use my iPhone less, but I do need a phone, and it has 3G for email. Hopefully, someone will figure out how to tether my iPhone to the iPad, but I'll live for the time being.

  • Renamed: Why did my namespace change? soap-env (vs) soapenv

    Hello forum. I normally post in the main forum. I hope this is the right place for a SOAP question. I'm sure you'll let me know if it's not.
    We have an application which was running fine until last week. The app lives on a machine which is not completely ours (we don't control the environment). This app receives and sends socket messages. Based on the incoming message our outgoing message may be in SOAP or a legacy proprietary format. At the time of transmission we do not know the format of the message.
    Our outgoing messages stopped being transmitted. What we found was that there was a bit of logic in our transmitting component which read the first X characters of the message to see if it is a SOAP or legacy message. What we did to determine this was to look for, what we thought was standard "<SOAP-ENV....." It worked for years. (I know there are better ways of doing this and we're working on that now). The problem was that the messages that were failing contained "<SOAPENV...."
    Here's the question. The objects which build these messages are called from our messaging app. They should be in the same JVM as the messaging app. The messaging app's SOAP jars have not changed. The JRE was upgraded to 1.3.1_19 from _07. In the messaging app as a test I can build a SOAP message and it still says "<SOAP-ENV...." Where is this other namespace coming from? I decompiled the saaj components and it looks like the MessageFactory makes some calls to the environment to determine the message implementation. Could the problem be here? Has anyone heard of this type of thing happening before or am I just losing my mind.
    Thanks as always.
    ST
    Message was edited by:
    souLTower

    Possibly I don't understand the SOAP implementation. I'm using the same set of SOAP jars (saaj, commons, logging, etc) as I always did. If these jars did not change could / should the message format change? Is the implementation looking outside of my JVM for this implementation?
    As to "why" it matters is that I need to know why something in my code has changed. Imagine, for example, that the implementation of String changed. It may still adhere to the normal implementation of String but if my code expects it to look a certain way and it stops looking that way then my code breaks.
    As I said in the original post I have handled the issue that it changed but I can't feel comfortable with the application if I fear that it can change again and break my code.
    The question is, if the jars related to SOAP (the normal ones you get from sun, I'll provide the list if needed) have not changed then how can the format of the message change?
    Thanks again.
    ST

  • Why do the LabVIEW examples that use the queue design have one loop in the top level and all the others as subvis?

    Specifically the Weather Monitor example under connectivity/Web Services and the FPGA design examples.
    There are several parallel loops. One of the parallel loops will be in the top level VI. The others are all in sub-VIs. After the third example I was looking at it seemed obvious this was being done as a standard, but I don't know why it matters.
    Why not all of them as SubVIs? Why not all of them as top level loops? (Well OK maybe not that one.)

    For me, it depends on what is happening in the parallel loops.  When I have modules that just need to run in parallel with the main loop, it helps reusability to have it a a subVI call.  I can then just copy that library to another project and use it.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Movies I have purchased through Itunes show up on my computer, but do not show up on Apple TV

    Latley I have notices that movies in my Itunes library are "missing" from my apple TV's.  I have checked under get info "type", checked show in windows explorer, but certain movies just are not in the purchased catagory on the apple tv.

    Sign out of the Apple ID on the ATV and sign back in.
    Honestly not sure why it matters, if they are on the computer, play them via the Computers option on the ATV to avoid streaming them over the Internet.

  • How do you edit a field to either be HH:MM or the word 'All'

    I have a form field where the user can either enter the time (HH:MM) in 24 hour format or the word All (case insensitive).
    I have the HH:MM validation working fine, but don't see how to also add in the user to be able to enter the word 'All'.
    Here's what I have:
    <span id="theTime">
        <stripes:text name="filterSelectedProcessTime" id="filterSelectedProcessTime" maxlength="5" />
        <span class="textfieldInvalidFormatMsg">invalid format: must be HH:MM or ALL</span>
    </span>
    <script type="text/javascript">
        var datex = new Spry.Widget.ValidationTextField("theTime", "time", {format:"HH:mm", isRequired:false, validateOn:["blur", "change"], useCharacterMasking:true});
    </script>
    Any help will be greatly appreciated.

    It's an internal app so I can't get you access thru our firewall.
    Wish I could, but can't.
    Thanks for all your help so far.
    I can see all kind of uses for this in our forms, so its just curious why it matters where it's placed.
    If I put the form JavaScript before the form, it doesn't even recognize the custom_validation and doesn't do any Spry processing.
    Without the custom_validation function involved, it works fine.
    Here's what I have in the form:

    span id="theTime">  
    <stripes:text name="filterSelectedProcessTime" id="filterSelectedProcessTime" maxlength="5" />  
    <span class="textfieldInvalidFormatMsg">invalid format: use HH:MM or ALL</span>  
    </span>
    After the ending form tag, I have:
    < script type="text/javascript">
     function custom_validation(value, options) {var 
    theLength = value.length; 
    if(/^all$/i.test(value)) {return true 
    }else if 
    (theLength != 5) {return false 
    }else 
    {return 
    Spry.Widget.ValidationTextField.ValidationDescriptors.time.validation(value, options); 
    var 
    datex = new Spry.Widget.ValidationTextField("theTime", "custom", {format:"HH:mm", isRequired:true, validateOn:["blur", "change"], validation: custom_validation});
    </ script>

  • MRP keeps pushing delivery schedules out, refusing to firm them (ME33L)

    I hope someone has seen something like this before and can let us know where to look.  MRP keeps pushing our delivery schedules out even though it is recommending that they be rescheduled in.  What we'd like to happen is for MRP to leave these schedules alone so that they would move inside the time fence and be firmed automatically.  Here is what is happening:
    Part X, MRP type P1, firming type 1, MRP group blank.  Planning time fence 05/07/2007, available quantity -20.
    Three schedule lines exist for 05/07/2007, two for 10 and another for 30.
    MRP will run tonight.  Processing Key = NEUPL, purch req = 2, sched lines = 3, MRP list = 1, planning mode = 2, scheduling = 2
    Tomorrow, the planning time fence will be at 05/08/2007 and the three schedule lines will move out to 05/08/2007.  The won't move inside the planning time fence and firm up.  They SHOULD BE 05/07/2006 and firmed!
    We originally thought that we may have to create a release with ME84 before these would firm, but it made no difference.  They still won't firm unless someone manually changes the date on each and every schedule line.
    Does anyone know what we can change or run to get these schedules to firm up instead of having them pushed out continually?

    Hello Randy,
    thanks for the update. I didnt remenber this customizing indicator when posting.
    Still wondering why planning matters here. I think it should have the same result for all planning modes. Of course planning mode 3 in general should be avoided for performance reasons.
    For interested observers I attach the description for this setting in MRP customizing.
    Regards, Martin
    Indicator: Only Firm Transmitted Schedule Lines
    In this step, you can set an indicator which is used to set only those schedule lines that have been transferred to the vendor.
    You can firm schedule lines within the planning time fence (in the same way as planned orders or purchase requisitions) according to the master schedule item firming logic. The planning time fence is a number of days that is calculated into the future starting from the current date. Therefore, the last date of the planning time fence changes every day.
    In the firming logic, existing schedule lines are also firmed as soon as they move into the planning time fence.
    Schedule lines that lie outside the planning time fence and whose quantity is adjusted in the planning run due to a change of the requirements quantity are firmed with the new quantity as soon as the schedule lines move into the planning time fence.
    The schedule lines are transferred to the vendor for the amount recorded in the stock/requirements list at the time of the data transfer.
    If you only want to firm the schedule lines in the planning time fence that have been checked and transferred to the vendor, you can use the indicator, Only firm transmitted schedule lines. By selecting this indicator, the system only firms the schedule lines that have been sent to the vendor.
    For schedule lines whose quantity has changed and which have moved into the planning time fence, the following occurs if this indicator has been set: if the MRP controller/purchaser does not confirm the procurement plan by sending the changed quantities to the vendor, the schedule line quantities that were sent to the vendor in the previous data transfer are firmed within the planning time fence. This guarantees that the system cannot firm any quantities that have not been checked. It also means that the vondor does not receive any messages for unchecked schedule line quantities.
    Activities
    Define the indicator per MRP group and allocate this MRP group to the materials for which this indicator is to be valid.
    Further notes
    The message transfer is a purchasing function. You can find it in the purchasing menu, Outline agreement -> Scheduling agreement -> Messages -> Print/transmit.

  • Please check out my website and give me feedback

    Hey you iWeb Jedi's -- please check out my web page and give me your opinions -- especially you Star Trek fans out there.
    http://summerstormpictures.com
    One problem I'm having is find the perfect streaming settings for the movies. I did check them on a fast Windows machine and on a brand new Mac at the local CompUSA store. Things worked well on their very fast Internet connection but the longer concept video didn't seem to want to stream. I'm almost thinking to grab some JumpCut or YouTube code and insert it just to get it to work. I know this will put their logos in but I'm just not sure what to do.
    One thing I'm aware of and something I did do on purpose is that I made the background images very large -- to accomodate those wealthy folks with the very big, very wide monitors. I wanted never to run out of background "virtual" world no matter how big one stretched the browser window. Also, the necessity to scroll was intentional. Let me know if this is too annoying.
    Appreciate any expert helpful comments and feedback on improvements.
    No I won't update to 10.4.9!   Mac OS X (10.4.8)   I said no!

    As a teacher of marketing & multimedia presentation design, Garr Reynolds says at his site: "Design is a big, big deal. We all have a responsibility to understand its potential and its power. You do not need to be a designer — but you do need to become more design sensitive or 'design mindful'."
    In particular, according to another experienced designer: "Color should be used in the same way that type size is used: to emphasize importance, not decorate a page."
    Reynolds' page about why design matters is worth reading...
    http://www.garrreynolds.com/Design/whydesign.html
    Also this about graphic design fundamentals...
    http://www.garrreynolds.com/Design/basics.html

  • I cannot upgrade from iOS 5.-01 to 5.1 on original iPad

    My wife and I both have iPads running 5.0.1. Mine is v2 and hers is v1. We both have Macs with 10.7.3 and iTunes 10.6.
    When I tried upgraded to 5.1 throguh iTunes I got messages saying I could not connect to the server. A friend suggested I reboot the iPad and my Mac. I did and the upgrade went fine.
    I cannot upgrade my wife's iPad, however. Even after rebooting I get an error saying iTunes cannot download the upgrade because her computer is not hooked up to the internet. It is, however. I can access the iTunes store, use Safari, and get e-mail. I then tried to download the upgrade directly through the iPad but after a few minutes I get a message saying the updte failed.
    Any suggestions?

    Problem solved. I upgraded after switching a cable. Not sure why that mattered but all is fine now.

  • Configuring QoS for FIOS Router MI-424WR: Traffic Priority and Shaping

    Please only read on if you are an experienced internet user familiar with setting the advanced QoS and Firewall settings for the MI-424WR and make use of wireless adaptors from a PC to provide connectivity.
    This is my first post and my first week since I moved from Time Warner Cable over to FIOS for iNet (plus HDTV and phone).     While all my services work, the router as delivered and setup is not optimum for internet quality of service.  Instead it was probably out of the box optimized for HDTV and telephone to satisfy most customers and reduce support overhead.   The average FIOS consumer is multimedia sensitive, but that is not so in my genre of internet consumer.   Here in lies the core of my reason for seeking help from like minded and experienced users in this community.
    One of the main driving forces in my switching to FIOS was to improve my multiplayer gaming experience where ultra low ping latency and high upload data rates dramatically affect the quality of connection and thus gameplay.    The cable internet service from TimeWarner was providing solid 2MB/1MB down/up data rates with no issues like what Im having now with FIOS.   Again the reason for the switch was both financial and in hope of gaining better data rates and quality of service.   Now with FIOS Im getting about 24/15 down/up data rate on the Extreme FIOS 25/25 plan when measured from my house to Los Angeles server (50 miles away) via Speedtest.net or DslReports.com/tests.     Latency wise, the ping has gone down from 150 to 50ms when measured to my friends who I connect to online that are on the East coast.   The data rate and latency has greatly improved in going from Cable to FIOS.   So far, so good.
    Where the problem shows up now, is that now I get an internet "hiccup" every 5-10 minutes that lasts about 1/2 to 2 seconds.   For the average internet user that just streams multimedia or cruises on the net; this is probably undetectable or noticed.   I never had this problem over the same PCs connected wirelessly to my DLINK DGL-4500 Gaming Router when my ISP was TimeWarner's cable service.    Now, using the FIOS and MI-424WR router with everythings being the same; Im experiencing this degregation in quality of service.    Even putting the PC's IP into the DMZ doesnt make any difference, so it is not related to port forwarding.    The issue is squarely in the lap of FIOS and this router as delivered and configured.    This is where the "game" is a foot, and where I need expertise in an area Im new to. 
    I am not new to being hands on with inet trouble shooting asI have been setting up my own home network (I work from home over VPN to work) for decades;  I would like to leverage the skills of those who are experts in the area that I think can address this issue.   That being QoS and the other device class mechanisms of this router.   Its my guess that this periodic hiccup can be minimized and even eliminated using these advanced features of this all-in-one TV/iNet/Tele router.   
    With that context being laid down, this hiccup doesnt show up if:
    a.  I connect two PCs connected to the same ethernet hub of the MI-424WR (traffic just over the LAN and not WAN)
    b.  When I was on Cable with my own gaming router wirelessly DHCP connected to my PC and using port forwarding or using the DMZ.  
    The hiccup does exist when:
    a.  Going from internet through the MI-424WR to the wireless DHCP connected PC with port forwarding
    b.  Even putting the wireless DHCP connected PC into the MI-424WR's DMZ has no effect
    I did read the manual and tried some QoS pritority and shaping and managed to reduce how often the hiccup occured, but I was just making guesses at the settings.   I put in the IP for the PCs I use for my gaming applications (which are very ping and jitter sensitive) into the QoS priority (value 7) and shaping GUI.    Im hoping someone with experience can tell me exactly how to use it and what settings to input.   Im not clear on the device and connection types offered in the QoS menus. 
    Another thing, is I couldnt find settings for the turning on/off the ICMP echo.   But I assume this is on because it can be pinged by folks on the net to my WAN IP.
    Here is the manual for the Verizon provided M424WR router (Current Version of firmware: 20.10.7)
    download link
    Here are the QoS traffic priority and shaping values Ive been experimenting with:
    Click to view QoS Traffic Priority
    Click to view QoS Traffic Shaping
    And why it matters to have a solid and stable inet connection for internet gaming?  The hiccup causes slewing or jitter which equates to positional errors in the 3D world that ruins the smooth gameplay that is needed for high end gaming.
    Heres a snapshot of me flying the wing of another flight simmer who is on the East coast and me on the West coast.
    Click to view
    Thank you in advance.
    Thomas "AV8R"
    MSEE

    TMAS wrote:
    the router as delivered and setup is not optimum for internet quality of service.  Instead it was probably out of the box optimized for HDTV and telephone to satisfy most customers and reduce support overhead.  
    That's not accurate.  VZ telephone service does not go through the Actiontec.  Also, there are no default settings for QOS in the Actiontec since QOS is rarely needed with FIOS upload speeds.
    TMAS wrote:I get an internet "hiccup" every 5-10 minutes that lasts about 1/2 to 2 seconds.  
       You should not be experiencing periodic "hiccups".  Something is clearly amiss.
    TMAS wrote:
    With that context being laid down, this hiccup doesnt show up if:a.  I connect two PCs connected to the same ethernet hub of the MI-424WR (traffic just over the LAN and not WAN)
    The hiccup does exist when:
    a.  Going from internet through the MI-424WR to the wireless DHCP connected PC with port forwarding
    b.  Even putting the wireless DHCP connected PC into the MI-424WR's DMZ has no effect
    Lets see.  The issue shows up on a wireless connection, but not a wired connection.  You think this is a QOS issue and not a wireless issue why?  Have you tried changing the wireless channel?  It very possible you have neighbors on the same channel.  Is the DGL-4500 wireless still on?  Could that be interfering?TMAS wrote:
    Another thing, is I couldnt find settings for the turning on/off the ICMP echo.  
    The settting to enable/disable ICMP echo is on the Firewall/Remote Administration page.
    TMAS wrote:
    Here are the QoS traffic priority and shaping values Ive been experimenting with:Click to view QoS Traffic Priority
    Click to view QoS Traffic Shaping 
    The traffic proirity settings you linked are applied only to your wireless connections.  QOS between the router and your wireless PC will only serve to prioritize traffic between the router and that PC and have no affect on your internet traffic.  Assuming you are not running browsers, VOIP and other traffic from that PC while you're gaming, then that will not accomplish anything.  i.e.  You're giving your only traffic highest priority, but that traffic is not competing with anything (except other nearby wireless connections on the same channel).
    On the traffic shaping screenshot, you have broadband ethernet checked, but according to your other thread, your WAN connection is Broadband Coax, not Broadband ethernet.

  • What is the best way of returning group-by sql results in Toplink?

    I have many-to-many relationship between Employee and Project; so,
    a Employee can have many Projects, and a Project can be owned by many Employees.
    I have three tables in the database:
    Employee(id int, name varchar(32)),
    Project(id int, name varchar(32)), and
    Employee_Project(employee_id int, project_id int), which is the join-table between Employee and Project.
    Now, I want to find out for each employee, how many projects does the employee has.
    The sql query that achieves what I want would look like this:
    select e.id, count(*) as numProjects
    from employee e, employee_project ep
    where e.id = ep.employee_id
    group by e.id
    Just for information, currently I am using a named ReadAllQuery and I write my own sql in
    the Workbench rather than using the ExpressionBuilder.
    Now, my two questions are :
    1. Since there is a "group by e.id" on the query, only e.id can appear in the select clause.
    This prevent me from returning the full Employee pojo using ReadAllQuery.
    I can change the query to a nested query like this
    select e.eid, e.name, emp.cnt as numProjects
    from employee e,
    (select e_inner.id, count(*) as cnt
    from employee e_inner, employee_project ep_inner
    where e_inner.id = ep_inner.employee_id
    group by e_inner.id) emp
    where e.id = emp.id
    but, I don't like the complication of having extra join because of the nested query. Is there a
    better way of doing something like this?
    2. The second question is what is the best way of returning the count(*) or the numProjects.
    What I did right now is that I have a ReadAllQuery that returns a List<Employee>; then for
    each returned Employee pojo, I call a method getNumProjects() to get the count(*) information.
    I had an extra column "numProjects" in the Employee table and in the Employee descriptor, and
    I set this attribute to be "ReadOnly" on the Workbench; (the value for this dummy "numProjects"
    column in the database is always 0). So far this works ok. However, since the numProjects is
    transient, I need to set the query to refreshIdentityMapResult() or otherwise the Employee object
    in the cache could contain stale numProjects information. What I worry is that refreshIdentityMapResult()
    will cause the query to always hit the database and beat the purpose of having a cache. Also, if
    there are multiple concurrent queries to the database, I worry that there will be a race condition
    of updating this transient "numProjects" attribute. What are the better way of returning this kind
    of transient information such as count(*)? Can I have the query to return something like a tuple
    containing the Employee pojo and an int for the count(*), rather than just a Employee pojo with the
    transient int inside the pojo? Please advise.
    I greatly appreciate any help.
    Thanks,
    Frans

    No I don't want to modify the set of attributes after TopLink returns it to me. But I don't
    quite understand why this matters?
    I understand that I can use ReportQuery to return all the Employee's attributes plus the int count(*)
    and then I can iterate through the list of ReportQueryResult to construct the Employee pojo myself.
    I was hesitant of doing this because I think there will be a performance cost of not being able to
    use lazy fetching. For example, in the case of large result sets and the client only needs a few of them,
    if we use the above aproach, we need to iterate through all of them and wastefully create all the Employee
    pojos. On the other hand, if we let Toplink directly return a list of Employee pojo, then we can tell
    Toplink to use ScrollableCursor and to fetch only the first several rows. Please advise.
    Thanks.

  • What is the recommended way of opening 10.1 updated projects in 10.0.9?

    Obviously you can only do it if you have saved the old version!
    The old project and event folders are moved into a folder  such as  Mac HD Old Final Cut Projects and Events
    In order for FCP X 10.0.9 to see them is it necessary to drag them out of the Mac HD Old Final Cut Projects and Events folder or can I navigate to them from within FCP X?

    No I don't want to modify the set of attributes after TopLink returns it to me. But I don't
    quite understand why this matters?
    I understand that I can use ReportQuery to return all the Employee's attributes plus the int count(*)
    and then I can iterate through the list of ReportQueryResult to construct the Employee pojo myself.
    I was hesitant of doing this because I think there will be a performance cost of not being able to
    use lazy fetching. For example, in the case of large result sets and the client only needs a few of them,
    if we use the above aproach, we need to iterate through all of them and wastefully create all the Employee
    pojos. On the other hand, if we let Toplink directly return a list of Employee pojo, then we can tell
    Toplink to use ScrollableCursor and to fetch only the first several rows. Please advise.
    Thanks.

  • HP dv6-6117dx, can I install an SSD in this? SATA 2-3.0 or SATA 3-6.0?

    Hi all, I read the manual for the dv6-6117dx laptop, and it stated only Intel based versions of this laptop were able to use SATA based SSD drives, but I think it was referring to SATA 6. Can I install a SATA 3.0 SSD in this laptop as I have a SATA 3.0 SSD 64GB in my desktop that I thought maybe I'd move over to the laptop, but not sure if this is doable due to the manuals reference to Intel only? I would think that an SSD at SATA 2.0 standards would work, but Thanks for any replies.
    AMD 3500M, 500GB SATA drive, 4GB ram, etc.

    Hi Pepe, a lot of confusion going on with the new sata designations. I think for everyone's information, I'll try to set the record straight as far as what I have read on the subject, and what the SATA committee, commission, or what-have-you, stated they would like people to refer to SATA standards as. Not sure these are set in stone, but I think they are. Please correct me if I am mistaken. I won't go into anything below sata 2.0 as I either didn't read that part or don't remember. lol
         SATA II or 2.0 refers to SATA 3Gbps not SATA 3.0 - Sata III or 3 does refer to SATA 3.0 which is the current top standard at 6Gbps, hence SATA 6. This is the way it was, but I think now, they have simplified it to either SATA 3 or SATA 6 so there is no confusion, 3 is 3Gbps - 6 is 6Gbps. This is what I read they would like drive makers to label their drives as, and skip the 2.0, and 3.0 monikers. There is also going to be, soon, if not already, SATA Express which will boost performance to 6Gbps, 8Gbps, or 16Gbps using the pci express slot. SSD manufacturers are making them faster, and faster which is good for us as prices on lesser drives will drop, hopefully, and we can use the express slot included in just about all computers, and not have to purchase a SATA 6 controller card.
         And thanks Pepe for reminding me I already knew the answer. The SATA standards are compatible across all speeds, and connections so an SSD should be no problem, but at SATA 3 or less speed, depending on what's in this laptop. I do know it has a SATA HD, and SATA DVD, but don't get why HP would not implement the 6Gbps standard which you, and the AMD specs say, is embedded in the chipset? I'm hoping maybe it's a bios thing or some other update that will fix it because if my current drives are running off an AMD chipset, and the computer has a SATA HD & DVD, then it stands to reason the hardware is there as SATA standards for the 3500m CPU chipset include it. Unless there is a different AMD chipset in here? Hmm, very thought provoking. Maybe I'll call tech support, and try to get an answer because it doesn't make sense at all.
         Anyhoo Pepe, thanks for taking the time to respond to this. Just trying to think why there would be no SSD drive availability on this particular laptop as opposed to one that is exactly the same except has an Intel chipset? I'm wondering whether HP cut some corners here as AMD's chipset, specification-wise, is superior to Intel's at this point in the game. Thanks again, and please, anybody, if you know the answers to these questions, assumptions, please cough up some info so I don't have to call Tech, and beg for tier 2-3 support. lol 
    P.S.. I love this laptop, and doubt any answer is going to make me return it, but I am curious as to why no SATA 6, and maybe not even SATA 3 when the chipset supposedly supports it, and there are 2 SATA drives already integral to the laptop. I am assuming on a laptop, the CPU's corresponding chipset would have to be installed. Given this has SATA drives in it, and a chipset supporting SATA connections, SATA 2.0 should work.
     =====================================================================================
    Also,  found this on Wikipedia
    SATA Terminology
    The name SATA II has become synonymous with the 3 Gbit/s standard. In order to provide the industry with consistent terminology, the SATA-IO has compiled a set of marketing guidelines for the third revision of the specification.
    The SATA 6 Gbit/s specification should be called Serial ATA International Organization: Serial ATA Revision 3.0.
    The technology itself is to be referred to as SATA 6 Gb/s.
    A product using this standard should be called the SATA 6 Gb/s [product name].
    Using the terms SATA III or SATA 3.0 to refer to a SATA 6 Gbit/s product is unclear and not preferred. SATA-IO has provided a guideline to foster consistent marketing terminology across the industry.
    What I origianlly read was the designations SATA 3 Standing For SATA II, 2.0 & 3Gbps, and Sata 6 referencing Sata III, 3.0 & 6.0Gbps, so Sata 3 & Sata 6 sound great, no confusion, no need for Gbps or Gb/s as seen above, SATA 3 & 6, and soon to be SATA Express 8 Gb/s & 16 Gb/s All Sata designations should be geared to actual throughput of the specification to simplify the juggernaut of unneeded information, and resulting complictaions. They should all be simplified as SATA 3, SATA 6, SATA E8, and SATA E16. Why complicate matters with revisions, etc, we all know what they mean when stated as I have layed out, at least IMO! lol Take care all This is off topic, but hope it helps some users understand SATA  terminology, and sorry Pepe for misleading you, and otherswith incorrect information provided in the topic of this thread.
    Forgot, this has USB 3.0 ports so I know it has the coresponding chipset for the AMD A8 3500M CPU which supports SATA 6. HP, please answer why this laptop will not allow install of an SSD rated at SATA 6, and possibly not an SSD rated at SATA 3?

  • Server 2012 VM Guest (AppassureCore) keeps getting BugChecks...not sure whereto start?

    Bear with me here as there is a lot of technical data I need to present I believe so that I can help you all help me :)
    I have a Server 2012 VM Guest running on Hyper-V on a Server 2012 host.
    The VM is running my main Appassure core - I have a replicated core also but am having no issues with it at all.
    The Host machine has 2 XEON E5540s, for a total of 8 cores. It has 48 GB of memory.
    There is also another VM guest running on this host and that is a Server 2008 R2 that is my FSMO master and has no issues whatsoever.
    Both guests are running Virtual Memory with starting memory of 512 and max of 49152.
    Both VMs and the host each have their own GBe dedicated NIC.
    The problem 2012 VM is setup with 4 virtual processors. The Server 2008 R2 (non-problem) VM is running on 8 Virtual processors.
    Since the 2012 machine is running Appassure, I have an iSCSI connection to a NAS device. This is the same setup as the replicated Appassure core in every way except that the replicated core is a physical machine.
    All integration services are installed and available.
    For the most part, just before each bugcheck, I get a rapid succession of around 350 errors that happen within 2 minutes, then the crash...
    I won't list them all, but here are the main ones:
    EVENT 12293, VSS (I get 4 of these in a row.)
    Volume Shadow Copy Service error: Error calling a routine on a Shadow Copy Provider {b5946137-7b9f-4925-af80-51abd60b20d5}. Routine details IVssSnapshotProvider::QueryVolumesSupportedForSnapshots(ProviderId,8388617,...) [hr = 0x8000ffff, Catastrophic failure
    Operation:
       Query volumes supported by this provider
    Context:
       Provider ID: {b5946137-7b9f-4925-af80-51abd60b20d5}
       Snapshot Context: 8388617
    Event 20, iScsiPrt
    Connection to the target was lost. The initiator will attempt to retry the connection.
    Event 7, iScsiPrt (2 of these)
    The initiator could not send an iSCSI PDU. Error status is given in the dump data
    Then another 12293, VSS error
    EVENT 481, ESE
    AppRecovery.ExchangeCheckHost (3840) DSM_JET_INSTANCE: An attempt to read from the file "C:\ProgramData\AppRecovery\MountPoints\064ab6b0-e8e9-4862-9756-e47f19ca248f\E__\Microsoft\Exchange Server\Mailbox\First Storage Group\Mailbox Database.edb" at
    offset 7934615552 (0x00000001d8f0a000) for 8192 (0x00002000) bytes failed after 30 seconds with system error 121 (0x00000079): "The semaphore timeout period has expired. ".  The read operation will fail with error -1022 (0xfffffc02).  If
    this error persists then the file may be damaged and may need to be restored from a previous backup.
    Event 419, ESE
    AppRecovery.ExchangeCheckHost (3840) DSM_JET_INSTANCE: Unable to read page 968580 of database C:\ProgramData\AppRecovery\MountPoints\064ab6b0-e8e9-4862-9756-e47f19ca248f\E__\Microsoft\Exchange Server\Mailbox\First Storage Group\Mailbox Database.edb. Error -1022.
    EVENT 454, ESE
    AppRecovery.ExchangeCheckHost (3840) DSM_JET_INSTANCE: Database recovery/restore failed with unexpected error -1022.
    I then get about 6 more of the VSS errors 12293
    Then comes the motherload - a flood of Ntfs errors. Here are some examples:
    EVENT 55, Ntfs
    A corruption was discovered in the file system structure on volume C:\ProgramData\AppRecovery\MountPoints\064ab6b0-e8e9-4862-9756-e47f19ca248f\E__.
    The Master File Table (MFT) contains a corrupted file record.  The file reference number is 0x800000000050e.  The name of the file is "<unable to determine file name>".
    EVENT 131, Ntfs
    The file system structure on volume C:\ProgramData\AppRecovery\MountPoints\064ab6b0-e8e9-4862-9756-e47f19ca248f\E__ cannot be corrected.
    Please run the chkdsk utility on the volume C:\ProgramData\AppRecovery\MountPoints\064ab6b0-e8e9-4862-9756-e47f19ca248f\E__.
    I then get about 300 more of the EVENT 55, Ntfs errors that are all exactly the same except that they reference a different 'File Reference Number'
    Then the bugcheck happens. 
    Now, I ran WinDBG and it pretty much gave me an answer that didn't really help all that much:
    REFERENCE_BY_POINTER (18)
    Arguments:
    Arg1: 0000000000000000, Object type of the object whose reference count is being lowered
    Arg2: fffffa8305c6e040, Object whose reference count is being lowered
    Arg3: 0000000000000010, Reserved
    Arg4: fffffa8301d642a1, Reserved
    The reference count of an object is illegal for the current state of the object.
    Each time a driver uses a pointer to an object the driver calls a kernel routine
    to increment the reference count of the object. When the driver is done with the
    pointer the driver calls another kernel routine to decrement the reference count.
    Drivers must match calls to the increment and decrement routines. This bugcheck
    can occur because an object's reference count goes to zero while there are still
    open handles to the object, in which case the fourth parameter indicates the number
    of opened handles. It may also occur when the object’s reference count drops below zero
    whether or not there are open handles to the object, and in that case the fourth parameter
    contains the actual value of the pointer references count.
    Debugging Details:
    Page 198c7b not present in the dump file. Type ".hh dbgerr004" for details
    DEFAULT_BUCKET_ID:  WIN8_DRIVER_FAULT
    BUGCHECK_STR:  0x18
    PROCESS_NAME:  Core.Service.e
    CURRENT_IRQL:  0
    LAST_CONTROL_TRANSFER:  from fffff80160a0c5ae to fffff80160868440
    STACK_TEXT: 
    fffff880`05822418 fffff801`60a0c5ae : 00000000`00000018 00000000`00000000 fffffa83`05c6e040 00000000`00000010 : nt!KeBugCheckEx
    fffff880`05822420 fffff801`608c4841 : fffffa83`01b92940 00000000`00000001 fffff880`05822800 00000000`00000000 : nt! ?? ::FNODOBFM::`string'+0x4bfe4
    fffff880`058224c0 fffff801`608ad4d1 : fffffa83`0209ab68 fffffa83`01b92940 fffffa83`00000011 fffff801`00010224 : nt!ExpWaitForResource+0xa1
    fffff880`05822550 fffff880`01960447 : 00000000`00000002 00000000`00000000 fffffa83`02099180 fffffa83`075ab010 : nt!ExAcquireResourceExclusiveLite+0x1e1
    fffff880`058225c0 fffff880`01960809 : fffffa83`075ab010 fffffa83`02099180 ffff8975`f1909000 00000000`00000000 : Ntfs!NtfsVerifyCorruption+0x9b
    fffff880`05822670 fffff880`0183b0b4 : fffffa83`075ab010 00000000`00000000 fffffa83`02513010 00000000`00000001 : Ntfs!NtfsProcessAttachedCorruptions+0x85
    fffff880`058226e0 fffff880`0183b1c6 : fffffa83`00240000 fffffa83`075ab010 00000000`00000000 fffffa83`02513010 : Ntfs!NtfsCleanupIrpContext+0x574
    fffff880`05822730 fffff880`018c07aa : 00000000`00000000 fffffa83`008c7f20 00000000`c0000022 00000000`00000000 : Ntfs!NtfsExtendedCompleteRequestInternal+0xd6
    fffff880`05822770 fffff880`019276fb : fffffa83`075ab010 fffff8a0`01ff0e00 00000000`00000000 00000000`00000000 : Ntfs!NtfsLockVolume+0x2e9
    fffff880`05822830 fffff880`01926f06 : fffffa83`02513010 00000000`00000000 00000000`00000000 00000000`00000000 : Ntfs!NtfsUserFsRequest+0x547
    fffff880`05822870 fffff880`00a83845 : fffffa83`04abb5c0 fffff801`60c40cc5 fffffa83`025131b8 fffffa83`02513010 : Ntfs!NtfsFsdFileSystemControl+0x126
    fffff880`05822970 fffff801`60c3d6c7 : fffffa83`025131b8 fffffa83`02513010 fffff880`05822cc0 fffff880`02c62180 : fltmgr!FltpFsControl+0x165
    fffff880`058229d0 fffff801`60c58fa6 : 00000000`00000002 00000000`00000000 00000000`00000000 00000000`00000000 : nt!IopXxxControlFile+0x7e5
    fffff880`05822b60 fffff801`60867453 : 00000000`4273b7f8 00000000`4273b1e0 00000000`0807c568 00000001`80994dc8 : nt!NtFsControlFile+0x56
    fffff880`05822bd0 000007fa`02ad2f7a : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : nt!KiSystemServiceCopyEnd+0x13
    00000000`4273b198 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : 0x000007fa`02ad2f7a
    STACK_COMMAND:  kb
    FOLLOWUP_IP:
    nt! ?? ::FNODOBFM::`string'+4bfe4
    fffff801`60a0c5ae cc              int     3
    SYMBOL_STACK_INDEX:  1
    SYMBOL_NAME:  nt! ?? ::FNODOBFM::`string'+4bfe4
    FOLLOWUP_NAME:  MachineOwner
    MODULE_NAME: nt
    IMAGE_NAME:  ntkrnlmp.exe
    DEBUG_FLR_IMAGE_TIMESTAMP:  5165e551
    BUCKET_ID_FUNC_OFFSET:  4bfe4
    FAILURE_BUCKET_ID:  0x18_nt!_??_::FNODOBFM::_string_
    BUCKET_ID:  0x18_nt!_??_::FNODOBFM::_string_
    Followup: MachineOwner
    If you have made it this far, I thank you. I really have no idea where to go with this and am worried because obviously it involves my main backup so any help would be greatly appreciated.
    It should be said that I am also creating a backup of this actual machine from within the machine itself, using AppAssure. Not sure why that matters much except that I am guessing the VSS errors are referring to the actual machine itself - not a protected external
    machine. 
    Thanks again!
    Mike

    I have done a chkdsk on our core and it still pulled this error today. It gives the 474 error:
    Description: AppRecovery.ExchangeCheckHost (5648) DSM_JET_INSTANCE: The database page read from the file "C:\ProgramData\AppRecovery\MountPoints\6b27d60b-b8b3-4f79-9a4c-82ef68e71cba\H__\Microsoft\Exchange\IDP-EX01-JRNL1\IDP-EX01-JRNL1.edb" at offset 63335301120
    (0x0000000ebf140000) (database page 1932839 (0x1D7E27)) for 32768 (0x00008000) bytes failed verification due to a page checksum mismatch.  The expected checksum was [714d714d506b3ced:6b1894e799aebc30:ed5612a95c689a54:cbbd3442bc4760a4] and the actual checksum
    was [8fad7052506b3ced:6b1894e799ac3638:ed5612a95c6a105c:cbbd3442bc45eaac].  The read operation will fail with error -1018 (0xfffffc06).  If this condition persists then please restore the database from a previous backup.  This problem is likely
    due to faulty hardware. Please contact your hardware vendor for further assistance diagnosing the problem. 

Maybe you are looking for

  • ALV - subtoal

    Hi experts, In ALV report how to hide the total amount for a particular column. Scenario is : waerks   netvalue      in USD EUR         1              1.3             2              2.6             3              3.9 INR         1              37    

  • PDF Files in oracle 9i

    hi everyone, we have old archiving software, this sw store the documents on oracle 9i db, we want to develope this application but when we open the path where documents is stored inside the oracle db folder; we see it as file extension which means it

  • ECATT Use for upload master data

    Hi Please Guide me how to use ECATT , when  we Upload the Master data in SAP Best Practice ,not in SAP R/3 ( note : for SAP Best Practice system only) through ECATT. Can anybody have any idea about this Guide me Regards Roobal

  • Network hangs after streaming music for a few minutes

    I have a strange network problem when I stream iTunes music from my MacBook Pro, via an Airport Extreme base station to an Airport Express with speakers connected. The MacBook and Airport Extreme both have a wireless connection to the base station. A

  • Trying to configure my printer for NeatWorks... I need the device software to configure the scanner

    Hello. I have a (CM741A) Officejet 6500 E709n and wanted to use it for my Neat app on my Macbook Pro. Currently using Mavericks OS X 10.9.1 Problem is, I wanted to configure it based on a set of instructions (see link), but I cant seem find the HP So