1. Download the corresponding version of the instant Client from the Oracle Web site and extract it to e:/instantclient_11_2
2. Copy the Network/admin directory on the installed Oracle machine to E:/instantclient_11_2
Tns_admin=e:/instantclient_11_
CREATE OR REPLACE FUNCTION fun_account_change (headobject in Ebsheadobject, &NBS P inaccountno in Pub_account_info. Accountno%type, INACC Ounttype in Pub_account_info. Accounttype%type,
Recently, the work needs to see the binary format of some fields, simply write some of the transformation of the function to facilitate the invocation.
Record the code for use.
Create or replace package Pkg_digit_conv as-converts a string to its
# Legal Oracle Identification symbol
1, cannot be reserved keyword
2, must use 1 to 30 characters. The name of the database is up to 8 characters.
3, must start with the letter character in the database character set
4. Can only contain
If you use the Oracle default creation method when you create a foreign key constraint, it cannot be deleted when the referenced data is deleted, which gives us more flexibility in oracle9i, but we use on DELETE cascade and on delete set Null
We know that in previous versions of Oracle 10g R2, temporary files for temporary tablespaces are not automatically restored if you use Rman to recover the database.
This has caused a series of problems, many DBAs forget to add temporary files
Oracle Data Guard from the macroscopic point of view, mainly provides the following two services:
1) Log transmission: The main library transmits the generated redo log to the standby library;
2 log application: The redo log, which is transferred
A medium-sized or large company is often comprised of geographically dispersed departments that typically require data sharing. For these shared data, it can be stored on a site that requires users to access from the site. The advantage of this
A Database is composed of one or more logical storage units called tablespace (tablespace). The logical storage units in the Tablespace are segments (segment), and segments can continue to be partitioned into data extensions (extent). The data
In Oracle 10.2.0.4 database, there is a slow SQL execution, more than a few minutes without results, waiting for the event is idle Sql*net message events, and finally forced to break.
This SQL is an ordinary UPDATE statement that has multiple
AWR's data consists of two main components:
1 The system load and performance statistics stored in memory, mainly through the v$ view query;
2 The Mmon process periodically saves in-memory awr data to the Sysaux tablespace in a snapshot (snapshot)
By comparing the partitioned table and the normal table, we simply tested the performance and maintained the index when the partitioned table existed, and finally we had to say
The use of partitioned tables may not always improve performance,
1. Choose the appropriate Oracle Optimizer
There are 3 Oracle optimizer types:
A. Rule (rule-based) B. Cost (based on costs) c. CHOOSE (optional).
Set the default optimizer to pass various declarations of optimizer_mode parameters in the Init.ora
In the installation directory, such as: E:\Oracle\Ora81\network\ADMIN under the use of WordPad or Notepad to open the Tnsname.ora file, the contents of the file may be as follows:
TEST. softone.com =
(DESCRIPTION =
(Address_list =
(address =
Partition change tracking: no MV Log Required
To understand this enhancement, you must first understand the concept of zoning trimming in the materialized view (MV) refresh process.
Suppose the table ACCOUNTS is partitioned based on column acc_mgr_
Related commands
The main use of the article three commands, here to introduce a separate:
Export: Back up the data in the database into a binary system file, it has three modes: User mode, table mode, entire database schema. can also be divided
The Rman List command is a way to query the historical information of a backup in a database control file or recovery directory. The list provides a set of information, including all the information from the list of database counterparts to the
A Configure the database to run in Archivelog mode
Prior to Oracle 10g, the arch process needed to be launched after the database was placed in Archivelog mode. You can also start the arch process by setting the parameter Log_archive_start to True.
Execute analyze table TT1 validate structure; error occurred while parsing the block corrupt on the table ORA-01498 has been bothering for some time, and has made a little summary of it today.
Rman> BACKUP datafile 4;
Starting backup at 2011-07-24
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