In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces the relevant knowledge of "analyzing the contents of dmp files in oracle". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Configure the lab environment:
1.1Producing three files exp woo/oracle table=dump_table file=1.dmp; expdp woo/oracle tables=dump_table directory=dhome dumpfile=2.dmp; touch 3.dmp2. Create random data SQL > create table dump_table as 2 select rownum as id, 3 to_char (sysdate + rownum / 24 / 3600, 'yyyy-mm-dd hh34:mi:ss') as inc_datetime, 4 trunc (dbms_random.value (0100)) as random_id, 5 dbms_random.string (' x') 20) random_string 6 from dual 7 connect by level desc dump_table Name Null? Type-ID NUMBER INC_DATETIME VARCHAR2 (19) RANDOM_ID NUMBER RANDOM_STRING VARCHAR2 (4000) SQL > select count (*) from dump_table COUNT (*)-103. Generate the following file [oracle@ora11grac1 ~] $ls-rtltotal 212Kuhwa Mar-1 oracle oinstall 16384 Mar 18 15:06 1.dmpWhen RWQR-1 oracle asmadmin 98304 Mar 18 15:13 2.dmpWhat RWKul-1 oracle asmadmin 1071 Mar 18 15:14 export.log-rw-r- 1 oracle asmadmin 98304 Mar 18 15:14 3.dmp4. Determine which version of the file roommate was generated.
[oracle@ora11grac1] $sed-n 1p 1.dmpEXPORT:V11.02.005. Determine the file type SQL > set serveroutput onSQL > declare 2 v_filetype NUMBER;-- 0=unknown 1=expdp 2=exp 3=ext 3 v_info_table sys.ku$_dumpfile_info;-- PL/SQL table with file info 4 begin 5 dbms_datapump.get_dumpfile_info (6 filename = > '1.dmpins, 7 directory = > upper (' dhome'), 8 info_table = > v_info_table, filetype = > v_filetype) 9 dbms_output.put_line ('Filetype:' | | v_filetype); 10 end; 11 / Filetype: 2SQL > set serveroutput onSQL > declare 2 v_filetype NUMBER;-- 0=unknown 1=expdp 2=exp 3=ext 3 v_info_table sys.ku$_dumpfile_info -- PL/SQL table with file info 4 begin 5 dbms_datapump.get_dumpfile_info (6 filename = > '2.dmpins, 7 directory = > upper (' dhome'), 8 info_table = > v_info_table, filetype = > v_filetype); 9 dbms_output.put_line ('Filetype:' | v_filetype); 10 end; 11 / Filetype: 1PL/SQL procedure successfully completed.SQL > set serveroutput onSQL > declare 2 v_filetype NUMBER -- 0=unknown 1=expdp 2=exp 3=ext 3 v_info_table sys.ku$_dumpfile_info;-- PL/SQL table with file info 4 begin 5 dbms_datapump.get_dumpfile_info (6 filename = > '3.dmpins, 7 directory = > upper (' dhome'), 8 info_table = > v_info_table, filetype = > v_filetype); 9 dbms_output.put_line ('Filetype:' | v_filetype); 10 end 11 / Filetype: 1PL/SQL procedure successfully completed.SQL > set serveroutput onSQL > declare 2 v_filetype NUMBER;-0=unknown 1=expdp 2=exp 3=ext 3 v_info_table sys.ku$_dumpfile_info;-- PL/SQL table with file info 4 begin 5 dbms_datapump.get_dumpfile_info (6 filename = > 'export.log', 7 directory = > upper (' dhome'), 8 info_table = > v_info_table, filetype = > v_filetype) 9 dbms_output.put_line ('Filetype:' | | v_filetype); 10 end; 11 / Filetype: 0PL/SQL procedure successfully completed.6. Database character set, database name, operating system type, operating system name [oracle@ora11grac1] $sed-n 1p 2.dmp\ "SYS_EXPORT_TABLE_01" x86_64/Linux 2.4.xxora11grac1:woo1AL32UTF8 $7. Determine the table space to which the file belongs or the user [oracle@ora11grac1 ~] $sed-n 2p 1.dmpDWOO8. Export method, USER,TABLE, [oracle@ora11grac1 ~] $sed-n 3p 1.dmpRTABLES9. Determine the file block size [oracle@ora11grac1 ~] $sed-n 4p 1.dmp8192 "analyze the file contents of dmp in oracle" is introduced here, thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.