将数据从文本文件加载到oracle中的表 [英] Loading data from a text file to a table in oracle

查看:217
本文介绍了将数据从文本文件加载到oracle中的表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有2个问题.

  1. 除了使用SQL加载程序以外,是否有其他方法可以从.txt文件将数据加载到Oracle中的表?
  2. 如何将表中的数据卸载到文本文件中?
  1. Is there any way to load data to a table in Oracle from a .txt file other than using SQL loader?
  2. How to unload data from the table to a text file?

请帮助我.

谢谢.

推荐答案

有很多选择.这取决于上下文-您的Oracle版本,数据格式,是在客户端还是在服务器上等等.这是一个快速列表,可能还有许多其他方法:

There are a bunch of options. It depends on the context - your Oracle version, data format, is this on the client or the server, etc. Here's a quick list, there are probably many other methods:

文件输入:

  • UTL_FILE
  • SQL*Loader
  • DBMS_XSLPROCESSOR.READ2CLOB
  • External Tables
  • xmltype.createXML with BFILE
  • Oracle SQL Developer or other third-party tool

文件输出:

  • UTL_FILE
  • Data Dump Utility (wrapper around UTL_FILE)
  • DBMS_XSLPROCESSOR.CLOB2FILE
  • External Tables
  • SQL*Plus script
  • Oracle SQL Developer or other third-party tool

这篇关于将数据从文本文件加载到oracle中的表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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