【 使用环境 】生产环境 or 测试环境
【 OB or 其他组件 】
【 使用版本 】
【问题描述】适用obloader导入ddl的时候 报错
[root@jl-uat-oceanbase-7-225 ob-loader-dumper-4.2.4-RELEASE]#./bin/obloader -h172.20.7.222 -P2883 -uroot@test_user#obcluster1 -p’*****’ -Dobcp4 --sql --ddl --all -f’./ext/’
2025-12-04 11:55:57 [INFO] Parsed args:
[–ddl] true
[–sql] true
[–file-path] ./ext/
[–host] 172.20.7.222
[–port] 2883
[–user] root@test_user#obcluster1
[–password] ******
[–database] obcp4
[–sys-user] root
[–all] true
2025-12-04 11:55:57 [INFO] Load jdbc driver class: “com.oceanbase.jdbc.Driver” finished
2025-12-04 11:55:58 [WARN] Object type: [ext] is unsupported. Use ObjectType.FILE instead of it.
2025-12-04 11:55:58 [WARN] Object type: [ext] is unsupported. Use ObjectType.FILE instead of it.
2025-12-04 11:55:58 [INFO] Find 0 resources in local path: “/tmp/ob-loader-dumper-4.2.4-RELEASE/./ext” success. Elapsed: 61.66 ms
2025-12-04 11:55:58 [ERROR] Load failed! Error: The -schema.sql files are not found.
2025-12-04 11:55:58 [ERROR] System exit 1
root@jl-uat-oceanbase-7-225 ob-loader-dumper-4.2.4-RELEASE]# ll ext/
total 8
-rw-r----- 1 root root 2939 Dec 1 14:21 all-schema.sql
drwxr-x— 2 root root 23 Dec 4 11:29 data
drwxr-x— 3 root root 109 Dec 4 11:13 logs
-rw-r----- 1 root root 421 Dec 4 11:55 test_table-schema.sql
各种参数都试过 只有指定-f’./ext/test_table-schema.sql’的时候才能成功 有大佬能解答一下吗
【复现路径】问题出现前后相关操作
【附件及日志】推荐使用OceanBase敏捷诊断工具obdiag收集诊断信息,详情参见链接(右键跳转查看):
【备注】基于 LLM 和开源文档 RAG 的论坛小助手已开放测试,在发帖时输入 [@论坛小助手] 即可召唤小助手,欢迎试用!
