OCP042 12th lecture Proactive Maintenance

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

Paging stored procedures in Oracle

1. Create a test table SQL code Create table Account ( CardId char (20) primary key, -- account Name char (20) not null, -- name Money numeric (20, 2) -- deposit ); 2. input test data SQL code Insert into Account values ('20170101', 'zhang san', 0001

Oracle paging Stored Procedure

1. Create a test tableCreate table Account (CardId char (20) primary key, -- accountName char (20) not null, -- nameMoney numeric (20, 2) -- deposit);2. input test dataInsert into Account values ('20170101', 'zhang san', 0001 );Insert into Account

ORA-00600: internal error code

ORA-00600: internal error code, arguments: [keltnfy-ldmInit], [46], [1], [], [],SQL Virtual MachineAn error is reported when the database is started: SQL> conn/as sysdbaConnected to an idle instance.SQL> startupORA-00600: internal error code,

Oracle 10 Gb Date and Time Functions

-- 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 --

Oracle notes: Statspack Installation and Use

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

Installation and configuration script for oracle Data in linux

Related configuration before installing oracle Database in linux;# Root#/Etc/sysctl. confCp/etc/sysctl. conf/etc/sycotl. confbackupEcho kernel. shmall = 2097152>/etc/sysctl. confEcho kernel. shmmax = 2147483648>/etc/sysctl. conf# Semaphores: semmsl,

Enable the Oracle help system-no longer afraid of forgetting the command embarrassment

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

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

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

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

Full oracle recovery from backup control files

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

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

Recursive query of data in ORACLE

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

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.

The stored procedure of Oracle database compilation is suspended.

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

Sys cannot log on remotely. solution:

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

Analysis on Oracle user authorization and Management

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

Command for viewing the number of oracle database connections

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

Precautions for migration from MySQL to ORACLE

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

Total Pages: 2147 1 .... 1301 1302 1303 1304 1305 .... 2147 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.