View the history of SQL statements executed by oracle users

Usually used less, save it and view it later. Select * from v $ sqlarea t where t. PARSING_SCHEMA_NAME in ('username') order by t. LAST_ACTIVE_TIME descThe username must be capitalized.Select * from v $ sqlarea t order by t. LAST_ACTIVE_TIME

Statspack installation and report Analysis

  1. View tablespaces Select tablespace_name, file_name from dba_data_files; 2. Create a statspack tablespace Create tablespace perfstat datafile 'd: \ oracle \ oradata \ perfstat. dbf' size 500 m The tablespace should be as big as possible. 3.

ORACLE10gr2 data import MySQL Solution

  ORACLE10gr2 data import MySQL SolutionMySQL GUI Tools1. Download "MySQL GUI Tools" on www.mysql.com;This installation is for WINDOWS. : Http://dev.mysql.com/get/Downloads/MySQLGUITools/mysql-gui-tools-5.0-r17-win32.msi/from/pick2. Install MySQL

Oracle-merge usage

Oracle9i introduces the MERGE command. You can execute the inserts and updates operations on a table in an SQL statement at the same time. the MERGE command selects rows from one or more data sources to update or inserting to one or more tables. in

Common Oracle Database Constraint constraints and Exception Handling

This section describes common Oracle Database Constraint restrictions and Exception Handling. Next, let's take a look at this part.1. Report constraints exceptionIf an exception exists during validation constraints, an error is returned and the

Oracle function Chinese sorting

Keywords: nlssort, Pinyin sorting, strokes, radical Before Oracle9i, Chinese characters were sorted by binary encoding. The sorting by pinyin, radical, and stroke function is added to oracle9i. Set the NLS_SORT Value 1. SCHINESE_RADICAL_M is

Maximum number of cursors set in Oracle

1. view the maximum number of Oracle cursorsC: \ Documents ents and Settings \ Administrator> sqlplus "sys/admin @ test151 as sysdba" (sys logs on to the test151 service as dba)SQL * Plus: Release 9.2.0.1.0-Production on Thursday November 5 09:08:04

Orcal Stored Procedure

3.1 basic oracle Stored Procedure syntax3.1.1 Basic StructureCREATE OR REPLACE PROCEDURE(Parameter 1 in number,Parameter 2 IN NUMBER) ISVariable 1 INTEGER: = 0;Variable 2 DATE;BEGINEND stored procedure name 3.1.2 SELECT INTO STATEMENTSave the select

Oracle Stored Procedure 1

Basic StructureCREATE OR REPLACEPROCEDURE(Parameter 1 in number,Parameter 2 IN NUMBER) ISVariable 1 INTEGER: = 0;Variable 2 DATE;BEGINEND stored procedure name --- Query data and return a listDrop procedure mrr. get_risk_assessment_by_status;Create

Common Methods for imp and exp commands in oracle

Oracle Import utility allows you to extract data from a database and write the data to an operating system file. The basic format used by imp: imp [username [/password [@ service]. The following describes common usage of imp. 1. Get helpImp help =

Oracle performance monitoring script

1. Waiting for monitoring casesSelect event, sum (decode (wait_Time, 0, 0, 1) "Prev ",Sum (decode (wait_Time, 0, 0) "Curr", count (*) "Tot"From v $ session_WaitGroup by event order by 4;2. rollback segment contentionSelect name, waits, gets,

Local rman backup and recovery test

-- Rman backup full database:C: \ Documents ents and Settings \ Administrator> set oracle_sid = ora10C: \ Documents ents and Settings \ Administrator> rman target/RMAN> backup database format 'd: \ BACKUP1 \ % U ';-- Compression backup:RMAN> backup

[Oracle] SQL * Loader detailed tutorial (2)-command line parameters

[Oracle] SQL * Loader detailed tutorial (2)-input sqlldr in command line parameters without any parameters, the simple description of all command line parameters and their default values are displayed. (You can also use this method to quickly query

How can I display pl/SQL query data in Chinese?

How can I display pl/SQL query data in Chinese? Solution: 1. Open the installation directory of PLSQL Developer, see the directory of plsqldev.exe, create the "PLSql_run.bat" file in the PLSQL Developer folder, and enter the following content in the

[Oracle] online table redefinition-normal table to partitioned table

[Oracle] online table redefinition-modifying table definitions (DDL) in a 7*24 online production system is very painful, if you use the alter statement directly, an exclusive lock will be placed on the table. That is to say, during this period, all

Oracle partitioning, indexing, testing (2)

Oracle partition, index, test (2) this select operation, each table is 0.1 billion, and the indexes of all three tables are disable. First test compression. SQL code -- sales_data bitmap is not suitable for alter table sales_data1 compress; --- view

How to enable and disable the Oracle archiving mode of a Database

This document describes how to enable and disable the Oracle archive mode for a database. 1. shutdown normal or shutdown immediate disable database oracle Training   1 .oracle@jumper oracle]$ sqlplus "/ as sysdba"  2.SQL*Plus: Release 9.2.0.4.0 -

Ora-01578 repair after data block corruption

Repair ora-01578 after data block corruption if the database runs in archive mode with backups, you can use RMAN block recovery. You can run RMAN> blockrecover datafile 1 block 28618 when the data file is online. If no backup, archive logs are lost,

Oracle transaction (one)

Oracle transaction (one) 1) Transaction processing process 1. First, the client must connect to the server, and the server will assign relevant processes to respond to user request operations. 2. When the server starts to receive user SQL operations,

Query, create, and expand the tablespace & amp; impdp ---- table space Overview

Query, create, and expand the tablespace & impdp ---- the key to the successful import of the tablespace by schemas is: the size of the tablespace In the imported environment and the source data environment, and the tablespace name, which must be

Total Pages: 2147 1 .... 1361 1362 1363 1364 1365 .... 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.