GBase 8s Oracle to GBase 8s Migration Guide

This guide details the manual migration of Oracle stored procedures, functions, and triggers to GBase 8s, covering syntax differences and specific…


GBase 8s Oracle to GBase 8s Migration Guide - cover page
Brand
GBase
Category
Other software
Document type
User Manual
Language
Chinese
Pages
11
File format
PDF
File size
639 KB
Published
15 October, 2026
Updated
15 October, 2026
MD5 checksum
AAAD44FD82C432B9EFF2B41CDE8423E7

About this manual

This document serves as a technical guide for migrating database objects from Oracle to GBase 8s. It focuses specifically on the manual translation of stored procedures, functions, and triggers, which are often difficult to migrate automatically using standard tools. The guide aims to minimize changes to application source code while adapting the business logic to GBase 8s syntax.

The text provides detailed comparisons between Oracle and GBase 8s syntax for various database objects. It covers the migration of stored procedure definitions, input/output parameters, variable assignments, control structures (IF, WHILE, FOR loops), exception handling, dynamic SQL, and cursors. Additionally, it explains how to migrate functions and triggers, including specific strategies for handling auto-increment fields and INSERT/UPDATE/DELETE events. This manual is written in Chinese.

What's inside

  • Overview
  • Stored Procedure Migration
  • Function Migration
  • Trigger Migration
  • Dynamic SQL
  • Cursors
  • Exception Handling
  • Variable Definitions
  • Control Structures
  • Syntax Differences

Frequently asked questions

What is the main difference between Oracle and GBase 8s IF statements?

The only syntax difference is that GBase 8s uses 'ELIF' instead of 'ELSIF' for the else-if condition.

Can GBase 8s support Oracle-style dynamic SQL with bind variables?

No, GBase 8s does not support bind variables in dynamic SQL. The conversion principle is to substitute variables directly into the SQL string before execution.

How many triggers are needed to migrate an Oracle trigger that handles INSERT, UPDATE, and DELETE?

GBase 8s does not support multiple events in a single trigger. You must migrate an Oracle trigger handling all three events into three separate triggers.

Download PDF (639 KB)