Turn from: http://blog.csdn.net/inthirties/article/details/4843831
Here we will describe how Undo,redo is produced, the impact on transactions, and how they work together.
What is RedoRedo records transaction logs, divided into online and archived.
The sample code is as follows:
--Create Public database link Test_link CONNECT to Scott identified by Tiger using ' (DESCRIPTION = (Address_list = (ADD RESS = (PROTOCOL = TCP) (HOST = 127.0.0.1) (PORT = 1521))) (Connect_data = (service_name = LEE)
%type//If the declared variable is mapped directly to a column in the database, you can use the%type keyword to set the variable//anchor to this column. What is the benefit of doing so? For example://declare v_ename scott.emp.ename%type; This method
Union/union All operation: Combines the query's return into one result, and union all does not filter the duplicates.
Select product_id from Order_items
UNION
select product_id from inventories;
Select location_id from locations
UNION All
Tips:
The picture you want to insert must be saved to the Oracle host path.
Steps:
1, SYSDBA permissions users create the directory of the picture
CREATE OR REPLACE DIRECTORY test_dir as ' C:\Pictures '; --The pathname "test_dir" must be
resolution of Chinese characters cannot be displayed, input problems in Oracle
When installing on an Oracle 8.0/2000 machine, select 中文版 (the user's machine chooses Simplified Chinese), and then use Regedit to edit the registry, selecting
Original post address: http://blog.csdn.net/nsj820/article/details/5755685
Oracle9i introduces the merge command, which enables you to perform both inserts and updates operations on a table in one SQL statement. The merge command selects rows from
A method that determines whether a field contains Chinese sql> queries all LoginName records that are Chinese characters:
SELECT * from Studentbaseinfo where ASCIISTR (loginname) like '%/% ';
Query all LoginName records that are not Chinese
Reference Source: http://download.csdn.net/detail/guoquanyou/3614666
Add table Student to Oracle database
CREATE TABLE Student (STUDENT_ID Number (6) is not NULL PRIMARY KEY,Student_name VARCHAR2 (Ten) is not NULL,Student_age Number (2) Not
ALTER TABLE UserInfo Add (msn varchar2 (20));
1, build the table
CREATE TABLE UserInfo (
ID Number (6),
Name VARCHAR2 (20),
Sex number (1),
Age Number (3),
Birthday date,
Address VARCHAR2 (50),
Transactions in Oracle
A set of SQL statement operations to become a transaction, the database management system must ensure the atomic (atomicity), consistency (consistency), isolation (isolation) and persistence (durability) of this set of
Configure Time Synchronization Service
Time synchronization between nodes is very important for Oracle, which is often done by setting up NTP servers before the 11g version. A new CTSS (Cluster time Synchronization Services) service was added to
first, the introduction
Data Warehouse technology is a more mature and widely adopted solution, it is used for all the dispersed raw business data in the whole telecom operation Enterprise, and it can support different departments, different needs
1. First create a table lengzijiantest with only one field in the table f_id
CREATE TABLE lengzijiantest
(
f_id number not NULL
)
2. Insert a piece of data
INSERT into lengzijiantest values (1)
3. Now
Logminer provides a process for processing a redo log file and translating its contents into an SQL statement that represents a logical operation on the database . Logminer is running in Oracle version 8.1 or later.
one, how to use Logminer:
1. Create test table and serial number
[SQL] view plain copy print? CREATE TABLE Job_test (ID integer,add_time date);
SQL] View Plaincopyprint?
Create sequence seq_tm_idMinValue 1MaxValue 99999Start with 61Increment by 1Cache 20; 2, the creation
Users have a requirement to access the Oracle database using C + +, and then open the C + + database programming book. C + + (VC) database access technology has Odbc,dao, ADO (OLE DB) and other technologies, these are common C + + database access
@echo Start Backup ....
@echo This program uses ZIP compression, after the backup of the file can be used RAR or zip decompression.
Set INSTANSE=ORCL
Set Username=user
Set Password=password
Set Extname=rar
Set year=%date:~0,4%
Set
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