The Automatic Import and Export of Oracle databases are widely used in many places. for example, after an Oracle database application system is developed, if you want to install the system on your computer, you need to import the initial data to
We can encrypt one or n columns of a table.You can add the encrypt keyword after the data type of the column in the create table command, or add the encrypt keyword after the column name of an existing column.For example, to encrypt the name column
The table has two fields: ID and name:Data available:1.;2. B;3. C;4, C;5. BSelect distinct name from table; --> name A B CSelect distinct name, ID from table --> ID name 1 A 2 B 3 C 4 C 5 B (only those with the same ID and name will be
1. Open a terminal in the graphic interface of the Linux server and enter the following command;
Xhost +
2. Switch to an oracle user and run the following command:Su-Oracle
3. Specify the variables and values of the database instance. Assume that
Error: not a single-component group Function
Example: Select deptno, count (empno) from EMP;
Error: not a single-component group Function
Cause:
1,If the grouping function is used in the program, you can use the following two cases:
Program
We sometimes encounter errors when exporting data using expdp. In this way, some records are generated in dba_datapump_jobs. You can see the following command:
Select * From dba_datapump_jobs;
Now we can see the corresponding job_name. Follow
1. Modify core operating system parameters
Perform the following steps under the root user:
1) modify the user's shell restrictions and modify the/etc/security/limits. conf file
Enter the command VI/etc/security/limits. conf, press the I key to
When installing Oracle, if the password is not reset for the following oracle users, the default Oracle user name and password are as follows:
User name/Password
Logon identity
Description
Sys/change_on_install
Sysdba or
Declare-- Write a row for each variable definitionV_num number: = 60; -- InitializationV_sal EMP. Sal % type; -- indicates that the data type of v_sal is the same as that of Sal in the EMP table.V_empsal v_sal % type; -- indicates that the variables
Connect by is used in structured queries. Its basic syntax is:Select... from tablename start by cond1Connect by cond2Where cond3;Simply put, a tree structure is stored in a table. For example, a table has two fields:The ID and parentid indicate the
1. delete a tablespaceDrop tablespace tablespacename [including contents [and datafiles] 2. delete a userDrop user user_name Cascade3. Notes for deleting a table When deleting all data in a table, the truncate table name must be used. Because
Recently, hint is frequently used because of frequent statistical data requirements. I am sorry to bother DBAs every time, so after talking with DBAs, I sorted out the most common hint usage when writing Oracle SQL statements:
In addition, our
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