db2当前激活状态
[db2inst1@xifenfei ~]$ db2licm -l Product name: "DB2 Enterprise Server Edition" License type: "Trial" Expiry date: "06/22/2012" Product identifier: "db2ese" Version information: "9.5" Product name: "DB2 Connect Server" License type: "Trial" Expiry date: "06/22/2012" Product identifier: "db2consv" Version information: "9.5"
查看license文件
[db2inst1@xifenfei ~]$ db2licm -l db2ese_cV9.5CPU.lic Product name: "DB2 Enterprise Server Edition" License type: "CPU Option" Expiry date: "Permanent" Product identifier: "db2ese" Version information: "9.5" Features: DB2 Database Partitioning: "Not licensed" DB2 Performance Optimization ESE: "Not licensed" DB2 Storage Optimization: "Not licensed" DB2 Advanced Access Control: "Not licensed" DB2 Geodetic Data Management: "Not licensed" DB2 pureXML ESE: "Not licensed" IBM Homogeneous Federation ESE: "Not licensed" IBM Homogeneous Replication ESE: "Not licensed" Product name: "DB2 Connect Server" License type: "Trial" Expiry date: "06/22/2012" Product identifier: "db2consv" Version information: "9.5"
导入license文件
[db2inst1@xifenfei ~]$ db2licm -a db2ese_cV9.5CPU.lic LIC1402I License added successfully. LIC1426I This product is now licensed for use as outlined in your License Agreement. USE OF THE PRODUCT CONSTITUTES ACCEPTANCE OF THE TERMS OF THE IBM LICENSE AGREEMENT, LOCATED IN THE FOLLOWING DIRECTORY: "/opt/db2/V9.5/license/en_US.iso88591"
再次查看db2激活状态
[db2inst1@xifenfei ~]$ db2licm -l Product name: "DB2 Enterprise Server Edition" License type: "CPU Option" Expiry date: "Permanent" Product identifier: "db2ese" Version information: "9.5" Features: DB2 Database Partitioning: "Not licensed" DB2 Performance Optimization ESE: "Not licensed" DB2 Storage Optimization: "Not licensed" DB2 Advanced Access Control: "Not licensed" DB2 Geodetic Data Management: "Not licensed" DB2 pureXML ESE: "Not licensed" IBM Homogeneous Federation ESE: "Not licensed" IBM Homogeneous Replication ESE: "Not licensed" Product name: "DB2 Connect Server" License type: "Trial" Expiry date: "06/22/2012" Product identifier: "db2consv" Version information: "9.5"
各种数据库的激活方式不同(只讨论激活,不涉及授权问题):
1.oracle/mysql不需要激活,可以直接使用
2.sql server 需要序列号激活
3.db2需要license文件激活
db2licm 命令使用说明