Oracle--表有LONG类型复制或导数报ORA00990
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了Oracle--表有LONG类型复制或导数报ORA00990,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含11290字,纯文字阅读大概需要17分钟。
内容图文
![Oracle--表有LONG类型复制或导数报ORA00990](/upload/InfoBanner/zyjiaocheng/487/5435e32456414ab8815d06642351d698.jpg)
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
标签:proc rac veh dir rsh cross route sls ddr
本文系统来源:http://www.cnblogs.com/guipeng/p/7147136.html
内容总结
以上是互联网集市为您收集整理的Oracle--表有LONG类型复制或导数报ORA00990全部内容,希望文章能够帮你解决Oracle--表有LONG类型复制或导数报ORA00990所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。