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

Summary of Oracle row-column Conversion

The directory structure is as follows:Row-to-ColumnColumn-to-row[1]. Row-to-column Conversion 1.1 initial test data Table Structure: TEST_TB_GRADE SQL codeCreate table TEST_TB_GRADE(Id number (10) not null,USER_NAME VARCHAR2 (20 CHAR ),COURSE

Oracle start with. connect by prior clause for Recursive queries

The select statement in Oracle can use the start with... connect by prior clause to implement recursive queries. The connect by clause is used in structured queries. Its basic syntax is as follows:Select... from Where Start with Connect by ;: Filter

Import oracle expdp/impdp to earlier version

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

Oracle automatic backup (Windows)

The bat script is as follows:Set yr = % date :~ 0, 4%Set mo = % date :~ 5, 2%Set dy = % date :~ 8, 2%Set dmpName = % yr % mo % dy %Exp username/password @ dbname file = d: \ % dmpName %. dmp owner = username log = d: \ log _ % dmpName %. logThe

OAF-Status Management 2

Page ContextEvery time a page request is received, OAF creates an OAPageContext storage information until the new page is complete (in particular, OAPageBean creates an OAPageContext, which is mainly performed on the page background)Request and page

Oracle trunc usage

In Oracle/PLSQL, the trunc function returns a date truncated to a specific unit of measure.The syntax for the trunc function is:Trunc (date, [format])Date is the date to truncate.Format is the unit of measure to apply for truncating. if the format

My oracle learning records

1. scott unlockAfter installing the Oracle 10 Gb database, I forgot to unlock the scott account. In this case, you can go to the SQL plus tool (START | all programs | | Application Development | SQL Plus), or unlock the scott account through

Oracle automatic backup

  Java code #! /Bin/bash   Source/home/oracle/. bash_profile Export NLS_DATE_FORMAT = 'yyyy-mm-dd hh24: mi: ss ';   $ ORACLE_HOME/bin/rman target/msglog =/backup/log/baklog _ 'date' + % Y % m % d % H % M % s'. log Run { Allocate channel c1

Oracle pseudo-column ROWNUM Learning

Oracle pseudo-column ROWNUM Learning1. ROWNUM is sorted according to the order in which records are inserted. 2. ROWNUM does not actually exist. It is a sort of filtered result sets. If no result set exists, ROWNUM does not exist. 3. ROWNUM cannot

Create multiple sde Libraries

1 PrefaceDuring work, you may often encounter the creation of multiple SDE services on a single machine to manage operations on multiple spatial databases at the same time. On the ESRI website, copy % SDEHOME % to a new location and manually modify

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,

Random Number of oracle (result set)

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

Backup and recovery solution for small and medium databases rman catalog (2)

Small and Medium databases rman catalog Backup Recovery Solution (2) 1. RMAN restores shell scripts [Python] -- The following shell script is used to restore the database automatically. After the restoration is successful, the database is closed. In

Oracle configuration file DETAILS listener. ora, sqlnet. ora, tnames. ora

Detailed description of the Oracle configuration file listener. ora, sqlnet. ora, tnames. ora configuration file listener. ora, sqlnet. ora, tnsnames. ora is stored in the $ Oracle_home \ network \ admin directory. Key points: the role of the three

Oracle SQL Recursion

Oracle SQL recursion how should I write SQL recursive statements in oracle databases? The following is an example of using SQL recursive statements in oracle for your reference. Example: Pid id a B a c a e B b1 B b2 c c1 e e1 e e3 d d1 specify pid =,

Oracle programming using Java Source

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

Non-default listeners and port configurations for placing an instance in the Oracle 11g RAC Environment

If you use dbca to create a single-instance database in the Oracle 11g RAC environment, oracle automatically registers it to the default port 1521 and listener. In most cases, we use non-default listeners and non-default listening ports. In the

Total Pages: 2147 1 .... 1928 1929 1930 1931 1932 .... 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.