CREATE TABLE TableName1(ID CHAR (*) is not NULL,Samplingdate TIMESTAMP (6) NOT NULL,Instantaneousflow number (10,3),Totalflow Number (10),Flowmeterid CHAR (*) is not NULL,Receivetime TIMESTAMP (6),Inserttime TIMESTAMP (6));Partition by range
Oracle Database Configuration Monitoring1. Preparation environment: (1) Remote Oracle Service instance or Local service instanceRemote server or Local service side (storage database)(2) Oracle Client (ORACLE–ORACLIENT11G)(3) Pl/sqldeveloper tools2.
createtime--2017 September 7 17:14:56Author:marydonOracle judges two date intervals several daysMethod: Using Stored Procedures/** * To determine two dates interval several working days*/CREATE OR REPLACE FUNCTION"Fun_betweendays" (start_dt date,
1. Introduction to statistical informationThe statistic information mainly is a kind of information which describes the table in the database, the index size, the scale, the data distribution condition and so on. For example, the number of rows in a
1: The company database began to use the MySQL, because the company is doing a confidential project, so in the project log too much when the project has an explosion of the signs AH (30 billion data, seemingly MySQL a little support). Then the team
Default User of Oracle: System,sys,scott;
1: View login username: Show user;2: View data dictionary: dba_users;3: Table Space Overview: Logical storage space for the database; Data dictionary is a database provided by the table, the user to
The principle of selecting a primary key:
Minimum sex
Choose to use a single key as the primary key
Stability
Try selecting a column with fewer values to update as the primary key
1. Creating a data table (CREATE
First, the principle of efficient SQL statement
In where = relational operation
Avoid using functions in relational operations, unless you use a function to make an index
Try not to implicitly convert data types, data types must
1.2. Open http://maven.jahia.org/maven2/Step by step to findThe version I needhttps://devtools.jahia.com/nexus/content/groups/maven-jahia-org/com/oracle/ojdbc5/11.2.0.2.0/3. Download the above two files and remember to rename the jar file and remove
Reference material "Oracle in Layman's"Interest + diligence + Persistence + method ≈ SuccessFour rules of DBA survival1. The backup is heavier than everything else;2. Think twice;3.RM is dangerous;4. You have to make the specification;Chapter One:
First, the basic operationNothing to do, organize the Oracle database related operations, later standby .....PS:SATP for user satp_data as table space1 1. Delete Table Space2 DROPTablespace Satp_data including CONTENTS anddatafiles;3 4 2. Deleting
--Declaring a function--replace Replace put back--sal: Monthly SalaryCreate or Replace function Fn_get_avg_sal (DNO number)Return number is avgsal emp.sal%type; --Returns and numbers called Avgsal are the types of Sal fields in the EMP employee
The way to use bulk binding (bulk binding). When looping through SQL statements that execute a bound variable, a large number of context switches occur in PL/SQL and in the engines (switches). With bulk binding, data can be batched from the Plsql
Create Db_link, remote export/import. Expdp/impdpThe database is exported remotely, with limited Oracle database Local disk space, or application system needs. In Oracle, the EXP Remote guide is too slow, and the EXPDP is not able to pass directly
AbstractTesters use model-based testing to design abstract tests from models of the system ' s behavior. Testers instantiate the abstract tests into concrete tests with test input values and test oracles that check the results. Given the same test
The child node is traced to the root node.SELECT * from persons.dept start with deptid=76 connect by prior Paredeptid=deptidTraverse the child nodes (without the root node) through the root node.SELECT * from persons.dept start with Paredeptid=0
It is best not to do other unrelated actions after deleting data① determining when to delete data② This statement to find the deleted data: SELECT * from table name as of timestamp to_timestamp (' delete point ', ' yyyy-mm-dd hh24:mi:ss ')③ deleted
Nomount StageOracle starts the Nomount process he loads the parameter file (Spfiledid.ora Spfile.ora Initsid.ora and then allocates memory based on the parameter to open the alert file to write the log)>startup Nomount>show parameter SPFile
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.