Busy time. Get Some records ...
The data table connections are:1, Inner Connection (natural connection): Only two table matching rows can appear in the result set2. External connection: including(1) Left OUTER join (the table on the left is
There is a table in the database, using Pl/sql to see the index of the table has not been dropped, but the data on the table is slow (query time is about 3 times times the original), and then rebuilt the index is good, I would like to ask why, in
C:\documents and settings\administrator>sqlplus /nolog sql> connect system/password as sysdba connected. sql> shutdown normal ora-01109: Database not open has uninstalled the database. The oracle routine has been closed.
Resources:Oracle stored procedures and parameters understand the non-parametric stored procedures:
Create or replace procedure SayHello
as
-description part
begin
Dbms_output.put_line (' Hello World ');
End
two ways to invoke a command
A brief introduction to Oracle 9i's 16 types of data
Oracle 9i provides a total of 16 scalar data types, as shown below.
the scalar data type name meaning of Oracle 9i
Char is used to describe fixed-length character data, length
VARCHAR2
to facilitate learning and testing, all examples are created under Oracle's own user Scott.
The SELECT statement in Oracle can use the start with ... connect by prior ... clause to implement recursive query, connect by is used in structured
1, the first need to confirm a few things, the original database username, password, table space name and user role.
2, export the data in the table. Use the Plsql Export table feature.
In fact, the use of oracle/product/10.1.0/db_1/bin/exp. Exe.
[ERR] ora-00001:unique constraint (...) violated
Violates a unique constraint, a field with a unique constraint, no duplicates, can be a space, and a space can only appear once. such as the primary key of the data
[ERR] ORA-00904: "XXX": Invalid
Problem Description: Use Oracle's multiple page query statement, data duplication between different pages, but the database data is correct, query all the time can also be displayed.
SQL instance: Select RowNum rn,ta.* from (select a.*,b.* to
First, the phenomenon of database deadlockProgram in the process of execution, click OK or save the button, the program is not responding, there is no error.Second, the principle of deadlockWhen you perform an update or delete operation on a column
rownum: According to the result set of SQL query to assign a logical number for each row, can change dynamically, according to the SQL of each query changes to renumber, each is starting from 1 automatic arranging;
Rowid: When the data is produced
1 View database locks, diagnose the source and type of locks
Select Object_id,session_id,locked_mode from V$locked_object;or use the following command:Select B.owner,b.object_name,l.session_id,l.locked_modeFrom V$locked_object L, dba_objects bwhere
ORACLE RAC principle in an application environment, all servers use and manage the same database in order to spread the workload of each server, requiring at least two more servers on the hardware, and a shared storage device. It also requires two
1, SET autotrace parameters
SET autotrace off----------------does not generate Autotrace reports, which is the default modeSET autotrace on EXPLAIN------Autotrace displays only the optimizer execution path reportSET autotrace on STATISTICS--only
1 Status Query
launch status
SQL Statement /p>
results
Nomount
Select Statu s from V$instance;
started
select Open_mode from v$database;
ERROR at line 1:
Oracle Predefined 21 System exception types
Access_into_nullNo object definedCase_not_foundIf the case does not contain the corresponding when, and if no ELSE is setCollection_is_nullCollection element not initializedCurser_already_openCursor
The project needs to create temporary tables to temporarily store a table of data that we know can be implemented with subqueries, and the syntax is simple:
Create global temporary table Temp1 as select * from Jjr_tjjr_cyzgxx
By querying the
Oracle creates table spaces, creates users, and authorizesAfter Oracle is installed, there is a default database in which we can create our own database, in addition to the default database.To avoid the hassle, you can create a database with the '
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