The Oracle tutorial you are looking at is the maintenance of an Oracle database index.
This article only discusses the most common indexes in Oracle, that is, the B-tree index. The database version covered in this article is oracle8i.I. View the
If you currently have a cold backup, but you are missing one of the data files, but you currently have all the archives, if you want to restore the data files, you can refer to the following examples:
Copy Code code as follows:
Write a loop to delete the process.
Create or Replace procedure Delbigtab (P_tablename in Varchar2,p_condition into Varchar2,p_count in varchar2)
As
pragma autonomous_transaction;
N_delete number:=0;
Begin
While 1=1 loop
EXECUTE IMMEDIATE
' Delete
The project began to get the DMP file, the database is 10g, but did not guide the success, then want to possibly export the time with 11, decided to try.
Just the machine is 11 of the client, the results do not recognize imp command, to the
1. NESTED LOOP
Nested loop joins are a good choice for smaller subsets of connected data. Nested loop is to scan a table, each read a record, based on the index to another table to find, no index is generally not nested loops. Generally in the
If you delete a data file in a tablespace before you oracle10g it, the file will still exist in the database data dictionary, and the file information will not be erased unless you delete the tablespace.
But starting with ORACLE10GR2, Oracle allows
First, IntroductionUltra-large systems are characterized by:
1, the number of users are generally more than million, and some more than tens of millions of data, the database generally more than 1TB;
2, the system must provide real-time response
As a result of the new features of oracle11g, it is common to encounter situations where the "password expires after ora-28002:7 days" is often encountered when landing an Oracle database using Sqlplus. The default password expiration limit is 180
When Oracle database user's password contains special character Furu @, use normal password input directly, because Oracle resolves the character after @ to the network service name and causes the login to fail
The following demo user name is: Wang
Oracle's optimizer has two optimizations, namely, rule-based optimization (rule-based optimization, short rbo) and cost based optimization (cost-based optimization, referred to as CBO), In Oracle8 and later versions, the Oracle Strong column
Sql> Show All--View all 68 system variable values
Sql> Show user--Displays current connected users
Sql> Show Error--Display errors
Sql> set heading off--Suppresses the output column header, the default value is on
Sql> set Feedback off--suppresses
Buffer: Download data buffer, in bytes, default dependent on operating system
Consistent: The data involved during the download remains read only, and the default is n
Direct: Using Passthrough method, the default is n
Feeback: Displays the number
1.intersect to take the intersection of multiple query results;
2. Query the SQL statements recorded in the table of two basic time periods;
SELECT * from Shengjibiao t where t.createtime between to_date (' 2009-7-26 ', ' yyyy-mm-dd ') and to_date ('
Usage:sh oracled [Start|stop|restart] SIDs where SIDs is the database name and multiple names are separated by commas. The default action is restart, or you can specify the action you want to take (start | Stop | Restart)
Copy Code code as
PHP Program Access to the database, you can use stored procedures, some people think that the use of stored procedures to facilitate maintenanceHowever, in this case, I think that using stored procedures means that DBAs and developers have to work
1, if there is a Plsql client, you can use the user login, select all the table right key drop can be.2, if you have the right to delete users, you can:
Drop user user_name cascade;
Cascade can be added to the users of all the data deleted.
A lot of times we have the situation where a piece of data already exists in the table, update it, and if it doesn't, insert the new data. If you don't use the merge syntax provided by Oracle, you might want to go to a database select query to see
Copy Code code as follows:
Create or replace
Function Getinvitationno (prev varchar2, num1 varchar2, num2 varchar2, sessionsetting varchar2)
Return VARCHAR2
Authid Current_User is PRAGMA autonomous_transaction;--need to use the "Current_
Copy Code code as follows:
DECLARE
V_table Tabs.table_name%type;
V_sql VARCHAR2 (888);
V_Q number;
CURSOR C1 is
SELECT table_name TN from tabs;
TYPE c is REF CURSOR;
C2 C;
BEGIN
Dbms_output. Put_Line (' Table name of empty datasheet: ')
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