我需要int在Java中将序数值转换为枚举值.这很简单:
MyEnumType value = MyEnumType.values()[ordinal];
Run Code Online (Sandbox Code Playgroud)
该values()方法是隐式的,我无法找到它的源代码,因此问题.
是否MyEnumType.values()分配新阵列?如果确实如此,我应该在第一次调用时缓存数组吗?假设转换将经常被调用.
我需要在 Python Anaconda3-2.5.0-Windows-x86_64 中连接到 Oracle 数据库。通过以下方式安装 cx_Oracle 模块:
conda install -c https://conda.anaconda.org/anaconda cx_oracle
Run Code Online (Sandbox Code Playgroud)
失败并显示以下输出(已修剪):
Hint: the following packages conflict with each other:
- cx_oracle
- python 3.5*
Run Code Online (Sandbox Code Playgroud)
因此,我尝试通过https://pypi.python.org/pypi/cx_Oracle/ 中的“cx_Oracle-5.2.1-11g.win-amd64-py3.5.exe”安装 Python 3.5 软件包,这似乎正在运行(不知何故)。甚至“conda list”命令也会打印行:
cx-oracle 5.2.1 <pip>
Run Code Online (Sandbox Code Playgroud)
但是当我输入import cx_Oracle;Python 时
ImportError: DLL load failed: Uvedený modul nebyl nalezen.
Run Code Online (Sandbox Code Playgroud)
出现。最后一个本地化部分的粗略翻译是“找不到模块”。
如何安装 cx_Oracle 模块?或者有没有其他方法可以连接到Oracle数据库?
我在没有 Visual Studio 的情况下使用来宾可执行文件创建了应用程序包。ConsoleRedirection 还配置为从应用程序stdout和errout. 它适用于本地 Service Fabric 集群。日志可以位于我的文件系统中。但是如何在 Azure 云中访问这些日志呢?
更新:正如 LoekD 指出的那样,远程桌面协议可用于访问服务结构集群中的节点。管理员帐户名称可以位于负载均衡器的自动化脚本virtualMachineProfile部分中。