[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference orarep::nomahs::rdb_60

Title:Oracle Rdb - Still a strategic database for DEC on Alpha AXP!
Notice:RDB_60 is archived, please use RDB_70..
Moderator:NOVA::SMITHISON
Created:Fri Mar 18 1994
Last Modified:Fri May 30 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:5118
Total number of notes:28246

5049.0. "-DBI-E-ATTLNKERR,COSI-F-NOTNETDEV" by ORAREP::ZGOV02::YNTAN () Thu Feb 20 1997 01:19

    
    HI,
    
      Can some RDB experts explain how to resolve the following problem:
    
    rror returned from service GET_NEXT_DIRTY_BUN_SVC - %RDB-F-SYS_REQUEST,
    error from system services request<CR>
    -DBI-E-ATTLNKERR, Error attaching database, Link name='MAXCIM_DB_LINK',
    Connect string='/TYPE=NSDS/PATHNAME=norm_src:NORM_MAXCIM_GW.CDO' <CR>
    -RDB-I-TEXT, -RDB-F-IO_ERROR, input or output error<CR>
    -RDB-I-TEXT, -COSI-F-NOTNETDEV, not a network communication device
    Sending error to event server
    %SYSTEM-F-ACCVIO, access violation, reason mask=01, virtual
    address=202C524F, PC=80000010, PSL=03C00004
      Improperly handled condition, image exit forced.
            Signal arguments              Stack contents
    etc,
    
     The problem happens quite frequently after I upgrade RDB 6.0 to RDB
    6.1.
     Some info I have in the log file:
    
      Current PROCESS DEC Rdb environment is version V6.1-04 (STANDARD)
    Current PROCESS SQL environment is version V6.1-04 (STANDARD)
    Current PROCESS Rdb/Dispatch environment is version V6.1-04 (STANDARD)
    $ define NSDS$DEFAULT_DICTIONARY_DRIVER SYS$SHARE:NSDS$MDI_CDO_READER_SHR.EXE
    
      NOTE The CDD used is version 5.3.
    
      After restarting some SQL servers thru' batch 
     (part of the application), the sql
     statements are processed without failed until the "Failed to open
    cursor" occurs and the -DBI-E-ATTLNKERR etc appears.
    The SQL statement can be issue interactively without any problem.
    
    Some examples of the sql issued:
    SET TRANSACTION READ ONLY
    SELECT BUN FROM NEXT_DIRTY_ORDER_VIEW  LEFT OUTER JOIN ZZMHS ON BUN =
    BUN_NUMBER WHERE BUN_NUMBER IS NULL AND ASSMBLY_LINE_ID = '001';
    Failed to open cursor
    
    
    
    
    
    Rgds,
    Yan Noi
    
      
    
T.RTitleUserPersonal
Name
DateLines
5049.1also happen at second attach in SQLORAREP::ZGOV02::YNTANThu Feb 20 1997 04:29100
    
    
    Hi,
    
      I discover that the error -DBI-E-ATTLNKERR also occurs at interactive
    
     SQL only at the second attach in the same sql session i.e. the select
     
     statement immediately follows the second attach. NOTE the select
    statement after the first attach is alright.
    
    
     Please refer to log below:
attach 'filename norm_dbi';
show version
Current version of SQL is: DEC SQL V6.1-04
Underlying versions are: 
    Database with filename norm_dbi
	DBI V3.1-00
	Rdb/Dispatch V6.1-04 (OpenVMS VAX)
show link
User links in database with filename norm_dbi
Link MAXCIM_DB_LINK
     Connection information: /TYPE=NSDS/PATHNAME=norm_src:NORM_MAXCIM_GW.CDO
     To database type: DB Access for RMS (NSDS)       
     State: Inactive
 
Link NORM_DB_LINK
     Connection information: norm_db
     To database type: DEC Rdb                        
     State: Inactive
 
Link REVCON_DB_LINK
     Connection information: /type=nsds/path=norm_src:NORM_REVCON_GW.CDO
     To database type: DB Access for RMS (NSDS)       
     State: Inactive
 
Link SAI_DB_LINK
     Connection information: sai_db
     To database type: DEC Rdb                        
     State: Inactive
 
Link SERIAL_TAG_DB_LINK
     Connection information: /type=nsds/path=norm_src:SERIAL_TAG_GW.CDO
     To database type: DB Access for RMS (NSDS)       
     State: Inactive
 
@norm_log:tmp.sql
SELECT BUN FROM NEXT_DIRTY_ORDER_VIEW  LEFT OUTER JOIN ZZMHS ON BUN = BUN_NUMBER WHERE BUN_NUMBER IS NULL AND ASSMBLY_LINE_ID = '001' ORDER BY BUN_PRRTY_ID DESC, SCHDLD_RLES_DT ASC, ORDER_TYPE_PRRTY_ID ASC,CPU_TYPE_PRRTY_ID ASC LIMIT TO 1 ROW
;
 NEXT_DIRTY_ORDER_VIEW.BUN   
 F00056                      
1 row selected
finish;
%SQL-I-DEPR_FEATURE, Deprecated Feature: FINISH is replaced by DISCONNECT
attach 'filename norm_dbi';  -- second attach
@norm_log:tmp.sql
SELECT BUN FROM NEXT_DIRTY_ORDER_VIEW  LEFT OUTER JOIN ZZMHS ON BUN = BUN_NUMBER WHERE BUN_NUMBER IS NULL AND ASSMBLY_LINE_ID = '001' ORDER BY BUN_PRRTY_ID DESC, SCHDLD_RLES_DT ASC, ORDER_TYPE_PRRTY_ID ASC,CPU_TYPE_PRRTY_ID ASC LIMIT TO 1 ROW
;
%RDB-F-SYS_REQUEST, error from system services request
-DBI-E-ATTLNKERR, Error attaching database, Link name='MAXCIM_DB_LINK', Connect string='/TYPE=NSDS/PATHNAME=norm_src:NORM_MAXCIM_GW.CDO'
-RDB-I-TEXT, -RDB-F-IO_ERROR, input or output error
-RDB-I-TEXT, -COSI-F-NOTNETDEV, not a network communication device
exit
    
    2. The error does not occur if you issue a simple select statement and
    then issue the complex select statement.
    
attach 'filename norm_dbi';
 @norm_log:tmp.sql;
SELECT BUN FROM NEXT_DIRTY_ORDER_VIEW  LEFT OUTER JOIN ZZMHS ON BUN = BUN_NUMBER WHERE BUN_NUMBER IS NULL AND ASSMBLY_LINE_ID = '001' ORDER BY BUN_PRRTY_ID DESC, SCHDLD_RLES_DT ASC, ORDER_TYPE_PRRTY_ID ASC,CPU_TYPE_PRRTY_ID ASC LIMIT TO 1 ROW

;
 NEXT_DIRTY_ORDER_VIEW.BUN   
 F00044                      
1 row selected
finish;
%SQL-I-DEPR_FEATURE, Deprecated Feature: FINISH is replaced by DISCONNECT
attach 'filename norm_dbi';
select * from zzmhs;  ======> this is the simple select statement
0 rows selected
@norm_log:tmp.sql;
SELECT BUN FROM NEXT_DIRTY_ORDER_VIEW  LEFT OUTER JOIN ZZMHS ON BUN = BUN_NUMBER WHERE BUN_NUMBER IS NULL AND ASSMBLY_LINE_ID = '001' ORDER BY BUN_PRRTY_ID DESC, SCHDLD_RLES_DT ASC, ORDER_TYPE_PRRTY_ID ASC,CPU_TYPE_PRRTY_ID ASC LIMIT TO 1 ROW
;
 NEXT_DIRTY_ORDER_VIEW.BUN   
 F00044                      
1 row selected
finish;
%SQL-I-DEPR_FEATURE, Deprecated Feature: FINISH is replaced by DISCONNECT
attach 'filename norm_dbi';
@norm_log:tmp.sql;
SELECT BUN FROM NEXT_DIRTY_ORDER_VIEW  LEFT OUTER JOIN ZZMHS ON BUN = BUN_NUMBER WHERE BUN_NUMBER IS NULL AND ASSMBLY_LINE_ID = '001' ORDER BY BUN_PRRTY_ID DESC, SCHDLD_RLES_DT ASC, ORDER_TYPE_PRRTY_ID ASC,CPU_TYPE_PRRTY_ID ASC LIMIT TO 1 ROW
;
%RDB-F-SYS_REQUEST, error from system services request
-DBI-E-ATTLNKERR, Error attaching database, Link name='MAXCIM_DB_LINK', Connect string='/TYPE=NSDS/PATHNAME=norm_src:NORM_MAXCIM_GW.CDO'
-RDB-I-TEXT, -RDB-F-IO_ERROR, input or output error
-RDB-I-TEXT, -COSI-F-NOTNETDEV, not a network communication device
exit
    
    
5049.2How was the catalog upgraded?BROKE::BASTINEThu Feb 20 1997 09:5210
After you did the upgrade, how did you upgrade the DBI catalog from 6.0 to 6.1
of RDB?

Did you run it through the rmu/convert, or did you create the catalog again
using RDB V6.1?


Renee      
    

5049.3using rmu/convertORAREP::ZGOV02::YNTANThu Feb 20 1997 21:366
    Hi,
      I upgrade the DBI catalog using rmu/convert
    
    Rgds,
    Yan Noi
    
5049.4define DBI_DSRI_UNDER "F"ORAREP::ZGOV02::YNTANThu Feb 20 1997 22:3321
    Hi,
    
      The same result appear whether you rmu/convert or create the catalog
      again. Later I managed to resolve the interactive sql problem by
    
      $define dbi_dsri_under "F"
    
    
      From the STARS database, this will switch off the asynchronous
    feature in DBI and that V5.1 RDB/Dispatch does not support the asynch
     calls that 6.1 support. However for my environment the RDB dispatch
    is version 6.1. So my question is why does it happen in this case ?
    
    Rgds,
    Yan Noi
    
    
     
    
     
      
5049.5Multi-version and more than one dispatch on your system?BROKE::BASTINEFri Feb 21 1997 09:4829
>      From the STARS database, this will switch off the asynchronous
>    feature in DBI and that V5.1 RDB/Dispatch does not support the asynch
>     calls that 6.1 support. However for my environment the RDB dispatch
>    is version 6.1. So my question is why does it happen in this case ?
    
Sounds like you have more than one version of Dispatch on your system and
the wrong one is being used when accessing this table.  Check the links
to these tables to be sure that the link string issues a login that sets
the appropriate Rdb environment up for the attach.

For instance:

If you have multiversion installed on your system and the link still points
to a 6.0 database, then the link from the Rdb 6.1 DBI catalog should look
like this:

dbs400::sys$common:[sqluser60]personnel/REMOTE

You need to force a remote login, so that the new process created will use
the "standard" version of RDB when accessing the data, or use a username
and password so that that user's login is run which would set the appropriate
version of the Rdb with a @sys$library:decrdb$setver 6.0 command.

Renee    
     
    
     
      

5049.6Only single std RDB versionORAREP::ZGOV02::YNTANSun Feb 23 1997 19:3513
    Hi,
      I only installed std single version of the rdb. 
      The link is simply 
         Connection information:
    /TYPE=NSDS/PATHNAME=norm_src:NORM_MAXCIM_GW.CDO
         To database type: DB Access for RMS (NSDS)
         State: Inactive.
    
    Please advise what's wrong here and what sql commands should I issue
      to find out more about the link.
    
    Rgds,
    Yan Noi
5049.7BROKE::BASTINEMon Feb 24 1997 08:5814
Did you double check to be sure you only had one version of 
RDB$SHARE.EXE in SYS$LIBRARY?  Do you have some other versions like:

RDB$SHARE60.EXE

You may have said already, and I don't remember, what version of NSDS are
you running?  You can get the version by using the following command:

anal/image/interactive sys$library:nsds$shr.exe

Hit return 4 times, and the version will be on that screen.

Thanks,
Renee
5049.8one version rdb$shareORAREP::ZGOV02::YNTANMon Feb 24 1997 21:233
    Hi,
      I only have one version of rdb$share.exe
      The nsds$shr versionis NSDS V3.0D-0
5049.9More infor... question for Dispatch folks.BROKE::BASTINETue Feb 25 1997 10:5415
We can try and reproduce this for you here, but we would need a few things:

1. We would need your view definition and the table definitions.
2. We need the link definitions and the relationships from the tables to the
   links... etc.
3. Are you using DECnet or TCP/IP.

You can send me mail directly at [email protected] to take this off-line.
We can post results when we have a solution.

In the meantime, are there any DISPATCH experts out there that recognize this
problem, or what it might mean?

Thanks
Renee