如何实现MSSQL7.0、Sysbase、Access向Oracle8i移植
随着Oracle在中国的广泛应用,许多原来使用MS SQL7.0、Sysbase、Access等数 据库的用户都碰到了数据 移植 的问题。 其实,存在着许多的方法,这里将介绍3 种方法。 1、使用MS SQL7.0自带的Import/Export工具 Import/Export工具可以方便的把数据 移植 到Oracl
随着Oracle在中国的广泛应用,许多原来使用MS SQL7.0、Sysbase、Access等数 据库的用户都碰到了数据移植的问题。 其实,存在着许多的方法,这里将介绍3 种方法。1、使用MS SQL7.0自带的Import/Export工具 Import/Export工具可以方便的把数据移植到Oracle。你需要通过定义ODBC For Oracle 作为目的源。这样的方法可以保证SQL7的绝大部分数据移植到Oracl e中去,但预先你必须在Oracle建立user 和 相应的tablespace。因为SQL7中有 一 些特殊的datatype,如text 、image等。当一个table中有多于一个text或image 的字段时,将出现错误,不能执行。这是你需要做出选择,或者把text 镜像为v archar2(4000),或者镜像为Long datatype,但long datatype一个table里只能 有一个。而且,还有可能遇到字符集的问题,最好用第三种方法或者第四种。所 以你遇到这样的情况,可以结合使用第3种方法。
2、使用Oracle Migration Workbanch。 目前的版本是2.2,这个工具可以在http://technet.oracle.com免费下载。 它是Oracle提供的一个代替SQl*Loader的工具,当然目前该工具仍然不能完全取 代SQL*Loader。使用OMWB,只要你定义了ODBC for MS SQL7 或Access或Sysbase ,就可以很方便的把tabels、views、triger、procedure、shortnaps、users等 完全转到Oracle中去,对于text,可以镜像为CLOB类型,CLOB类型可以在一个Or acle table里有多列。 image可以镜像为BLOB。但是遗憾的是,OMWB2.2不支持 中 文CLOB,无论我如何调整,数据migrate到Oracle后,都变成了????,如果谁有 解 决的方法,别忘了email给我。我对OMWB对数据流(如image,video,sound)的控 制非常的欣赏。
3、使用Oracle的 SQL*Loader 使用SQL*Loader,也许是最不方便的方法,但是是最有效的方法。可以使用 各种方法把源数据导到一个外部分件中。我使用了MS SQL7带的BCP工具,可以把 那些特殊多text字段的tables导出作为外部文件。然后使用SQL*Loader在把这些 数据导到Oracle的一个临时表里,在对第2中方法出现的????字段进行update。
4、使用程序进行移植 例子:从SQL7.0向基于Linux下的Oracle数据库倒入数据: 程序语言:java 与数据库的连接 SQL7.0:jdbc-odbc桥,java自带。 Oracle:jdbc,Oracle提供。 代码如下:
import java.lang.*;
import java.sql.*;
import oracle.jdbc.driver.*; //倒入要用到的包
public class hhw extends Object
{ public static void main(String args[]) throws SQLException, ClassNotFoundException //抛出SQLException异常 { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Class.forName ("oracle.jdbc.driver.OracleDriver"); // 登记驱动程序,准备联接数据库
Connection cn1 =DriverManager.getConnection"jdbc:oracle:thin:@192.16 8.1.52:1521:SONIC", "sadly", "sadly");
Connection cn2 =DriverManager.getConnection"jdbc:odbc:sql", "sa", "" ); //联接到数据库,建立到两个数据库的连接
Statement s1=cn1.createStatement();
Statement s2=cn2.createStatement();
ResultSet rs1=s2.executeQuery("select * from users where id>0 and id
int id;
String name=new String("1");
String passwd=new String("1");
String email=new String("1"); //执行另一个查询,向目的数据库插入数据
while(rs1.next())
{id=rs1.getInt(1);
name=rs1.getString("name");
passwd=rs1.getString("passwd");
email=rs1.getString("email"); //System.out.print(id+name+passwd+email);
s1.executeQuery("insert into bbsuser values(\\"+id+"\,\\"+name+"\,\\"+pas swd+"\,\\"+email+"\)"); } }}

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











SQL IF statements are used to conditionally execute SQL statements, with the syntax as: IF (condition) THEN {statement} ELSE {statement} END IF;. The condition can be any valid SQL expression, and if the condition is true, execute the THEN clause; if the condition is false, execute the ELSE clause. IF statements can be nested, allowing for more complex conditional checks.

Methods to solve the cross-domain problem of Vue Axios include: Configuring the CORS header on the server side using the Axios proxy using JSONP using WebSocket using the CORS plug-in

How to configure Zend in Apache? The steps to configure Zend Framework in an Apache Web Server are as follows: Install Zend Framework and extract it into the Web Server directory. Create a .htaccess file. Create the Zend application directory and add the index.php file. Configure the Zend application (application.ini). Restart the Apache Web server.

The advantage of multithreading is that it can improve performance and resource utilization, especially for processing large amounts of data or performing time-consuming operations. It allows multiple tasks to be performed simultaneously, improving efficiency. However, too many threads can lead to performance degradation, so you need to carefully select the number of threads based on the number of CPU cores and task characteristics. In addition, multi-threaded programming involves challenges such as deadlock and race conditions, which need to be solved using synchronization mechanisms, and requires solid knowledge of concurrent programming, weighing the pros and cons and using them with caution.

The main reasons why you cannot log in to MySQL as root are permission problems, configuration file errors, password inconsistent, socket file problems, or firewall interception. The solution includes: check whether the bind-address parameter in the configuration file is configured correctly. Check whether the root user permissions have been modified or deleted and reset. Verify that the password is accurate, including case and special characters. Check socket file permission settings and paths. Check that the firewall blocks connections to the MySQL server.

This article describes how to effectively monitor the SSL performance of Nginx servers on Debian systems. We will use NginxExporter to export Nginx status data to Prometheus and then visually display it through Grafana. Step 1: Configuring Nginx First, we need to enable the stub_status module in the Nginx configuration file to obtain the status information of Nginx. Add the following snippet in your Nginx configuration file (usually located in /etc/nginx/nginx.conf or its include file): location/nginx_status{stub_status

The key to PHPMyAdmin security defense strategy is: 1. Use the latest version of PHPMyAdmin and regularly update PHP and MySQL; 2. Strictly control access rights, use .htaccess or web server access control; 3. Enable strong password and two-factor authentication; 4. Back up the database regularly; 5. Carefully check the configuration files to avoid exposing sensitive information; 6. Use Web Application Firewall (WAF); 7. Carry out security audits. These measures can effectively reduce the security risks caused by PHPMyAdmin due to improper configuration, over-old version or environmental security risks, and ensure the security of the database.

Effective monitoring and defense against malicious website access is crucial to the Apache server on the Debian system. Apache access logs are the key source of information to identify such threats. This article will guide you on how to analyze logs and take defensive measures. The Apache access log that identifies malicious access behaviors Debian systems is usually located in /var/log/apache2/access.log. You can analyze the logs in a variety of ways: Log file location confirmation: First, please confirm the exact location of your Apache access log, which may vary slightly depending on the system configuration. Command line tool analysis: Use grep command to search for specific patterns, such as grep "404"
