To confirm Connection Testing, go to a command prompt and run the utility using the appropriate command from Table 1.
要执行连接测试,打开命令提示符并使用表1中合适的命令运行该实用工具。
In fact, you might want to bundle up the code you write to handle data source configuration and connection into a utility class (that's left for you as an exercise).
实际上可以将处理数据源配置和连接的代码打包成一个工具类(留给读者作为练习)。
For example, a utility class function called NVL would return NVL if the database connection is with Oracle, and COALESCE if the DB connection is with DB2.
例如,如果连接的是Oracle数据库,那么名为NVL的实用程序类函数返回nvl;如果连接的是DB2,那么返回COALESCE。
应用推荐