Oracle undo management tipsOracle tips by Burleson ConsultingMay 4, 2010
Question:What are some tips for managing Oracle undo?
Answer:Here are my notes onGeneral undo Management
AndUndo Management in RAC
,
Here are other undo
[Sqlserver ]:
Sqlserver considers null to be the smallest.
Sort in ascending order: The null value is ranked first by default.
Order by case when col is null then 1 else 0 end, Col
Sort in descending order: The null value is ranked last by
Create or replace procedure ABCDE (MGR in number)AsType t_pubapplyrow is record (V_empno number (4 ),V_ename varchar2 (10));V_mgr EMP. Mgr % type;Type cur_test is ref cursor;Emp_cur cur_test;V_var t_pubapplyrow;BeginV_mgr: = Mgr;Open emp_cur for
Basically, the syntax used is as follows:
A. Obtain the syntax for creating a single table and an index
Set heading off;
Set echo off;
Set pages 999;
Set long 90000;
Spool Dept. SQL
Select dbms_metadata.get_ddl ('table', 'dept', 'Scott ') from
1.Get help
imp help=y
2.Import a complete database
imp system/manager file=bible_db log=dible_db full=y ignore=y
3.Import all tables, indexes, and other objects of a specified user.
imp system/manager file=seapark log=seapark fromuser=seapark
Document directory
2. Usage of case when in different positions in the statement
1. The case when expression has two forms:
-- Simple case function case sex when '1' then' male 'when' 2' then' female 'else' other 'ends -- case search function
OracleHow to display all current user tables
Show all tables of a user (for example, Scott, uppercase is required)
Select table_name from all_tables where owner = 'Scott ';
Show all current user tables
Select * From user_tables
Display All Tables of
Install Ubuntu 10.10on Windows 7. download and run wubi.exe to install the software on any disk.
Install oracle in Ubuntu... Hard work! But it's okay! I found a lot of information and made a lot of detours. The summary is as follows:
First,
Note: 1) Simple Example 2) Non-pure codefirst, more is the combination of dbfirst + codefirst. 3) you only need to use the latest version of odac in Oracle, and no third-party drivers are required. Web applications require web. config configuration.
In archive mode, Oracle copies a full log file to a specified place. This process is called archiving, and the copied log file is called archiving logs.
1. Set the database to archive
Query database log mode through archive log list
SQL> archive log
A control file is a binary file that is automatically created when a database is created. It is used to record the database name, creation time, tablespace name, data file, and log file location. The control file is very important to the database.
I. control file backup
When the database structure changes, immediately back up the control file. Once the control file fails, you can use backup to restore it.
There are two backup control file methods:
1. Copy directly
Example:
SQL> alter Database
It is very complex to create an Oracle database. Generally, you can use the dbca tool to create an Oracle database. However, in some cases, for example, to run an automated script, you must run the script to create an Oracle database. The following
Alter any cluster: modify the permissions of any clusterAlter any indexAlter any role Modify permissions of any roleAlter any sequenceAlter any SnapshotAlter any tableAlter any trigger
Alter cluster Modify permissions on clustersAlter Database:
This article only discusses the most common index in Oracle, namely the B-tree index. The database version involved in this article is Oracle8i.
1. view User indexes in the system table
In Oracle, the system table is automatically created when
Hints is a mechanism provided by Oracle to manually specify the execution plan of SQL statements for hint writing. It is used to tell the optimizer to generate an execution plan in the way we tell it. We can use hints to achieve: 1) Type of
From Oracle 9i, You can monitor the usage of Oracle indexes by using the following methods:
Alter index . monitoring usage;
After enabling monitoring for an index, you can check whether the index is used:
To disable INDEX usage monitoring, use the
Problem description:
Use PL/SQL developer 9.0.6 on Windows 7 (32-bit) to remotely connect to the Oracle 10.2.0 database in Linux (64-bit. The Oracle client used on Windows is a instantclient-basic-win32-10.2.0.3-20061115 and
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