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#
  4. Need to Resolve the Error In Window Scheduler

Need to Resolve the Error In Window Scheduler

Scheduled Pinned Locked Moved C#
csharporaclehelp
7 Posts 6 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.
  • S Offline
    S Offline
    Swaranjeet Singh
    wrote on last edited by
    #1

    Dear friends, I have a window scheduler which pionts an exe. This schduler failes while starting automatically where as if i run maunally, it is executed successfully. Front End: DotNet 2.0 Back end: Oracle 9i The error message which i get is OCIEnvCreate failed with return code -1 I'm cluless. Thanks & regards SWARAN

    L L R P 4 Replies Last reply
    0
    • S Swaranjeet Singh

      Dear friends, I have a window scheduler which pionts an exe. This schduler failes while starting automatically where as if i run maunally, it is executed successfully. Front End: DotNet 2.0 Back end: Oracle 9i The error message which i get is OCIEnvCreate failed with return code -1 I'm cluless. Thanks & regards SWARAN

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Swaranjeet Singh wrote:

      OCIEnvCreate failed with return code -1
      I'm cluless.

      The first thing to do is to find the documentation for this function and see if you can determine what a status of -1 indicates. If it follows the usual patterns then there should be some more data somewhere that will give you a more specific reason.

      I must get a clever new signature for 2011.

      S 1 Reply Last reply
      0
      • L Lost User

        Swaranjeet Singh wrote:

        OCIEnvCreate failed with return code -1
        I'm cluless.

        The first thing to do is to find the documentation for this function and see if you can determine what a status of -1 indicates. If it follows the usual patterns then there should be some more data somewhere that will give you a more specific reason.

        I must get a clever new signature for 2011.

        S Offline
        S Offline
        Swaranjeet Singh
        wrote on last edited by
        #3

        thanks for your response. The error which i got is OCIEnvCreate failed with return code -1 but error message text was not available. This error captured at the time of establishing connection to the database.

        1 Reply Last reply
        0
        • S Swaranjeet Singh

          Dear friends, I have a window scheduler which pionts an exe. This schduler failes while starting automatically where as if i run maunally, it is executed successfully. Front End: DotNet 2.0 Back end: Oracle 9i The error message which i get is OCIEnvCreate failed with return code -1 I'm cluless. Thanks & regards SWARAN

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          Did you ask Google? Here[^] is the first hit, I suggest you read it. :)

          Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

          Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

          1 Reply Last reply
          0
          • S Swaranjeet Singh

            Dear friends, I have a window scheduler which pionts an exe. This schduler failes while starting automatically where as if i run maunally, it is executed successfully. Front End: DotNet 2.0 Back end: Oracle 9i The error message which i get is OCIEnvCreate failed with return code -1 I'm cluless. Thanks & regards SWARAN

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

            Assuming both are running on the same machine, it sounds like a possible permissions issue. Does the account the Scheduler task is using have permissions set in the Oracle client config?

            "You get that on the big jobs."

            1 Reply Last reply
            0
            • S Swaranjeet Singh

              Dear friends, I have a window scheduler which pionts an exe. This schduler failes while starting automatically where as if i run maunally, it is executed successfully. Front End: DotNet 2.0 Back end: Oracle 9i The error message which i get is OCIEnvCreate failed with return code -1 I'm cluless. Thanks & regards SWARAN

              P Offline
              P Offline
              Pete OHanlon
              wrote on last edited by
              #6

              It's probably a permissions issue as your windows service will be running under its own identity as opposed to your user identity. To resolve this, take a look at these threads 1[^] and 2[^].

              I'm not a stalker, I just know things. Oh by the way, you're out of milk.

              Forgive your enemies - it messes with their heads

              My blog | My articles | MoXAML PowerToys | Onyx

              K 1 Reply Last reply
              0
              • P Pete OHanlon

                It's probably a permissions issue as your windows service will be running under its own identity as opposed to your user identity. To resolve this, take a look at these threads 1[^] and 2[^].

                I'm not a stalker, I just know things. Oh by the way, you're out of milk.

                Forgive your enemies - it messes with their heads

                My blog | My articles | MoXAML PowerToys | Onyx

                K Offline
                K Offline
                ksss_maheshece
                wrote on last edited by
                #7

                I'm also facing the same issue.I tried the ways you suggested. I'm not getting this error regularly.its fluctuating.

                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