I. Data Control statement (DML) section
1.insert (Insert the statement into the data sheet)
Insert into table name (field name 1, field Name 2, ...) Values (value 1, value 2, ...);
Insert into table name (field name 1, field Name 2, ...) Select
Today received a friend database a case, in the DBCA, the automatic collection of statistical information to remove the option, the database run for six months did not collect statistical information, now to enable the following methods:
EXEC
The following error was reported when executing the script to create the control file:
Sql> @/orac/controlfile.sql
Sp2-0042:unknown command "datafile"-rest of line ignored.
Sp2-0734:unknown command Beginning "'/orac/ora ..."-rest of line ignored.
Not very clear before the role of encryption role, today looked at some data found that the cryptographic role can be granted to a user with a non-default role, and is enabled only when needed. Some of the more sensitive permissions in the ordinary
If you change the NIC before and after the network card name, IP, gateway, subnet mask will not change, the cluster level is not allowed to do additional operations!
To use the new NIC name after replacing the NIC
1, to ensure that all cluster
[Oracle@ggos ~]$ Rman Target/
Recovery manager:release 11.2.0.4.0-production on Fri Dec 6 00:17:59 2013
Copyright (c) 1982, Oracle and/or its affiliates. All rights reserved.
Connected to target Database:oraprod (dbid=9124528)
Rman> Show All;
13. Stored Procedures and storage functions1, master the stored procedure (equivalent to establish a function or method body, and then call it externally)A subroutine stored in a database that is called by all programs is called a stored procedure
SECURECRT connect to the Linux machine where the database resides, switch to Oracle user mode[Email protected] ~]# su-oracleSteps to read
2Then log in to the database with Sqlplus and close the database[[email protected] bin]$
Not_data_found Exceptions:--out of system columnsSetServeroutput onDeclarepename Emp.ename%type; begin SelectEname intoPename fromEmpwhereEmpno=1234; Exception whenNo_data_found ThenDbms_output.put_line ('No data found'); whenOthers
Set serveroutput on;Spool C:\sequence_code.txt;DeclareV_sequence varchar2 (4000);V_nextval number (38,0);BeginFor I in (select Sequence_name from user_sequences) loopSelect Dbms_metadata.get_ddl (' SEQUENCE ', i.sequence_name,user) into the
Self-summary, welcome fear Turn!The role of restraint is not much to say, directly see how to use it.Non-null constraint:To set a non-null constraint when creating a table:CREATE TABLE table_name (column_name datatype not NULL)To add a non-null
Tag: equals data style query between otherwise--value ROM--Cannot use > (values greater than 1), >= (values greater than or equal to 1), = (values greater than or equal to 1) for rownum, otherwise no result-So direct use only starts from 1--rownum >1
One, Oracle 11gThe automatic collection of statistics data is available in the 11g version of Oracle. One of the steps in deploying 11g Oracle software during deployment is to prompt for the ability to start this feature (which is enabled by default)
--View the database run mode (spfile or Pfile)Select Decode (COUNT (*), 1, ' spfile ', ' pfile ')From V$spparameterwhere Rownum=1 and isspecified= ' TRUE ';--Start the database with PfileCreate pfile=
Oracle for a left/right connection are you still using the Ieft join on?If your answer is yes then you're out and call you a simpleHere is the SQL I wrote myselfSelect A.id,a.name,b.grade from STUDENT A left JOIN score B on A.id=b.stuidBefore
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