sql> clear screen;#创建库表Sql> START E:\SQL. SQL;18;Table has been created.Sql> select Table_name,tablespace_name from User_tables;TABLE_NAME Tablespace_name------------------------------ ------------------------------Tb_mtbasicinfo
1, to detect the rollback segment contention
Select sum (gets), sum (Waits), sum (Waits)/sum (gets) from V$rollstat;
The sum (Waits) value should be less than 1% of the sum (gets) valueThe contention of the rollback segment will degrade the
Starting with 10.2, ORACLE added a new access driver for the external table: Oracle_datapump. And again before, there is only one default driver Oracle_loader.One advantage of using the Oracle_datapump driver is that external tables can be used to
in the process of using Oracle, there are all sorts of problems, all sorts of bugs, and ORA-12899 is the problem I've been having when I imported data into my local machine. But fortunately has solved this problem, now share, the solution;
appears
Employees table:
Department Table:
Select E.last_name,e.department_id,d.department_name
From Employees E
LEFT OUTER JOIN Departments D
On (e.department_id = d.department_id);
Select E.last_name, D.department_name
From Employees e,
1. See what character set is inside Oracle data server
Select userenv (' language ') from dual;Or:Select name, value$ from props$;
2. Switch to a system user using an Oracle command or service to execute a command: Export
Solution: If this warning appears, the table space is not enough, you should add data files to the tablespace or increase the size of the data file that is already in the table space.
More detailed: Cannot create
28.2.4 Install Oracle 11g
Oracle 11g provides a graphical installation interface that allows users to complete the installation process by moving and clicking the mouse. The specific installation steps are shown below.(1) Extract the Oracle 11g
Sql> Select COUNT (*) from V$session #当前的连接数Sql> Select Count (*) from v$session where status= ' ACTIVE ' #并发连接数Sql> Select value from v$parameter where name = ' processes '--maximum number of connections allowed by databaseSql> Show parameter
The comment on command in Oracle is used to describe the table or field, and the syntax is as follows:
COMMENT on
{TABLE [schema.]
{table | view}
| COLUMN [schema.]
{table. | view. | materialized_view.} Column
| OPERATOR [schema.] OPERATOR
|
Normal row and column conversions
Suppose there is a student score table (TB) as follows:
Name Subject Result
John Language 74
John Math 83
John Physics 93
Dick Language 74
Dick Math 84
Dick Physics 94
*/
-- -----------------------------------------
/* CursorsPurpose: To process a SELECT statement to return multiple rows of data
Use steps:1. Define CursorsCURSOR cursor_name is select_statement2. Open cursorOPEN cursor_name3. Extract DataFetch cursor_name into variable1,...--Fetch one row of
First, cold backup
The process by which the database completes copies of all physical system files in the shutdown state, also known as offline backup
Suitable for non-archive mode, the database is in a consistent state
Second, the steps
First you
1. Date-time interval operation
Current time minus 7 minutes of time
Select Sysdate,sysdate-interval ' 7 ' MINUTE from dual
The current time minus 7 hours of time
Select Sysdate-interval ' 7 ' hour from dual
The current time minus 7 days
Select
T_medflow table has 10 million data flowid is primary key has primary key index
Total number of statistics
Select COUNT (flowid) from T_medflow t
Spents: 1.5 seconds
Select COUNT (*) from T_medflow t
Spents: 1.46 seconds
Multiple test efficiency is
Guide:
First, the introduction:
A rollback segment is a part of a database that records information about changes to the database. Use this information to implement the read consistency of the database and its recovery. If the rollback segment
1 Check Database connection information
2 Check the query's table name
3 View the permissions of the table and whether the currently logged on user has query permissions for the table.
4 ORACLE queries automatically convert uppercase so the
Export command:
Exp /@[] owner= file=
Explain: Data export to use the EXP command, directly run cmd, enter the actual data can be. If the database is not a local database, use the Oracle Net Configuration Assistant to configure the local net
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