How to extract controlfiles, datafiles, and archived logs from SMR backupsets without using RMAN
2010-04-11 16:46
746 查看
1. win32com.dll拷贝到%JAVA_HOME%/bin下
2. comm.jar拷贝到project 的lib下
3. 初始化时加载win32com.dll
/** 加载win32com.dll (win32com.dll拷贝到%JAVA_HOME%\bin下)***************/
String driverName = "com.sun.comm.Win32Driver";//javax.comm.properties中Driver变量的值
CommDriver driver = null;
try {
System.loadLibrary("win32com");//dll名称
driver = (CommDriver) Class.forName(driverName).newInstance();
driver.initialize();
} catch (InstantiationException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (IllegalAccessException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (ClassNotFoundException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}finally{;}
/** ************** */
附注:
附件是一个检测串口连接设备的bat文件运行程序。
2. comm.jar拷贝到project 的lib下
3. 初始化时加载win32com.dll
/** 加载win32com.dll (win32com.dll拷贝到%JAVA_HOME%\bin下)***************/
String driverName = "com.sun.comm.Win32Driver";//javax.comm.properties中Driver变量的值
CommDriver driver = null;
try {
System.loadLibrary("win32com");//dll名称
driver = (CommDriver) Class.forName(driverName).newInstance();
driver.initialize();
} catch (InstantiationException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (IllegalAccessException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (ClassNotFoundException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}finally{;}
/** ************** */
附注:
附件是一个检测串口连接设备的bat文件运行程序。
相关文章推荐
- How to load and generate a custom hierarchy in SAP Business Warehouse (SAP BW) without using flat files
- (极力推荐)BW:How to load and generate a custom hierarchy in SAP Business Warehouse (SAP BW) without using flat files
- BW:How to load and generate a custom hierarchy in SAP Business Warehouse (SAP BW) without using flat files
- How to extract .img files built from AOSP(Android Open Source Project)?
- [GUIDE] How to make a nandroid backup directly to your computer without using sdcard
- Step By Step Guide To Create Physical Standby Database Using RMAN Backup and Restore (Doc ID 469493.
- how to monitor system logs and export to files simultaneously
- How to delete expired archive log files using rman?
- How to load all files from directory using JQuery ?
- How will you print numbers from 1 to 100 without using loop?
- How to copy a datafile from ASM to a file system not using RMAN
- How To Build Multi-control Components when Inheriting from an Existing Control (Intro and TextBox Example)
- Introduction to Tablespaces, Datafiles, and Control Files【每日一译】--2012-10-28
- How to Copy Archivelog Files From ASM to Filesystem and vice versa
- How to copy a datafile from ASM to a file system not using RMAN (Doc ID 428893.1)
- 如何从操作系统安装文件提取驱动文件/ How to extract driver files from setup files (win 7)
- How to extract datafiles from asm diskgroup?
- How to access HBase from spark-shell using YARN as the master on CDH 5.3 and Spark 1.2
- How to extract datafiles from asm diskgroup?
- This tip shows how to extract the width and height from a bitmap source file on disk.