IBM i Access Client Solutions

IBM i Access Client Solutions

Connect, learn, share, and engage with IBM Power.

 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

    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

    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

    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

    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

    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

    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

    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
    ------------------------------



  • 16.  RE: Problem Accessing Schemas

    Posted Mon August 26, 2024 12:04 PM
    Edited by ibiza bysaw Wed September 04, 2024 08:12 AM

    1. In addition to testing your IBM i ACS client with pub400.com and examining user exit programs and job logs, consider the following questions to help uncover what's really going on with those elusive schemas. Think of it like trying to find the perfect real estate agent—someone who knows the local market (or in this case, your database configuration) and has your back when things get tricky.

      Schema Visibility:

      Imagine you've finally found that dream home—perfect view, great neighborhood—but when you go to check it out, the keys don't fit. Have you checked if specific schemas are visible or accessible through other SQL clients or tools? Maybe the problem isn't the house (or schema) itself but the way you're trying to access it. Could there be restrictions or permissions that are keeping ACS from getting the full tour?

      ACS Configuration:

      Now, just like how a real estate agent adjusts their strategy depending on whether you’re buying a fixer-upper or a luxury condo, ACS needs the right configuration settings to get the job done. Are you using the correct database connection properties and credentials? Maybe a quick refresh of the connection or reconfiguration is all you need to get back on track, like switching from a rental to a purchase.

      System Updates and PTFs:

      Remember that feeling when you finally move in, only to discover the kitchen needs an upgrade? Well, just like home renovations, recent updates or PTFs applied to your IBM i system might be impacting ACS functionality. Are these updates compatible with your current ACS version, or are you left with a leaky faucet? Make sure your ACS client is updated to the latest version and check for any patches—think of it as fixing that faulty wiring before it becomes a bigger issue.

      Network and Firewall Settings:

      Just as a real estate agent might navigate the complexities of local zoning laws, network and firewall settings can affect communication between ACS and your IBM i system. Especially if you're trying to access your "property" remotely, security settings or policies might be the invisible fence keeping you out. Have you checked for any roadblocks that might be interfering with your connection?

      Error Messages and Codes:

      We've all been there—negotiating the deal, and suddenly, you hit a snag. Have you encountered any specific error codes or messages in ACS or IBM i that could provide additional context about why the schema is playing hard to get? It’s like reading the fine print in a contract; those details could make or break the deal.

      Configuration of Database Connections:

      Much like choosing between a downtown loft or a suburban bungalow, the connection type (*IP or *LOCAL) needs to be properly configured for your database connections in WRKRDBDIRE. Are there any discrepancies in the setup? Ensure that the database connections match what’s expected for your environment—just like making sure the mortgage terms align with your budget.

      User Profile and Authority:

      Finally, think of your user profile as your credit score in the real estate world. Does it have the necessary authority to access and modify schemas in ACS? If there are restrictions or limitations on your profile, that dream home—or in this case, schema—might remain just out of reach. Are other users running into similar issues, or is this a case of one user's credit not quite making the cut?

      By addressing these questions, you’ll be better equipped to navigate the complexities of schema access, just like finding the right real estate agent can make all the difference in landing your perfect home.

    ------------------------------