# Unable to connect to database on Natural for Windows

**URL:** <https://techcommunity.softwareag.com/t/unable-to-connect-to-database-on-natural-for-windows/196518>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Linux, Natural-on-Windows-Unix\
**Created:** [September 20, 2017, 7:15pm UTC](https://techcommunity.softwareag.com/t/unable-to-connect-to-database-on-natural-for-windows/196518 "2017-09-20T19:15:20Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ritu\_Mengi](https://avatars.discourse-cdn.com/v4/letter/r/74df32/32.png) [@Ritu\_Mengi](https://techcommunity.softwareag.com/u/Ritu_Mengi)\
**Post date:** [September 20, 2017, 7:15pm UTC](https://techcommunity.softwareag.com/t/unable-to-connect-to-database-on-natural-for-windows/196518/1 "2017-09-20T19:15:20Z")

</div>

I am getting the following error when I try running my program on Natural for Windows.

Database 1 is not active.

Please help

---

<div class="post-metadata">

**Author:** ![Ralph\_Zbrog](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ralph_zbrog/32/78_2.png) [@Ralph\_Zbrog](https://techcommunity.softwareag.com/u/Ralph_Zbrog)\
**Post date:** [September 20, 2017, 7:34pm UTC](https://techcommunity.softwareag.com/t/unable-to-connect-to-database-on-natural-for-windows/196518/2 "2017-09-20T19:34:57Z")

</div>

Did you create database 1? The Create Demo Database function defaults to DBID 12.

Did you start database 1? From the Start menu:  
Start → Software AG → Start Command Prompt → adabas dbid=1

---

<div class="post-metadata">

**Author:** ![Ritu\_Mengi](https://avatars.discourse-cdn.com/v4/letter/r/74df32/32.png) [@Ritu\_Mengi](https://techcommunity.softwareag.com/u/Ritu_Mengi)\
**Post date:** [September 20, 2017, 7:39pm UTC](https://techcommunity.softwareag.com/t/unable-to-connect-to-database-on-natural-for-windows/196518/3 "2017-09-20T19:39:25Z")

</div>

No I did not start database from the start menu. I don’t know how to

---

<div class="post-metadata">

**Author:** ![Ritu\_Mengi](https://avatars.discourse-cdn.com/v4/letter/r/74df32/32.png) [@Ritu\_Mengi](https://techcommunity.softwareag.com/u/Ritu_Mengi)\
**Post date:** [September 20, 2017, 7:54pm UTC](https://techcommunity.softwareag.com/t/unable-to-connect-to-database-on-natural-for-windows/196518/4 "2017-09-20T19:54:24Z")

</div>

I tried  
START → All Programs → Software AG Natural Community Edition → Administration → Adabas 6.4 → START command prompt  
I don’t know what to type next to C:\Natural-CE\Adabas\> in the command prompt.

---

<div class="post-metadata">

**Author:** ![Ralph\_Zbrog](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ralph_zbrog/32/78_2.png) [@Ralph\_Zbrog](https://techcommunity.softwareag.com/u/Ralph_Zbrog)\
**Post date:** [September 20, 2017, 7:58pm UTC](https://techcommunity.softwareag.com/t/unable-to-connect-to-database-on-natural-for-windows/196518/5 "2017-09-20T19:58:12Z")

</div>

If your database number is 1

```auto
adabas dbid=1
```

---

<div class="post-metadata">

**Author:** ![Ritu\_Mengi](https://avatars.discourse-cdn.com/v4/letter/r/74df32/32.png) [@Ritu\_Mengi](https://techcommunity.softwareag.com/u/Ritu_Mengi)\
**Post date:** [September 20, 2017, 7:59pm UTC](https://techcommunity.softwareag.com/t/unable-to-connect-to-database-on-natural-for-windows/196518/6 "2017-09-20T19:59:36Z")

</div>

It gives an error  
Cannot read INI data of database 1

---

<div class="post-metadata">

**Author:** ![Ralph\_Zbrog](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ralph_zbrog/32/78_2.png) [@Ralph\_Zbrog](https://techcommunity.softwareag.com/u/Ralph_Zbrog)\
**Post date:** [September 20, 2017, 8:14pm UTC](https://techcommunity.softwareag.com/t/unable-to-connect-to-database-on-natural-for-windows/196518/7 "2017-09-20T20:14:16Z")

</div>

This tells me that you haven’t created your database or that when you did, you specified a DBID other than 1 (the default demo DBID is 12).

Try changing your DDM to point to DBID 12 (the default). Then re-run your program.

If that doesn’t work, then create a demo database:

```auto
... --> Administration -> Adabas 6.4 --> Create Demo Database
```

You can specify a DBID of 1, if you like.

---

<div class="post-metadata">

**Author:** ![Ritu\_Mengi](https://avatars.discourse-cdn.com/v4/letter/r/74df32/32.png) [@Ritu\_Mengi](https://techcommunity.softwareag.com/u/Ritu_Mengi)\
**Post date:** [September 20, 2017, 10:31pm UTC](https://techcommunity.softwareag.com/t/unable-to-connect-to-database-on-natural-for-windows/196518/8 "2017-09-20T22:31:39Z")

</div>

How do I change DBID value?

---

<div class="post-metadata">

**Author:** ![Ralph\_Zbrog](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ralph_zbrog/32/78_2.png) [@Ralph\_Zbrog](https://techcommunity.softwareag.com/u/Ralph_Zbrog)\
**Post date:** [September 20, 2017, 11:06pm UTC](https://techcommunity.softwareag.com/t/unable-to-connect-to-database-on-natural-for-windows/196518/9 "2017-09-20T23:06:34Z")

</div>

1 In Natural Studio’s Library Workspace (usually on the left), select the Logical View tab at the bottom of the frame.  
2 Open the tree for System Library, then SYSEXDDM, then DDMs.  
3 Right-click the DDM of your choice, then click Copy. I’ll use EMPLOYEES.  
4 Right-click your development library (Local Environment → User Libraries → Your-lib), then click Paste.  
5 Open the library tree, then open the DDMs node.  
6 Double-click the EMPLOYEES object to invoke the DDM editor. A warning will be displayed that database 1 is not active. Click OK to display the DDM.  
7 On the menu bar, click DDM, then DDM Header.  
8 In the pop-up window, change the Database ID to 12. (The selection box lets you scroll through the list of available databases.) Then press OK.  
9 If database 12 is not active, a warning message is displayed; press OK.  
10 Close the DDM editor. When prompted to save changes, press YES.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:39pm UTC](https://techcommunity.softwareag.com/t/unable-to-connect-to-database-on-natural-for-windows/196518/10 "2021-04-02T15:39:20Z")

</div>


