Oracle processes can be divided into three types. User Process, Server Process, and Background Process.
User Process runs on the client and is not on the database server. Of course, if you run the client on the server, it runs on the server. For
Functions in Oracle are similar to functions in C. They are also composed of function names, parameter tables, and return value types. A single-row function has a result for each record. A single-row function can appear after select or in the where
1. Get 00:00:00 of the current day
Select TRUNC (SYSDATE) FROM dual;
2. Get 23: 59: 59 seconds on the current day (add one day and then minus one second on the basis of 00:00:00 on the current day)
Select trunc (SYSDATE) + 1-1/86400 FROM dual;
3.
There is a MySQL database with more than 1.1 billion records because of its working relationship. I thought that the query performance of the MyISAM engine would exceed InnoDB. I tried it these two days, but because the data volume is too large, the
There are two methods to create a database in Oracle.
The first is to use Oracle database builder and DBCA, which is a graphical interface and easy to understand because of its friendly and beautiful interface and complete prompts. In Windows, this
What to do before the transaction is committed
Before submitting a transaction, Oracle must do the following:
① Remember what the data looks like before it is modified
② Remember what data will be changed soon
③ Remember the association between
1. Create a crontab for an Oracle userSu-root
Crontab-u oracle-l*/5 */home/oracle/oracle_backup.sh(This shell file is executed every five minutes. This is a convenient test. You can modify the time for the test .)
2. Create a shell
Today, the VM memory is reduced a little, and the following error occurs when the data is started:
SQL> startup
ORA-00845: MEMORY_TARGET not supported on this system
I guess it should be the problem of system memory conflicts with sga. Then I
When the database instance is too large, the Oracle_SID displayed every time the export is not frequently used. It would be nice to make the default customization.
Now I will explain how to define it in the Linux environment:
1. su-oracle
2.
Because of historical and Encoding Problems (garbled characters ). Garbled characters are found in the generated database SQL file, which isolates some single quotes, leading to syntax errors. Client software such as SQLYog cannot be restored. You
The database is Oracle 9i
1. Export a csv file
This is very simple. You can use the pl/SQL tool. First, select the table to be exported, right-click Query data, and in the window that appears on the left, select Export Query Restls and select the
If you are familiar with Oracle databases, I think you will not be familiar with Thomas Kyte. The asktom.oracle.com website hosted by Tomas has been well-known in the Oracle field for decades and is far from Lucky. Recently, in the library, I
Join query category in SQL2
(1) Cartesian product | cross join: unconditional join. The result is the product of the number of two link element groups.
[From] cross join
(2) Natural join: equivalent join based on all public attributes. The result
[1] Remove the statements in the script including commit, "setserverout off", "set serverout on", "set escape on", and "exec ".
[2] Remove "/"
[3] it is best to use "separator" + "line feed" for statement separators, for example:
ALTER
When viewing the SQL Execution Plan, we will find that there are many table connection methods. This article introduces the table connection methods to better understand the execution plan and understand the SQL Execution principles.
I. Connection
1Syntax
1.1Row-Level Definition
1.2Table-Level Definition
2NOT NULL
Row-level definition only.
SQL> create table tn0 (a number (4) not null, B varchar2 (20 ));
SQL> create table tn1 (a number (4) constraint nn_tn1_a not null, B varchar2 (
Today, the developer asked me how to see which tables a table references or which tables are referenced by a table. It is best to display the tables in the form of charts (ergraphs, I started to want to open it through TOAD or other tools, but
Hidden parameters are used internally by 0racle and start.You can view all hidden parameters in the following two ways:
SELECTI. ksppinmName,
I. ksppdesc description,
CV. ksppstvl VALUE,
CV. ksppstdf isdefault,
DECODE (BITAND (CV. ksppstvf, 7 )
This is an example of Tom's in-depth database architecture.
Back up a table to an external file
Create table gftuserOrganization external(Type Oracle_datapumpDefault directory tmpLocation ('test0801. dmp '))AsSelect * from all_objects
From
ORA-12154 TNS cannot parse the specified connection identifier. This error is reported today when the database suddenly connects, plsql connection fails, application connection fails, but SQL can be connected. I searched for it online for half a day
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