当前位置:网站首页>Best practices for Oracle kingbasees migration of Jincang database (2. Overview)
Best practices for Oracle kingbasees migration of Jincang database (2. Overview)
2022-07-27 20:48:00 【Thousands of sails passed by the side of the sunken boat_】
2. summary
This chapter contains the following :
2.1. Oracle Overview of compatible features
Usually , The workload of heterogeneous database migration is heavy . These workloads mainly come from : In data type 、SQL Language 、PL/SQL Language 、 Even the client application programming interface and many other aspects of the two databases 、 A lot of syntax or functional alignment processing .
alike , from Oracle towards KingbasES The same is true of transplantation . To reduce the workload of migration ,KingbaseES In its internal implementation of a large number of Oracle Compatibility features . These features Grammatically or functionally correct Oracle Provides native support . therefore , In the process of transplantation ,Oracle With little or no change, the program can be used in KingbaseES Running in the environment .
Besides , For those without native support Oracle function ,KingbaseES The corresponding transplantation suggestions are also given .
2.1.1. data type
Data type is a common means to describe the underlying information resource pattern of database system . Usually , The compatibility of the data types of the two database systems directly affects the difficulty of transplantation . therefore ,KingbaseES Yes Oracle The unique data types of provide comprehensive native support . These types are as follows Oracle Of NUMBER、VARCHAR2、CHAR(n) and DATE etc. . More Than This ,KingbaseES Yes Oracle PL/SQL The complex data types used in also provide compatibility support , These types are as follows Oracle Of RECORD type 、%TYPE attribute 、%ROWTYPE attribute 、 Associative array 、 Variable arrays and nested tables .
About interval The data type is currently V8.6 and Oracle There are some differences , Mainly in terms of precision and grammatical format . Accuracy ,V8.6 interval The default precision is 6 position ,Oracle The default precision is 9 position ; Grammatical format ,Oracle Supported Syntax V8.6 Basically supported . Therefore, there are some differences in accuracy in transplantation , from Oracle Migration to V8.6 Data may be truncated .
2.1.2. SQL sentence
stay KingbasES in , For most commonly used Oracle specific SQL Statements provide native support . This measure makes Oracle The application is KingbaseES Usually, the system can run normally with few code changes .
KingbaseES The main compatibility is as follows Oracle Of SQL sentence :
TRUNCATE sentence
Hierarchical query
DUAL False watch
SELECT INTO Of FOR UPDATE sentence
UPDATE[ Prefix ] Multi column update
INSERT INTO TABLE([ Prefix ] Column )
DELETE [FROM] sentence
Support WITH Clause
Support DBLINK
Support CREATE FORCE VIEW
Support SEQUENCE Access clause
These are SQL Statements are implemented from the syntax and semantics Oracle compatible .
2.1.3. PL/SQL grammar
KingbaseES Support the following Oracle PL/SQL Common syntax :
Assignment statement
IF-THEN-ELSE sentence
CASE sentence
Multiple loop statements , Such as LOOP sentence 、WHILE-LOOP Statement and FOR LOOP sentence
GOTO sentence
%TYPE Properties and %ROWTYPE attribute
REF CUSOR The cursor
%NOTFOUND、%FOUND、%ISOPEN and %ROWCOUNT Cursor properties
RETURNING INTO sentence
EXECUTE IMMEDIATE sentence
Support BULK COLLECT
PL/SQL Support collection types ( Associative array 、 Nested table 、 Variable array )
PL/SQL exception handling
FORALL sentence
2.1.4. PL/SQL object
KingbaseES Support the following Oracle PL/SQL object :
Built in scalar functions
Row level BEFORE trigger
Row level AFTER trigger
INSTEAD OF trigger
Anonymous block
stored procedure
function
subtypes
object type
package
2.1.5. client SQL Interactive tools
in application , Usually customers DDL Scripts and reports are through SQL Transplanted by interactive tools . In this case ,KingbaseES The following are provided SQL Interactive tools :
KSQL: Command line SQL Interactive tools , similar Oracle Of SQL* PLUS.
Database system management tools : Graphic SQL Interactive tools , similar Oracle Of SQL Developer Graphic tool .
Through the above tools , Users can connect to the database server , Run the database utility , send out SQL sentence , function SQL Script , Or run KingbaseES Database management commands implement database management, etc .
2.2. Relevant technical resources
This guide focuses on statement compatibility features 、 Migration tools 、 The migration scenario and application migration are described Oracle The key technology and implementation of transplantation . In the description of each technology and implementation , This guide provides only a limited introduction , Comprehensive details are not provided . therefore , If you need to know the implementation details of some technologies, please also refer to the relevant technical materials .
边栏推荐
- Pytorch multiplication and broadcasting mechanism
- Preprocessing and macro definition
- When adding RTSP devices to easycvr platform, what is the reason for the phenomenon that they are all connected by TCP?
- EasyCVR平台关闭录像为何还会有TS切片文件生成?
- Innovative cases | the growth strategy of digitalization of local life services and upgrading of Gaode brand
- Idea: solve the problem of code without prompt
- SQL高级技巧CTE和递归查询
- People call this software testing engineer. You're just making a living (with HR interview Dictionary)
- js中数组与字符串常用方法属性总结
- Flask Mdict builds online MDICT Dictionary Service
猜你喜欢

Knowledge dry goods: basic storage service novice Experience Camp

Using dataX to realize efficient synchronization of MySQL data

用户组织架构的管理

金仓数据库 Oracle 至 KingbaseES 迁移最佳实践 (4. Oracle数据库移植实战)

EasyCVR平台关闭录像为何还会有TS切片文件生成?

How to improve the picture transmission speed and success rate in the development of IM instant messaging under the mobile network

To do the test, you have to go to the big factory and disclose the "hidden rules" of bat big factory recruitment internally

【数据集显示标注】VOC文件结构+数据集标注可视化+代码实现

access control

Anfulai embedded weekly report no. 275: 2022.07.18--2022.07.24
随机推荐
Express WEB服务器的简单使用
【程序人生】“阶段总结“-不甘平凡
Software test interview question: string "axbyczdj", if you get the result "ABCD"
软件测试面试题:已知一个队列,如: [1, 3, 5, 7], 如何把第一个数字,放到第三个位置,得到:[3, 5, 1, 7]
人家这才叫软件测试工程师,你那只是混口饭吃(附HR面试宝典)
【Dart】一门为跨端开发而生的编程语言
Management of user organization structure
Introduction to JVs Foundation
Koin simple to use
Arduino开发(二)_基于Arduino UNO开发板的RGB灯光控制方法
Users and permissions restrict users from using resources
软件测试面试题:字符串 “axbyczdj“,如果得到结果“abcd
Under the epidemic, I left my job for a year, and my income increased 10 times
Pytorch multiplication and broadcasting mechanism
[benefit activity] stack a buff for your code! Click "tea" to receive the gift
EasyCVR平台添加RTSP设备时,出现均以TCP方式连接的现象是什么原因?
A layered management method of application layer and hardware layer in embedded system
Users and permissions create ordinary users
[efficiency] abandon notepad++, this open source substitute is more awesome!
DP (dynamic programming)