1.6 Oracle Installation Prerequisites
The following actions are logged on to the RacNode1 node with root. If you do not use DNS, you must configure the/etc/hosts file as follows
Note: Even if the scan address is defined in the/etc/hosts file,
Dual is a virtual table that forms the grammar rules for Select, and Oracle guarantees that there will always be a single record in dual. We can use it to do a lot of things as follows:
1, view the current user, you can execute the following
Requirements: This machine do database backup, to the other machines under the local area network for database connection access.Method:1. Configure ip+ Port
Oracle version 10.1.0
A simple SQL, executed in the Pl/sql, the table has more than 20 W records:
SELECT * from table (1s)
SELECT * FROM table ORDER BY date_report Desc (18s)
Plus ORDER BY date_report Desc After the cost of 18 seconds, such
1. Index: an index is a database structure that helps users quickly find records in a table. A) Automatically create an index: When you define a primary key or uniqueness constraint for a table, a unique index is created.b) Manually create indexes:
Sql> Select COUNT (*) from V$session #当前的连接数Sql> Select Count (*) from v$session where status= ' ACTIVE ' #并发连接数Sql> Select value from v$parameter where name = ' processes '--the maximum number of connections allowed for the databaseSql> Select
Linux: Method 1Log in to Linux with root SSH and open the terminal to enter the following command:CD $ORACLE _home #进入到oracle的安装目录Dbstart #重启服务器Lsnrctl Start #重启监听器CD $ORACLE _home #进入到oracle的安装目录Dbstart #重启服务器Lsnrctl Start #重启监听器Linux: Method 2(1)
Turn1. Turn off all Oracle services. Can be turned off in the Windows Service Manager;2. Open registry: Regedit Open Path: regedit> hkey_local_machine\system\currentcontrolset\services\ Remove all service names starting with Oracle under this path,
IP Planning and setting node name IP Configuration Table
Node name
P Ublicip
Vip
P rivate IP
Scanip
18cdbrac1
128.0.5.101
128.0.5.103
10.10.10.1
128.0.5.105
10.10.10.
first, the total data deduplication methodThe idea is to first create a temporary table, and then insert the table data after distinct into the temporary table, then empty the original table data, and then the temporary table data inserted into the
1.emp and Dept TablesThe data in the 2.emp table is empno 8888, there is no department number, the EMP table is the main table, the left Association query Department information SQL statement is as follows:SELECT * from emp e,dept d where E.deptno =
I. Functions
1. lpad/rpad in Oracle/PLSQL, the lpad function pads the left-side of a string with a specific set of characters. the syntax for the lpad function is: lpad (string1, padded_length, [pad_string]) string1 is the string to pad characters
[/Color] [color = Green] Table A records as follows:Aid anum1 A112 A223 A334 A445 A55
Table B records the following:Bid bname1 B112 B223 B334 b448 b88
The SQL statements for creating these two tables are as follows:Create TableAid int (1)
A few days ago, a customer was given an Oracle Upgrade from the original Oracle9i to Oracle10g.
After the upgrade, an exception is reported on the page for generating a tree navigation chart, which cannot be opened.
This problem was originally
In oralce, I found the add_months function. You can use the following method to add the number of days n. Select sysdate + N from dual
In oralce, I found the add_months function. You can use the following method to add the number of days n. Select
1. Backup of data files, control files, and log files1. The operating system is reinstalled on the server and Oracle. If the structure of the reinstalled Oracle database is the same as that of the damaged database, the restoration is relatively
1. b-trees, short for balanced trees, are the most common type of database index. as the name suggests, B-tree is a structure of the Balance Tree. [Note that B indicates the balanced balance, rather than the binary.] B-tree indexes are also the most
SQL> select dbms_metadata.get_ddl ('Procedure ', 'pro2', 'Scott') text from dual; text -------------------------------------- Create or replace procedure "Scott ". "P RO2" is begin dbms_output.put_line ('wangpeng up'); end; SQL> select
For external connections, "(+)" can be used in Oracle, and "left/right/full outer join" can be used in 9i. The following describes the external connections with instances.
1. left Outer Join: left Outer Join
Select E. last_name, E. department_id, D.
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