3、切換到oracle使用者
su - oracle
4、執行匯入語句,(先用xny_policyresearch驗證一下,外網的xny_common暫時不用匯入)
impdp xny_manufacturer/xny19jkl39sg@pdbxnyo dumpfile=xny_manufacturer.dmp directory=data_xny_xl logfile=xny_manufarer.log table_exists_action=replace schemas=xny_manufacturer
impdp xny_load/xny19jkl39sg@pdbxnyo dumpfile=xny_load.dmp directory=data_xny_xl logfile=xny_load0622.log table_exists_action=replace schemas=xny_load
impdp xny_newtechnology/xny19jkl39sg@pdbxnyo dumpfile=xny_newtechnology.dmp directory=data_xny_xl logfile=xny_newtechnology5.log table_exists_action=replace schemas=xny_newtechnology
impdp xny_planningplan/xny19jkl39sg@pdbxnyo dumpfile=xny_planningplan.dmp directory=data_xny_xl logfile=xny_planningplan.log table_exists_action=replace schemas=xny_planningplan
impdp xny_powerusers/xny19jkl39sg@pdbxnyo dumpfile=xny_powerusers.dmp directory=data_xny_xl logfile=xny_powerusers.log table_exists_action=replace schemas=xny_powerusers
--impdp xny_common/xny19jkl39sg@pdbxnyo dumpfile=xny_common.dmp directory=data_xny_xl logfile=xny_common1.log table_exists_action=replace schemas=xny_common
impdp xny_splydemand/xny19jkl39sg@pdbxnyo dumpfile=xny_splydemand.dmp directory=data_xny_xl logfile=xny_splydemand.log table_exists_action=replace schemas=xny_splydemand
impdp xny_gis/xny19jkl39sg@pdbxnyo dumpfile=xny_gis.dmp directory=data_xny_xl logfile=xny_gis.log table_exists_action=replace schemas=xny_gis
impdp xny_tariffsubsidy/xny19jkl39sg@pdbxnyo dumpfile=xny_tariffsubsidy.dmp directory=data_xny_xl logfile=xny_tariffsubsidy.log table_exists_action=replace schemas=xny_tariffsubsidy
impdp xny_bigdata/xny19jkl39sg@pdbxnyo dumpfile=xny_bigdata.dmp directory=data_xny_xl logfile=xny_bigdata.log table_exists_action=replace schemas=xny_bigdata
impdp xny_assistmakepolicy/xny19jkl39sg@pdbxnyo dumpfile=xny_assistmakepolicy.dmp directory=data_xny_xl logfile=xny_assistmakepolicy.log table_exists_action=replace schemas=xny_assistmakepolicy
impdp xny_resources/xny19jkl39sg@pdbxnyo dumpfile=xny_resources.dmp directory=data_xny_xl logfile=xny_resources.log table_exists_action=replace schemas=xny_resources
impdp xny_statistics/xny19jkl39sg@pdbxnyo dumpfile=xny_statistics.dmp directory=data_xny_xl logfile=xny_statistics.log table_exists_action=replace schemas=xny_statistics
impdp xny_environment/xny19jkl39sg@pdbxnyo dumpfile=xny_environment.dmp directory=data_xny_xl logfile=xny_environment.log table_exists_action=replace schemas=xny_environment
impdp xny_intracompany/xny19jkl39sg@pdbxnyo dumpfile=xny_intracompany.dmp directory=data_xny_xl logfile=xny_intracompany.log table_exists_action=replace schemas=xny_intracompany
impdp xny_policyresearch/xny19jkl39sg@pdbxnyo dumpfile=xny_policyresearch.dmp directory=data_xny_xl logfile=xny_policyresearch.log table_exists_action=replace schemas=xny_policyresearch
impdp xny_absorptive/xny19jkl39sg@pdbxnyo dumpfile=xny_absorptive.dmp directory=data_xny_xl logfile=xny_absorptive01.log table_exists_action=replace schemas=xny_absorptive
出現錯誤ora-39346: data loss in character set conversion for object comment:"xny_splydemand"."xny_splydemand_prd_largeenergy"
不用管,正常
5、驗證,sqlplus連線後並更換session。或者直接檢視log日誌驗證匯入
5.1 su - oracle
5.2 sqlplus /nolog
5.3 conn / as sysdba
5.4 alter session set container = pdbxnyo;
5.5 conn xny_intracompany/[email protected]:11521/pdbxnyo
Oracle匯入資料
oracle匯入資料 在sql plus中 1.c test.sql 2.imp 3.impdp server端 a.conn sys sys as sysdba b.creat directory dumpin idr as d dump c.grant read,write on directo...
oracle匯入資料
create the user create user user identified by 123456 default tablespace users temporary tablespace temp profile default password expire grant revoke ...
oracle匯入資料
oracle匯入資料時出現的問題 alter user spowner default tablespace users ora 00959 表空間 tbs arch risk 不存在 create tablespace tbs arch risk datafile c oracle product...