本文档以MS SQL Server2000Oracle 10g为例,使用的Oracle SQL Developer版本为2.1.1.64

一、准备步骤:

由于Oracle SQL Developer自带的JDBC驱动只支持AccessOracle,所以在进行与MS SQL进行数据移植前,要放入对应的JDBC驱动附下载地址。在工具----首选项----数据库----第三方JDBC驱动程序中加入相应的JAR包。

MSSQL2ORACLE.jpg

(附:其他数据库的驱动下载地址:My sqlSybase


Submitting Commands and SQL to the Database

 | 0 Comments

The primary means of communicating with Oracle Database is by submitting SQL statements. 主要使用SQL语句与Oracle数据库沟通

Oracle Database also supports a superset of SQL, which includes commands for starting up and shutting down the database, modifying database configuration, and so on. There are three ways to submit these SQL statements and commands to Oracle Database:

  • Directly, using the command-line interface of SQL*Plus 命令行

  • Indirectly, using the graphical user interface of Oracle Enterprise Manager 图形界面

    With Oracle Enterprise Manager (Enterprise Manager), you use an intuitive graphical interface to administer the database, and Enterprise Manager submits SQL statements and commands behind the scenes.

  • Directly, using SQL Developer 11g默认安装 早前数据库版本 Oracle.com下载

    Developers use SQL Developer to create and test database schemas and applications, although you can also use it for database administration tasks.

Tasks of a Database Administrator

 | 0 Comments

The following tasks present a prioritized approach for designing, implementing, and maintaining an Oracle Database: 设计,实现,维护

Task 1: Evaluate the Database Server Hardware 评估数据库硬件

Task 2: Install the Oracle Database Software 安装数据库软件

Task 3: Plan the Database 规划数据库

Task 4: Create and Open the Database 创建并打开数据库

Task 5: Back Up the Database 支持数据库

Task 6: Enroll System Users 注册系统用户

Task 7: Implement the Database Design 实现数据库设计

Task 8: Back Up the Fully Functional Database 支持数据库足够多的功能

Task 9: Tune Database Performance 调整数据库性能

Task 10: Download and Install Patches 下载安装补丁

Task 11: Roll Out to Additional Hosts 建立测试数据库

These tasks are discussed in the sections that follow.

1-6,8一般为部署工程师工作,7为开发人员工作,9,10为有可能的是维护人员做也有可能不做

Types of Oracle Database Users

 | 0 Comments

The types of users and their roles and responsibilities depend on the database site.

A small site can have one database administrator who administers the database for application developers and users.兼任管理员,应用开发已经最终用户

A very large site can find it necessary to divide the duties of a database administrator among several people and among several areas of specialization.必须根据不同区域划分管理员,以承担不同责任

ORACLE数据库简介

 | 0 Comments
ORACLE数据库是第一个被设计为企业网格计算的数据库。
   网格无需提供高负载,因为可以在需要时从资源池中获得和重新分配。

Oracle 批量插入记录

 | 0 Comments
这里使用了PL/SQL的联合数组.
我要将一组用'_'分隔的记录插入数据库,当然,这样做只是为了方便从java调用存储过程进行批量插入.

ORACLE 中ROWNUM用法总结

 | 0 Comments
对于 Oracle 的 rownum 问题,很多资料都说不支持>,>=,=,between...and,只能用以上符号(<、<=、!=),并非说用>, >=,=,between..and 时会提示SQL语法错误,而是经常是查不出一条记录来,还会出现似乎是莫名其妙的结果来,其实您只要理解好了这个 rownum 伪列的意义就不应该感到惊奇,同样是伪列,rownum 与 rowid 可有些不一样,下面以例子说明
有时候连得上数据库,有时候又连不上。
可能是数据库上当前的连接数目已经超过了它能够处理的最大值。

oracle 绑定变量(bind variable)

 | 0 Comments
oracle 中,对于一个提交的sql语句,存在两种可选的解析过程, 一种叫做硬解析,一种叫做软解析.
一个硬解析需要经解析,制定执行路径,优化访问计划等许多的步骤.硬解释不仅仅耗费大量的cpu,更重要的是会占据重要的们闩(latch)资源,严重的影响系统的规模的扩大(即限制了系统的并发行), 而且引起的问题不能通过增加内存条和cpu的数量来解决。

ORACLE小记-----对换列数据

 | 1 Comment
      今天朋友遇到个问题,比如一张表A 有两列数据a b,结果在数据输入的时候错误了,a 和b 的数据输入反了,如何对来