代码改变世界

使用oid2name列出数据库和对应的oid

  abce  阅读(568)  评论(0编辑  收藏  举报
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[postgres@postgre base]$ ll
total 172
drwx------ 2 postgres postgres 12288 Dec  6 09:21 1
drwx------ 2 postgres postgres 12288 Dec  6 09:21 13877
drwx------ 2 postgres postgres 12288 Dec 20 23:04 13878
drwx------ 2 postgres postgres 69632 Dec 23 14:47 16384
drwx------ 2 postgres postgres 20480 Dec 23 14:52 16385
drwx------ 2 postgres postgres 16384 Dec 23 11:35 16386
drwx------ 2 postgres postgres 12288 Dec 23 09:28 177797
drwx------ 2 postgres postgres 12288 Dec 22 21:20 866029
drwx------ 2 postgres postgres  4096 Dec 23 15:23 pgsql_tmp
[postgres@postgre base]$ oid2name
All databases:
     Oid  Database Name  Tablespace
-----------------------------------
  177797       abceport  pg_default
   13878       postgres  pg_default
   13877      template0  pg_default
       1      template1  pg_default
   16386           abbm  pg_default
   16384           abep  pg_default
   16385          abprv  pg_default
  866029            abp  pg_default

  

编辑推荐:
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· .NET10 - 预览版1新功能体验(一)
历史上的今天:
2016-12-23 R12.2.6 installation failed with - Unable to rename database
2015-12-23 RAC安装gird,第一个节点执行root.sh报"The ora.asm resource is not ONLINE"错误
点击右上角即可分享
微信分享提示