Db2

Db2

Connect with Db2, Informix, Netezza, open source, and other data experts to gain value from your data, share insights, and solve problems.

 View Only
Expand all | Collapse all

Can't issue db2start on Db2 for Windows v12.1 new install

  • 1.  Can't issue db2start on Db2 for Windows v12.1 new install

    Posted Fri January 31, 2025 02:14 PM

    I'm baffled.

    I've just deployed a new Windows 11 workstation to serve as an internal sandbox for Db2 and related software. Db2 Advanced Edition v12 installed without a hitch. I successfully applied the license key. When I issue the db2start command in the Db2 CLP run as Administrator I receive:

    SQL1390C "The environment variable DB2INSTANCE is not defined or is invalid."

    Windows User Environment Variables have been set: DB2INSTDEF=DB2 and DB2INSTANCE=DB2.

    The user that performed the install has been added to Windows Groups DB2ADMNS and DB2USERS as well as Administrator.

    When I issue db2level command I receive:

    SQL1022C  "There is not enough memory available to process the command."

    I monitored memory and less than 5% is in use.

    This is v12.1 GA code. I checked, but there are no Fixpacks yet for AE.

    I haven't installed a net-new Db2 version on Windows since Db2 Universal Database (UDB) v8, so I guess I'm missing something simple and obvious. TIA for pointing out what that is to me.

    Cheers,

    Frank



    ------------------------------
    Frank Fillmore
    Founder and Principal
    The Fillmore Group
    Baltimore MD
    410-465-6335
    ------------------------------


  • 2.  RE: Can't issue db2start on Db2 for Windows v12.1 new install

    Posted Fri January 31, 2025 02:52 PM

    Hi, 

    maybe there is and issue with instance and/or database configuration

    please post the output of 
    db2 get dbm cfg
    and
    db2 get db cfg for  <database name>

    Cheers,

    Malek,



    ------------------------------
    malek shabou
    ------------------------------



  • 3.  RE: Can't issue db2start on Db2 for Windows v12.1 new install

    Posted Sat February 01, 2025 03:24 PM

    Malek,

    Thank you for replying to my question. When I issue the db2 get commands I receive:

    DB21018E "A system error occurred."

    Regards,

    Frank



    ------------------------------
    Frank Fillmore
    Founder and Principal
    The Fillmore Group
    Baltimore MD
    410-465-6335
    ------------------------------



  • 4.  RE: Can't issue db2start on Db2 for Windows v12.1 new install

    Posted Sat February 01, 2025 01:27 PM

    Did you set environment variables for user or for all users (system)?



    ------------------------------
    Jan Nelken
    +48 783 109 863
    ------------------------------



  • 5.  RE: Can't issue db2start on Db2 for Windows v12.1 new install

    Posted Sat February 01, 2025 03:26 PM

    Jan,

    Thank you for responding. I had originally set these as User Environment Variables, but changed them to System EVs and rebooted. No change.

    Regards,

    Frank



    ------------------------------
    Frank Fillmore
    Founder and Principal
    The Fillmore Group
    Baltimore MD
    410-465-6335
    ------------------------------



  • 6.  RE: Can't issue db2start on Db2 for Windows v12.1 new install

    Posted Sat February 01, 2025 03:53 PM
    I am suspecting some environment issues - I did install and use V12.1 on Windows 11 without a problem.
    Would you happen to have an installation log?

    Can you describe the installation steps you took in detail?

    You could take a Db2 trace of the db2 get dbm cfg command? 

    db2trc on -f db2trc.dmp <reproduce the error> db2trc off db2trc flw db2trc.dmp db2trc.flw db2trc fmt db2trc.dmp db2trc.fmt

    Zip the .fmt and .flw files and make them available to me :-)





  • 7.  RE: Can't issue db2start on Db2 for Windows v12.1 new install

    Posted Sat February 01, 2025 03:57 PM

    PS>

    Sorry for bad formatting - it should read:

    db2trc on -f db2trc.dmp
    <reproduce the error>
    db2trc off
    db2trc flw db2trc.dmp db2trc.flw
    db2trc fmt db2trc.dmp db2trc.fmt



    ------------------------------
    Jan Nelken
    +48 783 109 863
    ------------------------------



  • 8.  RE: Can't issue db2start on Db2 for Windows v12.1 new install

    Posted Tue February 04, 2025 10:40 AM

    Jan,

    I performed an uninstall (db2unins) and reinstalled. The second try worked without issue.

    Regards,

    Frank



    ------------------------------
    Frank Fillmore
    Founder and Principal
    The Fillmore Group
    Baltimore MD
    410-465-6335
    ------------------------------



  • 9.  RE: Can't issue db2start on Db2 for Windows v12.1 new install

    Posted Mon February 03, 2025 03:58 AM

    Hi Frank,

    a CSB for 12.1 GA SB 52131 was published 2024-12-28 - maybe this CSB could help.

    Db2 v12.1.0 Published Cumulative Special Build Downloads

    Regards,
    Gerhard



    ------------------------------
    Gerhard Paulus
    Senior Consultant
    mip GmbH
    München
    ------------------------------



  • 10.  RE: Can't issue db2start on Db2 for Windows v12.1 new install

    Posted Tue February 04, 2025 10:43 AM

    Gerhard,

    I downloaded that CSB, but it conflicted with the base Db2 packaging I had originally installed (Advanced Edition). When attempting to apply the CSB I received a warning that functionality might be compromised, so I did not apply it.

    Regards,

    Frank



    ------------------------------
    Frank Fillmore
    Founder and Principal
    The Fillmore Group
    Baltimore MD
    410-465-6335
    ------------------------------



  • 11.  RE: Can't issue db2start on Db2 for Windows v12.1 new install

    Posted Mon February 03, 2025 09:35 AM
    Edited by Samuel Pizarro Mon February 03, 2025 09:38 AM

    I have several challenges with DB2, on recent windows,  that runs with MS-Azure IDs (Microsoft ID Online Accounts),  instead of local users. 

    Db2 refuses to recognize those IDS, from the operating system,  and hence , they have no privileges..  

    So , My personal ID, which is a windows Admin, is USELESS to run any db2 command.   This needs to be reviewed by IBM urgently..     

    What I have to do, is during install, always create an local user during the installation,  like db2admin ..     which will be the equivalent of "instance owner".  

    And let wizard to configure the instance to run as this local ID.  

    After install,  create a shortcut   in your desktop to open db2 command windows,  but using that local id instead.  using runAS.  

    C:\Windows\System32\runas.exe /profile /user:db2admin "C:\Program Files\IBM\SQLLIB\BIN\db2cwadmin.bat"

    When you click on it,  you will be prompted to provide the runas user password..  

    Stuff should work there. 



    ------------------------------
    Samuel Pizarro
    ------------------------------



  • 12.  RE: Can't issue db2start on Db2 for Windows v12.1 new install

    Posted Tue February 04, 2025 10:53 AM

    Samuel,

    I created a local account as well. Since this Db2 implementation is on-prem and non-prod, it is not an issue. But I can imagine on MS Azure and Google Cloud Platform this could present administrative and security risks.

    I'm not sure whether you should submit an Idea or an IBM Support ticket to address this.

    Obrigado,

    Frank



    ------------------------------
    Frank Fillmore
    Founder and Principal
    The Fillmore Group
    Baltimore MD
    410-465-6335
    ------------------------------



  • 13.  RE: Can't issue db2start on Db2 for Windows v12.1 new install

    Posted Tue February 04, 2025 12:31 PM

    I have no way to open an official IBM Support case.  I am no longer an IBMer (used to be a DB2 support on old GTS). 

    Idea for something that should work does not seems right.  IT's definitely a bug that should be properly investigated and fixed by ibm.  unfortunatelly there isn't much windows users out there..  so..  



    ------------------------------
    Samuel Pizarro
    ------------------------------