Files
hzdyjs/用户信息同步统一身份认证/sync_oracle/merge_all.sql
T
2026-09-02 09:58:57 +08:00

20 lines
775 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- ==========================================
-- Oracle 目标库 MERGE 同步说明
-- ==========================================
-- 生产同步不再直接使用本占位文件。
-- sync_user_to_sso.sh 会调用 oracle_gen_merge.py:
-- 1) 从 MySQL 源库读取部门/教职工/学生
-- 2) 生成带 MERGE 语句的临时 SQL
-- 3) 通过 sqlplus 执行写入认证中间库
--
-- 手动调试示例:
-- python3 oracle_gen_merge.py \
-- --host 127.0.0.1 --port 3306 --user root --password xxx \
-- --database hzdyjs_xg --output /tmp/merge.sql --full
-- sqlplus user/pass@host:1521/service @/tmp/merge.sql
-- ==========================================
WHENEVER SQLERROR EXIT SQL.SQLCODE
PROMPT Use oracle_gen_merge.py via sync_user_to_sso.sh
EXIT;