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
-- Add_months (d, n): returns the date and time corresponding to n months after or before the specified date and time. N is a positive integer, and n is a negative integer.Select add_months (sysdate,-5) from dual; output: 2010-08-26 13:24:28 --
As the saying goes, to do a good job, you must first sharpen it. A good tool is also required for database performance analysis. Statspack is a powerful and free performance analysis tool provided by oracle.To install statspack, you must have sysdba
Start Oracle's help system-no longer afraid of forgetting commands. When you perform database management, you can't remember commands and syntaxes, especially for demonstration or on-site implementation, there is no way to check the manual. It is
Oracle function return table Type 1. Use a custom type to implement 1. Create a table object type. To return a table object in Oracle, you must define a table type as follows: SQL code create or replace type type_table is table of number, when using
Traverse the joined array index by varchar2
-- The string sequence should be declare type t is table of number (3) index by varchar2 (3); hash_t t; l_row varchar2 (3); begin hash_t ('A '): = 10; hash_t ('B'): = 20; l_row: = hash_t.first; while
Use DBMS_REPAIR to fix Bad blocks. 1. Procedure_Name Description ----------------- revoke ADMIN_TABLES Provides administrative functions (create, drop, purge) for repair or orphan key tables contained in the DBMS_REPAIR package. note: These tables
Oracle completely restores SYS @ orcl # shutdown abort from the backup control file; the ORACLE routine has been disabled. SYS @ orcl # oracle @ oracle :~ /Product/10.2/db_1/dbs> rman target/recovery Manager: Release 11.1.0.6.0-Production on
How to query data in oracle and modify the status at the same time
In this case, you need to be able to query a batch of records and modify the Update Status of these records at the same time, so that the data being updated will not be obtained by
Query traversal: data must be stored in the base table in a hierarchical manner. For example, an organizational unit is such a typical example:
Implementation statement:
Select column
From table_name
Start with column = value
Connect by prior
How to use oracle rowid
1. Create a temporary tableCreate table test_rowid (id number, row_id rowid );2. Insert a row of recordsInsert into test_rowid values (1, null );3. Modify the inserted recordUpdate test_rowid set row_id = rowid where id = 1;4.
Oracle Database tutorial compilation Stored Procedure false
In this case, if the Stored Procedure compilation is forcibly terminated, the Recompile stored procedure will find that it is still suspended. This is mainly because the session is INACTIVE
This article will summarize the solutions to the problem that sys cannot log on remotely. If you encounter such problems, please refer to them in detail.
SYSDBA cannot log on remotely (does this mean CRT remote logon)
SYSDBA cannot log on remotely
Creating and Deleting Users is a common operation in Oracle user management, but it implies the knowledge of the system and object permissions of the Oracle database system. Understanding the Authorized operations and principles of Oracle users can
This article summarizes a variety of operations on the number of connections in the oracle database, including viewing the number of connections, modifying the number of connections, and configuring the number of connections.
Sometimes the client
There are many application projects. At the beginning, MYSQL Databases can basically meet various functional requirements. As the number of application users increases and the amount of data increases, MYSQL gradually becomes overwhelmed: the
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