IBM i Access Client Solutions

 View Only
Expand all | Collapse all

Problem Accessing Schemas

  • 1.  Problem Accessing Schemas

    Posted Fri March 08, 2024 10:44 PM

    I have ACS installed and everything works well except for Schemas.  When I click on Schemas, I get this error

    Our system admin said it appears to be a problem with the naming of the system. The name in the DNS server isn't exactly the same as the name in the i .

    Has anyone had this problem and found a way around it?



    ------------------------------
    MaryAnn Martin
    ------------------------------


  • 2.  RE: Problem Accessing Schemas

    Posted Mon March 11, 2024 03:26 AM

    Hi,

    I don't think it's related to DNS, here we have several partitions with different DNS entry, or none.

    When you launch "Run SQL Scripts", then "Connect to Database" in Connection menu, what is displayed (you may have to refresh databases list)?



    ------------------------------
    Sylvain Manceau
    ------------------------------



  • 3.  RE: Problem Accessing Schemas

    Posted Mon March 11, 2024 08:12 AM

    It shows connected to the system in the Run SQL Scripts window.  If I run a script, it works.  If I try to use Content Assist to display a list of columns/fields, all I get is this



    ------------------------------
    MaryAnn Martin
    ------------------------------



  • 4.  RE: Problem Accessing Schemas

    IBM Champion
    Posted Wed March 13, 2024 07:21 AM

    Are you working with SQL or System Naming Conventions?

    Sometime it has problems to find the tables, views and columns when using System Naming Conventions.

    What happens if you qualify your database objects with the schema and the use Content Assist?



    ------------------------------
    Birgitta Hauser
    Database and Software Engineer
    Selfemployed - Modernization-Education-Consulting on IBM i
    Kaufering
    +49 170 5269964
    ------------------------------



  • 5.  RE: Problem Accessing Schemas

    Posted Sat March 16, 2024 08:55 AM

    Prompting has a lot of possibilities so it is very sensitive to placement and activity.  For fields try a comma space then F4.  Sometimes entering the first character also helps.  The from table needs to be available before ACS can get fields from it.  The prompting gets updated with each release so it may change based on the release you are using.



    ------------------------------
    Mark Bolla
    Infrastructure Support/Application Developer - IBM i
    IBM
    OH
    ------------------------------



  • 6.  RE: Problem Accessing Schemas

    IBM Champion
    Posted Tue March 12, 2024 03:16 AM

    Hi MaryAnn, 

    Not sure why this CPF3EC0 - Add relational database directory entry failed. 

    You can "Generate Service Logs" and review the "EXCEPTION Begin Section:"  perhaps this can help you ...



    ------------------------------
    Fernando Plaza
    IBM i System Administrator
    CD INVEST
    MADRID
    ------------------------------



  • 7.  RE: Problem Accessing Schemas

    IBM Champion
    Posted Wed March 13, 2024 08:51 AM

    "Database" is NOT always the name of the system.  Check the entries in WRKRDBDIRE.  Generally you are looking for the one marked *LOCAL.  There are exceptions.  In a H/A environment you may have a primary system named PROD1 and a h/a system named PROD2.  And there may be a WRKRDBDIRE for each on each.  Then there will be another entry, in this example PROD.  Generally you're supposed to connect to PROD so that it works on either machine when they do a switch.  There are a few exceptions:  BRMS and sysadmins like me who really are trying to get to a specific machine.

    I didn't see a Navigator way to get to this.



    ------------------------------
    Robert Berendt IBMChampion
    ------------------------------



  • 8.  RE: Problem Accessing Schemas

    IBM Champion
    Posted Wed March 13, 2024 08:53 AM

    That message you received seems to indicate that you need to click the joblog icon in Run SQL Scripts and see why the attempt to add the database entry failed.  Perhaps it tried to do a ADDRDBDIRE and you do not have authority, or a *LOCAL exists or...



    ------------------------------
    Robert Berendt IBMChampion
    ------------------------------



  • 9.  RE: Problem Accessing Schemas

    Posted Wed March 20, 2024 01:59 PM

    Is the *LOCAL a problem.  I have authority to do the ADDRDBDIRE.



    ------------------------------
    MaryAnn Martin
    ------------------------------



  • 10.  RE: Problem Accessing Schemas

    IBM Champion
    Posted Wed March 20, 2024 02:10 PM

    Not generally.  I would find the joblog first.  Let's see exactly what it is concerned with.



    ------------------------------
    Robert Berendt IBMChampion
    ------------------------------



  • 11.  RE: Problem Accessing Schemas

    Posted Thu March 21, 2024 02:19 PM

    The system auto creates a DBRDIRE of  EBRD  *LOCAL if the base settings are removed.

    While that entry is in there, the Schemas function fails trying to create a new *LOCAL entry of SYSBAS *LOCAL.

    If I manually delete the EBRD *LOCAL RDBDIRE on the iSeries and then run the Schemas function in ACS quickly, it will create a DBRDIRE of SYSBAS *LOCAL and work properly to bring up the Schemas one time.     Any subsequent attempts to use the Schemas function off the ACS menu fails again as it's still trying to Replace the *local entry and failing because there already is one.  The dumped joblog just refers to the exception, Cannot create *local DBRDIRE  (because there already is one)

    We have this same issue on an older V7R2 system, an older V7R3 system and a brand new Power 10 running V7R4M0

    (And yes, I work with MaryAnn)



    ------------------------------
    Gary Martin
    ------------------------------



  • 12.  RE: Problem Accessing Schemas

    IBM Champion
    Posted Thu March 21, 2024 02:45 PM

    Ok.  I have an lpar named GDI.

    DSPNETA shows the system name as GDI.

    My Windows DNS server has an entry for GDI.

    In iACS, Management, System Configurations, this lpar appears as System name:  GDI.dekko.com

    In WRKRDBDIRE  I have GDI                 *LOCAL with

    Relational database  . . . . . . :   GDI   
    Remote location:                           
      Remote location  . . . . . . . :   *LOCAL
        Type . . . . . . . . . . . . :   *IP   
      Port number or service name  . :   *DRDA 

    That SYSBAS name you displayed is confusing.  This leads me to believe that maybe you are using iASPs and something in that configuration is bewildering iACS' Schemas.

    I believe each iASP should have it's own entry in WRKRDBDIRE but it should be assigned to LOOPBACK as per https://www.ibm.com/support/pages/accessing-objects-independent-asp-using-ddm-connections

    For more information check out the subtopics regarding this at https://www.ibm.com/docs/en/i/7.5?topic=directory-working-relational-database

    I am NOT a Power H/A user and do not pretend to know how to set all that up for such a scenario.  I use software replication (Quick-EDD) instead.  I also do not use any iASPs.



    ------------------------------
    Robert Berendt IBMChampion
    ------------------------------



  • 13.  RE: Problem Accessing Schemas

    Posted Thu March 21, 2024 03:04 PM

    We are not using an iASP.   Good old basic ASP, single partition machine here.

    Navigator for I is the one that wants to ADDDBRDIRE of SYSBAS.    

    If I clear the DBRDIRE on the iSeries and give it a minute, the one it puts in place is EBRD *LOCAL, which is our DSPNETA node name.

    That's the run, the Schemas button in ACS keeps wanting to replace the DBRDIRE with that SYSBAS thing.



    ------------------------------
    Gary Martin
    ------------------------------



  • 14.  RE: Problem Accessing Schemas

    IBM Champion
    Posted Thu March 21, 2024 04:01 PM

    You might be better off opening a case.  I suggest you use their website.  I've opened well over 300 cases.  They do not bite.  When you open a case via their website they have a file upload option.  I suggest you ensure you have the latest updates to GO QMGTOOLS/MG.  After you install it always take the option to check for the latest updates.  I don't care if you installed it yesterday and you are opening a case today - check for updates.

    https://www.ibm.com/support/pages/qmgtools-must-gather-data-collector-users-guide

    Failure to upload qmgtools data will significantly delay your resolution as they will starting asking you for a ptf listing, etc and a bunch of other stuff that the snapshot from qmgtools will gather.

    To open a case:  https://www.ibm.com/mysupport/s/?language=en_US

    If you try to open a sev 1 problem you had better be prepared to promise to wait by the phone and fill out a detailed description as to why it is a sev 1 with actual questions like "how many life support machines are out of commission?" and "is the power grid for the entire eastern seaboard down?".  Anything less than sev 1 will be ignored during the weekend.  Most of mine I use sev 3.



    ------------------------------
    Robert Berendt IBMChampion
    ------------------------------



  • 15.  RE: Problem Accessing Schemas

    Posted Fri March 22, 2024 05:16 AM

    Dear Gary

    Please try connecting your IBM i ACS client through internet to pub400.com (Actions --> Management --> System Configurations) and test if Schemas function works fine or not with pub400.com?   If so, something extra is in your system that may cause the error, for example, are you aware if there is any user exit program(s) used for IBM i ACS connection to your system? You can run  SELECT *  FROM QSYS2.EXIT_PROGRAM_INFO from Run SQL Scripts tool to check on this. 

    Referring to the MaryAnn's original error messaqge, you should browse the job log to see more information. You do this with the command WRKACTJOB SBS(QUSRWRK). Then move the screen cursor under the column named Current User and press Shift+F4 to sort all entries in alphabetical order with this column.  Then page down through the entries until you see your user profile name with the jobs named QZRCSRVS and QZDASOINIT and look into their job logs.



    ------------------------------
    Satid S
    ------------------------------