MicroBlaze GPIO and timer interrupt

Hi
I want to use GPIO and timer interrupt. I use interrupt controller IP.
my target to get 1ms interrupt using timer and GPIO interrupt.
the problem is initialize timer interrupt second after initialize GPIO interrupt >>>> it works , but GPIO int doesn't work
then I put  
XIntc_Enable(&Intc, 0);     // Enable GPIO interrupt high priority
timer interrupt GPIO interrupt work . but sitll there is a problem which is after GPIO interrupt the program hang and never return to main
this is the first post for me , I hope finding helpful replys
thanks
this is my code:
//************************************ for main **********************************************//
int main()
/*----------------------------------initializations--------------------------------------*/
        init_platform();
        print("Hello World\n\r");
        // initialize GPIO
                Gpio_initialization(&LED_GPIO,GPIO_DEVICE_ID);
        // initialize GPIO interrupt
                GpioIntr_initialization(&Intc,&LED_GPIO,GPIO_DEVICE_ID,
                                       XPAR_INTC_0_GPIO_0_VEC_ID, BUTTON_INTERRUPT);
                                       //INTC_DEVICE_ID
        // initialize Timer
        Status = TmrCtrIntr_start(&InterruptController,
                          &TimerCounterInst,
                          TMRCTR_DEVICE_ID,
                          TMRCTR_INTERRUPT_ID,
                          TIMER_CNTR_0);
while(1){
//************************************ for timer **********************************************//
int TmrCtrIntr_start(INTC* IntcInstancePtr,
            XTmrCtr* TmrCtrInstancePtr,
            u16 DeviceId,
            u16 IntrId,
            u8 TmrCtrNumber)
    int Status;
     * Initialize the timer counter so that it's ready to use,
     * specify the device ID that is generated in xparameters.h
    Status = XTmrCtr_Initialize(TmrCtrInstancePtr, DeviceId);
    if (Status != XST_SUCCESS) {
        return XST_FAILURE;
    print("Timer initialized \n\r");
     * Perform a self-test to ensure that the hardware was built
     * correctly, use the 1st timer in the device (0)
    Status = XTmrCtr_SelfTest(TmrCtrInstancePtr, TmrCtrNumber);
    if (Status != XST_SUCCESS) {
        return XST_FAILURE;
     * Connect the timer counter to the interrupt subsystem such that
     * interrupts can occur.  This function is application specific.
    Status = TmrCtrSetupIntrSystem(IntcInstancePtr,
                    TmrCtrInstancePtr,
                    DeviceId,
                    IntrId,
                    TmrCtrNumber);
    if (Status != XST_SUCCESS) {
        return XST_FAILURE;
     * Setup the handler for the timer counter that will be called from the
     * interrupt context when the timer expires, specify a pointer to the
     * timer counter driver instance as the callback reference so the handler
     * is able to access the instance data
    XTmrCtr_SetHandler(TmrCtrInstancePtr, TimerCounterHandler,
                       TmrCtrInstancePtr);
     * Enable the interrupt of the timer counter so interrupts will occur
     * and use auto reload mode such that the timer counter will reload
     * itself automatically and continue repeatedly, without this option
     * it would expire once only
    XTmrCtr_SetOptions(TmrCtrInstancePtr, TmrCtrNumber,
                XTC_INT_MODE_OPTION | XTC_AUTO_RELOAD_OPTION);
     * Set a reset value for the timer counter such that it will expire
     * eariler than letting it roll over from 0, the reset value is loaded
     * into the timer counter when it is started
    XTmrCtr_SetResetValue(TmrCtrInstancePtr, TmrCtrNumber, RESET_VALUE);
     * Start the timer counter such that it's incrementing by default,
     * then wait for it to timeout a number of times
    XTmrCtr_Start(TmrCtrInstancePtr, TmrCtrNumber);
    return XST_SUCCESS;
//********************************************** for GPIO ************************************************************//
int GpioSetupIntrSystem(XIntc *IntcInstancePtr, XGpio *InstancePtr,
            u16 DeviceId, u32 IntrId, u32 IntrMask)
    int Result;
    GlobalIntrMask = IntrMask;
     * Initialize the interrupt controller driver so that it's ready to use.
     * specify the device ID that was generated in xparameters.h
    Result = XIntc_Initialize(IntcInstancePtr, INTC_DEVICE_ID);
    if (Result != XST_SUCCESS) {
        return Result;
    /* Hook up interrupt service routine */
    XIntc_Connect(IntcInstancePtr, IntrId,
              (Xil_ExceptionHandler)GpioHandler, InstancePtr);
    /* Enable the interrupt vector at the interrupt controller */
    XIntc_Enable(IntcInstancePtr, IntrId);
     * Start the interrupt controller such that interrupts are recognized
     * and handled by the processor
    Result = XIntc_Start(IntcInstancePtr, XIN_REAL_MODE);
    if (Result != XST_SUCCESS) {
        return Result;
     * Enable the GPIO channel interrupts so that push button can be
     * detected and enable interrupts for the GPIO device
    XGpio_InterruptEnable(InstancePtr, IntrMask);
    XGpio_InterruptGlobalEnable(InstancePtr);
     * Initialize the exception table and register the interrupt
     * controller handler with the exception table
    Xil_ExceptionInit();
    Xil_ExceptionRegisterHandler(XIL_EXCEPTION_ID_INT,
             (Xil_ExceptionHandler)INTC_HANDLER, IntcInstancePtr);
    /* Enable non-critical exceptions */
    Xil_ExceptionEnable();
    return XST_SUCCESS;
}

Well Well
Thank you so much stephenm . yes it works now
The error is initialize INTC two times. It should be initialize once and use XIntc_Connect two times. one for GPIO and other for timer.
Thank you for your help.

Similar Messages

  • Clear operation takes long time and gets interrupted in ThreadGate.doWait

    Hi,
    We are running Coherence 3.5.3 cluster with 16 storage enabled nodes and 24 storage disabled nodes. We have about hundred of partitioned caches with NearCaches (invalidation strategy = PRESENT, size limit for different caches 60-200K) and backup count = 1. For each cache we have a notion of cache A and cache B. Every day either A or B is active and is used by business logic while the other one is inactive, not used and empty. Daily we load fresh data to inactive caches, mark them as active (switch business logic to work with fresh data from those caches), and clear all yesterday's data in those caches which are not used today.
    So at the end of data load we execute NamedCache.clear() operation for each inactive cache from storage disabled node. From time to time, 1-2 times a week, the clear operation fails on one of 2 our biggest caches (one has 1.2M entries and another one has 350K entries). We did some investigations and found that NamedCache.clear operation fires many events within Coherence cluster to clear NearCaches so that operation is quite expensive. In some other simular posts there were suggestions to not use NamedCache.clear, but rather use NamedCache.destroy, however that doesn't work for us in current timelines. So we implemented simple retry logic that retries NamedCache.clear() operation up to 4 times with increasing delay between the attempts (1min, 2 min, 4 min).
    However that didn't help. 3 out of those attempts failed with the same error on one storage enabled node and 1 out of those 4 attempts failed on another storage enabled node. In all cases a Coherence worker thread that is executing ClearRequest on storage enabled node got interrupted by Guardian after it reached its timeout while it was waiting on lock object at ThreadGate.doWait. Please see below:
    Log from the node that calls NamedCache.clear()
    Portable(com.tangosol.util.WrapperException): (Wrapped: Failed request execution for ProductDistributedCache service on Member(Id=26, Timestamp=2012-09-04 13:37:43.922, Address=32.83.113.116:10000, MachineId=3149, Location=machine:mac305,process:2
    7091,member:mac305.instance1, Role=storage) (Wrapped: ThreadGate{State=GATE_CLOSING, ActiveCount=3, CloseCount=0, ClosingT
    hread= Thread[ProductDistributedCacheWorker:1,5,ProductDistributedCache]}) null) null
    Caused by:
    Portable(java.lang.InterruptedException) ( << comment: this came form storage enabled node >> )
    at java.lang.Object.wait(Native Method)
    at com.tangosol.util.ThreadGate.doWait(ThreadGate.java:489)
    at com.tangosol.util.ThreadGate.close(ThreadGate.java:239)
    at com.tangosol.util.SegmentedConcurrentMap.lock(SegmentedConcurrentMap.java:180)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onClearRequest(DistributedCache.CDB:27)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$ClearRequest.run(DistributedCache.CDB:1)
    at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:1)
    at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:32)
    at com.tangosol.coherence.component.util.DaemonPool$Daemon.onNotify(DaemonPool.CDB:63)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
    at java.lang.Thread.run(Thread.java:619)
    Log from the that storage enabled node which threw an exception
    Sat Sep 08 04:38:37 EDT 2012|**ERROR**| com.tangosol.coherence.component.util.logOutput.Log4j | 2012-09-08 04:38:37.720/31330
    1.617 Oracle Coherence EE 3.5.3/465 <Error> (thread=DistributedCache:ProductDistributedCache, member=26): Attempting recovery
    (due to soft timeout) of Guard{Daemon=ProductDistributedCacheWorker:1} |Client Details{sdpGrid:,ClientName:  ClientInstanceN
    ame: ,ClientThreadName:  }| Logger@9259509 3.5.3/465
    Sat Sep 08 04:38:37 EDT 2012|**WARN**| com.tangosol.coherence.component.util.logOutput.Log4j | 2012-09-08 04:38:37.720/313301
    .617 Oracle Coherence EE 3.5.3/465 <Warning> (thread=Recovery Thread, member=26): A worker thread has been executing task: Message "ClearRequest"
    FromMember=Member(Id=38, Timestamp=2012-09-07 10:12:27.402, Address=32.83.113.120:10000, MachineId=40810, Location=machine:
    mac313,process:22837,member:mac313.instance1, Role=maintenance)
    FromMessageId=5278229
    Internal=false
    MessagePartCount=1
    PendingCount=0
    MessageType=1
    ToPollId=0
    Poll=null
    Packets
    [000]=Directed{PacketType=0x0DDF00D5, ToId=26, FromId=38, Direction=Incoming, ReceivedMillis=04:36:49.718, ToMemberSet=nu
    ll, ServiceId=6, MessageType=1, FromMessageId=5278229, ToMessageId=337177, MessagePartCount=1, MessagePartIndex=0, NackInProg
    ress=false, ResendScheduled=none, Timeout=none, PendingResendSkips=0, DeliveryState=unsent, Body=0x000D551F0085B8DF9FAECE8001
    0101010204084080C001C1F80000000000000010000000000000000000000000000000000000000000000000, Body.length=57}
    Service=DistributedCache{Name=ProductDistributedCache, State=(SERVICE_STARTED), LocalStorage=enabled, PartitionCount=257, B
    ackupCount=1, AssignedPartitions=16, BackupPartitions=16}
    ToMemberSet=MemberSet(Size=1, BitSetCount=2
    Member(Id=26, Timestamp=2012-09-04 13:37:43.922, Address=32.83.113.116:10000, MachineId=3149, Location=machine:mac305,process:27091,member:mac305.instance1, Role=storage)
    NotifySent=false
    } for 108002ms and appears to be stuck; attempting to interrupt: ProductDistributedCacheWorker:1 |Client Details{sdpGrid:,C
    lientName: ClientInstanceName: ,ClientThreadName: }| Logger@9259509 3.5.3/465
    I am looking for your help. Please let me know if you see what is the reason for the issue and how to address it.
    Thank you

    Today we had that issue again and I have gathered some more information.
    Everything was the same as I described in the previous posts in this thread: first attempt to clear a cache failed and next 3 retries also failed. All 4 times 2 storage enabled nodes had that "... A worker thread has been executing task: Message "ClearRequest" ..." error message and got interrupted by Guardian.
    However after that I had some time to do further experiments. Our App has cache management UI that allows to clear any cache. So I started repeatedly taking thread dumps on those 2 storage enabled nodes which failed to clear the cache and executed cache clear operation form that UI. One of storage enabled nodes successfully cleared its part, but the other still failed. It failed with completely same error.
    So, I have a thread dump which I took while cache clear operation was in progress. It shows that a thread which is processing that ClearRequest is stuck waiting in ThreadGate.close method:
    at java.lang.Object.wait(Native Method)
    at com.tangosol.util.ThreadGate.doWait(ThreadGate.java:489)
    at com.tangosol.util.ThreadGate.close(ThreadGate.java:239)
    at com.tangosol.util.SegmentedConcurrentMap.lock(SegmentedConcurrentMap.java:180)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onClearRequest(DistributedCache.CDB:27)
    at
    All subsequents attempts to clear cache from cache management UI failed until we restarted that storage enabled node.
    It looks like some thread left ThreadGate in a locked state, and any further attempts to apply a lock as part of ClearRequest message fail. May be it is known issue of Coherence 3.5.3?
    Thanks

  • My macbook pro keeps crashing and resetting the date and time

    I'm having a problem with my 2010 Macbook pro(ios6.1) with crashing. After it happens I need to reset the date and time. I also have a problem with iphoto, the program won't open. I have reintalled it serveral times and after the update it won't open just the circulating circle appears. I'm running on Mac OS X version 10.6.8  If any one can help it would be greatly appreciated. D.D.D

    If you have to reset the date and time, it may be that there is a power interruption.  I would try a SMC reset.
    http://support.apple.com/kb/HT3964
    I would post you iPhoto issue in the iPhoto forum.
    Ciao.

  • WLC date and time configuration

    Hi, I have a problem with a 4402 Wireless LAN Controller running 7.0.116.0 versión. The equipment is working fine, but after a hard reset i lost date and time
    configuration.No other configuration is affected, only date and time. What can be the cause of this?

    Hi Leo, mabuti naman po ako. Ikaw kumusta? You can speak tagalog pala. << OT.
    WLC don't have NTP configured because they don't have NTP server. Anyway, I must agree with you in terms of unstable power source here in Philippines, but in this case, the client datacenter do have redundant UPS standing-by incase power interruption occurs. Actually, my client have 2x 5508 sitting side by side. The other one is working properly because we tried them to switch off and then unplugged the power cord from power source. When we plugged it again and they boot up, one WLC retains its clock and date but the other one reverts to January 1, 2000.
    I think we better request for an RMA for this unit.

  • Both Chrome and Safari interrupt online streaming to request/demand an update for a PC program that doesn't work on Macs. What is going on?

    Both Chrome and Safari interrupt online streaming to request/demand an update for a PC program that doesn't work on Macs. What is going on?

    The update alerts are fake, and are intended to dupe you into installing malware or disclosing private information so that your identity can be stolen.
    You might get the alerts when visiting a website that has been hacked. Don't visit the site again. If applicable, notify the site administrator of the problem, but don't send email to an unknown party.
    If you get the alerts when visiting more than one well-known website, such as Google, YouTube, or Facebook, then they're almost certainly the result of an attack on your router that has caused you to get false results from looking up the addresses of Internet servers. Requests sent to those sites are redirected to a server controlled by the attacker. It's possible, but less likely, that the DNS server used by your ISP has been attacked, but you should assume that the router is at fault until proven otherwise.
    The router's documentation should tell you how to reset it to the factory default state. Usually there's a pinhole switch somewhere in the back. It may be labeled "RESET." Insert the end of a straightened paper clip or a similar tool and press the button inside for perhaps 15 seconds, or as long as the instructions specify.
    After resetting the router, quit the web browser and relaunch it while holding down the shift key. From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Privacy ▹ Remove All Website Data
    and confirm. Do the equivalent if you use another browser. Open the Downloads folder and delete anything you don't recognize.
    Then go through the router's initial setup procedure. I can't be specific, because it's different for every model. The key points are these:
    1. Don't allow the router to be administered from the WAN (Internet) port, if it has that option. Most do.
    2. Set a strong password to protect the router's settings: at least ten random upper- and lower-case letters and digits. Don't use the default password or any other that could be guessed. Save the password in your keychain. Any password that you can remember is weak.
    3. If the router is wireless, or if you have a wireless access point on the network, use "WPA 2 Personal" security and set a different strong password to protect the network. If the router or access point doesn't support WPA 2, it's obsolete and must be replaced.
    During the time the router was compromised, you were redirected to bogus websites. If you ever connected to a secure site and got a warning from your browser that the identity of the server could not be verified, and you dismissed that warning in order to log in, assume that your credentials for the site have been stolen and that the attacker has control of the account. This warning also applies to all websites on which you saw the fake update alerts.
    Check the router manufacturer's website for a firmware update.
    If you downloaded and installed what you thought was a software update, ask for instructions.

  • 2851 Router VPN - stack for level DMA/Timer Interrupt running low 36/9000

    I have a site to site VPN. On my hub router I am seeing the following message EVERY minute in the log!
    %sys-6-stacklow: stack for level DMA/Timer Interrupt running low, 36/9000
    I have been trying to figure out what the DMA/Timer Interrupt is and what is causing it to run low.
    If I run the "show stacks" command I can see:
    <output omitted>
    Interrupt level stacks:
    Level     Called     Unused/Size     Name
    2      1578216246     36/9000     DMA/Timer Interrupt
    I am also occasionaly seeing the following
    %crypto--4-pkt_replay_error:decrypt: replay check failed connection id=7 sequence number=16171319
    I don't know if they are related or not, but I need to find out what is causing the DMA/timer interrupt messages.
    Thanks.

    It just rebooted
    This router it just stands in front of a few servers and applies NAT.
    So far this had happened a few times but since morning it rebooted already 3 times.
    The Sagem ADSL router at my house has longer uptime. wtf!?!?
    cisco>show stacks
    Minimum process stacks:
    Free/Size   Name
    5396/6000   Inspect Init Msg
    5368/6000   SPAN Subsystem
    58920/60000  EEM Auto Registration Proc
    4772/6000   Auto Upgrade Startup Process
    5164/6000   DIB error message
    5396/6000   SASL MAIN
    4968/6000   LICENSE AGENT DEFAULT
    5368/12000  Init
    4216/6000   Update prst
    4384/6000   VPN_HW_MIB_CREATION
    5188/6000   RADIUS INITCONFIG
    2124/3000   Rom Random Update Process
    5316/6000   URPF stats
    Interrupt level stacks:
    Level    Called Unused/Size  Name
      1      319293   6284/9000  Network interfaces
      2      716358   8548/9000  DMA/Timer Interrupt
      3           1   8388/9000  PA Management Int Handler
      4         115   8612/9000  Console Uart
      5           0   9000/9000  External Interrupt
    Interrupt level stacks:
    Level    Called Unused/Size  Name
      7       72787   8564/9000  NMI Interrupt Handler
    Spurious interrupts: 3
    System was restarted by bus error at PC 0x4183BC0C, address 0xC3D1CB7 at 10:51:53 UTC Tue Apr 23 2013
    2800 Software (C2800NM-ADVSECURITYK9-M), Version 12.4(24)T, RELEASE SOFTWARE (fc1)
    Technical Support: http://www.cisco.com/techsupport
    Compiled Wed 25-Feb-09 17:55 by prod_rel_team
    Image text-base: 0x40016C60, data-base: 0x42B47360
    Stack trace from system failure:
    FP: 0x4759C678, RA: 0x4183BC0C
    FP: 0x4759C6D0, RA: 0x41836D18
    FP: 0x4759C708, RA: 0x4164D7E0
    FP: 0x4759C768, RA: 0x41650314
    FP: 0x4759C7E8, RA: 0x41650C68

  • Backing up photos on iMac using external hard drive and time machine

    How do i back up photos from my imac using an external hard drive and time machine
    Thanks in advance

    Apple explains how to use Time Machine in http://support.apple.com/kb/ht1427.
    Setting up and using TM is very simple to do, connect any external HD (format as Mac OS Extended (Journaled) using Disk Utility ) and your computer shoudl ask if you want to use that EHD for a Time Machine backup. If you have any questions visit your local Apple Store or reseller and they can answer how to setup and use TM and also should be able to offer suggestions on EHDs. My personal preference is OWC (www.macsales.com) Mercury Elite Pro due to the build quality and OWC's level of support.

  • I'm having a hard time setting up my external hard from with my AirPort Extreme and Time Machine Backups.

    I have been using a Mac Mini with an external hard and Time Machine.  I bought an Airport Extreme and have had problem setting up the hard drive using the USB port on the Airport Extreme.  I also just recently bought a Mac Book Air and hope to have both computers back up to the external hard drive using Time Machine and Airport Extreme.  I have been using the optical drive from the Mac mini to load programs into the Mac Book Air.  I think I'm just getting confused in Finder.  I am just not seeing the hard drive.  I ended up plugging the hard drive back into the Mac Mini and that is work fine again.  How do I setting the external hard drive up to the AirPort Extreme and use for both computers?  Or at least to start with the Mac mini.

    It's critical to understand that Time Machine (TM) stores backups differently between local and network drives. That would mean the TM backup on your locally attached USB hard drive will not be directly useable when it is connected to the AirPort Extreme Base Station (AEBS). There is a way to copy a local version to a network version, but it is not fool-proof. When you do connect this drive and point TM to it, TM will start a brand new backup, leaving your existing backup as is.
    If your current backup is critical to you, you may want to consider getting a second USB drive to attach to the Extreme and use your existing one as a backup ... or use TM's multi-backup process to backup to more than one destination drive alternatively.
    So, at this point, you may want to make a decision on how you want to go forward to help provide a solution for you.
    To directly answer your question, when you go to select a destination for a Time Machine backup, the drive(s) that show up under "Backup Disks" are those that TM already recognizes and has backed up to. Those listed under "Available Disks" are drives (either local or on the network) that TM can back up to.

  • Date and Time in Sender File Adapter Target Directory

    Hi there,
    is there a way of using Date and Time from XI to the Target Directory naming? To use variable substitution some fields of the message had to contain that date and time information, which is not our case.
    For filename you can use "add time stamp" option, but and for target directory?
    Thanks and regards,
    Henrique.

    > <i>Do you have further information on how to perform
    > this with shell commands?</i>
    > >> You need to write a shell script. This script will
    > add the date/time stamp into the folder in the target
    > system. This shell script is executed from the File
    > adapter. So once the file is written into the target
    > directory, then it will rename the directory.
    Hi there, Moorthy
    We've tried to write that shell script that you mentioned, but now we have a few doubts on how to make it create the proper directory.
    In the file adapter, my target directory is "/%var1%/%var2%/", where %var1% and %var2% are variable substitutions, referencing data which comes from the payload. Now, I need the shell script to append "/<Year>/<Month>/" in the target directory. But where to archive the script? If it stays in the root directory, than how to make it create "/<Year>/<Month>/" folders inside a directory which is variable (/%var1%/%var2%/)?
    Is there a way of passing %var1% and %var2% as parameters for the shell script?
    Thanks a lot,
    Henrique.

  • Unable to insert date and time when using date datatype

    Hi
    I am hitting a bit of a problem when using the date datatype. When trying to save a row to the table where the field it throws an error ora 01830 and complains about converting the date format picture ends...etc. Now when I do the insert, I use the to_date function with the format of "dd-mon-yyyy hh24:mi:ss". Of course, when I remove the time element, everything is perfect.
    Checking sysdate, I noticed that the time element wasn't be displayed, and I used alter session set nls_date_format to set the date and time I want to save to the table, which worked!
    Then based on advice in a previous thread to permanently fix the problem, I used alter system set nls_date_format ="dd-mon-yyyy hh24:mi:ss" scope=spfile; This showed that it was altered, and I can see the setting in the em. In sqlplus, I shutdown the database, and restarted with startup mount; alter database open; and then selecting sysdate, it still shows the date as dd-mon-yy, and still no time! Checking the em, and looking up the nls_date_format the setting is still shown as "dd-mon-yyyy hh24:mi:ss".
    So, my question is this - what am I doing wrong? Why can't save date and time using date in Oracle 11g?????
    Thanks

    user633278 wrote:
    Hi
    I am hitting a bit of a problem when using the date datatype. When trying to save a row to the table where the field it throws an error ora 01830 and complains about converting the date format picture ends...etc. Now when I do the insert, I use the to_date function with the format of "dd-mon-yyyy hh24:mi:ss". Of course, when I remove the time element, everything is perfect.
    Checking sysdate, I noticed that the time element wasn't be displayed, and I used alter session set nls_date_format to set the date and time I want to save to the table, which worked!
    Then based on advice in a previous thread to permanently fix the problem, I used alter system set nls_date_format ="dd-mon-yyyy hh24:mi:ss" scope=spfile; This showed that it was altered, and I can see the setting in the em. In sqlplus, I shutdown the database, and restarted with startup mount; alter database open; and then selecting sysdate, it still shows the date as dd-mon-yy, and still no time! Checking the em, and looking up the nls_date_format the setting is still shown as "dd-mon-yyyy hh24:mi:ss".
    So, my question is this - what am I doing wrong? Why can't save date and time using date in Oracle 11g?????
    ThanksYou most certainly can save the time. A DATE column, by definition stores date and time. What you describe is a presentation problem, and setting nls_date_format at the system as an init parm is the weakest of all settings as it is overridden by several other locations.
    without seeing the exact sql that produced the error (not just your description of what you think you were doing) it is impossible to say for sure.
    However, I'd suggest you read http://edstevensdba.wordpress.com/2011/04/07/nls_date_format/

  • DVD camcorder (VIDEO_TS) - preserve clip date and time

    I had asked this question on the forums a long time ago but iMovie did not seem to be supporting it reliably at the time. But since some time has passed, I wanted to check if iMovie '09 can import clips from a mini DVD (those used in camcorders to capture video directly on to DVD media) AND preserve the clip's date and time.
    What I see is that the first clip gets some date and time related to the event's date and time (perhaps the start time of the first clip?) but all the other clips which are imported, get timestamps of 1 second after that first clip's timestamp.
    These are all my home videos and in order to keep each clip short, I have had the habit of pausing after about a minute or two, resulting in MANY clips over MANY DVD's, so manually updating date and time is absolutely the last resort.
    The DVD player can see the clip date and time correctly, and so could the camcorder (I have since sold the darn thing!) so I know that information exists somewhere in the DVD, but it seems like iMovie is unable to "see" it.
    Any help would be appreciated, including programmability hints.

    Thank you for your post.  I figured out why iMovie was assigning today's date to everything that I imported.  It turns out that many of my video files did not have a real "created" date--some had no date at all and some had Wednesday, December, 1967 or 9 (I think).  iMovie defaulted today's date in both of these situations.  I took your advice and ot A Better Finder Attribute and easily converted all of the files using the option to copy the "modified date" into the "created date" attribute.  Now everything imports correctly into iMovie.

  • What is diff b/w order series and time seriesu2026

    what is diff b/w order series and time seriesu2026

    Hi S R,
    Order series is the concept used in SNP whereas time series is concept used in DP.
    ie In SNP, orders are stored in livecache as Order series whereas in DP, the historical data is stored with respect to time, ie time series in DP.
    Regards
    Senthil mareeswaran.

  • How can I get rid of the dates and time on my Notes

    How do I get rid of the dates and times on my Notes that appeared when I updated to 8?

    Yes, it's seems like a poor design decision.
    By putting the date on the line below the Note title in the Notes Index, the app shows half the number of notes per page AND if you have a large number of notes, it takes twice as long to stroll down.
    I doubt the designer actually uses the app. 
    TSAW

  • How do I delete duplicate songs? (date and time stamp are identical

    I put my cd collection in itunes and now have duplicates of most songs (don't know how I did that). The duplicates have the exact same date and time, so the method to delete a "newer" duplicate will not work. Is there a simple way to delete exact duplicates from the itune library?

    This application can help.  It's US$15.  http://dougscripts.com/apps/dupinapp.php

  • Wifi problems ipad 3rd and Time capsule 4th generation since iOS 8 upgrade

    Does anyone have the same issue?... I have wifi problems betwen ipad 3rd generation and Time capsule 4th generation since iOS 8 upgrade. Solution: I must switch on/off airplane mode in order to start using Wifi...
    I have the latest updates for all equipment and I don't have similar problems with my iphone, macbook or mini-ipad.

    It works ... removing and reestablish the wifi connection works. Thanks ...

Maybe you are looking for

  • Xorg 1.10.1 no longer affected by manual DPI setting

    I use my 23 inch 1920x1080 monitor as TV also. As this means I sit rather far from it, I manually set DPI quite low to enlarge windows and fonts by default. However after the last upgrade, which brought Xorg 1.10 and Gnome 3, Xorg seems to no longer

  • How do I find and locate duplicate files?

    What is the process to find and remove duplicate files. The tab is grayed out.   I am using version 13 and have over 1000 files and many of them are duplicates

  • Adding a custom field in standard search criteria in SAP SRM SLM

    Hi Friends, Currently we are using SAP SRM with SLM system . In SLM system we have a functionality to replicate the supplier to other system ( like ECC SUS etc). As per the requirement we have done some enhancement and now we need to enhance the stan

  • Tried to do factory restore on 3G Ipod, now get a file folder with a ?

    I tried to do a factory restore on my 3G ipod for windows, during it, i got an error, and now the ipod just shows a folder with a question mark on it, and itunes won't recognize it - any suggestions on what to do?

  • SQL LOADER export ? And Help

    1) The SQLLoader can export table to text file? 2) have any oracle tool to export table to text file? (Table include the BLOB field this field is store the image) Thx very much.