简体   繁体   English

将Cloud Foundry PHP应用程序推送到Bluemix时,Z / OS许可证文件在哪里放置?

[英]Where to place Z/OS license file when push Cloud Foundry PHP app to Bluemix?

I would like to connect from Bluemix to Z/OS system, using SecureGatway, but I don't have a Z/OS license file (most probably: db2consv_zs.lic file). 我想使用SecureGatway从Bluemix连接到Z / OS系统,但是我没有Z / OS许可证文件(很可能是db2consv_zs.lic文件)。 I receive SQLSTATE=42968. 我收到SQLSTATE = 42968。 The SG tunel looks okay. SG隧道看起来还不错。

If I get the license.. where do I have to copy/install it when I push my local project to CIO Bluemix? 如果获得了许可证,当我将本地项目推送到CIO Bluemix时,必须在哪里复制/安装许可证? Shall I copy it to the php buildpack ? 我应该将其复制到php buildpack吗? And will it be registered in the cloud environment? 并会在云环境中注册吗? Is there any other way to connect from a Blue Foundry PHP app to a blue zone Z/OS system? 从Blue Foundry PHP应用程序连接到Blue Zone Z / OS系统还有其他方法吗?

1, License DB2 driver on Bluemix for zOS 1,Bluemix for zOS上的许可证DB2驱动程序

The license file must be placed into a folder of the PHP instance on the server. 许可证文件必须放置在服务器上PHP实例的文件夹中。 The DB2 extension is installed during deployment of the Cloud Foundry app. 在Cloud Foundry应用程序部署期间安装了DB2扩展。 I found no way to copy the license file during build or deployment. 我发现在构建或部署期间无法复制许可证文件。 But I found a way to copy the lic file after deployment: I added the lic file to my project and then I copied it over with a php file that I run from browser. 但是我找到了一种在部署后复制lic文件的方法:我将lic文件添加到了项目中,然后使用从浏览器运行的php文件将其复制了过来。 This is the line: 这是一行:

$src = '/home/vcap/app/lib/db2consv_zs.lic';    
$dst = '/home/vcap/app/ibmdb_clidriver/license/db2consv_zs.lic';
if (!copy($src, $dst)) {
echo "failed to copy $src...\n";

Secure Gateway also must be set properly to connect from Bluemix to a blue zone zOS DB2. 还必须正确设置Secure Gateway才能从Bluemix连接到蓝色区域zOS DB2。 Instructions . 说明

2, License DB2 driver on Local machine in IBM blue zone for zOS 2,在IBM蓝色区域中的zOS的本地计算机上许可DB2驱动程序

The license problem disappeared when I installed license for DB2 Connect. 当我安装 DB2 Connect 许可证时,许可证问题消失了。

"To connect to an IBM mainframe database server you require a licensed DB2 Connect product. You cannot connect directly to an IBM mainframe Data Server using a IBM data server client." “要连接到IBM大型机数据库服务器,您需要许可的DB2 Connect产品。您不能使用IBM数据服务器客户端直接连接到IBM大型机数据服务器。” link 链接

"You can add DB2 Connect™ capability to any client or driver." “您可以将DB2 Connect™功能添加到任何客户端或驱动程序。”

DB2 license files DB2许可证文件

Use db2licm command to register the license. 使用db2licm命令注册许可证。

How to install DB2 Connect to Bluemix is still open, alternatively Secure Gateway might contain DB2 Connect.. but not sure .. and a connection server can be used also. 如何安装DB2 Connect到Bluemix仍然是开放的,或者Secure Gateway可能包含DB2 Connect ..但不确定..并且也可以使用连接服务器。 Will add comments later. 稍后将添加评论。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM