In the Oracle database, we can use oracle internal events to adjust the SCN. There are two common methods to improve SCN:
1. alter session set events 'immediate trace name ADJUST_SCN level x ';-- Database OPEN is required
2. Event 10015Alter session
PostgreSQL cursor example (create a cursor and traverse it in the function)
-- Drop function top100cur (refcursor );
Create FunctionTop100cur (refcursor)ReturnsRefcursorAs$
Begin
Open$1For Select*FromPersons limit 100;
Return$1;
End
$
1. database data volume surge. Compared with databases similar to other services, the data volume of a table is abnormal. Finally, a bug of repeated data migration is identified...
120301 17:30:43 [ERROR] Column count of mysql. db is wrong.
View login users:You can:Show user;Select sys_context ('userenv', 'session _ user') from dual;Select user from dual; View all login users must be DBA users:Select username from v $ session;DBA users such as sys and system View objects (tables) in
For Oracle's learning and discussion, I will proceed directly below, and I will not discuss the history of Oracle, because the Oracle official team has a better explanation, here is a refinement of my knowledge about Oracle.
For more information
First, use Oracle-xe to create a database (use root ).Rpm-ivh oracle-xe-univ-10.2.0.1-1.0.i386.rpmOracle. dba is created.Basic Configuration:/Etc/init. d/oracle-xe configure
In this case, You Can su-oracleConfigure environment variables.Focus on
Cocould not load program Oracledevmdm:Symbol resolution failed for/usr/lib/libc. a [aio_64.o] because:Symbol kaio_rdwr64 (number 1) is not exported from dependentModule/unix.Symbol listio64 (number 2) is not exported from dependentModule/unix.Symbol
For more information about rownum and rowid, see:
For details about how to use rownum paging, refer to the following SQL
Select*From (
SelectT1.*, RownumRnFrom (
Select*FromScott.EmpOrder BySalDesc --Here is the sorted table
)T1Where Rownum 8
Background:Just a netizen asked the ORA-30009 error, the database version is 10.2.0.5, the operating system version is RedHat 4; then I took into account the hardware and buffer constraints, the verification, the details are as follows:
Error
1. Prepare the system environment before installing Oracle 10 Gb database
1. view the system version, kernel version, number of operating system digits, memory and swap partition size, file system space, host name, IP address, and so on.
[Root @ rac0
RangePartition:
RangeA partition is a table partition with a wide range of applications. It uses the range of column values as a partition condition to store records to column values.RangePartition.
For example, by time,2010Year1Monthly
When I was writing JDBC, I met the problem that the SQL statement cannot run because it contains Chinese characters. So I put this sentence in the mysql client for testing and the result passes, I guess it's not a matter of character encoding. It's
Statement for inserting database data:Insert into testtab (FIELD1) VALUES ('test ')If the string to be inserted to the database contains single quotation marks, escape is required. For example, to insert "It's a tree.", the SQL statement is as
The most important purpose of redo log files is to restore data (you can also use logminer). It records the database buffer cache (high-speed cache area) in the system global area (sga) all change information is recorded in the log buffer. However,
In the database design principle, the purpose of the Self-increasing field is to determine the uniqueness of each record for the unique index, and to ensure the query speed when the database volume is large.
However, there are separate fields in
In many cases, some slow queries cause a lot of pressure on MongoDB. It took some time to write a script and kill some slow query operations.
Var j = 0;
Var _ DEF_TIME = 10;// Set the slow query time
For(Var I in db. currentOP ().
ROWID determines Based on the index:SQL> select rowid from;
ROWID
------------------
AAAQ/LAACAAABacAAA
AAAQ/LAACAAABacAAB
SQL> desc;
Name Null? Type
-----------------------------------------------------------------------------
Id not null number (5)
After watching the struts video, I started learning about Hibernate. After writing a few examples, I found that this framework is really convenient and easy to use.
Its advantages and disadvantages:
1. A special advantage of Hibernate is to simplify
Differences between Oracle row triggering and statement triggering
1. the row trigger has a for each row clause. The statement trigger does not have a for each row clause.2. the row trigger can have the when as the trigger limit. You can use new/old.
Oracle implicit parameter: Use of allow_resetlogs_uption
Tip: Implicit parameters of Oracle should be used only in the test environment or with the Support of Oracle Support.
When the redo file in oracle is corrupted:1: If the damaged non-current
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