An example of solution to system downtime caused by full archiving logs of Oracle databases
When the first downtime occurs, the system memory overflows. Therefore, the application server is restarted and an error is reported when the application server is started. The error is that the Oracle database cannot be connected. Connect to the database server, open EM, and the system reports an error.The error message "archive log writing failed" is display
Database performance exception and slowness caused by full archiving of Oracle logs
When the database performance is abnormal and slow due to full archiving of Oracle logs, I did not view the alarm log and thought it was because the lock blocking of the database affected the performance. The archived log is full only when you view the log. This problem occurs:Errors in file/DBBK/oracle/diag/rdbms/orcl/trace
deleted.Format: xz/PATH/TO/SOMEFILE-D: Extract-#: 1-9; default value: 6-K: the original file is retained during compression.Unxz: ExtractXzdec: view the content of a text file without any pressureXzcat: view the content of a text file without any pressure
2. archive does not mean compression.1. tar: archive tool that generates. tar archive files-F FILE.tar: the archived file for the operation.-Cf: Create an archive file-Xf: Expand the archive-- Xattrs: retains the extended attributes of an obje
Tar
[Syntax] tar [option] tarfile filename
[Command description]
The file name must be followed by the-f parameter and used as the last parameter;
[Parameter description]
-C. Create a new archive file;
-F specifies the file name;
-R: append an object to an archive object;
-X Extract files from archive files;
-V and-vv display progress information;
-T list the information of the archive file (not extracted );
-C specifies the directory extracted from the file;
-A: Merge multiple tar files;
-- Pri
In ORACLE10G, the default archiving path is $ ORACLE_BASE/flash_recovery_area. For this path,ORACLE has a limit that only 2 GB of space can be used for archiving logs by default. You can use the following two SQL statements to view the limit.1. select * fromv $ recovery_file_dest;
SQL> showparameterdb_recovery_file_dest (this is more user-friendly and intuitive)When the number of archived logs is greater t
1. File archivingDefined:
File archiving, which is to turn multiple files into an archive file
2.Tar C # #创建
-j XZ Format Compression
F Specify the archive file name
T Display the contents of the archive file
R to add a file to an archive file
--get Remove a single file
--delete Delete a single file
x Remove all content from the
order: Only the root is 1, the other can be 2 0: indicates no check
Fuser: Verifying that the process is using a file or socket file-V: Viewing a running process on a file-k-m: Terminating all processes that are accessing this mount point
Compression decompression
Compression format:. gz. bz2. xz. zip
Compression algorithms are different, the compression ratio will be different
Gzip bzip2 XZ can only compress files cannot be compressed directory by default source delete files
Gzip:g
. Only files can be compressed.[OPTION]-D unzip the file.-num compression ratio. 1-9, default is 6.-K--keep Keep the source file when compressing.#unxz filename.xz The source file is deleted when the decompression is complete.#xzcat FILENAME to view the contents of a text file without being pressed.#xzdec usage is similar to XZ.Zip:The compression ratio is small, but the files within the directory and directory can be compressed. is both compressed and archived, and the source files are not dele
bytes after the archive is completeTAR-CZVVF file.tar.gz file1 file2 ... #创建经由gzip压缩过的归档文件TAR-CAVVF file.tar.gz file1 file2 ... #同上gzip filename #压缩文件. Delete the original file and generate filename.gzGzip-l test.txt.gz #列出压缩文件的属性信息Gunzip filename.gz #解压文件. Remove filename.gz and generate an uncompressed form of filename.gzZip file.zip file #压缩file文件, generate File.zip compressed files, do not delete the original file after compressionZip-r file.zip folder File #对目录和文件进行递归操作Contents of Zip file
File transfer between different systems1. File archiving1.File archiving, which is to turn multiple files into an archive file2.Tarc# #创建F# #指定归档文件名称T# #显示归档文件中的内容R# #向归档文件中添加文件--get# #取出单个文件--delete# #删除单个文件x# #取出归档文件中的所有内容-C # #指定解档目录-Z # #gz格式压缩-j# #bz2格式压缩-j# #xz格式压缩650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/9C/A0/wKioL1lzXvyQE187AABw_U_Ef9I972.png "style=" float : none; "title=" screenshot from 2017-07-22 14-43-57.png "alt=" Wkio
This paper mainly from the following several convenient to explain file archiving and compression, while comparing the compression ratios and characteristics of several different compression methods.
File Archive command tar,tar.gz source package installation Management
Create a Tar Package-extract-Query the contents of the TAR Package
Zip Use of Commands
why compress?1. easy to use, query, read2. Easy to manage (delete files in
Label:About Database archiving--See if the database is in archive modeSql> select Name,log_mode from V$database;NAME Log_mode--------- ------------Enmo Noarchivelogsql> archive log list;Database log mode No Archive modeAutomatic Archival DisabledArchive Destination/u01/app/oracle/product/11.2.0/dbhome_1/dbs/archOldest online log sequence 6Current Log Sequence 8--To shut down the database start the database under Mountsql> shutdown ImmediateDatabase cl
Archiving and compression of Linux:1. Space saving2. Facilitate the management of fragmented documentsTar Integrated Backup tool:-C: Create an archive-X: Release Archive-F: Specify the Archive file name-Z,-j,-j: Call the GZ, bz2, XZ format tools for processing-C: Specify the release location-P: Maintain absolute path to files within archive-TAR-ZCF backup files. tar.gz files that are backed up-TAR-JCF backup files. tar.bz2 files that are backed up-TAR
This error occurs when using RMAN to back up database archive logs, quot; RMAN-8137: WARNING: archivedlognotdeletedasitisstillneeded
This error occurs when using RMAN to back up database archive logs, quot; RMAN-8137: WARNING: archived log not deleted as it is still needed
This error occurs when you use RMAN to back up database archive logs, "RMAN-8137: WARNING: archived log not deleted as it is still needed ".
This is a prompt that the archive file operation failed after the archive log is
If the archive log of Oracle is full, an error occurs when the application connects to the database. You need to manually delete the expired archive log as follows:1. Specify database instance $ export ORACLE_SID = db12. Enter rman $ rman3. connect to the database RMAN> connect target sys/password;4. view the archiving log status RMAN> list archivelog all;5. manually delete archived log files6. Update the archive log RMAN> crosscheck archivelog all; R
Processing Solution for archiving logs due to too small flash_recovery_area: [SQL] 14:13:26 sys @ ORCL (^ ω ^) select * from v $ version where rownum = 1; www.2cto.com BANNER issue Oracle Database 10g Enterprise Edition Release 10.2.0.1.0-Prod the problem is that a Test Library has not been cleaned up since its installation. [SQL] 13:54:29 idle (^ ω ^) startup ORA-01081: unable to start a running ORACLE-Close it first 13:54:47 idle (^ ω ^) shutdown ab
1, relevant knowledge points:Encodewithcoder: This method is called when an object is archived.Initwithcoder: This method is called every time an object is recovered from a file. 2. A simple example illustrates the detailed stepshustudent, follow the nscoding protocol, and give the student a set of three attributes: @property (nonatomic, copy) NSString *name;@property (nonatomic, assign) double height;@property (nonatomic, assign) int age; to be stored-(void) Encodewithcoder: (Nscoder *) encode
Land and Archives Management Information System [archiving and borrowing Registration]
-- Establish a personal brand through knowledge sharing.
2.4
File query and borrowing Registration
After you locate the Retrieved Data (or do not locate the data, you can directly check the data for registration. The system can monitor the borrowing time. When the file is borrowed and the borrower fails to return the file on time, a prompt is displayed auto
:: Splitting a file into multiple filesSplit a large tar file into multiple small filesSplit–b size–d Tar-file-name Prefix-nameSplit-b 1m–d mybackup.tgz Mybackup-partsSplit-b 1M mybackup.tgz Mybackup-partsMerge:Cat mybackup-parts* > mybackup.tar.gzCpioCpio function: Reply file from or to archiveThe Cpio command is a file that is packaged and backed up by a redirect, a tool that restores replies, and files that end in. cpio or. TarOption-0: A copy of the file is packaged to generate a file or out
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.