Latch indicates the locking mechanism that occurs when processing data between running processes of the Oracle database.
Lock, which indicates the differential locking mechanism when concurrency occurs between specific objects in the oracle
I have just studied Linux and are still studying OCI.
After calling OCI to connect to the database a few days ago, I tested it with the example provided by Oracle. I can read data normally (in English), so I can rest assured that I can switch to
Because of work requirements, you need to install another Oracle instance in a Linux operating system.
After receiving help from many netizens, I finally solved the following problems:
1. install a new instanceLog On with the Linux Account Oracle,
First, go to root mode to download 3 Software
Term-Readline-Gnu: http://search.cpan.org/dist/Term-ReadLine-Gnu/
IO-Tty: http://search.cpan.org/dist/IO-Tty/
Uniread: http://sourceforge.net/projects/uniread/
Run tar-xzvf... with the root account
For example, if my user name is root and the password is 123 SQL script, the C disk name is test. The SQL database name is test.
There are two ways to execute the script
1: Open CMD and enter the following command (directory conversion is not
The company's website has just completed the revision, optimized the database structure, and used the memcache distributed cache to add MySQL. In the first few days, the database service has not been down for a few days. however, the machine is
Installing Oracle in a Linux system is a headache, and its complexity far exceeds that of installing the Linux operating system. If oracle is successfully installed, some Linux technologies are also mastered. This article describes how to install
1. Obtain the Oracle 10g Installation File
2. Configure the installation environment for Debian
2.1 configure sysctl. conf
# Vi/etc/sysctl. conf
Add the following content to the end of the file:
Kernel. shmall = 2097152
Kernel. shmmax =
Take scott. emp as an example. Based on the position (MGR) number, find all information about the position number.Create TYPE first: equivalent to the TYPE of each row of record, which can be understood as scott. emp % rowtype1.CREATE or replace
1. In startup Linux, Oracle reports the following error:ORA-27102: out of memory Linux-X86_64Error: 28: No space left on device
2. Check the alter log to report:Checkpoint not completeCurrent log #3 seq #514388 mem
For DEV and UAT environments, databases must be in archive mode, but do not need to be backed up. Therefore, the constant increase in archive archiving logs results in a large amount of disk space consumption. In this case, you can use a shell
We recommend that you change the undo_retention parameter when installing the Oracle software. We recommend that you change the default value of 900 to 10800 seconds, that is, 3 hours; alter system set undo_retention = 10800 scope = both; A part of
Select SQL _text from v $ SQL where hash_value in (select SQL _hash_value from v $ session where sid in (select session_id from v $ locked_object ))
Check Methods for database deadlocks
I. Database deadlock
When the program is executed, click OK or
Db file scattered read
For tables with frequent access, if no index is created or an appropriate index is not created, Oracle can only scan the entire table, resulting in a large number of waiting events.During full table scan, the read data is
ERROR: ORA-28002: the password will expire within 7 days In Oracle 11G, the default password expiration time is 180 days. If your database does not have such high security requirements You can change it to unlimited. SQL> set wrap off;SQL> set
Recently, we have used PostgreSQL for backend databases in some projects. Due to the need to control the client connection usage type and connections, PgBouncer is used for implementation.
The PgBouncer-related basic documentation pgsqldb has many
Original SQL: An ORA-03113 error occurred while running, the network is normal, and other SQL statements are also normal.
13:04:26 CRY @ CRY> select operatetime, billtypename, billid, shopcode, shopname, goodscode, goodsnAme, ''quantity at the
1. Estimate the execution Plan-Explain Plan
The Explain plan uses an SQL statement as the input to obtain the execution plan of the SQL statement and store the execution plan output to the schedule.
First, add explain plan for before the SQL
1. view the database lock and diagnose the source and type of the lock:Select object_id, session_id, locked_mode from v $ locked_object;Or run the following command:Select B. owner, B. object_name, l. session_id, l. locked_modeFrom v $ locked_object
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service