SYS@racdb1> create table siebel.S_ORG_EXT_201707101650 as select * from siebel.S_ORG_EXT where 1=2;
create table siebel.S_ORG_EXT_201707101650 as select * from siebel.S_ORG_EXT where 1=2
                                                     *
ERROR at line 1:
ORA-00997: illegal use of LONG datatype

原表有long字段不能直接用CREATE table as 复制,先根据原表的建表脚本建另外一张结构相同的表

之后用to_lob进行转换

INSERT INTO s_org_ext_201707101655( row_id, created, created_by, last_upd, last_upd_by, dcking_num, modification_num, conflict_id, par_row_id, accnt_flg, active_flg, buying_group_flg, bu_id, cg_dedn_auth_flg, cg_svp_a_lock_flg, cg_svp_lock_flg, cg_svp_skip_flg, cl_site_flg, contract_vis_flg, court_pay_flg, disa_cleanse_flg, evt_loc_flg, external_host_flg, fcst_org_flg, fund_elig_flg, good_standing_flg, incl_flg, int_org_flg, name, ondemand_sync_flg, plan_group_flg, prospect_flg, prtnr_flg, prtnr_publish_flg, rplcd_wth_cmpt_flg, skip_po_crdchk_flg, agency_flg, branch_flg, briefing_layout, client_flg, enterprise_flag, facility_flg, invstr_flg, lang_id, pr_rep_dnrm_flg, pr_rep_manl_flg, pr_rep_sys_flg, agency_inactive_dt, asgn_dt, asgn_usr_excld_flg, asset_amt, atm_count, avail_credit_amt, bill_pblshr_flg, bo_ordqry_end_dt, bo_ordqry_start_dt, cg_cons_end_offset, cg_cons_strtoffset, cg_prmo_end_offset, cg_ship_end_offset, cg_ship_strtoffset, cg_svp_upper_lock, chnl_annl_sales, chnl_qtr_sales, chnl_sales_growth, close_dt, cmpt_flg, credit_days, credit_score, cur_yr_bk, cur_yr_bl, cust_end_dt, cust_since_dt, db_last_upd, dedup_dataclnsd_dt, dedup_key_upd_dt, dedup_last_mtch_dt, disa_all_mails_flg, division_count, eai_sync_dt, emp_count, evt_hotel_std_rt, exch_dt, ful_center_flg, gsa_flg, hard_to_reach, hist_sls_exch_dt, hist_sls_vol, hshldhd_age, hshld_inc, hshld_kidage, hshld_kids, hshld_size, last_call_dt, last_mgr_revw_dt, latitude, longitude, misc_flg, num_hshlds, num_of_beds, num_regs, ori_ts, partner_flg, po_crdchk_thrsh, po_crdchk_thrsh_dt, po_pay_exch_dt, po_pay_flg, po_pay_max_amt, pri_yr_bk, pri_yr_bl, proced_flg, prtnrshp_start_dt, prtnr_sales_rank, ptntl_sls_exch_dt, ptntl_sls_vol, reference_cust_flg, reference_start_dt, sales_emp_cnt, service_emp_cnt, srv_provdr_flg, stat_chg_dt, store_size, suppress_share_flg, supress_call_flg, tax_exempt_flg, trgt_impl_dt, visit_frequency, weekly_acv, aba_number, accnt_pr_cmpt_id, accnt_type_cd, adl_status, agency_indicator, agency_nibrs_ind, aia_integ1_id, aia_integ_id, alias_name, alt_email_addr, alt_email_loc_cd, ans_srvc_ph_num, approval_status_cd, asgn_ph_ac, asgn_ph_cc, bank_code, base_curcy_cd, bo_cust_grp_cd, branch_type_cd, call_frequency, cc_txnproc_ac_num, cc_txnproc_vndr_id, cg_prmo_strt_day, cg_svp_status, channel_type, cmpny_name, core_city_cd, corp_cmpny_name, corp_stock_symbol, country_division, country_region, country_template, covered_by, creator_login, cross_street, curr_pri_lst_id, curr_rate_lst_id, cur_srv_addr_id, cur_yr_bk_curcy_cd, cur_yr_bl_curcy_cd, cust_stat_cd, db_last_upd_src, dedup_token, dept_num, desc_text, dflt_ship_prio_cd, dist_channel_cd, division, divn_cd, divn_terr_hier_id, divn_type_cd, dom_ult_duns_num, duns_num, eai_error_text, eai_exprt_stat_cd, email_addr, email_loc_cd, evt_loc_cd, exec_spnsr_pstn_id, expertise_cd, fbi_field_off_id, fin_resp_con_id, frd_owner_emp_id, frght_terms_cd, frght_terms_info, furi_cmpny_name, general_ledger, glblult_duns_num, grwth_strtgy_desc, hist_sls_curcy_cd, hshldhd_gen_cd, hshldhd_occ_cd, hshld_ethn_cd, hshld_loc_cd, img_src_path, impl_desc, impl_stage_cd, integration_id, judicial_district, last_revw_mgr_id, legal_form_cd, loc, location_level, loy_partner_cd, main_email_addr, main_fax_ph_num, main_ph_num, manager_name, market_class_cd, market_type_cd, master_ou_id, name_1, od_last_upd_by, ori_cd, ou_num, ou_num_1, ou_type_cd, ownership_type_cd, par_bu_id, par_divn_id, par_duns_num, par_ou_id, password, payment_term_id, pay_type_cd, population_grp_cd, po_pay_curcy_cd, pref_carr_prio_cd, pref_comm_meth_cd, pref_ship_carr_cd, privacy_cd, pri_grp_cd, pri_yr_bk_curcy_cd, pri_yr_bl_curcy_cd, prod_dist_cd, prtnr_cert_cd, prtnr_ctgry_cd, prtnr_org_int_id, prtnr_type_cd, pr_addr_id, pr_addr_per_id, pr_agree_id, pr_bill_prfl_id, pr_bl_addr_id, pr_bl_ou_id, pr_bl_per_id, pr_competitor_id, pr_con_id, pr_co_mstr_id, pr_crdt_area_id, pr_discnt_id, pr_eai_sls_area_id, pr_emp_rel_id, pr_emp_terr_id, pr_fulfl_invloc_id, pr_geo_id, pr_implsvc_vndr_id, pr_indust_id, pr_labor_rate_id, pr_logo_id, pr_med_proc_id, pr_mgr_postn_id, pr_mkt_seg_id, pr_org_pay_prfl_id, pr_org_trgt_mkt_id, pr_ou_type_id, pr_pay_ou_id, pr_phone_id, pr_postn_id, pr_prfl_id, pr_pri_lst_id, pr_prod_id, pr_prod_ln_id, pr_prtnr_ou_id, pr_prtnr_prog_id, pr_prtnr_tier_id, pr_prtnr_type_id, pr_ptshp_mktseg_id, pr_rep_asgn_type, pr_security_id, pr_ship_addr_id, pr_ship_ou_id, pr_ship_per_id, pr_situ_id, pr_specialty_id, pr_spec_id, pr_spl_rate_lst_id, pr_srv_agree_id, pr_svc_postn_id, pr_syn_id, pr_territory_id, pr_terr_id, pr_vehicle_id, ptntl_sls_curcy_cd, rating, region, region_id, rel_id, rel_name, revenue_class_cd, rlzd_roi_desc, route, rte_to_mkt_desc, rule_attrib1, rule_attrib2, sales_org_cd, sls_dist_cd, staff, state_abbre_cd, status_cd, stat_reason_cd, survey_type_cd, svc_cvrg_stat_cd, tax_exempt_num, tax_group_cd, tax_iden_num, tax_list_id, thmbnl_imgsrc_path, ticker_sym, tlr_intg_msg, tlr_intg_ret_cd, url, vat_regn_num, visit_period, wtr_swift_code, directions, x_apex_account_group, x_apex_account_group_two, x_apex_account_status, x_apex_company_model, x_apex_cut_account_type, x_apex_invoice_type, x_apex_pay_condition, x_apex_pay_method, x_apex_price_process, x_apex_sales_channel, x_apex_sales_group, x_apex_tax_type, x_apex_trade_condition
)
select row_id, created, created_by, last_upd, last_upd_by, dcking_num, modification_num, conflict_id, par_row_id, accnt_flg, active_flg, buying_group_flg, bu_id, cg_dedn_auth_flg, cg_svp_a_lock_flg, cg_svp_lock_flg, cg_svp_skip_flg, cl_site_flg, contract_vis_flg, court_pay_flg, disa_cleanse_flg, evt_loc_flg, external_host_flg, fcst_org_flg, fund_elig_flg, good_standing_flg, incl_flg, int_org_flg, name, ondemand_sync_flg, plan_group_flg, prospect_flg, prtnr_flg, prtnr_publish_flg, rplcd_wth_cmpt_flg, skip_po_crdchk_flg, agency_flg, branch_flg, briefing_layout, client_flg, enterprise_flag, facility_flg, invstr_flg, lang_id, pr_rep_dnrm_flg, pr_rep_manl_flg, pr_rep_sys_flg, agency_inactive_dt, asgn_dt, asgn_usr_excld_flg, asset_amt, atm_count, avail_credit_amt, bill_pblshr_flg, bo_ordqry_end_dt, bo_ordqry_start_dt, cg_cons_end_offset, cg_cons_strtoffset, cg_prmo_end_offset, cg_ship_end_offset, cg_ship_strtoffset, cg_svp_upper_lock, chnl_annl_sales, chnl_qtr_sales, chnl_sales_growth, close_dt, cmpt_flg, credit_days, credit_score, cur_yr_bk, cur_yr_bl, cust_end_dt, cust_since_dt, db_last_upd, dedup_dataclnsd_dt, dedup_key_upd_dt, dedup_last_mtch_dt, disa_all_mails_flg, division_count, eai_sync_dt, emp_count, evt_hotel_std_rt, exch_dt, ful_center_flg, gsa_flg, hard_to_reach, hist_sls_exch_dt, hist_sls_vol, hshldhd_age, hshld_inc, hshld_kidage, hshld_kids, hshld_size, last_call_dt, last_mgr_revw_dt, latitude, longitude, misc_flg, num_hshlds, num_of_beds, num_regs, ori_ts, partner_flg, po_crdchk_thrsh, po_crdchk_thrsh_dt, po_pay_exch_dt, po_pay_flg, po_pay_max_amt, pri_yr_bk, pri_yr_bl, proced_flg, prtnrshp_start_dt, prtnr_sales_rank, ptntl_sls_exch_dt, ptntl_sls_vol, reference_cust_flg, reference_start_dt, sales_emp_cnt, service_emp_cnt, srv_provdr_flg, stat_chg_dt, store_size, suppress_share_flg, supress_call_flg, tax_exempt_flg, trgt_impl_dt, visit_frequency, weekly_acv, aba_number, accnt_pr_cmpt_id, accnt_type_cd, adl_status, agency_indicator, agency_nibrs_ind, aia_integ1_id, aia_integ_id, alias_name, alt_email_addr, alt_email_loc_cd, ans_srvc_ph_num, approval_status_cd, asgn_ph_ac, asgn_ph_cc, bank_code, base_curcy_cd, bo_cust_grp_cd, branch_type_cd, call_frequency, cc_txnproc_ac_num, cc_txnproc_vndr_id, cg_prmo_strt_day, cg_svp_status, channel_type, cmpny_name, core_city_cd, corp_cmpny_name, corp_stock_symbol, country_division, country_region, country_template, covered_by, creator_login, cross_street, curr_pri_lst_id, curr_rate_lst_id, cur_srv_addr_id, cur_yr_bk_curcy_cd, cur_yr_bl_curcy_cd, cust_stat_cd, db_last_upd_src, dedup_token, dept_num, desc_text, dflt_ship_prio_cd, dist_channel_cd, division, divn_cd, divn_terr_hier_id, divn_type_cd, dom_ult_duns_num, duns_num, eai_error_text, eai_exprt_stat_cd, email_addr, email_loc_cd, evt_loc_cd, exec_spnsr_pstn_id, expertise_cd, fbi_field_off_id, fin_resp_con_id, frd_owner_emp_id, frght_terms_cd, frght_terms_info, furi_cmpny_name, general_ledger, glblult_duns_num, grwth_strtgy_desc, hist_sls_curcy_cd, hshldhd_gen_cd, hshldhd_occ_cd, hshld_ethn_cd, hshld_loc_cd, img_src_path, impl_desc, impl_stage_cd, integration_id, judicial_district, last_revw_mgr_id, legal_form_cd, loc, location_level, loy_partner_cd, main_email_addr, main_fax_ph_num, main_ph_num, manager_name, market_class_cd, market_type_cd, master_ou_id, name_1, od_last_upd_by, ori_cd, ou_num, ou_num_1, ou_type_cd, ownership_type_cd, par_bu_id, par_divn_id, par_duns_num, par_ou_id, password, payment_term_id, pay_type_cd, population_grp_cd, po_pay_curcy_cd, pref_carr_prio_cd, pref_comm_meth_cd, pref_ship_carr_cd, privacy_cd, pri_grp_cd, pri_yr_bk_curcy_cd, pri_yr_bl_curcy_cd, prod_dist_cd, prtnr_cert_cd, prtnr_ctgry_cd, prtnr_org_int_id, prtnr_type_cd, pr_addr_id, pr_addr_per_id, pr_agree_id, pr_bill_prfl_id, pr_bl_addr_id, pr_bl_ou_id, pr_bl_per_id, pr_competitor_id, pr_con_id, pr_co_mstr_id, pr_crdt_area_id, pr_discnt_id, pr_eai_sls_area_id, pr_emp_rel_id, pr_emp_terr_id, pr_fulfl_invloc_id, pr_geo_id, pr_implsvc_vndr_id, pr_indust_id, pr_labor_rate_id, pr_logo_id, pr_med_proc_id, pr_mgr_postn_id, pr_mkt_seg_id, pr_org_pay_prfl_id, pr_org_trgt_mkt_id, pr_ou_type_id, pr_pay_ou_id, pr_phone_id, pr_postn_id, pr_prfl_id, pr_pri_lst_id, pr_prod_id, pr_prod_ln_id, pr_prtnr_ou_id, pr_prtnr_prog_id, pr_prtnr_tier_id, pr_prtnr_type_id, pr_ptshp_mktseg_id, pr_rep_asgn_type, pr_security_id, pr_ship_addr_id, pr_ship_ou_id, pr_ship_per_id, pr_situ_id, pr_specialty_id, pr_spec_id, pr_spl_rate_lst_id, pr_srv_agree_id, pr_svc_postn_id, pr_syn_id, pr_territory_id, pr_terr_id, pr_vehicle_id, ptntl_sls_curcy_cd, rating, region, region_id, rel_id, rel_name, revenue_class_cd, rlzd_roi_desc, route, rte_to_mkt_desc, rule_attrib1, rule_attrib2, sales_org_cd, sls_dist_cd, staff, state_abbre_cd, status_cd, stat_reason_cd, survey_type_cd, svc_cvrg_stat_cd, tax_exempt_num, tax_group_cd, tax_iden_num, tax_list_id, thmbnl_imgsrc_path, ticker_sym, tlr_intg_msg, tlr_intg_ret_cd, url, vat_regn_num, visit_period, wtr_swift_code, TO_LOB(directions), x_apex_account_group, x_apex_account_group_two, x_apex_account_status, x_apex_company_model, x_apex_cut_account_type, x_apex_invoice_type, x_apex_pay_condition, x_apex_pay_method, x_apex_price_process, x_apex_sales_channel, x_apex_sales_group, x_apex_tax_type, x_apex_trade_condition
from s_org_ext;

Oracle--表有LONG类型复制或导数报ORA00990的更多相关文章

  1. 45.oracle表类型、数据拆分、表分区

    不要做一些没有意义的事情,就比如说你要离职并不打算吃回头草,离职理由中完全没有必要说明“领导的水平太渣,人品太差”此类的原因,而是“个人原因”,当然实在不批准辞职另说. oracle表类型 表的类型分 ...

  2. oracle修改表栏位类型

    需求:ID栏位在创建的时候是varchar类型,后续要修改为number类型 因为oracle修改表栏位类型的时候需要栏位内没有数据,因此无法直接把ID从varchar修改为number 1.新建一个 ...

  3. oracle 表的创建与管理 约束

    在 Oracle 之中数据表就被称为数据库对象,而对象的操作语法一共有三种:· 创建对象:CREATE 对象类型 对象名称 [选项]:· 删除对象:DROP 对象类型 对象名称 [选项]:· 修改对象 ...

  4. Oracle表的优化一点见解

    Oracle优化的几个简单步骤 数据库优化的讨论可以说是一个永恒的主题.资深的Oracle优化人员通常会要求提出性能问题的人对数据库做一个statspack,贴出数据库配置等等.还有的人认为要抓出执行 ...

  5. oracle表结构

    表管理 新建表 语法 create table 表名 ( 列名1 类型(长度), 列名2 类型(长度), 列名3 类型(长度) ); create table:关键字,建表 后跟新建表的表名,表名长度 ...

  6. oracle表分区以及普表转分区表(转)

    概述 Oracle的表分区功能通过改善可管理性.性能和可用性,从而为各式应用程序带来了极大的好处.通常,分区可以使某些查询以及维护操作的性能大大提高.此外,分区还可以极大简化常见的管理任务,分区是构建 ...

  7. Oracle 表连接

    Oracle 表之间的连接分为三种: 1. 内连接(自然连接) 2. 外连接 (1)左外连接 (左边的表不加限制)      (2)右外连接(右边的表不加限制)      (3)全外连接(左右两表都不 ...

  8. Oracle表空间,用户,用户授权

    一:Oracle表空间 1,Oracle表空间与SQL Server文件组对比 SQL Server的文件组(文件组包括若干MDF,NDF数据文件)对我们来说并不陌生,前段时间我在博客“怎样玩转千万级 ...

  9. Oracle表空间数据文件移动的方法

    最近遇到这样的一个问题,Oracle存放表空间文件的盘符 空间不够了,必须把部分表空间迁移出去, [转]http://www.jb51.net/article/77026.htm 实现把用户表空间中的 ...

随机推荐

  1. LOJ 103 字串查找 题解

    题面 这道题是KMP的模板. KMP需要注意的细节有很多,所以把这篇文章发上来供参考: #include <bits/stdc++.h> using namespace std; char ...

  2. 单节点FastDFS安装

    环境:centos7 1.什么是分布式文件系统 分布式文件系统(Distributed File System)是指文件系统管理的物理存储资源不一定直接连接在本地节点上,而是通过计算机网络与节点相连. ...

  3. limux密钥对配置登陆主机

    1. Linux主机免密码使用密钥登陆 这里假设主机A(192.168.0.113)用来远程连接主机B(192.168.0.186) 在主机A上执行如下命令来生成配对密钥:ssh-keygen -t ...

  4. tomcat部署项目时 报错Tomcat version 7.0 only supports J2EE 1.2, 1.3, 1.4, and Java EE 5 and 6 Web modules

    Tomcat version 7.0 only supports J2EE 1.2, 1.3, 1.4, and Java EE 5 and 6 Web modules 解决方法: 找到文件 .set ...

  5. jquery_easyUI 键盘弹起事件

    $('#num').numberbox('textbox').bind('keyup', function(event) { });

  6. JS预解释

    1.声明(declare)  var num   // 告诉浏览器在全局作用域中有一个num变量 定义(defined) num = 12 // 给我们的比变量进行赋值 2.var:在预解释时只是提前 ...

  7. scala 从头越

    一个综合小例子, 要严格区分 函数与方法 , 与 java 不一样 /** * Scala 的值类型有 7 种 * Byte * Char * Short * Int * Long * Float * ...

  8. Vim安装插件支持 MarkDown 语法、实时预览等

    使用 markdown-preview.vim 插件可以实时通过浏览器预览 markdown 文件 使用该插件需要 vim 支持py2/py3 安装 使用 vim-plug: 在 .vimrc 或 i ...

  9. PAT Basic 1081 检查密码 (15 分)

    本题要求你帮助某网站的用户注册模块写一个密码合法性检查的小功能.该网站要求用户设置的密码必须由不少于6个字符组成,并且只能有英文字母.数字和小数点 .,还必须既有字母也有数字. 输入格式: 输入第一行 ...

  10. .NET mocking框架Telerik JustMock发布R2 2019|附下载

    Telerik JustMock是一个灵活.功能齐全的.NET mocking框架.Telerik JustMock能够简化单元测试,现在测试复杂的场景比以前更加容易了.同时JustMock还与Vis ...