Original: http://www.cnblogs.com/lambertwe/p/6116402.htmlToday in the project query process related information, found in the date of the word Gencun information is very strange, is a string of values, later found to be a long type or integer type
Export from source database:exp user1/pwd@server1file=c:\temp\exp.dmp tables=(table1, table2)Import to target database:imp user2/pwd@server2file=c:\temp\exp.dmp tables=(table1, table2)Oracle has the advantage of being able to export remote data
Read consistency: Oracle guarantees read consistency through multiple versions and flashback mechanisms. Ensure that queries are consistent from one point in time. In Oracle, the version of the system modification is controlled primarily by the SCN
AuditTurn on switch parameters:Sql> Show Parameter Audit_trailSet audit options:Each time a new audit option is set, the test user needs to reconnectSYS preparation:sql> drop user User01 cascade;Sql> create user User01 identified by password;Sql>
Error deleting database table resolution methodSql> ALTER TABLE test1 enable row movement;//The line move function must be started before flash back otherwise an error is reported: ORA-08189: Cannot flash back to table because the line move feature
Pro-Test availableIn Oracle database operations, we sometimes use lock table queries and operations such as unlocking and kill processes, so how are these operations implemented? In this paper, we mainly introduce this part of the content.(1) The
B-tree and the B+treeat present, most database systems and file systems are used B-tree or its variants B+tree as the index structure. first, for a single node, it is a Key Value structure, Key is the column that makes the citation, value There are
1. View the respective roles owned by all users in the database:SELECT * FROM (SELECT DISTINCT Connect_by_root grantee username,granted_roleFrom Dba_role_privsConnect by prior Granted_role =grantee) awhere exists (select 1 from dba_users b where
Database managementThere are 4 ways to close the database:1.shutdown Modes shutdown mode2.shutdown Normal shutdown3.shutdown immediate immediately close ★ Common commands4.shutdown abort directly shuts down the databaseStartup: RestartDbstart:
Oracle The version is very many, first look at a version of the 11g description:Attention: after the Oracle 9.2 version number, Oracle's maintenance release numbers are changed at the second digit bit. And before that is in the third digit digit.1.
After Oracle is installed, the default archive mode is turned on, and a large number of logs fill the disk instantaneously, so in the development environment, it is often necessary to turn off archive mode.1. Connect to the database as an
1. Character classesLpad(STR1,LENGTH,STR2)The Lpad function fills the string with the specified character from the left. From its literal meaning can also be understood, L is the left shorthand, pad is the meaning of padding, so the lpad is the
Oracle:Begin${sql}EndNote: There must be a begin end;Ora-00933:sql command did not end correctly; Bad SQL Grammar []; Nested exception is Java.sql.sqlsyntaxerrorexception:ora-00933:sql command did not end correctlyMysql:${sql}Can not add when
I. Software PreparationAddress: Oracle websiteinstallation package: Because of personal learning, it is possible to install the server side. No client required.A total of two compressed files, extracted together into a directory. I use:
Three functions(1.) Single-line function, one-to-a-row record corresponds to a result(2) Multi-line function, many-to-one, multi-line records corresponding to a result1. Character functionsAs for lower and upper when to use, such as do not know the
Select Sal,sal as Saly from EMP;--to find the average of a columnSELECT * from EMP;--Select Sal as NB from EMP;--Sort By default ascending ASC Nearest principleSELECT * from emp order by Empno,sal;--Descending descSELECT * from emp order BY Sal Desc;
http://blog.csdn.net/doudou_demo/article/details/476667511, open Plsql, fill in the User name and password (the initial two user sys and system, the password is set by the Oracle database installation), database select ORCL (default database, Oracle
Relevant concepts understand:Table: A basic collection of data stores, consisting of columns and rowsViews: Extracting logically related data collections from a tableSequence: Provides a regular number of valuesIndex: Make index query more
In the recent inspection of a unit system, found that the database has a number of instances, directly to one of the instances of the query, the display is missingDefeat. After discovering that it needs to be specified, modify the environment
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