CLI Application: Still "The database directory cannot be found" - why?

Ask a Question related to IBM DB2, Design and Development.

  1. #1

    Default CLI Application: Still "The database directory cannot be found" - why?

    Hello everybody

    I used SQLConnect() in my linux cli application to connect to a
    datasource. But I get this Error

    SQL1031N The database directory cannot be found on the indicated file
    system. SQLSTATE=58031

    I did a research on the net but didn't find anything that would help
    me. I already recataloged the database. I ensured that the file
    sqldbdir is readable to everyone. Other Applications connect to this
    DB an use it without any problems. I run my cli app locally on the
    server.

    But SQLDataSources() is able to lists all Databases.

    My cli code is called out of a java stored procedure.

    Maybe someone can see what I missed?
    Thank you very much.
    Almund Sebi Guest

  2. Similar Questions and Discussions

    1. "Not Found in User Directory"
      We've been having this problem off and on all day: In my User list under Admin page on Contribute, half of the users have a red slash across...
    2. "NO TABLES FOUND" error despite database connection
      Hello all, I'm using XP sp2, updated Dreamweaver MX 2004, a simple MS Access database, using a remote testing server via OLE DB connection...
    3. "User cannot change pwd" and "Pwd never expire" by using Directory
      I create a account by using the DirectorySerive and it is running: --------------------------------------------------------- Dim ContainerEntry As...
    4. Newb Questions #2: Environment Variables for CLI? (I get "command not found" errors )
      Hello Caught Napping wrote: That's probably because the command is called "rm". If you want to use "remove", you have to define an alias....
    5. Directory.Exists(Application["AppPath"])
      Hello, I want to check if an directory exist. Directory.Exists(Application + "/Uploads/") I'm doing this inside a asp.net web project in a...
  3. #2

    Default Re: CLI Application: Still "The database directory cannot be found" - why?

    When I execute the very same methods using a simple java program, it
    works correctly.
    It fails to find the database directory only if the code is used by a
    stored procedure.

    Any help is appreciated.
    Almund Sebi Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139