Stored Procedure for recreating indexes for all tables in Oracle (rebuilding indexes)

Oracle re-creates the Stored Procedure (re-indexing) for all table indexes SQL code/* function: re-creates the index. Note: If the tablespace parameter is null, the index is re-created in the original tablespace; otherwise, the index is re-created

Oracle rman nocatalog and catalog

Oracle rman nocatalog and catalog 1. Check whether archive mode is Enabled [oracle @ test ~] $ Sqlplus/as sysdbaSQL * Plus: Release 10.2.0.1.0-Production on Wednesday April 17 03:15:57 2013 Copyright (c) 1982,200 5, Oracle. all rights reserved.

Oracle --- knowledge point test

Oracle --- knowledge point test 1. create a table employee with the following fields: Id number (4), First_Name varchar2 (20), last_Name varchar2 (20), mgrid NUMBER (4), Job varchar2 (20 ), salary number (7,2) [SQL] create table employee (Id number (

Create a table, sequence, and trigger in oracle

Create table "JCMS_ADVERT" ("ID" integer not null enable, "SITEID" INTEGER, "NAME" VARCHAR2 (150 CHAR) not null enable, "UPDATETIME" DATE, primary key ("ID"); create Table sequence create sequence seq_advert minvalue 1 maxvalue 9999999999999999999999

Routine oracle check script

Oracle daily check script [plain] #! /Bin/bash sqlplus-s/as sysdba Spool/tmp/oraclecheck/dbcheck. log set echo off whenever sqlerror continue; set lines 500 set pages 500 prompt ################################# ########### prompt Database

Automatic Oracle SGA management feature (sga_target parameter)

Oracle SGA automatic management feature (sga_target parameter) 1. related parameter description a. Parameter SHARED_POOL_SIZE = integer [K | M | G] Default value If SGA_TARGET is set: if the parameter is not specified, then the default is 0

How to reconfigure the redo log location

How to reconfigure the redo log location 1. shut down database shutdown2. use the OS command to copy redo log files to the new location mv/u01/app/oracle/oradata/MYNEWDB/onlinelog/o1_mf_1_89y70t1b _. log/home/o1_mf_000089y70t1b_test.log3. start the

Oracle scheduled task failure Solution

Oracle scheduled task failure solution found that the system data was not updated. Check that the oracle scheduled task was not executed. The next_date is changed to 4000/1/1, and the broken is selected. Select * from user_jobs: the number of failed

[ORACLE basics 1] oracle date addition and subtraction

[ORACLE Foundation 1] addition and subtraction of oracle DATE can be performed on both DATE and timestamp. You can add the current date to different time types by year, month, day, hour, minute, and second. There are three methods: 1. Use the

Errors related to exp Export

Errors related to exp export: Some problems encountered when using exp to export data from the database are recorded. [SQL] $ exp system/oracle owner = system file =/oracle/full. dmp statistics = estimate Export: Release 10.2.0.5.0-Production on Sun

Oracle System Administrator basics: Oracle Data Dictionary

Oracle System Administrator basics: Oracle Data Dictionary for Oracle system administrators, Oracle Data Dictionary is like a treasure house: it is an important part of ORACLE Database, provides information about databases, such as database

Oracle 11g ora-00979 bug handling

Oracle 11g ora-00979 bug processing migrate oracle 10g Report library to oracle 11g existing Stored Procedure compilation times ora-00979 error, determined to be group by followed by the cursor cannot be used, later I found a bug of 11g with metlink

Oracle 10g rac deployment document

Oracle 10g rac deployment documentation host network configuration considerations: static IP Address Configuration: static gateway should specify hostname not to appear in the loopback address! If you have started the single-host asm service, stop --

ORA-00600: internal error code, arguments: [4194], ORA-00607

ORA-00600: internal error code, arguments: [4194], ORA-00607 solve today there is a kid shoes said their client connection is not on the server end through oral guidance really cannot be done, at that time, I was still angry with the oracle net

Oracle tune v $ UNDOSTAT

Oracle tune v $ UNDOSTAT a 11g database running on an 18-touch AIX database. During the check, it is found that the data in view V $ UNDOSTAT is very strange, 1st records have never been cut. the start time is 09:52:08 and the end time is 15:20:34.

Use of Oracle DDL statements

Oracle DDL statements use common database objects (tables, views ...); create a table: create table t (a varchar2 (10); select * from t; (delete table) drop table t; varchar2 () can change the length; maximum 4 K; char () Fixed Length string; 8 the

Obtain DDL statements from Oracle

Oracle obtains the DDL statement SQL code SET LONG 2000000 SET PAGESIZE 0 EXECUTE DBMS_METADATA.SET_TRANSFORM_PARAM (DBMS_METADATA.SESSION_TRANSFORM, 'store', false); select dbms_metadata.GET_DDL (u. object_type, u. object_name, 'Scott ') from

Several oracle analysis functions

Oracle analysis functions 1. automatic summary functions rollup, cube, 2. rank function, rank, dense_rank, row_number 3. lag, lead function 4. increase the moving of sum, avg, and 5. ratio_to_report processing function 6. first, last base-based

Basic rules for creating indexes in Oracle

Basic rules for creating indexes in Oracle 1. B-Tree indexes 1. the principle of selecting an index field: select a highly selective field for the join field in the most frequently used field join statement in the WHERE clause (if few fields have

Create backup and recovery scripts for oracle databases

Oracle database backup and recovery Script 1: create user: [plain] create temporary tablespace user_temp tempfile 'd: \ app \ topwqp \ oradata \ orcl \ user_temp.dbf 'size 500 m autoextend on next 50 m maxsize 2048 m extent management local; create

Total Pages: 2147 1 .... 1356 1357 1358 1359 1360 .... 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.