Step 1: query the table ID from the data dictionary View
Select object_id from all_objects where owner = 'sunard' and object_name = 'tbl _ wdc_inf ';
Step 2: Identify the order of all fields in the table by ID
Select OBJ #, Col #, name from SYS.
Steps required to record the SQL script imported from the Oracle database
1. log on to the database with the highest system privilege, for example, DRP project ):
Conn system/bjpowernode;
2. Create a user, for example:
Create user test
Oracle Database Server:Oracle Server is an object-1 relational database management system. It provides open, comprehensive, and integrated information management methods. Each server is composed of an Oracle DB and an Oracle server instance. It
A deadlock usually occurs when a resource has a circular dependency.
The deadlock on Oracle usually occurs in the circular dependency of "Row-Level Lock:
There are records a, B, transaction T1, T2, now T1, T2 concurrent execution of
I. Databases
A database is a collection of data, while Oracle is a software system that manages these data sets. It is an object-relational database management system.
Ii. tablespace
Tablespace is the logical ing between Oracle and the data
CREATE DATABASE LINK
-- Create a link (created in the target database) Create [public] database link linknameconnect to username identified by passwordusing 'connectstring '; -- create public database link database connection name connect to user
The lag and lead analysis functions can retrieve the data of the first n rows of the same field (Lag) and the data of the last n rows (LEAD) as independent columns in the same query.
This operation can replace table self-join, and lag and lead have
In the Command Prompt window (cmd.exe), enter
1. Step by step
1. Step-by-Step Export
C: \ Documents ents and Settings \ Administrator> exp
Username: userid (the user created in the database under security)
Password: Password
Buffer size for input
1./* + all_rows */It indicates that the overhead-based optimization method is selected for the statement block, and the optimal throughput is obtained to minimize the resource consumption.For example:Select/* + all + _ rows */emp_no, emp_nam, dat_in
Add, delete, modify, and delete trigger information
Create or replace trigger hz_test_triggerAfter insert or update or delete on hz_testFor each rowDeclareV_type hz_test_log.l_type % type;BeginIf inserting thenV_type: = 'insert ';Insert into hz_test_
Package:
A package is a combination of PL/SQL programming elements, such as related processes, functions, variables, cursors, and constants. It features an object-oriented programming language and encapsulates these PL/SQL programming elements. A
1. Storage StructureThe storage structure of Oracle databases is divided into logical and physical storage structures.
Figure 3
2. Logical Structure
The logical storage structure mainly describes the internal storage structure of Oracle databases,
String functions:
Single-record functions in SQL1. ASCIIReturns the decimal number corresponding to the specified character;SQL> select ASCII ('A') A, ASCII ('A') A, ASCII ('0') zero, ASCII ('') space from dual;A A zero space-------------------------
60. AVG (distinct | all)All indicates the average value for all values, while distinct only calculates the average value for different values.Sqlwks> Create Table table3 (XM varchar (, Sal number (7,2 ));The statement has been processed.Sqlwks>
Oracle inserts data and obtains the ID of the auto-increment sequence. This article describes how to create the auto-increment sequence and how to obtain the corresponding auto-increment ID after inserting the data, as follows:
Create Table atable
Create or replace procedure dongjietotable -- create a stored procedure named donjietotableAs -- Define data ZoneCursor c_qydjsx -- defines a cursorIs select nbxh from aqydjsx;Cursor c_sttzqkIs select tznbxh from asttzqk;
V_nbxh varchar2 (40); --
I. system global zone (SGA)
Data in the global zone of the system is shared by multiple users. When the database instance is started, the memory in the global zone of the system is automatically allocated. SGA is divided into data buffer, log
1. Introduction to Oracle Logical StructureThe logical structure of Oracle includes tablespaces, segments, data blocks, and schema objects ).Oracle databases are logically composed of multiple tables. objects stored in tablespaces are called
Maxactive is the maximum number of activated connections. The value is 20, indicating that a maximum of 20 databases can be connected at the same time..
Maxidle is the maximum number of idle connections. The value here is 20, indicating that 20
Happy Life of the Old Wang family
Abstraction of Oracle's Structure System
An avid photographer-happy family of Old Wang
The first chapter of each Oracle book generally introduces the structure and system of Oracle. When this chapter is
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