1. It is best to use analysis functions.
Row_number () over (partition by col1 order by col2)
For example, if you want to retrieve-records, sort them by tname.
Select tname, tabtype from (Select tname, tabtype, row_number () over (order by
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
1. Download the installation package http://cx-oracle.sourceforge.net/based on the platform.
2. Install cx_Oracle-5.0-10g.win32-py2.6.msi in Windows
3. If a DLL loading failure error is reported, download the dig command.
4,Import cx_oracle #
1. log on with an oracle userIf you want to install it again, you 'd better back up the data first. The script includes the user's login script, the script for automatic database startup and shutdown, and the script for automatic
Queue
An enqueue is a shared memory structure that is always related to transactions and sessions. It is used to access database resources serially.
Queue type
There are many types of queues in Oracle. The following are common types:
#! /Bin/shExport ORACLE_HOME =/APP/Oracle/product/10.2.0/db_1;Export oracle_sid = orcl;Export nls_lang = "simplified chinese_china.utf8 ";Export F = $ (date + % Y % m % d % H % m % s); # Use the date plus time as the backup file nameBackupdir
In the difficult winter of data security, a series of topics sorted out before transcription.
Link: http://www.eygle.com/blog/special/oracle_recovery.html
Question: With the increasing importance of databases in enterprises, the business
Oracle databases have two log operation modes: nonarchivelog and archivelog.3.1 nonarchivelog ModeNon-archive mode refers to the log operation mode that does not retain redo records. This mode is only suitable for instance recovery and not for media
Abstract
Oracle 9i introduced the pga_aggregate_target parameter to help better manage session working areas in a session's program global area (PGA). This paper discusses available methods to help tune this new Oracle 9i parameter.
Introduction
create table lck (a number, b number);insert into lck values (1,2);insert into lck values (2,4);insert into lck values (3,6);insert into lck values (4,8);insert into lck values (5,3);insert into lck values (6,5);insert into lck values
Control Structure Control code lines of PL/SQL program flows. PL/SQL supports Conditional Control and cyclic control structure. Syntax and purpose if .. then Syntax: If condition then statements 1; Statements 2 ;.... the end if statement determines
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
In Oracle, the comparison and analysis of the effects of not using indexes and using indexes is unnecessary.
1. Create a test database and then insert data in batches:
SQL> Create Table studentinformation (ID number (20) not null primary key, name
1. To optimize the query, try to avoid full table scanning. First, consider creating an index on the columns involved in where and order.2. Try to avoid null value determination on the field in the WHERE clause. Otherwise, the engine will discard
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 "
The Oracle database has the following four users:Super administrator sys change_on_installGeneral Administrator System ManagerNormal user Scott TigerBig Data User sh
1. Uninstall Oracle1. Stop all Oracle-related services.2. Use OUI (Oracle universal
When starting oracle on the local machine today, an error is prompted:
"The oracleorahome92tnslistener service cannot be started on the local computer. Error 3: The specified path cannot be found"
Start the command in cmd:
C:/Documents and
I. No create session privilege1: create user beyondsanli identified by beyondsanli;Use beyondsanli normal to log on at this time and report no create sessionIn this case, you must use the System user to specify the session permission.2: grant create
1:Dba_tables displays information about all tables in the database.All index information of the dba_indexs DatabaseDba_tab_columns displays the column information of the database table.Dba_ind_columns displays the index column informationDba_objects
Oracle ERP standard address string method
1. Set ou1. from the menu edit-> preferences-> profiles, you can use MO: operating unit to query ou (assuming the value is vision operations) 2. you can use the following SQL statement to query 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