The following is an example of importing and exporting.Data export:1 full export of database test, user Name System Password Manager exported to D:\daochu.dmpExp system/[email protected] file=d:\daochu.dmp full=y2 Exporting the system user in the
To delete a failed materialized view today; the manager said it was a lock watch; then Baidu took a look.Here is the query lock table and how to unlock it--Query the lock nowSELECT l.session_id Sid, S.serial#,
Max Maximum number auto plus 1Create or Replace function Fun_getmaxlot ( vend in varchar2, domain in VARCHAR2, tag in varchar2) RETURN Varch AR2 as maxval VARCHAR2 (40); NEWIQC VARCHAR2 (40); TT VARCHAR2 (12);
In Oracle we know that there is a hierarchical Queries with connect by we can conveniently check all the child nodes under all current nodes. Unfortunately, there is no corresponding feature in the current version of MySQL.In MySQL if it is a finite
Oracle---------------------------------------SELECT case when T.column_id=1 and T.table_name end table_name, case if T.column_id=1 then T2.comments end Table_ Comments, t.column_id,t.column_name,t1.comments,case when T3. COLUMN_NAME is isn't null
Build table: CREATE TABLE STU ( ID number (3), name VARCHAR2 (10)) CREATE TABLE EXAM ( eid integer NOT null, stuid integer NOT NULL, coursename VARCHAR2 (NO) null,score FLOAT) INSERT into Stu (ID, name) of values (3, '
Select Prod.amount,prod.plansum, (Prod.plansum-prod.amount) as borrow,d.enum_value from----result set subtraction(Select T.quo_prod_list_price * t.quo_prod_volume as amount multiply,----column valuesT.quo_prod_plan_cost * T.quo_prod_volume as
To view the character set:SELECT * from V$nls_parameters;SELECT * from Nls_database_parameters;To modify a character set:Sqlplus "/as sysdba"Shutdown immediate;startup Mount;Alter session set Sql_trace=true;Alter system enable restricted
--View of database nameSelect name from V$database;650) this.width=650; "src="%5c "alt=" spacer.gif\\ "\" "/>--View of instance nameShow parameter instance_name;650) this.width=650; "src="%5c "alt=" spacer.gif\\ "\" "/>--Data filesSelect name from V$
1. Table field self-correlation and analysis function performance comparison, self-correlation needs to scan table two times, analysis function scan once can----Self-correlatingSelectV1.proj_id,v1.proj_start,v1.proj_end fromv v1,v
The update operation meets the criteria, and the insert operation does not conform.Merge intoMyd_nsrdt nusing (Select '9' asMydtmid,'1' asTmtype,'370200123456788' asNSRSBH,"' asNSRMC,'SN' asRegion4 asPf"' asYj'18888888888' asPhone'18888888888'
Exception handlingCreate or replace procedure Prc_get_sex(Stuname Student.name%type)AsStusex Student.sex%type;BeginSelect Sex to Stusex from student where name=stuname;Dbms_output.put_line (' Students ' | | stuname | | ' The sex is: ' | |
First, you need to create a synonym permission for the user:Sql> Grant create synonym to Jhchen;Grant succeeded.To create a synonym syntax:Create synonym name for owner. Object nameNeed to login with Jhchensql> create synonym eos_kpi_usersalary for
Node eviction caused by heartbeat Network (not instance eviction)
Node eviction of Oracle RAC caused by heartbeat Network (not instance eviction)
Q:Suppose the following scenario: for the four node rac, the heartbeat line uses a m network
Implementation of SQL statements for ORACLE database-based cyclic table creation and cyclic storage Creation
I. OverviewIn actual software development projects, we often encounter the need to create multiple database tables or stored procedures of
Oracle single row Functions
Single-row function syntax
Function_name (column | expression, [arg1, arg2,...])
Parameter description:
Function_name function name
Column name
Expression
Arg1, arg2,... Parameters
Single Row function category:
Character
Application structure of Oracle Database
Application structure of Oracle Database
With the development of network technology, Oracle databases have been widely used in various fields. The application system structure based on Oracle databases mainly
Oracle SQL optimization Case 1: oraclesql Optimization
An Alert email is sent from a job in the monitoring alarm log file (Alert). The tablespace TEMPSCM2 cannot expand the temporary segment, indicating that the temporary tablespace has been used up
Use of Oracletrunc () function
-- Oracle trunc () function usage
/************** Date TRUNC () the function does not have second precision *******************/select sysdate from dual -- select trunc (sysdate) from dualselect trunc (sysdate, 'dd')
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