Db2

 View Only
  • 1.  {"ERROR [08004] [IBM] SQL30060N \"USER01\" does not have the privilege to perform operation \"EXCSAT\". SQLSTATE=08004\r\n"} IBM.Data.Db2.DB2Exception

    Posted Tue September 26, 2023 04:53 PM

    Hi everyone, I'm using the net.ibm.data.db 7.0.0.2 driver (c# environment) to connect on i5/OS vers. 7R3 .. when i try to open a connection,  I get the error in the subject with any user I use (with qsecofr profile too).

    the test code is very simple:

    DB2ConnectionStringBuilder buildConf = new DB2ConnectionStringBuilder();

    buildConf.UserID = ConfigurationManager.AppSettings["user"]; 
    buildConf.Password = ConfigurationManager.AppSettings["psw"];
    buildConf.Server = ConfigurationManager.AppSettings["server"];
    buildConf.Database = ConfigurationManager.AppSettings["db"];

    string ConnectionString = buildConf.ConnectionString;

    DB2Connection conn = new DB2Connection(ConnectionString);

    conn.Open();
    conn.Close();
    conn.Dispose();

    Anyone have any suggestions?



    ------------------------------
    max inter
    ------------------------------


  • 2.  RE: {"ERROR [08004] [IBM] SQL30060N \"USER01\" does not have the privilege to perform operation \"EXCSAT\". SQLSTATE=08004\r\n"} IBM.Data.Db2.DB2Exception

    IBM Champion
    Posted Tue September 26, 2023 05:39 PM

    What makes you think that user with given credentials actually CAN connect to target database?



    ------------------------------
    Jan Nelken
    ------------------------------



  • 3.  RE: {"ERROR [08004] [IBM] SQL30060N \"USER01\" does not have the privilege to perform operation \"EXCSAT\". SQLSTATE=08004\r\n"} IBM.Data.Db2.DB2Exception

    Posted Wed September 27, 2023 08:19 AM
    I do not understand your question.
    Obviously THIS user (and many other) accesses the db if I use a C# program with .NET 2.0 driver.


    ------------------------------
    max inter
    ------------------------------



  • 4.  RE: {"ERROR [08004] [IBM] SQL30060N \"USER01\" does not have the privilege to perform operation \"EXCSAT\". SQLSTATE=08004\r\n"} IBM.Data.Db2.DB2Exception

    IBM Champion
    Posted Thu September 28, 2023 12:36 AM

    Hi max inter,

    a quick search via Google and your error message points me to "bind utilities" https://www.ibm.com/support/pages/sql30060n-error-during-rebind

    Maybe you want to check, if the correct packages for the newer driver are bound.

    I don't think, this issue https://www.ibm.com/support/pages/sql30060n-connecting-database will bite you here.

    cheers



    ------------------------------
    Roland Schock
    IBM Champion and IBM Gold Consultant
    ------------------------------



  • 5.  RE: {"ERROR [08004] [IBM] SQL30060N \"USER01\" does not have the privilege to perform operation \"EXCSAT\". SQLSTATE=08004\r\n"} IBM.Data.Db2.DB2Exception

    Posted Fri September 29, 2023 03:41 AM

    hi Roland, many thanks. I try to interest my AS400 colleagues. cheers



    ------------------------------
    max inter
    ------------------------------