My colleague said that the query encountered a strange problem. Two tables did not return results after performing the not in operation. Normally, there should be returned results. I. Problem ReproductionIn general, the reproduction of the problem
First, create profile lock_act LIMIT FAILED_LOGIN_ATTEMPTS 3 PASSWORD_LOCK_TIME 2; assign the user test profile alter user test profile LOCK_ACT;Unlock account alter user test account unlock;Create profile plt limit PASSWORD_LIFE_TIME 10
Archive logs record database operation records, which are the basis for data recovery. If the archive mode is enabled for the database, a large number of archive logs will be generated. Of course, if there is an RMAN backup, logs that have been
1) SQL * Plus login. SQL File
When you use SQL * PLUS to log on, SQL * PLUS reads and executes the script in the following order:
· $ Oracle_home/sqlplus/admin/glogin. SQL
· Login. SQL in the current directory, or set an environment variable
When PL/SQL developer is used to develop oracle stored procedures, a very confusing problem is that the stored procedures can be compiled after compilation, that is, there are errors after compilation, there is a small Red Cross in the name of
Transaction isolation levelThe ANSI/iso SQL standard defines four transaction isolation levels, which are defined based on three phenomena1) dirty read (dirty read)Can read uncommitted data, that is, dirty data.2) nonrepeatable read)If a row is read
Oracle 10g installation documentation
OS: rhel5.4
Author: Lvan
Date: 2011/10/29
After reading many documents, I will summarize them after installation. It should be useful for beginners.
1. Check the installation environment
Binutils
Learning must follow the gradual rules. Otherwise, you will find that learning is getting harder and harder, because the previous basics do not understand.
You must learn how to create tables in basic oracle learning. But before creating a table,
1. Install Character Set Character
Refer:
Http://www.oracle.com/technetwork/database/globalization/index-085942.html
Generally. This tool is available when you install the oracle system.
Bash-3.00 $ which csscan
/Orahome/oracle/product/11.2.0
Flash back with SQL * Plus.
1. Shut down the database.
SQL> shutdown abort;
2. Start the database to the Mount mode.
SQL> startup mount;
3. Data flash back.
SQL> recover database until time '2017-11-20: 07: 00: 00 ';
(Another available
Complex query of a single Oracle table
select avg(sal),max(sal),deptnofrom empgroupby deptno;
select avg(sal),max(sal),deptnofrom empgroupby deptnohavingavg(sal)>2000orderby deptno;
Query employees whose salaries are higher than 500 or whose
Rowid structure analysis select rowid from dualaaaab0aabaaaaoha1_owid structure: object number file number block number xxxxxx xxx therefore, AAAAB0 object no. AAB File No. AAAAOh Block No. AAA line number how do I know the decimal encoded values of
After a SQL statement is used to add a partition filter condition, the cost increases by adding a filter condition to the query Partition Table in 10.2.0.1.0. The cost increases, because this is an oracle bug. Let's test it below:
SQL> select * from
Steps for specifying column sequence without damaging data
-- T_LAW_RULE alter table T_LAW_RULE drop primary key; -- delete the primary key alter table T_LAW_RULE MODIFY (id null); -- set it to null alter table T_LAW_RULE ADD (ID_TMP CHAR (32 )); --
Test a compressed Oracle table
SQL code-compress a TABLE to reduce the amount of data and reduce IO DROP TABLE t purge; CREATE TABLE t NOCOMPRESS AS SELECT rownum AS n, rpad ('', 500, mod (rownum, 15) AS pad FROM dual connect by level execute
Database optimization subtotal optimizes database tables related to XX businesses on Monday night. Cause: there are 4 tables in total, with a small data size, a minimum of 0.4 million records, a maximum of 3 million, and a size of no more than 300
Cast (,) CAST, a data type conversion function in Oracle, explicitly converts a data type expression to another data type.
Syntax: CAST (expression AS data_type) CAST (ytd_sales AS char (20) Example: declare @ I intset @ I = 0 while @ I
Create
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