There is a stored procedure, which already has four dblinks, but due to business needs, a few more needs to be added. When it is added to the fifth, the system suddenly throws an error: ora-02020 too relational database links in use. Consulting
-- Monitor whether the index is used
Alter index & index_name monitoring usage;
Alter index & index_name nomonitoring usage;
Select * from v $ object_usage where index_name = & index_name;
-- Calculate the I/O distribution of data files
Select df.
1. Try not to use like '%'
2. For like '%' (not starting with %), Oracle can apply the index on colunm
3. For like '%... '(Not ending with %), you can change it to like' % 'in the form of reverse + function index'
Create a test table and Index. Note
When I was working on a project today, a problem occurred while inserting data into the table. The database reported a violation of the unique constraint and the solution was simple:
The project uses the Oracle database. In the early stage, I
Select a row of records in the Table: (understanding: rownum is the number of rows sequentially allocated from the query returned by the Oracle System)Select * from (select rownum a, t. * from testtab t) where a = 2;Select * from (select rownum a, t.
Several major Oracle background processes
System Monitor SMON restores an instance after it crashes, merges free space in the database, and manages the space for classified operations
Process Monitor PMON cleans up faulty user database
Logging always assumes that the log of a table is set to NO and it will not generate logs. In fact, the following is not an explanation and experiment of logging.
Logging Introduction
You can perform the following operations in nologging mode:
1.
Recently, when performing some partition operations in Oracle, the global index of some partition tables is always invalid. Therefore, perform a detailed test on the related operations. The following is a summary of my test results:
ADD partition,
The security management mechanism of Oracle10g listeners and oracle9i have been greatly changed. The Listener security mechanism uses the Password and Local OS Authentication methods. When Local OS Authentication is used, even if a listener password
We all know that Latch is the mechanism that Oracle uses for serial control in memory. From 10g R2, Oracle introduced a new technology-Mutex. Mutex is not an invention of Oracle, but an underlying call provided by the system. Oracle only uses it to
When importing data in half, the disk space is insufficient.
This requires that the data of the database files be moved to another disk.
1. offline data files:
SQL> alter database datafile
2 'H: \ Oracle \ product \ 10.2.0 \ oradata \ lhoms \ pub \
Write a test program when using C in Linux to operate MySQL database
IntMain (Void)
{
MYSQL m_mysql;
Mysql_init (& m_mysql );
Const CharPLocalhost [] ="Localhost";
Const CharPUser [] ="Root";
Const CharPPass [] ="123456";
Summary of several methods for disabling and starting Oracle:There are several startup methods:1. startup nomountNon-installation startup. In this mode, you can execute: re-build the control file and re-build the database. Read the init. ora file
Add a mysql user group and a mysql userGroupadd mysqlUseradd-g mysqlPasswd-u mysql
1. Install the required software packageYum install gcc-c ++ libtool autoconf automake imake libxml2-devel expat-develYum install ncurses-devel makeYum install
1. Related Concepts
The concept of Rowid: rowid is a pseudo column. Since it is a pseudo column, this column is not user-defined, but added by the system itself. Each table has a pseudo rowid column, but the table does not physically store the
Grant the user a connect role and a resource role:
Grant connect, resource to user;
Permissions granted to the user after successful running:
CONNECT role: -- is the most basic and typical right granted to end users.
Alter session -- modify a
Recently, due to system cleanup, the optimizer accidentally deleted oralce's log file, and Oracle reported ORA-00313 and ORA-00312 errors when the result was started.
Run the following command in "run": sqlplusw/nologSQL> conn/as
Because MySQL currently does not support dynamic parameter paging, you can either pass the SQL statement in the stored procedure or write a string connection method by yourself.
Method 2
Write one line for each place to be split and clear
BEGIN
Generally, it is easier for a database to obtain the dbid through mount.
C: \ Users \ Liangwei> rman target/
Recovery MANAGER: Release 10.2.0.3.0-Production on Friday Aug 17 21:29:05 2011
Copyright (c) 1982,200 5, Oracle. All rights
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