Author Topic: arsdb: Unable to initialize environment  (Read 4960 times)

ibmarthin

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
arsdb: Unable to initialize environment
« on: February 29, 2016, 02:33:53 AM »
Though I have an open PMR, I try this channel too.

Has anyone seen this before?
I am having trouble with arsdb  -trsv when installing OnDemand 9.5.0 on a new zOS system.

ARS0013E DB Error: Warning:  Unexpected SQL_NO_DATA -- SQLSTATE=N/A, SQLCODE=100, File=arsmvsie.c, Line=1048
arsdb: ARS4012E Unable to initialize environment. The return code is 6 

Same result when using arsdb –u

I can’t find an explanation to “Return code is 6” from arsdb.
I know it reads the right cli.ini file, since it fails to connect to DB2 system xxx, when I omit the DSNAOINI


The JCL                                                                       
//Z6IMN00T JOB (I9302),'MARTHIN',CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID 
//**************************************************************       
//PROCESS   OUTPUT  DEFAULT=YES,CLASS=*,JESDS=ALL,OUTDISP=HOLD         
//STEP1    EXEC PGM=BPXBATCH,REGION=0M                                 
//SYSPRINT DD SYSOUT=*                                                 
//SYSOUT   DD SYSOUT=*                                                 
//STDERR   DD SYSOUT=*                                                 
//STDOUT   DD SYSOUT=*                                                 
//STDPARM  DD *                                                       
PGM /usr/lpp/ars/V9R5M0/bin/arsdb -trsv                               
    -I ARCHIVE -v -1 /u/z6imn/arsdb2.trc -2 ALL=15                     
//*                                                                   
//STDENV DD *                                                         
DSNAOINI=/usr/lpp/ars/config/cli.ini                                   
STEPLIB=DSNX.DSNB10.SDSNEXIT.B2:SYS1.TEST.SDSNLOAD.EXTRA2         
CLASSPATH=/usr/lpp/ars/V9R5M0/bin/xml/ODAdmin.jar:                     
          /usr/lpp/java/J1.4/lib/core.jar                             
LIBPATH=/usr/lpp/ars/V9R5M0/bin/xml:ÅLIBPATH                           
PATH=/usr/lpp/ars/config:/usr/lpp/ars/V9R5M0/bin:ÅPATH                 
/*         

ars.cfg:
ARS_NUM_LICENSE=5         
ARS_LANGUAGE=DAN           
ARS_CODEPAGE=277           
ARS_ORIGINAL_CODEPAGE=277 
ARS_NUM_DBSRVR=4           
ARS_TMP=ars/tmp           
ARS_PRINT_PATH=ars/tmp     
DB_ENGINE=DB2             
ARS_NUM_OAMSRVR=3         
ARS_OAM_DB2SSID=DB2A       
ARS_OAM_PLAN=CBRIDBS       

cli.ini - the clitrace.trc is empty
[COMMON]
MVSDEFAULTSSID=DB2A                     
[DB2A]                                 
PLANNAME=DSNACLI                       
APPLTRACEFILENAME=/tmp/clitrace.trc     
APPLTRACE=1                             
TRACETIMESTAMP=3                       
TRACEPIDTID=1   

Greg Ira

  • Full Member
  • ***
  • Posts: 240
    • View Profile
Re: arsdb: Unable to initialize environment
« Reply #1 on: February 29, 2016, 11:40:24 AM »
I guess the basic question first.  Did you create the Tablespaces first before running arsdb -trsv?

ibmarthin

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Re: arsdb: Unable to initialize environment
« Reply #2 on: March 01, 2016, 12:23:14 AM »
Hi Greg
Good question. But yes the create Tablespaces ran ok. 42 TS created.

Greg Ira

  • Full Member
  • ***
  • Posts: 240
    • View Profile
Re: arsdb: Unable to initialize environment
« Reply #3 on: March 01, 2016, 06:44:35 AM »
Interesting. Only reason I asked was one of our guys got a similar message when they forgot the TS step.  From the messages it does seem to be connecting to DB2 but can't find whatever it's looking for. Everything else looks right.  Hopefully the PMR finds the issue.

Ed_Arnold

  • Hero Member
  • *****
  • Posts: 1204
    • View Profile
Re: arsdb: Unable to initialize environment
« Reply #4 on: March 01, 2016, 11:36:30 AM »
Instead of PGM, could you try it as a shell script as per the example here:

http://www.odusergroup.org/forums/index.php?topic=1666.0

Ed

#zOS #ODF

ibmarthin

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Re: arsdb: Unable to initialize environment
« Reply #5 on: March 02, 2016, 12:04:52 AM »
Thanks for the input Greg and Ed.

ED: I tried this with same result:
//**************************************************************           
//PROCESS   OUTPUT  DEFAULT=YES,CLASS=*,JESDS=ALL,OUTDISP=HOLD             
//STEP1    EXEC PGM=BPXBATCH,REGION=0M                                     
//STDPARM DD *                                                             
SH                                                                         
export DSNAOINI=/usr/lpp/ars/config/cli.ini;                               
export STEPLIB=DSNX.DSNB10.SDSNEXIT.KMD.B2:SYS1.TEST.SDSNLOAD.EXTRA2;       
/usr/lpp/ars/V9R5M0/bin/arsdb  -trsv                                       
    -I ARCHIVE -v -1 /u/z6imn/arsdb3.trc -2 ALL=15;                         
/*                                                                         
//STDOUT   DD SYSOUT=*                                                     
//STDERR   DD SYSOUT=*   

The output in the arsdb3.trc is attached. I am suspicious about the ODBC connection, though it seems that it connects ok
                                                 

Ed_Arnold

  • Hero Member
  • *****
  • Posts: 1204
    • View Profile
Re: arsdb: Unable to initialize environment
« Reply #6 on: March 02, 2016, 07:35:39 AM »
Marthin - please try the ODBC IVP

http://www.odusergroup.org/forums/index.php?topic=614.0

It's something every CMOD administrator should have in their JCL library to run anytime there's major DB2 work.

Ed
#zOS #ODF

Ed_Arnold

  • Hero Member
  • *****
  • Posts: 1204
    • View Profile
Re: arsdb: Unable to initialize environment
« Reply #7 on: March 02, 2016, 09:37:54 AM »
Do your STEPLIB'ed datasets also include SDSNLOD2?

Ed
#zOS #ODF

ibmarthin

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Re: arsdb: Unable to initialize environment
« Reply #8 on: March 03, 2016, 02:18:32 AM »
Thanks for the input.
The solution was in the ars.ini where I misread the parameter SRVR_INSTANCE which should be name of Database and not ARCHIVE
After changing to SRVR_INSTANCE=ARSDBASE the arsdb -trsv executed ok.

Ed_Arnold

  • Hero Member
  • *****
  • Posts: 1204
    • View Profile
Re: arsdb: Unable to initialize environment
« Reply #9 on: March 07, 2016, 09:58:58 AM »
Thanks for posting the eventual solution...that helps out the rest of us.

Ed
#zOS #ODF