In Oracle, null is added or subtracted from a number, and the result is null,
Therefore, the nvl () function is used for processing.
Declare v_num varchar2 (20); v_num2 varchar2 (20); v_num3 varchar2 (20); v_num4 varchar (20); begin select nvl
1. Find the MOST Group
Select XX. qssj from (select cm. persionid, CM. qssj, row_number () over (partition by cm. persionid order by cm. scrq DESC) as RnFrom rs_rsk_contract_manage cm where cm. bak_flag is null) xxWhere XX. persionid = A. ID and
Windows Oracle connection error ORA-12560: TNS: protocol adapter Error
There are three reasons for the problem that caused the ORA-12560: TNS: protocol adapter error: 1. the listening service is not up. For Windows, perform the following
The following is a method for importing Oracle Data to excel on the Internet. I have used it.
It is also found that access can directly import Excel data when creating a table,
In this way, there is a bridge to convert data between various
1. PLSQL debugging stored procedure:
1. Configure the connection in Oracle configuration and migration tool named ". net manager"
2. Create an SQL window in PLSQL and write the Stored Procedure
3. Create a test window in PLSQL and call between
Original article address: http://www.cnblogs.com/chenkai/archive/2010/02/22/1671442.html. Click Open Link
Check Constraints
Code
-- Create Table 'create table order_status (ID integer constraint order_status_pk primary key, status varchar (120),
The difference between the Oracle database and the MySQL database is what we will introduce in this article, hoping to help you.
1. Group function usage rules
In MySQL, group functions can be used at will in select statements. However, if a group
-- Monitor whether the index is usedAlter index & index_name monitoring usage;Alter index & index_name nomonitoring usage;Select * from V $ object_usage where index_name = & index_name;
-- Calculate the I/O distribution of data filesSelect DF. Name,
Link: http://user2005.blog.163.com/blog/static/137589500201123141041319/
PrefaceThe Oracle distributed database system is a customer/server architecture. Its structure is 1. In a network environment, each hardware platform with multi-user processing
1. Physical Structure (composed of control files, data files, redo log files, parameter files, archive files, and password files)
The data in a database is stored in physical files on the disk. When used, the data is transferred to the memory.
1. create a backup folder in drive D, such as: D:/database backup; create five (up to 7) subdirectories, such as D:/database backup/Monday, D: /database backup/Tuesday ,......, this ensures weekly backup;2. Create five batch files under the
If it is only a lock, the following statement can detect all user locks:
Select S. username,Decode (L. type, 'Tm ', 'table lock', 'tx', 'row lock', null) lock_level,O. Owner,O. object_name,O. object_type,S. Sid,S. Serial #,S. Terminal,S. machine,S.
Before Oracle9i, Chinese characters were sorted by binary encoding.The sorting by pinyin, radical, and stroke function is added to Oracle9i. Set the nls_sort ValueSchinese_radical_m is sorted by the beginning (first order) and strokes (Second Order )
E:/> exp help = y
By entering the exp command and user name/password, you canCommand after user/password:
Example: EXP Scott/Tiger
Alternatively, you can control the running mode of "Export" by entering the exp command with various parameters.
1. Set the initialization parameter job_queue_processes.SQL> alter system set job_queue_processes = N; (n> 0)Job_queue_processes: the maximum value is 1000. View the Job Queue background processSQL> select name, description from V $ bgprocess; 2.
How to start oracle in Linux:
1. Start the database instance:
log on to the system, username, and password. Eg: Oracle/Oracle;
sqlplus/nolog
SQL> connect sys/password as sysdba to connect to the instance
SQL> startup
SQL> shutdown
I. Syntax:Translate (string, from_str, to_str)Ii. Purpose
Replace each character in from_str with a string after the corresponding character in to_str. Translate Is a superset of the functions provided by replace. If from_str is longer than
Today, the developer asked me how to quickly and conveniently find the recently changed records of a table. This requirement is very simple. Because it is to check recently changed data, you can check the rollback segments, below is my small
Oracle series: Record)
1. What is record )?A composite structure composed of scalar values of multiple columns in a single row. It can be seen as a user-defined data type. It is similar to a multi-dimensional array.Encapsulate one or more scalar
13:52:44 | category:Hack everything! | Tag: Java RC Oracle bufsize int| Large font size, medium/small subscription
Recently, the Network speed is ungeliveble ......
"Internet access for all, never download BT !" This is the purpose of LAN!
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