The content of this lecture includes:Use optimizer statisticsManage automatic workload ArchivesAutomatic database performance diagnosis and monitoring (ADDM)TermsAutomatic Workload Repository (AWR): Infrastructure for data gathering, analysis, and
Oracle job introductionMain scenariosPerform related operations on the background at regular intervals. For example, save the data of one table to another at every night, and 2. Back up the database at regular intervals.
It is difficult to start
Oracle 11g R1 is installed on 32-bit XP. When the Database Configuration Assistant is last executed, an error "ORA-28547: failed to connect to the server, possibly Oracle Net management error" is reported. Google's method was fruitless, and the
When remotely connecting to the database, the following error message is reported:
ORA-01031: insufficient privileges
An error occurred while trying to grant sysdba to sys.
SQL> grant sysdba to sys;
Grant sysdba to sys
*
ERROR at line 1:
ORA-0
Use expdp/impdp for oracle Import and ExportMy colleague in version 11gR2 11.2.0.1.0 is 11gr1. You need to specify the version 11.1.0.6.0. I installed oracle 11gR2. My colleague installed 11gR1 and used expdp to export impdp import. The system
Generally, for a database with a single function, you can set an optimizer mode at the instance level,For example, for OLAP systems, most of the time the database runs a report job, the execution is basically an aggregate SQL operation,For example,
SQL> Select count (*) from v $ session where status = 'active ';COUNT (*)----------20SQL> Select count (*) from v $ session;COUNT (*)----------187SQL> show parameter processes;NAME TYPE
After a large amount of data is deleted from an Oracle table, even if there are only a few rows of records in the table, the query using select count (*) from table will not immediately come out because the table has a large space, query is slow.
Fault description: lsnrctl does not respond after stat, while SQLPLUS is normal:[Oracle @ wlserver3 ~] $ Lsnrctl statLSNRCTL for Linux: Version 10.2.0.1.0-Production on 13-SEP-2011 23:16:11Copyright (c) 1991,200 5, Oracle. All rights
Both SQL server and mysql can set the primary key auto-increment, while the oracle primary key does not have the auto-increment attribute, which can be achieved through the following two methods:1. Create a sequence through a triggerCreate
The project involves big data parsing and import. Before importing a piece of data each time, you need to go to the database to determine whether the data exists. This data is used for update and insertion., The execution efficiency is not generally
1 dbms_random.random [common method (random acquisition of a piece of data)]Java codeSelect * from (select t. * from T t order by dbms_random.random) where rownum
2 internal function sys_guid ()Java codeSelect * from (select t. * from T t order by
SQL statement in Oracle time format
-- 12-hour system current time (AM) SQL> select to_char (sysdate, 'yyyy-MM-DD HH12: MI: SS am') from dual; -- 24-hour system current time (PM) SQL> select to_char (sysdate, 'yyyy-MM-DD HH24: MI: SS pm') from dual;
Oracle programming using Java Source
Step 1: create java source [java] create or replace and compile java source named Hello as public class Hello {public static void run () {System. out. println ("hello world !! ") ;}} Step 2: edit the stored
Oracle value functions
1. absolute value: abs () select abs (-2) value from dual; 2. take the entire function (large): ceil () select ceil (-2.001) value from dual; (-2) 3. take the entire function (small): floor () select floor (-2.001) value from
Oracle tablespace expansion steps
-- 0, with oracle user login database corresponding IP--1, with sysdba login database sqlplus/as sysdba -- 2, query the tablespace data file list select file_name from dba_data_files where tablespace_name =
ORACLE: plsql optimization 1. After logon, My Objects is automatically selected by default? Setting Method: Tools menu -- Brower Filters will open the order window of Brower Filters and set "My Objects" to default .? Similarly, you can move the
A Brief Introduction to Oracle Bad Block Processing Methods Oracle bad block processing involves two steps: 1. Check Bad blocks 2, fix the Bad blocks. You can use the DBV tool or the validate parameter in rman to detect the Bad blocks;
1) DBV tool:
Perform the following operations on the oracle analysis table: 1) Verify the storage status of the table 2) view the statistical information of the table 3) Search for the link record and migration record in the table 1) verify the storage status of
ORA-00845 Oracle cannot modify MEMORY_TARGET 1. Memory reduction causes Oracle to fail to start
Last login: Sun Nov 4 15:09:06 2012 from 192.168.5.222 [oracle @ h1 ~] $ Sqlplus "/as SYSDBA" SQL * Plus: Release 11.2.0.1.0 Production on Sun Nov 4 15:26
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