1. Oracle's Custom functions2. Oracle triggers3. Oracle's Stored proceduresKnowledge Point one: Custom functionsSyntax: Create [or replace] function name (parameter)Return value type-must beIs--Declaration of variablesBegin--EXECUTE
First, IntroductionORACLE provides the ability to PL/SQL The program is stored in the database and can be run anywhere. This is called a stored procedure or function . Procedures and functions are collectively known as PL/SQL subroutines, which are
Oracle creates a normal user and gives permissions1) using SYS or system/manager as SYSDBA; Connect to the database.2) Create peng:create user Peng identified by pwd_oracle;Delete users, drop user peng;3) grant the user permission to log on to the
Cursor Properties and Restrictions/*1. Cursor Properties%found%notfound%isopen to determine if the cursor is open%rowcount the number of rows affected2, the cursor limitBy default, the Oracle database allows only 300
Many times, we do a small batch of data migration will use the data pump, but 12C we want to configure TNS to specify the PDB import, but the public service we are through the cluster using SRVCTL to create. At this time preferred instances may have
Transfer from http://www.cnblogs.com/advocate/archive/2010/08/20/1804066.htmlDeepen your understandingThe database is a photographic film.Example is photo paperA film can be used to punch multiple photographic papers, but a photo paper is a maximum
1. Stitching strings1) You can use the "| |" To stitch a string2) through the concat () functionNote: Oracle's CONCAT function only supports two parameter methods, that is, only two parameters can be stitched together, if you want to stitch multiple
Oracle Instant Client (clients) download1,:http://www.oracle.com/technetwork/database/features/instant-client/index-097480.htmlThe download will be a compressed file with the following contents: D:\Program files\instant client. Put it in the
1. To enable Python to operate the Oracle database, first install the Cx_oracle package.2. Create a simple Python file to test whether the installation was successful.1 #!/usr/bin/env Python32 #-*-coding:utf-8-*-3 4 Importcx_oracle5DNS_TNS=CX_ORACLE.
Second, the steps are as follows1. Create a DirectoryData pump requires the creation of a directory for the files and log files to be created and read, this parameter is used to define a directory, the previous mentioned data pump mainly work on the
First, about the uninstallation of OracleIn the previous blog we mainly introduced the basic concepts of Oracle, architecture, installation procedures, etc., but the design of the uninstallation of Oracle did not do a detailed introduction, but if
1. Login: sqlplus/@orcl as Sysdba2. Snapshot: Exec dbms_workload_repository.create_snapshot3.AWR report: @ $ORACLE _home/rdbms/admin/awrrpt.sqlIf you don't set Oracle_home, you'll find the exact
(1)Select the most efficient table name order (valid only in the rule-based optimizer):The Oracle parser processes the table names in the FROM clause in a right-to-left order, and the FROM clause is written in the final table (the underlying table,
is the Partition operation related to Controlfile?To judge by experiments:Compare the operations before and after Partition to see if there is a record in the Controlfile dump information,The results found no information recorded in the Controlfile.#
How [Oracle] observes the conflicts between various lock types in tableExample:SESSION#15 Create a table:SID 15==============CREATE TABLE T1 (C1 number)Partition by range (C1)(partition P1 values less than (' 11 '),Partition P2 values less than (' 21
Select Ename,&column2 from Scott.emp; Input sal;/substitute scalar;SELECT * FROM &tab;SELECT * from scott.emp where sal> &sal; 2000SELECT * from Scott.emp where Ename=upper (' &salary '); SCOTT;Define Col=commDefine viewing variablesSelect
[Oracle] fast way to construct large amounts of data:CREATE table tab001 (ID integer primary key, Val varchar2 (100));INSERT INTO tab001Select I+j,rpad (To_char (i+j), +, ' A ')From (With DATA2 (j) as (Select 0 J from DUALUNION ALLSelect j+1000 from
There are several items in the Oracle constraint state that can be confusing, for each of them:
enable/disable--whether to enable/disable
validate/invalidate--Confirmation/Not confirmed
Deferrable/not deferrable--can be
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