V $ database: database information, such as the database name and creation time.
V $ instance information, such as instance name and start time.
V $ parameter information, select * from v $ parameter where name like '% name' ----> show parameter
71. your database instance is started using the server parameter file (SPFILE ). control files are multiplexed and stored on different disks. because of a disk failure, you lost one of these control files. you replaced the damaged disk. what is the
The SQL statement is as follows:
Select * from LOAN_BACK_LIBRARY where LIBRARY_ID = 1 or LIB_ID = 1 and STATUS = 3
The conditions for my desired results are:1. LIBRARY_ID = 1 or LIB_ID = 1
2. STATUS = 3
But this is not the case. STATUS is displayed!
LIKE fuzzy query
The wildcard characters "%" and "_" can be used for character matching:
%: Represents any character, including zero;
_: Represents any character;
ConnectedToOracleDatabase11g Enterprise Edition Release 11.2.0.1.0
During the top Shard, The PreparedStatement encountered garbled Characters During database storage, which had plagued the database for a long time and finally solved the problem.
The problem code is as follows:
Pstmt = con. prepareStatement
Use of the Oracle 10g wmsys. wm_concat row and column conversion function:First, let's take a look at this magic function wm_concat (column name). This function can separate the column values with "," and display them as a row. Next, let's take an
When we write SQL statements, we often ignore some details. The following is a summary of my own operations and materials. If there is something wrong or something wrong, hope to reply to me and learn from each other. Thank you!1. When a full table
1. Set this column to null and modify its type (this will cause data loss)
2. The simplest method:Assume that your table is named tab_target.Create table test as select * from tab_target whre 1 = 2;Alter table test modify (col_name number (5
When a table is accidentally deleted, hundreds of mb of data is lost?
No. Now you don't have to worry about it. Oracle9i and above use a garbage collection solution, and it's easy to recover. No longer use precious time for database cloning/exp/imp
Many databases are supported in php, but when combined with the best database mysql, IT and linux, apache, and php constitute a LAMP system.
Php performs the following operations on mysql: connect to mysql database --> select database --> Execute
Today, I searched for data in the Oracle database and encountered a table with a character type of CHAR [2000]. Due to the length of the character, it cannot be retrieved using String. After google Baidu found that the CLOB type can be used. The
You can use the Change command to Change the string (that is, replace the string ). Syntax:
C [HANGE] sepchar old [sepchar [new [sepchar]
Sepchar is the separator, which can be "/" or "!" -- Special attention
Old string
New String
For example,
In addition to the preceding view, Oracle also has a set of virtual tables used to record the current database activity. As the name suggests, dynamic performance tables are not real tables. Therefore, not all users can access these tables. However,
Oracle 11.2.0.2 has many bugs.Many databases have encountered problems after being migrated to Oracle 11.2.0.2.Two Oracle 11.2.0.2 problems are being resolved:ORA-00600: internal error code, arguments: [ktecgsc: kcbz_objdchk], [0], [0], [1],
2. This
1. When LGWR is idle, it will check whether any data is written from redo buffer to redelog every 3 seconds. If yes, a background process will automatically write the data into it.
2. When a process needs to allocate space from the redo buffer, the
When backing up archive logs in Oracle databases, archive log files stored in the last few days are not deleted.
For example:
Backup archivelog all;
Delete noprompt archivelog all completed before 'sysdate-7'; Save the archived logs for seven
Our application developers found that the execution time of an SQL statement when binding a variable is much slower than when not binding a variable, even slowed down to dozens of times.
In the application, if the executed SQL statement is not bound
The most typical application of Database Synchronization is Remote Disaster Tolerance and the query statistics of the primary database. This is generally a one-to-one application. However, the demand for multi-dimensional synchronization sometimes
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