Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. System time sync with Oracle Server

System time sync with Oracle Server

Scheduled Pinned Locked Moved C / C++ / MFC
oraclesysadminhelpquestion
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    megha_gharote
    wrote on last edited by
    #1

    Dear Friends, I m working on an aplication which is using Oracle as a backend. I need to sync the time between Oracle server and my machine using some oracle defined function. Actualy i m not very familiar with how Oracle supports for this time sync. Can anybody help me out with this? Thanks in Advance.. If u need any more input to answer please let me know Megha

    J R 2 Replies Last reply
    0
    • M megha_gharote

      Dear Friends, I m working on an aplication which is using Oracle as a backend. I need to sync the time between Oracle server and my machine using some oracle defined function. Actualy i m not very familiar with how Oracle supports for this time sync. Can anybody help me out with this? Thanks in Advance.. If u need any more input to answer please let me know Megha

      J Offline
      J Offline
      James R Twine
      wrote on last edited by
      #2

      I dunno about any built-in functions for Oracle (or any other DBMS for that matter), but if you cannot get the systems to sync to each other in the usual ways, your application can execute some SQL that returns the date/time on the server and you can sync the local PC's time to it.    Not perfect, kludgly as hell, but when in a pinch...    Peace!

      -=- James
      Please rate this message - let me know if I helped or not! * * * If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
      Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
      See DeleteFXPFiles

      M 1 Reply Last reply
      0
      • J James R Twine

        I dunno about any built-in functions for Oracle (or any other DBMS for that matter), but if you cannot get the systems to sync to each other in the usual ways, your application can execute some SQL that returns the date/time on the server and you can sync the local PC's time to it.    Not perfect, kludgly as hell, but when in a pinch...    Peace!

        -=- James
        Please rate this message - let me know if I helped or not! * * * If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
        Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
        See DeleteFXPFiles

        M Offline
        M Offline
        megha_gharote
        wrote on last edited by
        #3

        Thank you so much James. Could u plz tell me how can we set system time?

        R 1 Reply Last reply
        0
        • M megha_gharote

          Thank you so much James. Could u plz tell me how can we set system time?

          R Offline
          R Offline
          Rajesh R Subramanian
          wrote on last edited by
          #4

          megha_gharote wrote:

          set system time

          SetSystemTime()[^] BTW, why don't you do a little Google search before asking a question? Just a suggestion. :)

          A 'C++' question asked in the Visual C++ forum: Title: please stomuch me if i have string s[7]; s[1]="hello" ... s[7]="how are you" can i trace s[1] by loop and select specified item as example i, want to select e from s[1]="hello"..... the question is : this process possible or impossible!? I hope help me.......thanks - sofia_111

          1 Reply Last reply
          0
          • M megha_gharote

            Dear Friends, I m working on an aplication which is using Oracle as a backend. I need to sync the time between Oracle server and my machine using some oracle defined function. Actualy i m not very familiar with how Oracle supports for this time sync. Can anybody help me out with this? Thanks in Advance.. If u need any more input to answer please let me know Megha

            R Offline
            R Offline
            rvicta
            wrote on last edited by
            #5

            You can get the SYSDATE from the Oracle server and that will give you the date and time. Set your local PC time according to the time returned from the query.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups