1. Create a tablespace
Create tablespace data01 datafile 'd:/oracledb/data01.dbf' size 500 m
2. delete a tablespace
Drop tablespace data01 including contents and datafiles;
3. Modify the tablespace size
Alter database datafile
1. Automatically increasing data type Processing
MySQL has a data type that increases automatically. When you insert a record, you do not need to operate on this field. The data value is automatically obtained. Oracle does not have an
1. view all objects currently
SQL> select * From tab;
2. Create an empty table with the same structure as Table
SQL> Create Table B as select * from a where 1 = 2;
SQL> Create Table B (B1, B2, B3) as select A1, A2, A3 from a where 1 = 2;
3.
In Linux, you can use commands to perform some operations. record the following:
Oemapp dbastudio Open the Enterprise Manager GUI
Opemapp ConsoleOpen the Enterprise Manager graphical interface (same as the preceding command .)
Sqlplus/As
References: http://chengjunflying.iteye.com/blog/698505
In Oracle, if you want to perform the order by operation on varchar fields, you must first convert them to the numeric type, such as int type.CastKeyword.
Example
select procedure_no
I saw a lot of people do it.
CodeGenerator. Of course, I have also referred to many previous experiences here. The generated code format is defined by XSLT. Now this generator only generates the model. Specific extensions can be made in the project.
What is paradigm:
Set the rules to be followed by the database. It is defined by a brother surnamed Fan.
Three paradigm goals:
There is no redundant data, that is, no duplicate data is stored, that is, data standardization.
Standardization
ArticleDirectory
1.1sql server Syntax: Top keywords used in SQL Server
1.2 MySQL Syntax: MySQL uses the limit keyword
1.3 Oracle Syntax: Use the rownum keyword in Oracle
References: http://www.w3school.com.cn/ SQL/SQL _top.asp 1
Statement of Oracle loop: declarex number: = 5; begin -- X: = 0; loopx: = x + 1;/* If (x = 10) Then exit; end if; */exit when x = 10; dbms_output.put_line ('X = '| X); End loop; dbms_output.put_line ('outer'); end;/define declarex number: = 5;
In Oracle, how does one automatically add one field?
Software environment:
1. Windows NT4.0 + Oracle 8.0.4
2. Oracle installation path: C: \ orant
Implementation
Note: Some descriptions and examples belowCodeFrom csdn, we will not specify the source one by one. I would like to express my gratitude to the relevant authors here! If the author has any objection, please send a letter
1 syntax
Problem 1: to load the JDBC driverProgram: Normally, there are three ways to load the driver: 1) class. forname (string) is used to initialize the static content of the driver when loading a class specified by a string in classloader. In fact, the
Table space management has been significantly improved, thanks to a sparser system, user-defined support for a default table space, new sysaux, and even rename How many times have you had a headache when you created a segment Other than sys and
Download instantclient-basic-win32-11.2.0.1.0.zip from the oracle.com.
Decompress the package to drive C. The OCI directory is c: \ instantclient_11_2.
Start PL/SQL developer and click Cancel. Configure ORACLE_HOME and OCI library in connection
There are two methods:
One is to declare the system cursor, the other is to declare the custom cursor, and then follow the same operation, the parameter type is
In out or out
(1) Declare the personal system cursor. (recommended)
Create or replace
Because oracle10 occupies a large amount of system resources, it is a great waste of system resources if it is always started when it is not used at ordinary times. Therefore, we can use the "service" in "Administrative Tools" to change all oracle10
In a previous articleArticleIntroduced that the additional Association has a great impact on SQL, so in the SQL audit work, there are quite a lot of attention to table Association, if redundancy can optimize table association, we try to do some
Oracle logically stores data in tablespaces, but actually stores data in data files.Table space and data filesTable space: A table space belongs to only one database at a time. It is composed of one or more data files. Logical storage units can be
Select * From dba_users -- View All Users
Select * From user_all_tables -- query the current user tablespace
Select * From user_source -- Query all functions and stored procedures
Select * from V $ session -- view the current user connection
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