I have several Oracle stored procedures, two of which involve recursive operations, which are relatively time-consuming. These Oracle databasesProgramI gave them numbers P1, P2, P3, P4, and P5. P2 and P5 have complex recursive operations, involving
BecauseAUD $Audit-related tables such as tables are stored inSystemTherefore, to avoid affecting system performanceSystemTablespace.AUD $Move to another tablespace. You can use the following statement to move:
[Oracle @ cent4 ~] $ Sqlplus/As
---- 1. having clause usage ---- having clause controls the row groups determined by the group by clause. The having clause conditions only allow constants, clustering functions, or columns in the group by clause.-
--- 2. external join "+" usage --
The Oracle database system configures its own startup according to the parameters set in the init. ora file of the initialization parameter file. Each instance first reads the different parameters set in these parameter files before it starts.
Create or replace procedure merge (v_phone_number in varchar2, v_tone_id in varchar2, v_tone_code in varchar2, v_tone_name in varchar2, v_tone_type in number, v_num out varchar2, -- serial number v_iswin out number, -- whether to win 0 not yet, 1
The daily work does not process much date. Recently, a time dimension table needs to be designed. This opportunity is used to sort out common date processing methods.
Oracle provides several basic date processing functions
Function
Write a stored procedure. You can enter the table name, the number of records displayed on each page, and the current page. The total number of records, the total number of pages, and the result set are returned.
-- Oracle Paging
Select T1. *,
1. Other processes
Archiver (arcn)
Oneor more archiver processes copy the redo log files to archival storage whenthey are full or a log switch occurs.
Recoverer (reco)
The recoverer process is used to resolvedistributed transactions that are
1 move Experiment
SQL> Create Table my_objects_move tablespace assm as select * From all_objects where rownum
Table created
SQL> select Value
2 from V $ mystat, V $ statname
3 where V $ mystat. Statistic # = V $ statname. Statistic #
4 and V $
The rowid of Oracle uniquely identifies a record in the table, which is the physical address of the data stored in the database.
Oracle's rowid can be divided into two types: Physical rowid and logical rowid. The index organization table uses the
Oracle Database Development (4). Example makefile for Pro * C
Vert melon
Jun
It is a pity that there is a few aritcle written in Chinese which talking aboutThe material method of makefile for Pro * C/C ++. Maybe it's not diffcult to the mostLinux
Oracle tips by Burleson ConsultingMarch 26,200 2-updated June 28,200 7
For complete details on Oracle indexing for high performance, see my book "Oracle tuning: the definitive reference ".
Oracle distributed des numerous data structures to improve
The business description is as follows:
When inserting a table, you need to update the value of another field based on the value of one field. Of course, it can also be implemented through a program, but this field is only used for data exchange. It
-- ===================================================== II. PL/SQL programming-- ===================================================== ====================
1. Autonomous transactions: 8i or above, without affecting the master transaction.In the
Original: zykj2000Email: zykj_2000@163.netBBS: http://bbs.513soft.net
Upgraded by doublelEmail:Blog: http://blog.csdn.net/doublel/
Upgradeer: northsnowEmail: northsnow@163.comBlog: http://blog.csdn.net/precipitant
First, the source code of the
By using oledb to operate the Oracle database, the image is successfully uploaded to the Blob type field, but sometimes the problem of ORA-01036 error occurs, the query is the error prompt is illegal variable name/number, I don't know who can
Double quotation marks on column aliases
Enter and execute the query: SQL code
Select ename as "name", Sal * 12 + 5000 as "annual salary (plus year-end bonus)" from EMP;
[SQL]
View plain
Copy
Print
?
Select ename as "name", Sal * 12 + 5000 as "
Author: skate
Time:
In an Oracle database, rowid is unique and identifies the file, block, and row to be recorded.On Repeated Records, the contents of all columns may be the same, but their rowidIt is different, so I only need to delete the
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