oracle怎么导入单表 oracle导入某个表数据

oracle怎样导入单张表?如果用的是exp导出的话,
imp 用户名/密码 tables=表名 ignore=y file=文件名
如果是expdp导出的话
impdp 用户名/密码 TABLES=表名 DIRECTORY=目录名 DUMPFILE=文件名
不知道你是全删了,还是只删了一部分 , 最好建个测试表试试,小心不要把数据搞混了
【oracle怎么导入单表 oracle导入某个表数据】你可以查一下imp 和 impdp命令的具体应用
从oracle数据库里想导出单个表,怎么导出呀1、打开电脑左下角【开始菜单】,在右侧找到【运行】选项
2、在弹出的运行栏输入【cmd】,点击确定
3、在弹出的cmd命令行界面输入【exp】命令 , 点击回车
4、此时进入oracle命令行界面,输入用户名和密码,点击回车
5、登录成功设置导出数据参数,选择数据文件导出路径,点击回车
6、参数设置完成,此时进行导出表数据操作
7、操作完成找到存放的路径 , 可以看到此书生成一个DMP文件 。
如何将excel数据导入oracle方法总结 1、打开pl/sql,如图所示界面,点击菜单栏中的T00LSODBC Imtorper,打开ODBC Importer选项框
2、在Data fromODBC页中选择需要导入的文件的格式,选择ExcelFiles.输入用户名密码 。然后点击Connect
3、在跳出的选择工作簿对话框,选择所要导入的Excel文件,点击确定 。在出现的Table/Query中的Import Table中单击表名,可以在下方的ResultPreview中看到所要导入的表格的内容
4、点击Date to Oracle按钮,打开Date to Oracle选项框,选则你要导入的表名,本次导入表为SFISM4.U_RF_ID_DATA,在Owner下拉菜单中选SFISM4,在Table下拉菜单选择U_RF_ID_DATA,在Fields选则你要导入的字段,本次导入的字段是SERIAL_NUMBER,点击Import将成批数据导入Oracle数据库中,这样就完成了导入数据 。
谢谢采纳
哪位高手会oracle 的简单操作的?。烤褪荗RACLE数据库的导入、导出、备份,查询 , 两张表的连接等等操作希望oracle怎么导入单表他们是DOS下运行的命令,也可以加参数在SQL/PLUS环境下运行
oracle怎么导入单表我写给oracle怎么导入单表你2个简单例子实现
单表备份(前提库的结构是一样的)
导出:
开始钮-运行-输入CMD-进入DOS界面
EXP 用户名/密码@连接字符串 GRANTS=Y TABLES=(stu) file=C:\文件名.DMP
导入:
开始钮-运行-输入CMD-进入DOS界面
IMP 用户名/密码@连接字符串 IGNORE=Y TABLES=(stu) FULL=N file=C:\文件名.DMP
其中stu是你要的表名
全库导
导出:
开始钮-运行-输入CMD-进入DOS界面
EXP 用户名/密码@连接字符串 FULL=Y file=C:\文件名.DMP
导入:
开始钮-运行-输入CMD-进入DOS界面
IMP 用户名/密码@连接字符串 FULL=Y file=C:\文件名.DMP
你说的情况按全库导做就可以了.
其实还是有很多参数可以设置,这里只是最简单命令方便你理解.
另外建议把ORACLE问题分类到数据库问题里,那里有很多更专业的热心高手帮你
在Oracle ERP中导数据(BOM清单)方法:把数据导入BOM清单的方法是 把数据导入接口表中 让其自动运行既可 上传文件的时候 要注意使 用ASCII字符模式自己建立一中转表 drop table cux_bill_temp;create table cux_bill_temp(bill_sequence_id number assembly_item_id number anization_id number assembly_item varchar ( ) BOMponent_sequence_id number ponent_quantity number 组件数量item_num number 项目序列operation_seq_num number 工序序列ponent_item_id number ponent_item varchar ( ) 组件PLANNING_FACTOR number 计划%d ponent_yield_factor number 产出率d wip_supply_type number 供应类型supply_type varchar ( ) supply_subinventory varchar ( ) 供应子库存OPTIONAL number 可选的OPTIONAL_disp varchar ( ) 可选的MUTUALLY_EXCLUSIVE_OPTIONS number 互不相容MUTUALLY_EXCLUSIVE_O_disp varchar ( ) 互不相容attribute varchar ( ) 排序号row_num number);删除中转表中的数据 delete cux_bill_temp;把要导入的数据放在扩展名为* csv的文件中 且要相对应于中转表的字段 本例中的文件名为bill csv另外的脚本文件为bill ctl 其内容如下:options (skip= ) //跳过第一行 一般第一行为其字段说明LOAD DATAINFILE bill csv //bill csv为数据文件APPENDINTO TABLE cux_bill_tempFIELDS TERMINATED BY OPTIONALLY ENCLOSED BY (与中转表相对应的字段列表)登录进入ORACLE数据库服务器 利用命令:(sqlload 用户名/密码@数据库名)载入文件bill csv的数据入中转表查看中转表中的记录数(以备导入数据后进行对比) select count(*) from cux_bill_temp;去除导入时在表bill csv中的关键字段的空格字符 以免影响导入update cux_bill_tempset ASSEMBLY_ITEM=replace(ASSEMBLY_ITEM ) PONENT_ITEM=replace(PONENT_ITEM );查看是否有重复的选项(既是否重复了Item) select assembly_item ponent_item min(row_num) count(*)from cux_bill_tempgroup by assembly_item ponent_itemhaving count(*) ;如果有重复的Item 则要删除(或是重新合并)delete cux_bill_tempwhere row_num in (select min(row_num) from cux_bill_tempgroup by assembly_item ponent_itemhaving count(*) );以下步骤为选做(如有重复才做 没有重复不做 )再重新建立一个临时表(对于有重复数据 则只取一条数据 现取row_num最小的一条) drop table cux_bill_a;create table cux_bill_aasselect assembly_item ponent_item ponent_quantity PLANNING_FACTOR ponent_yield_factor supply_type supply_subinventory OPTIONAL_disp MUTUALLY_EXCLUSIVE_O_disp attribute min(row_num) row_numfrom cux_bill_tempgroup by assembly_item ponent_item ponent_quantity PLANNING_FACTOR ponent_yield_factor supply_type supply_subinventory OPTIONAL_disp MUTUALLY_EXCLUSIVE_O_disp attribute ;删除cux_bill_temp表 delete cux_bill_temp;再重cux_bill_a表中把数据导入给cux_bill_temp表 完成把重复数据剔除的功能 insert into cux_bill_temp(assembly_item ponent_item ponent_quantity PLANNING_FACTOR ponent_yield_factor supply_type supply_subinventory OPTIONAL_disp MUTUALLY_EXCLUSIVE_O_disp attribute row_num)select assembly_item ponent_item ponent_quantity PLANNING_FACTOR ponent_yield_factor supply_type supply_subinventory OPTIONAL_disp MUTUALLY_EXCLUSIVE_O_disp attribute row_numfrom cux_bill_a;删除表cux_bill_a drop table cux_bill_a;再检查一次表 是否有重复的数据 select assembly_item ponent_item min(row_num) count(*)from cux_bill_tempgroup by assembly_item ponent_itemhaving count(*) ;查看在mtl_system_items表中 既是在库存表中 有没有不存在的Itemselect distinct itemfrom (select distinct assembly_item itemfrom cux_bill_temp bwhere not exists (select null from mtl_system_items where segment =b assembly_item and anization_id= )unionselect distinct ponent_item itemfrom cux_bill_temp bwhere not exists (select null from mtl_system_items where segment =ponent_item and anization_id= ))order by item;如果在mtl_system_items中 有不存在的物品ITEM时 要把其删除(或是把这些物品Item导入到系统中) 删除:delete cux_bill_temp bwhere not exists (select null from mtl_system_items where segment =ponent_item and anization_id= );delete cux_bill_temp awhere not exists (select null from mtl_system_items where segment =a assembly_item and anization_id= );对没有物品Item的进行处理 把其放入另一临时表cux_item_temp中(以备查询及导入mtl_system_items表中) delete cux_item_temp;insert into cux_item_temp(segment description)select distinct item itemfrom (select distinct assembly_item itemfrom cux_bill_temp bwhere not exists (select null from mtl_system_items where segment =b assembly_item and anization_id= )unionselect distinct ponent_item itemfrom cux_bill_temp bwhere not exists (select null from mtl_system_items where segment =ponent_item and anization_id= ));将找到没有ITEM的BOM数据放到另一个表中 以备下次ITEM导入后在导BOMcreate table cux_bom_temp select distinct itemfrom (select distinct assembly_item itemfrom cux_bill_temp bwhere not exists (select null from mtl_system_items where segment =b assembly_item and anization_id= )unionselect distinct ponent_item itemfrom cux_bill_temp bwhere not exists (select null from mtl_system_items where segment =ponent_item and anization_id= ))从表mtl_system_items中把物品的编码ID加入中转表cux_bill_temp表(从项目主组织)中 update cux_bill_temp bset assembly_item_id=(select inventory_item_id from mtl_system_itemswhere segmen lishixinzhi/Article/program/Oracle/201311/18605
oracle如何向一张表导入另一张表的部分数据实现的方法和详细的操作步骤如下:
1、第一步,如果要从Oracle实例orcl导出多个dmp文件表,则在打开cmd窗口后 , 首先设置环境变量以将Oracle实例切换为orcl(设置ORACLE_SID
= orcl),然后登录到sqlplus
,如下图所示,然后进入下一步 。
2、其次,完成上述步骤后,可以使用sql语句“select * from dba_directories”以查看当前实例下可用的dmp导出目录 。
导出dmp文件时,可以选择其中之一,如下图所示,然后进入下一步 。
3、接着 , 完成上述步骤后,退出sqlplus并使用命令“expdp”导出需要的数据库表dmp文件,如下图所示 , 然后进入下一步 。
4、最后,完成上述步骤后 , 就可以将该文件导入实例orcl中的另一个用户,如下图所示 。这样,问题就解决了 。
oracle怎么导入单表的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于oracle导入某个表数据、oracle怎么导入单表的信息别忘了在本站进行查找喔 。

    推荐阅读