免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 6576 | 回复: 4
打印 上一主题 下一主题

db2set -all 所显示的信息,保存在哪个文件中?请教 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-11-08 13:45 |只看该作者 |倒序浏览
db2set -all 所显示的信息,保存在哪个文件中?请教

论坛徽章:
0
2 [报告]
发表于 2007-11-08 15:28 |只看该作者
你想干吗?

论坛徽章:
0
3 [报告]
发表于 2007-11-08 15:34 |只看该作者
就是想知道,该文件在那里存放!

论坛徽章:
0
4 [报告]
发表于 2007-11-08 17:33 |只看该作者
AIX 是profile.env ,放在 sqllib目录下,

论坛徽章:
0
5 [报告]
发表于 2007-11-09 11:25 |只看该作者
Share the following information with you, you can refer to it and you can get more understanding for DB2 profile.


*global.reg - global DB2 profile registry
Default Location: /var/db2
A global.reg configuration file, acts as a root configuration file for all DB2 installations on the machine. A UNIX system with only one database version installed does not have this file. My demonstration installation has installed DB2 versions 7 and 8, where the global.reg was located on the highest directory structure position. It is used as a general, system DB2 configuration file.

*profiles.reg - DB2 software version profile registry
Default Location: /var/db2/v81

The profiles.reg configuration file holds a list of all instance profiles running under the same DB2 software version. In the other words, a list of DB2 instances running the same code version. On a UNIX machine having only one DB2 software version installed, profiles.reg is used as the global profile registry file. The profiles.reg file becomes the second configuration file in the hierarchy on a machine with several installed DB2 versions, and is read accordingly--after the global.reg configuration file.

IBM has provided the db2set system command for displaying and changing the profiles.reg file content.

*default.env - global instance profile registry
Default Location: /var/db2/v81

The local instance profile holds certain important information related to the local instance settings, such as license information or default host name. Profile content is normally managed using the DB2 system command 'db2set -g'.
This profile is also called global, generating a misunderstanding to the overall perception of the IBM configuration. Even though the content handling is managed with db2set global command switch "-g", this setting represents real, local instance registry settings.

*profile.env - local instance profile registry
Default Location: $HOME/sqllib

This is a central DB2 configuration file. According to IBM, it is strongly recommended that all DB2-specific registry variables be defined through this registry file. The explanation lays in the remote administration of these variables over Control Center, which would not be possible if registry variables were defined elsewhere. Only the PATH and DB2INSTANCE variables should be defined outside of the DB2 local instance profile.

*userprofile - custom configuration profile
Default Location: $HOME/sqllib

Userprofile is a custom configuration file that is supposed to hold all non-standard db2profile variables. This file is of high importance during fix pack installations, because of the possibility that every new fix pack might clear all non-standard settings from db2profile. The db2profile file, by default, calls the userprofile after the DB2 environment is initialized.

*node_num.env - DB2 instance node level profile registry
Default Location: $HOME/sqllib/nodes

An SDP configured database system, with the DB2 database divided across different physical database partitions, has a node_num.env registry file on every database partition. My demo DB2 database ARTIST was running on only one physical machine and did not have a node-level profile registry file.

*db2profile - DB2 instance owner profile
Default Location: /opt/IBM/db2/V8.1 (template), $HOME/sqllib

The dB2profile is the most important DB2 configuration file. It is created automatically by the DB2 installation, and has all of the needed settings to activate DB2 software properly.

*db2nodes.cfg - partition configuration file
Default Location: $HOME/sqllib/

db2nodes.cfg is the DB2 ESE database partition (node) definition file. A standard, non-partitioned database instance does not use this configuration file.
Beginning with DB2 version 8, db2nodes.cfg is enhanced with the resourcename column. This new column provides the opportunity to direct one logical node to use a particular set of system resources. The new db2nodes.cfg file format has the following structure:
      nodenum    hostname   logical port   netname   resourcename
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP