DB2 9.5 CREATE DATABASE fails with Error SQL0901N, SQLSTATE 58004 - db2

Installed DB2 on Windows Vista with Admin priviledges.
Now i cannot create any new databases.. it always fails with the following error:
db2 CREATE DATABASE N3000 AUTOMATIC STORAGE YES ON 'D:\DB2'
DBPATH ON 'D:\DB2'
SQL0901N Die SQL-Anweisung schlug aufgrund eines nicht schwer wiegenden
(nicht kritischen) Systemfehlers fehl. Nachfolgende SQL-Anweisungen können
verarbeitet werden. (Ursachencode: "Length in PD=0, LFD length=1176, DMS
length=1176".) SQLSTATE=58004
Any ideas how to fix this?

in db2 directory:
c:\program files\ibm\sqllib\bin
execute:
db2set DB2_CREATE_DB_ON_PATH=YES
db2stop
db2start
Ready, now you create DB2 Databases in any path!!!!
look this: http://www.db2ude.com/?q=node/54

The problem was caused by an antivirus policy and was unrelated to DB2.
The file "C0000000.CAT" has to be excluded.

Related

could not access file "pg_wait_sampling": No such file or directory postgresql

after I use the following command then I cannot relogin postgresql
alter system set shared_preload_libraries = 'pg_wait_sampling';
exit trying login again. Then error happens. The following is error code:
2022-03-15 11:35:30.726 IST [975] FATAL: could not access file "pg_wait_sampling": No such file or directory
2022-03-15 11:35:30.727 IST [975] LOG: database system is shut down
pg_ctl: could not start server
Examine the log output.
postgresql version: 14.2. system: wsl ubuntu.
in conf file /etc/postgresql/14/main/postgresql.conf":
#shared_preload_libraries='' #(change requires restart)
According to PostgreSQL document alter command store in postgresql.auto.conf file.
You have to change this file and remove pg_wait_sampling form this file

Liquibase - DB2 AS/400 - generateChangeLog throwing Exception "SYSCAT type *FILE not found"

I am trying to generate a Liquibase change log by running the command generateChangeLog, but I get the following error:
Starting Liquibase at Fri, 20 Apr 2018 14:26:14 GMT (version 3.6.1
built at 2018-04-11 08:41:04)
Unexpected error running Liquibase:
liquibase.exception.DatabaseException:
com.ibm.as400.access.AS400JDBCSQLSyntaxErrorException: [SQL0204]
REFERENCES in SYSCAT type *FILE not found.
liquibase.exception.LiquibaseException:
liquibase.command.CommandExecutionException:
liquibase.exception.DatabaseException:
liquibase.exception.DatabaseException:
com.ibm.as400.access.AS400JDBCSQLSyntaxErrorException: [SQL0204]
REFERENCES in SYSCAT type *FILE not found.
at
liquibase.integration.commandline.CommandLineUtils.doGenerateChangeLog
(CommandLineUtils.java:279)
at liquibase.integration.commandline.Main.doMigration(Main.java:1043)
at liquibase.integration.commandline.Main.run(Main.java:191)
at liquibase.integration.commandline.Main.main(Main.java:129)
My environment is:
DB2 UDB for AS/400 version 07.01.0000 V7R1m0
AS/400 Toolbox for Java JDBC Driver 10.2
liquibase 3.6.1
Java 8
Maven 3.3.3
syscat.references is not available on Db2 for i. Actually Db2 for i doesn't have a schema named SYSCAT at all.
qsys2.syscstdep seems to be the closest match...
INFORMATION_SCHEMA is the ANSI & ISO standard name for the DB catalog schema. On Db2 for i, it is an alias for QSYS2.
Edit
From the comment by #jmarkmurphy on the OP, it appears there's an Db2 for i Liquibase extension. I don't know for sure, but I'd suspect that installing that would redirect the query to the correct Db2 for i schema & table.

Windows client error for DB2 10.5 fp3 DATA BASE Connection refused:Error:SQL30081N and SQLSTATE IS 08001

When we connect to database we got error in windows client machine.
Error:SQL30081N and SQLSTATE IS 08001.
SERVER:HP-UX DB2 10.5 FP3
Please suggest on this.
A quick Google suggests this may be the result of a firewall blocking the connection: http://www-01.ibm.com/support/docview.wss?uid=swg21503305

pycharm and postgres: ERROR: Unsupported startup parameter: extra_float_digits

Having issue to connect to PostgreSQL 9.0 database from PyCharm. I already tried adding older jdbc driver manually but still getting the same error: "ERROR: Unsupported startup parameter: extra_float_digits".
The "fix" is to add this to the config.ini under the [pgbouncer] section:
ignore_startup_parameters = extra_float_digits
Details here: https://github.com/Athou/commafeed/issues/559
I had this error using the PostgreSQL JDBC driver connecting to PgBouncer. The fix was to add the following to pgbouncer.ini (which was already in the file but commented out):
ignore_startup_parameters = extra_float_digits
(similar to the previous answer but different config file)

How to use SQLite ODBC Driver with UTF-8 encoding?

I downloaded and installed the SQLite ODBC Driver from http://ch-werner.de/sqliteodbc/.
I had three new ODBC Drivers in my List
SQLite (UTF-8) Driver
SQLite ODBC Driver
SQLite3 ODBC Driver
Using the SQLite3 ODBC Driver works just fine. But not with UTF-8.
The SQLite ODBC (UTF-8) Driver which I assumed to work in this case just gives me the error message
Fehler beim Herstellen der Verbindung zur Datenquelle test
IM002 [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
Fehler beim Herstellen der Verbindung zur Datenquelle: test
English translation:
Error connecting to data source test
IM002 [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
Error connecting to data source test
What am I doing wrong?
Christian Werner, the provider of the SQLite Driver helped me via E-Mail.
It turned out that in the settings of the SQLite3 ODBC Driver the OEMCP Translation has to be turned on (By clicking Configure... of the specific User DSN in the ODBC Data Source Administrator)
Now all characters are shown as expected.
In connection string, this translates to OEMCPTranslation parameter:
connStr="DRIVER={{SQLite3 ODBC Driver}};Database=<path>;OEMCPTranslation=1";
Today in my case {...} worked, but not {{..}} when coppying tables from the Access database to the SQLite database using VBA:
DoCmd.TransferDatabase acExport, "ODBC Database", _
"ODBC;DRIVER={SQLite3 ODBC Driver};Database=<path>;OEMCPTranslation=1;", _
acTable, <source table>, <destination table>