菜鸟关于数据导入Oracle的问题 - Oracle / 基础和管理
1、将ACCESS中的一个表导出为asd.txt后,放在桌面上,在CMD.EXE中运行
C:\Documents and Settings\Administrator>type asd.txt
老提示“系统找不到指定文件”。
2、另外,请问load1.ctl这个控制文件是在什么环境下写的?我先是在.txt文件中写
load data
infile 'asd.txt'
into table asd
fields terminated by "," optionally enclosed by '"'
(col1,col2)
这些语句,然后把后缀.txt直接改成.ctl。然后再在CMD.EXE中运行
C:\Documents and Settings\Administrator>sqlldr userid=scott/tiger control=load1.ctl
老是提示文件不存在。
请高手就上面两个问题及aqlloader的使用步骤指点一二,谢了!
Documents and Settings 有空格,估计不支持
相关问答:
在执行包的时候引用oracle spatial空间函数出错,出错情况如下
Errors in file
/user/oracle/app/oracle/admin/grid/udump/grid1_ora_143768.trc: ORA-29902:
error in executing ODCIIndexStart() routine ORA-0 ......
SQL code:
CREATE OR REPLACE PROCEDURE usp_refreshTopN IS
BEGIN
--文档
INSERT INTO topnresource(resourceId,title,type,cover,brief,properUser,tag,clickAmount,createDate,topNCreateDate,organizat ......
oracle函数如下:
create or replace function P_WEB_GETCITYID
(
p_mobileNumber in VARCHAR2,
p_cityid out NUMBER
) Return NUMBER
IS
p_areacode varc ......
通过NAME字段条件查询一个数据表,假设我有100个姓名,有以下两个方法,
方法1:
把100个Name 组成一个SQL语句,比如 Select * from tmp_table where Name='张三' or Name ='李四' Or ...Or Name='第一百个姓名'
......
今天遇到一个很诡异的问题。我在一张表中新增了一个字段。然后用如下脚本更新这个字段的值:
SQL code:
update ibp_fund_information_tab set yield = 7.4520 where fund_code = '040003' and info_date = ......