To configure the Oracle Management Server, follow these steps:
1. Use Enterprise Manager Configuration assistant to create an archive database
You can choose to create a database instance or create a database (create a tablespace) in an existing
1. delete/truncate: only delete data. The index structure is not deleted. Drop will delete the table structure and the index/constrain/trigger that depends on the table. The procedure/function will be retained, but will change to the invalid state;
Archive logs record database operation records, which are the basis for data recovery. If the archive mode is enabled for the database, a large number of archive logs will be generated. Of course, if there is an RMAN backup, logs that have been
I.InstallPreparations
1. InDatabaseLog on to Windows as administrator on the server2. Stop all Oracle-related services. These service names are usually headers of Oracle3. Stop the Distributed Transaction Coordinator Service4. Back up all files
1. First, use the top command to view the spid numbers with more resources
2. query the current time-consuming session ID, user name, sqlid, and so on:Select Sid, serial #, machine, username, program, SQL _hash_value, SQL _id,To_char (logon_time,
1. Use high-speed storage devices to improve read/write capabilities, such as EMC and netapp,
2. If no data exists in Table tab1Drop table tab1;Create Table tab1 as select * From tab2;Then, create an index
3. Use the hint prompt to reduce the
Install Oracle 11.2.0.3 on Oracle Linux 6.1. An error is reported when running runinstaller. The details are as follows:
[Root @ Dave MNT] # xhost +
Access Control Disabled, clients canconnect from any host
[Root @ Dave MNT] # Su-Oracle
[Oracle @
Flash back Query
(1). Flash back Query
For example:
1) after the employee Smith record is deleted, You can query the data of EMP at '2017-02-11 23:34:05 'if you want to query the values before the row record is deleted. The query method is as
Expected results: (I got a one-to-one relationship and compared it to another table) Select * From empoylee where (address1, address2) in (select address1, address2from empoyleeadresseswhere Country = 'Canada ') the preceding method cannot be used.
Oracle client query tools sometimes fail to display the result of investigation in Chinese text, either garbled or question mark. PLSQL has this problem, which is caused by version, the old database is the same as the latest one, and the new
How to use ORACLE analysis functions such as rank (), row_number (), and lag ()Row_number () over (partition by col1 order by col2)
Indicates grouping by col1 and sorting by col2 within the groupThis value indicates the sequential number after
The problem is: change the name of the employee in the employee information table to another one. For example, change Zhang to Wang and only change the name without changing the name:
Update table name set field name = 'King' | substr (field name, 2
Stored Procedure:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Create or replace procedure sp_test(Indthm in varchar,Outfzr out varchar,Outsjhm out varchar)Is
Begin/* Obtain the first record of
[Switch] solution to Chinese Character garbled characters on the Oracle 9i or above Client Connected to the Oracle 8i and 8i servers
When a client of Oracle 9i or later is connected to a server of Oracle 8i or later versions, all the Chinese data
First, you must have a table!Create Table example (ID number (4) not null primary key,Name varchar (25 ),Phone varchar (10 ),Address varchar (50)
);
Then, you need a custom SequenceCreate sequence emp_sequenceIncrement by 1 -- add severalStart with 1
A user process failure is an exception in the running process of the user process.
When a user process fails, the DBA does not need to intervene. The background process pmon (Process Monitor) can automatically detect the user process that is
Codedeclare PAG number; Len number; C varchar2 (10); charpp number: = 8132/2; begin for R in (select rowid RID, log_id, dbms_lob.getlength (content) Len from temp_data_collect_log) loop if R. len is not null then for page in 0 .. r. len/charpp loop
First, execute the following code to get the locked process:
select t1.sid, t1.serial#, t1.username, t1.logon_time from v$session t1 , v$locked_object t2where t1.sid = t2.session_id order by t1.logon_time;
Obtain the SID and serial # Serial
Editor loading... personal understanding about the tablespace, The tablespace is the logical structure of the database. A tablespace can belong to only one database. One database must have only one tablespace, and all database objects are stored in
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