/*There are four main functions in Oracle that support regular expressions:1,regexp_like: Similar to like function2,REGEXP_INSTR: Similar to INSTR function3,REGEXP_SUBSTR: Similar to SUBSTR function4,regexp_replace: Similar to REPLACE functionThey
Write a simple stored procedure right when practicing
Create or replace package Mahanpack asType my_cursor is REF CURSOR;End Mahanpack;-------------------------------------
Create or Replace package body Pageutil isProcedure GetResults (TableName
In a previous article, the impact of additional associations on SQL is great, so there is a lot of concern about table associations in the work of SQL audits, and if redundancy can optimize the table association, I try to do some redundancy on the
Note: SID-database identity
Home_name-oracle home name, such as OraHome92, OraHome81
(1) Oracleservicesid
Database service, which automatically starts and stops the database. If a database is installed, its default startup type is automatic. The
keywords: Oracle takes the intersection of data in two tables INTERSECT
Oracle as a large relational database, often need to extract the intersection data of two tables in daily application
For example, if you need to find an employee number with a
Everything has its source, to solve the problem, also have to start from the source, the impact of Oracle performance is very many sources, including the following: the hardware configuration of the database: CPU, memory, network conditions.
1. CPU:
Oracle Execution Plan (2)-Cardinality
Executes the cardinality column for the plan. Cardinality is the number of rows of data returned from a datasheet, result set, or index.
cardinality = table row Data * selection rate. So the cardinal point is to
%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
The best way for Oracle to delete duplicate records:DELETE from EMP E WHERE e.rowid > (SELECT MIN (Y.ROWID)From EMP yWHERE y.empno = e.empno)
1, subquery find the lowest ROWID (certainly only one), other than this record ROWID, delete all.
2,
First, positioningOracle is divided into two pieces, one is development, the other is management. Development is mainly written to write stored procedures, triggers, and so on, as well as using Oracle's develop tool to do form. Sort of like a
The reason and solution of Oracle Chinese character garbled problem
by Wangd
Reason:
The main reason for the occurrence of Chinese garbled characters is the character set is different.
In Oracle, we care about the character sets in three places:
1. See what character set is inside Oracle data server
Select userenv (' language ') from dual;Or:Select name, value$ from props$;
2. Switch to a system user using an Oracle command or service to execute a command: Export
(The following content is valid only in the case of "=", like not.) )
Sometimes we do not want to query the lower or upper and other functions and the contents of the case are queried, such as from SQL Server, MySQL and other transfer to Oracle. The
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
One
1. Start: The fields in the SQL code exported through Powderdesiger are lowercase and are then imported directly into Oracle.
2.bug: Unable to modify the table structure (in PL/SQL developer)---include adding delete modifications
How to calculate the amount of space occupied by an Oracle's table record.
How to calculate the amount of space occupied by Oracle's table records.
Is the size of all the fields added up. varchar (256), Char,number counted several bytes.
Oracle performance topics are very broad and there are many books on the market that specifically describe Oracle tuning. The pursuit of performance is endless, need long-term unremitting efforts, but to avoid the problem of performance is not
when Oracle installs the DBMS from the 10G release, the server installed does not have the client installed, the client is installed on its own, and more flexible uses such as your server on Linux, you can install an oracle under your Windows
Architecture of Oracle DatabaseDatabaseAn Oracle database is the physical storage of data.Includes data files Ora or DBF, control files, online logs, parameter filesThe database here is an operating system with only one libraryOracle can be viewed
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