db2pd - db SAMPLE -wlock detail does not show Table and Schema name - db2

db2pd - db SAMPLE -wlock detail does not show Table and Schema name.
Dear Db2 Experts,
Is there a reason why db2pd - db SAMPLE -wlock detail would not show the table and schema name.
We run DB2 Version 10.5 on Windows 2008

Related

How to DROP tables from specific database-schema in Postgresql?

I am new to Postgresql and so far I have not found a way to drop a table from specific database. To give some context:
We are doing a synchronization from Oracle to PostgreSQL of 5 tables. In postgres I have a database SoloCopy and the schema is the default public. In the Postgresql instance we have also 2 more databases SoloSynch and postgres (the default one).
What I want to do is to select SoloCopy database and:
DROP TABLE public.table1;
When I do the above DROP statement table1 is deleted only from the database that was selected when opening SQL Query. But I want to specify the database before that and to be irrelevant from where the SQL Query was open. How can I do that?
I found an answer on my own. Setup can be found here:
Psql in Task Scheduler does not run a file script
Basically I needed to use PSQL and with the connection string there I connect to a specific DB, which I can drop the tables from. The details for PGPASSWORD and the .bat file I ended up creating are in the link above. Had to start everything from CMD and switch to psql from there.

Migrating db from pgsql 9.5 to 12.4 via pg_dumpall does not include all tables

I am trying to migrate three databases to a new server (Linux centos 8 - pgsql 12.4)
So I am using "pg_dumpall" and target the old server - backups are getting created, then I am using psql to import the dump.
I noticed that in one db there are tables missing that have a custom schema name "RRJ_DES" - these are tables which are missing after importing the dump on the 12.4 Server. All other tables have "public" schema, and these are there.
I am definitely using the superuser with all permissions when taking the dump.
Any idea? I am a bit new to postgres...

TABLES DB2 longDescription

Good afternoon.
Can you help me, I would like to know, how the longDescription table in IBMDB2 works and how do I bring the result which is inside the columns?
Thank you.
I believe that the longDescription is one of Maximo Asset Management tables.
If so, here is an example, how to handle it in Db2 on AIX/Linux.
logon as the instance owner on the machine, such as db2inst1
Run below at command prompt to list up all databases name(s) under the instance:
$ db2 list db directory
Then run below to use one of database name(s):
$ db2 connect to DBNAME
please replace DBNAME as your target database name, such as sample.
ie. db2 connect to sample
Then run below to list up all table names in the database DBNAME
$ db2 list tables
it will list all table names and its schema name, type and creation time
Then run below to list up all columns in the table.
$ db2 describe table SCHEMA.TABLENAME
replace SCHEMA like db2inst1 and TABLENAME like longDescription
ie. db2 describe table db2inst1.longDescription
it will list up all column names and some other information
Then run below to get data from a column, such as idownertable.
$ db2 select COLOMN_NAME from SCHEMA.TABLENAME
replace COLOMN_NAME like ldownertable
ie. db2 select ldownertable from db2inst1.longDescription
If we want to see all data in the table, run below:
$ db2 select * from SCHEMA.TABLENAME
ie. db2 select * from db2inst1.longDescription
Hope this helps.

Create schema dynamically connected to PostgreSql in CakePHP 2.6

For my application I need to create a schema with company name in PostgreSQL database dynamically.
How to execute PostgreSQL query CREATE SCHEMA name in cakephp.

Postgres: Tips on navigating with the command line

I am very new to Postgres and the main problem I have now is that I don't have an overview of my server. If you use something like pgadmin3 it's easy to browse and to get a general idea of the structure of the database.
So looking for some general commands that could help me discover my database server.
Very basic commands:
Connect to database with client console
psql dbname
Dump db tables
\d
Dump a table schema
\d table
List table content
select * from table
General help
\?
Source/Further info: https://www.postgresql.org/docs/current/static/app-psql.html