The database design paradigm is a very important concept, but this importance is only suitable for reference. With the database design paradigm, data tables can be better stored, because a reasonable design will certainly have performance problems
1.System Variable Functions
(1)Sysdate
This function returns the current date and time. The current date and time of the Oracle server are returned.
Select sysdate from dual; insert into purchase values ('smallwidget ', 'sh', sysdate, 10)
Oca SQL questionsEvaluate the following statements:
Create Table Digits (ID Number ( 2 ), Description Varchar2 ( 15 )); Insert Into Digits Values ( 1 ,' One ' ); Update Digits Set Description = ' Two ' Where ID = 1 ; Insert
Merging partitions
Use the alter table.. Merge partition statement to merge the content of the two partitions into the other partition. Both the source partitions and the associated local indexes will be dropped.Cannot be used for hash partition
Xuzhou needs to connect to a third-party database. The original database uses a Windows Cluster and is recently changed to the RAC mode, leading to frequent JDBC connection errors. Solution:
1. connection string Configuration:
JDBC: oracle: thin: @
From: http://blog.csdn.net/compard/archive/2007/09/17/1788244.aspx
I. Job running frequency settings
1. Run at a fixed time every day, such as am: trunc (sysdate + 1) + (8*60 + 10)/24*60
2. Provided in Toad:
Daily: trunc (sysdate + 1)
The problem is,
Oracle had to be installed some days ago due to learning needs,
However, the downloaded Oracle 9i R1 cannot be installed in my win7 environment,
Since I cannot bear win7 (I don't want to switch back to XP), I installed Oracle 10
1,OracleConcurrency control is based on multiple versions.
2,OracleEnsure read consistency and never dirty read(That is, read the uncommitted data of other transactions.).OracleThe query result set must be the current result set at a certain time
How to configure to connect the client to the database:To enable a client machine to connect to the Oracle database, you must install the Oracle client software on the client machine. The only exception is that the JDBC thin mode can be used when
1. Automatic Backup
You can use the exp method (provided that you have the export permission) and write a script for the operating system. If you have a Windows system, you can write a BAT file and use exp to export it, then, add bat to the
If you encounter a requirement in the project, you need to merge multiple rows into one row.
The table structure is as follows:
Name null type
--------------------------------------
N_sec_code not null char (6)
C_researcher_code not null varchar2 (20
ArticleDirectory
Questions about Oracle Stored Procedure
1. Basic StructureCreate or replace procedure(Parameter 1 in number,Parameter 2 in number) IsVariable 1 integer: = 0;Variable 2 date;Begin
End stored procedure name
2.
Continue to look at the second case of the query, including the table connection:
SQL> Create Table T as select * From dba_users;
The table has been created.
SQL> Create Table T1 as select * From dba_source;
The table has been created.
SQL>
First, refer to the official documentation: http://docs.oracle.com/cd/B28359_01/install.111/b32002/install_overview.htm
If you are not a uln customer, and you are running Red Hat Enterprise Linux or Oracle Linux, then you can obtain the Oracle
The grouping function can accept a column and returns 0 or 1. If the column value is empty, grouping () returns 1; if the column value is not empty, returns 0. Grouping can only be used in queries using rollup or cube. Grouping () is useful when a
Recently, the disk space of the Oracle server in the development environment is full, so I began to delete things everywhere and finally delete the files. I started to think about ORACLE data files again, due to the lack of knowledge about Oracle,
Connect by is used in structured queries. Its basic syntax is:Select... from tablename start with condition 1Connect by condition 2Where Condition 3;
Example:
Select * from tableStart with org_id = 'hbh1_wgwpy'Connect by prior org_id =
This knowledge point is only applicable to Oracle 9i and later versions.
To view table data changes, use the SQL statement: Select * From user_tab_modifications;
The fields in the user_tab_modifications table are as follows:Modify, delete, and add
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