我遇到了JDBC问题.
我有以下代码:
//blargeparam is a blob column.
PreparedStatement pst =connection.prepareStatement("update gcp_processparams_log set blargeparam= ? where idprocessparamslog=1");
pst.setBinaryStream(1,inputStream);
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
Exception in thread "main" java.lang.AbstractMethodError:
oracle.jdbc.driver.T2CPreparedStatement.setBinaryStream(ILjava/io/InputStream;)V
Run Code Online (Sandbox Code Playgroud)
我的连接字符串是 jdbc:oracle:oci:@.....
Oracle版本为11g.
从错误消息似乎缺少某些东西但是:
这是我的类路径中Oracle JDBC JAR的清单:
Manifest-Version: 1.0
Specification-Title: Oracle JDBC driver classes for use with JDK14
Sealed: true
Created-By: 1.4.2_14 (Sun Microsystems Inc.)
Implementation-Title: ojdbc14.jar
Specification-Vendor: Oracle Corporation
Specification-Version: Oracle JDBC Driver version - "10.2.0.4.0"
Implementation-Version: Oracle JDBC Driver version - "10.2.0.4.0"
Implementation-Vendor: Oracle Corporation
Implementation-Time: Sat Feb 2 11:40:29 2008
Run Code Online (Sandbox Code Playgroud)根据Windows帮助NET USE,当使用没有选项时,列出计算机的连接.
我想在powershell中找到一种方法来获取net use输出中的Remote条目列表.
我知道作为一种极端措施,我可以解析"net use"命令本身的结果,但我宁愿不依赖于该命令的文本输出.
有人可以帮帮我吗?谢谢
米歇尔
Status Local Remote Network
-------------------------------------------------------------------------------
OK \\SERVER02\example Microsoft Windows Network
OK \\SERVER02\prova Microsoft Windows Network
Disconnected \\SERVER03\test Microsoft Windows Network
OK \\SERVER02\remoteshare Microsoft Windows Network
Disconnected \\SERVER03\remoteshare
Run Code Online (Sandbox Code Playgroud)