2019独角兽企业重金招聘Python工程师标准>>>

DB2′s Got Talent!

This is it, the final vote! You determine whether I get 1st, 2nd, 3rd, or 4th place. Go to: http://www.dbisoftware.com/blog/db2nightshow.php?id=429, scroll to the bottom, and fill out the “Show Survey”. Vote for me (EMBER), and also please rank me as #1. Sign up to watch the results show where they announce the winners here: http://www.dbisoftware.com/db2nightshow/

How to catalog a DB2 database

by Ember Crooks onApril 14, 2011

So I’m doing a lot of posts in the DB2 Basics area this week. That’s because they are quick for me to write, and they’re questions I get all the time. So bear with me if you read for the more detailed Commerce topics – I’m not abandoning them.

DB2 Client

DB2 databases can be cataloged on DB2 servers or DB2 clients. Before trying cataloging, make sure you at least have the DB2 client installed. DB2 Clients are free (no licensing required). All App servers should have DB2 clients already installed on them. Web servers should not. You can download DB2 Clients here: https://www-304.ibm.com/support/docview.wss?uid=swg27007053

Select the same version and FixPack as the servers you’re connecting to. Then select the proper OS. Finally, select “IBM Data Server Client” (9. versions) or “Administration Client” (8. versions). Installation and Instance creation are outside the scope of this post.

Make sure you have all the inputs

You need:

  • REMOTE: Short host name with proper entry in hosts file OR Fully qualified host name OR IP address (that is the order of preference if you have all)
  • SERVER: Port number the db2 server is listening on. To get this, log into db2 server as the db2instance owner (frequently db2inst1), and do:
$ db2 get dbm cfg |grep SVCENAME
TCP/IP Service name                          (SVCENAME) = db2c_db2inst1
$ cat /etc/services |grep db2c_db2inst1
db2c_db2inst1   50001/tcp
  • NODENAME: This is a name that you make up.  You might want to develop a standard for your company and stick to it.

Catalog the node

The general form of the syntax for doing this is:

db2 catalog tcpip node <NODENAME> remote <REMOTE> server <PORT>

For example:

Logged in (su – is fine) as the db2 instance owner or a privileged user:

$ db2 catalog tcpip node prod_ecom remote servername.domain.com server 50001

Catalog the database

The general form of the syntax for doing this is:

db2 catalog database <database_name> at node <node_name>

For example:

Logged in (su – is fine) as the db2 instance owner or a privileged user:

db2 catalog database wcs_prod at node prod_ecom

Refresh directory

After cataloging, do a db2 terminate to ensure everything shows up

$ db2 terminate
DB20000I  The TERMINATE command completed successfully.

Always test a connection!!

It is very important to test the connection because a typo could cause it not to work. Or there could be network issues preventing connection.
The general form of the syntax for doing this is:

db2 connect to <database_name> user <user_name> (you will then be prompted for a password)

For example:

Logged in (su – is fine) as the db2 instance owner or a privileged user:

db2 connect to wcs_prod user ecrooks
Enter current password for ecrooks:Database Connection InformationDatabase server        = DB2/LINUX 8.2.9
SQL authorization ID   = ECROOKS
Local database alias   = WCS_PROD

转载于:https://my.oschina.net/u/575122/blog/118071

DB2 catalog相关推荐

  1. oracle catalog命令,db2 catalog tcpip 命令咨询?

    使用 CLP 从客户机编目 TCP/IP 节点 编目 TCP/IP 节点会在描述远程节点的 DB2® 客户机节点目录添加一个条目.此条目指定客户机用来访问远程主机所选择的别名(node_name).h ...

  2. db2编目数据库 linux,[转]Db2 catalog(编目)

    在DB2数据库中,编目(catalog)这个单词很难理解,我自己当初在学习DB2的时候也常常被这个编目搞的很不明白,直到现在我个人也感觉到DB2 中编目(catalog)这个术语用的不是很好,具体来说 ...

  3. DB2 Catalog浅析学习笔记

    原文地址:http://king123654789.iteye.com/blog/1296492 Catalog 是远程连接部署在服务器端的DB2数据库的命令 [本文涉及到的命令] >db2 c ...

  4. db2 catalog 编目

    使用catalog,把远程的数据库信息加载到本地一般分为两步: 第一步,catalog server端的node ,命令如下: db2 catalog tcpip node db2node remot ...

  5. DB2数据库编目(catalog)概念的理解

    在.profile里配置 PATH=$PATH:/home/db2inst1/sqllib/bin export PATH 编目(Catalog),是在本地或远程建立客户端到服务器的数据库连接的过程. ...

  6. db2联邦数据库 linux,DB2创建联邦数据库

    联邦数据库配置步骤: db2 update dbm cfg using federated yes #参数配置 db2 catalog node #编目节点 db2 catalog database ...

  7. DB2客户端,查看、增加、删除节点和数据库编目

    2019独角兽企业重金招聘Python工程师标准>>> 1 Windows 以管理员运行 cmd ,在cmd 里 运行db2cmd 打开db2运行环境. 2 db2 list nod ...

  8. DB2数据库V8.2版本远程连接方法

    1.DB2数据库V8.2版本的安装,获取到的版本集合服务端和客户端,选择典型安装,默认即可,服务端可以默认创建一个实例和数据库,创建用户名和密码! 2.客户端和服务端都安装好后,打开服务端的控制中心, ...

  9. 在linux下安装db2全过程

    一.db2安装: 有两种安装方式:命令和图形界面. 图形界面安装(可以root用户操作): 1.在ibm网站上下载db2安装包v9.7_linuxxia3_2_server.tar.gz 2.用tar ...

最新文章

  1. 【震惊】漱口水居然增加糖尿病,高血压发病率
  2. oracle clob 存储大于4000字符的字符串
  3. 关于Icon,Image,ImageIcon的简单的对比参考
  4. 《研磨设计模式》chap20 享元模式 Flyweight (3)重写应用场景
  5. 博士申请 | 哥本哈根大学招收机器学习和信息检索全奖博士生(年薪34万)
  6. Javasript设计模式之链式调用
  7. linux tail命令_操作手册
  8. 十二、安装redis3.2
  9. Linux配置自动时间同步
  10. 对计算机网络教程的计划,计算机网络技术与应教程教学计划14.doc
  11. 十三、Oracle学习笔记:decode函数、排序函数和高级分组函数
  12. 327.区间和的个数
  13. 变压器次级输出为0v的原因_加速tensorflow中的Google临时融合变压器2 0
  14. 信道估计(一):信道估计基础知识
  15. 彼得林奇的成功投资 (修订版)
  16. 论文笔记(5.16,文本抗击,defense)--Combating Adversarial Misspellings with Robust Word Recognition
  17. [pytorch] monai Vit 网络 图文分析
  18. 智能门铃app开发的功能有哪些
  19. 大一作业HTML期末网页作业(化妆品网站制作) html+css+js 雅诗兰黛美妆网站制作
  20. Invalid default value for

热门文章

  1. Lossless Codec---APE代码解读系列(二)
  2. aspnet_Applications表结构
  3. 以太坊Solidity函数的external/internal,public/private区别
  4. jar打包混淆上传全自动日志
  5. Github学习系列之Github是什么?
  6. Rift.io基于OSM发布首个商用MANO软件
  7. 学习汇编语言 -王爽,自已完成的一道课程设计题 (5)
  8. Scala开发入门教程
  9. Linux下配置使用外部SMTP发邮件
  10. VBA:指定なフォルダしたのすべてのファイル名