I. Oracle's physical structure (file structure) there are three types of files in Oracle: Control files, data files, log files, and log files into two categories: online log files, Archived log files There is also a parameter file: The parameter
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
Xi. Sub-query1. Sub-query OverviewReasons to learn the subqueryExample: Querying employee information with a higher salary than ScottIdea: 1, Scott's salarySelect Sal from emp where ename= ' SCOTT ';2, 3000 higher than the staff informationSELECT *
Before simply writing a 10046-event introduction to the article http://hbxztc.blog.51cto.com/1587495/1898624, of course, collecting 10046 trace is not the ultimate goal, able to read and analyze 10046 Trace and then analyze the performance problem
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
1 first need to enter Oracle with system users 2 then create a table spaceCreating a tablespace requires creating two temporary table spaces a table space-- CREATE TABLE space Create tablespace ABC datafile ' D:\TABLESPCE\LANDHIGH_SFTMS.DBF ' size 50
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
A subquery actually refers to a SELECT statement that is embedded in another statement, also known as a nested query. It is worth noting that subqueries can use the ORDER BY clause when a subquery is applied in a DDL statement. However, in a WHERE
The following is a part of a stored procedure:PROCEDURE Sap_man_routing_so (citem_id VARCHAR2,csite_id VARCHAR2,CTYPE VARCHAR2)IsV_routing VARCHAR2 (40);BEGINIF (citem_id not like '%c% ')ThenSELECT NVL (TRIM (RR. routing_id), ")Into v_routingFrom
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)
Summarize the beginning of the career of the novice Oracle-related developer, 0 Basics can look at the relevant theory.Lazy Summary: oracle-database (Database db) derived from DB based on the basic SQL (DB language) of related content such as EBS
When the database was created, a password was already set for 4 accounts such as SYS, where SYS and system had administrator privileges to log into the Oracle database using the SYSTEM account in the Sql*plus tool.1, through the data dictionary
1. Take the Windows operating system as an example, open a command prompt, enter the command sqlplus/nolog, enter the Oracle console, enter Conn/as sysdba, and enter in the DBA role.2. After the connection is successful, enter "Select username from
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