For Oracle database operations, the command line method is used, and all commands are completed using sqlplus. For SQL Plus, there are two forms.
One is DOS-style sqlplus: sqlplus.exe;
The other is Windows-style sqlplus: sqlplusw.exe;
SQL statements are divided into three types: DML, DDL, and DCL. the DML and DDL operations have been completed before, and the DCl operations are poor now. DCL mainly indicates the control statements of the database, the operation permission is
Database Backup is one of the most important tasks in the whole project operation.
I. Data Export and Import
Data export and import are for a user's backup operations, which can be completed as follows:
1. Data Export
Create a folder
I. Hardware requirements
1. Memory & swap
Minimum: 1 GB of RAMRecommended: 2 GB of Ram or more
Check memory # Grep memtotal/proc/meminfo # grep swaptotal/proc/meminfo
2. Hard Disk
Since centos is installed almost 4 ~ 5 GB, plus Oracle
Oracle9i introduces a new SQL statement, which can be used to connect two tables in one statement.Before using update to update records in both tables, or using insert to add records that do not exist in the two merged tables, you must write two SQL
1. How Does Oracle store text?
Differences between char and varchar2
• Char fixed-length string, varchar2 variable-length string.
• Char (n) fixed-length string, n Bytes, N value range:1 ~ 2000 bytes.
• Varchar2 (n) variable-length string.
1.Database index
You can apply the index concept to a database table. When a table contains a large number of records, it takes a long time for Oracle to look up the close-up records in the table-just as it takes a long time to look up the book
1. data transmission between tables
1) ExploitationInsertTransmit data
Insert into test1 (select name2, age2 from Test2 );
From the operation above, we can see thatSelectAdd a batch to a tableAdd data, but note that the data type should be
Oracle's online redefinition Table Function
In a high-availability system, changing the definition of a table is a tough issue, especially for a 7 × 24 system. The basic syntax provided by Oracle can basically meet general modification
Recently, I have done some database conversion work, mainly from SQL Server to Oracle. I encountered many problems during the process. Now I will make a small summary to help my friends who have the same requirements.
Database elements, such as
To avoid SQL-injection, all the update, insert, delete, and select statements are written in the form of parameters.
Update tablename set filedname =: fd1 where id =: ID
ID: The Oracle type is dbtype corresponding to varchar2.String
The
If the encoding of the Oracle server and client is inconsistent, Asp.net may display garbled characters when reading the database records. View Oracle server code: Select * From SYS. nls_database_parameters; view client code: Select * From SYS.
There is a seemingly Nb built-in function wm_concat in Oracle, which can easily implement the "Row-to-column" function (you can search for related usage and find a lot of information)
Today I accidentally found a problem:
In different Oracle
Oracle is successfully installed on Redhat 5 in the morning. The archive mode is not enabled during database creation.
SQL> SelectName, open_mode, log_modeFromV $Database; Name open_mode
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
1. User Management
(1) create a user (Database verification)Create user Smith identified by smith_pwd default tablespace users temporary tablespace temp quota 5 m on users;
(2) modify a user
Alter user Smith quota 0 on system;
(3) Delete a
I. View
Among all the SQL syntaxes I have learned before, query operations are the most troublesome.ProgramIf developers waste a lot of effort on writing queries, it will certainly affectCodeTherefore, a good Database Designer not only designs
Sid is used to distinguish different instances of the same database on the same computer.
The oarcle database server consists of a physical database and a database management system.
The database management system is an intermediate layer between
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