A Set the appropriate SGA
People often complain that server hardware is good, but Oracle is slow. It is likely that the memory allocation is unreasonable. (1) Assuming that the memory has 512M, this is usually a small application. Oracle's SGA is
The Oracle tutorial you are looking at is: Backup and Recovery of Oracle databases. ----When we use a database, always want the content of the database is reliable, correct, but due to computer system failures (including machine failure, media
What happens when you use Oracle to find that a table is locked and you don't know who (or what program) is locked?
Two steps to go:
1, find out the locked object of the session ID and serial number
Execute SQL as follows:
--queries out the
Whether it is the implementation of the paging query code in the DRP or interview questions to see the investigation of the paging query, give me a hint: Paging query is important. It must be considered when the volume of data is large. Never took
The Oracle tutorial you are looking at is: a brief discussion of Oracle database set replication methods. Objective
The growing demand for distributed applications requires a better distributed software environment, which drives the development of
basic syntax and examples:1, EXP:There are three main ways (complete, user, table)1. Complete:EXP System/manager buffer=64000 file=c:\full. DMP full=yIf you want to perform a full export, you must have special permissions2, User mode:EXP sonic/sonic
1. Create a stored procedure Create or Replace procedure test (var_name_1 in type,var_name_2 out type) as--Declaring variables (variable name variable type)Begin--The execution body of the stored procedureEnd test;Print out the time information
ORACLE 10G modified character encoding, no longer troublesome, no super character set limit, you can directly modify the string you want, but may already exist before the data may be displayed incorrectly, you need to re-import
The modification
I. Ordinary table (Heap table): For most design scenarios, there are advantages and disadvantages.
Advantages:1. Simple and convenient grammar2. Suitable for most scenes
Disadvantages:1. Update log cost is large2.Delete Unable to free space (HWM
Use an Oracle trigger to monitor an incremental deletion of a table and record it in another table.
Code:
Copy Code code as follows:
Create or Replace Trigger Test_trigger
Before insert or update or delete on test_table
For each row
SQL code--Get the current SCN
Copy Code code as follows:
Select Dbms_flashback.get_system_change_number scn1,
TIMESTAMP_TO_SCN (sysdate) scn2 from dual;
--Convert the SCN to successful time
Copy Code code as follows:
Oracle database View How a process is executing the relevant actual SQL statements
Copy Code code as follows:
SELECT b.sql_text, sid, Serial#, Osuser, machine
From V$session A, V$sqlarea b
WHERE a.sql_address = b.address;
The following SQL statements can be used in Pl/sql to query which tables in the current database are locked and which users lock them:
SELECTA.owner,--object owned userA.object_name,--object name (table name)B.XIDUSN,B.xidslot,B.XIDSQN,B.SESSION_ID,
The most basic Oracle database connection code (for oracle11g only):
1, right key project-> build path-> Configuration build path, select the third "library", then click "Add External Jar", select "D:\Oracle\app\oracle\product\11.2.0\server
---Friendship tips, more content, you can choose from the top left of the + Directory selection section to facilitate reading.
Experimental thinking:--Experimental related trace file: http://download.csdn.net/detail/q947817003/6646723
1. Database
Students who write SQL frequently may use the two Keywords Union and union all, and maybe you know that they can combine the result sets of two queries.
So what's the difference? Below we have a simple analysis.
Comparison
Union: Distinct The two
In general, Oracle databases operate more efficiently than SQL Server databases in large data environments. From the query optimization alone, the two are quite different. Below, the author of the database query optimization of the difference to do
I. Classification of authority:
System permissions: The system requires users to use the database permissions. (System permissions are for users).
Entity permissions: The access rights of a user to a table or view of another user. (For a table or
In 10g, the Rman backup is optimized to no longer back up the data blocks in which the table frees space.
The backed up document is 9i, so it has always been considered that the Rman backup only backs up the blocks where the data was written, and
Installing oracle in linux is a daunting task. 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 oracle 10
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