如何在oracle 10g中上传大型SQL脚本? [英] How to upload a large SQL script in oracle 10g?

查看:85
本文介绍了如何在oracle 10g中上传大型SQL脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用502944插入语句上传sql脚本文件。文件大小为145MB。



我收到此错误。

I am trying to upload a sql script file with 502944 insert statements. The file size is 145MB.

I am getting this error.

Quote:

脚本超出了允许的最大大小。

The script exceeds the maximum size allowed.





我尝试了什么:



Google上的一些解决方案指出了一种改变SQL脚本大小的方法,但我无法做到t作为服务经理登录。



这是解决方案:



What I have tried:

Some of the solutions on google pointed out a way to change the size of SQL scripts, but I couldn't log in as a service manager.

This was the solution:

Quote:

以服务管理员身份登录(... pls / apex / apex_admin)并导航到主页>管理服务>功能配置,您将看到SQL脚本最大脚本大小字节设置。

Login as the Service Administrator (...pls/apex/apex_admin) and navigate to Home>Manage Service>Feature Configuration where you'll see a setting for "SQL Scripts Maximum Script Size in bytes".





[来自CHill60的编辑 - 我正在删除我的解决方案,因为它不适用于OP。以下是我们通过对该解决方案的评论进行的对话的总结]

有人建议我将脚本拆分成适合的文件,但默认情况下,sql脚本大小为500000字节,这是0.5 MB。这将持有约1735份陈述。如果我要拆分脚本,那就意味着我必须将它拆分为290个这样的文件!!



我独自工作而且我必须独自完成。我也不能在管理员帐户中获得oracle 10g中的Manager服务选项。但我不明白这一点。主页>管理服务>功能配置

我只有以下选项:

1. https://postimg.org/image/ysolqfckv/

2. https:// postimg .org / image / s3i2aer8v /

推荐答案

尝试添加提交;在脚本中每100次插入后。
try to add commit; after every 100 inserts in your script.


这篇关于如何在oracle 10g中上传大型SQL脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆