It seems that by checking the data dictionary information is not the cause of the problem, only by manually performing the process of collecting statistics to try to discover the problem.
In order to avoid the problems caused by the accidental
Case 2--a table (DML) that restores a point in time past
1, based on Change (SCN)
Sql> Conn Scott/tiger
Connected.
Sql> select * from TB01;
Id
----------
1
2
3
sql> drop table Tb01 purge;
Table dropped.
Sql> CREATE TABLE TB01 (ID int)
Creating a Stored Procedure
Create or Replace procedure test (var_name_1 in type,var_name_2 out type) as
--Declaring variables (variable name variable type)
Begin
--The execution body of the stored procedure
End test;
Print out the time
Oracle Date Time Function encyclopedia
To_date format (in time: 2007-11-02 13:45:25 for example)
Year:
YY two digits two-digit year display value: 07
YYY three digits three-digit year display value: 007
YYYY four digits four-digit year display
Garbled in fact is the main set of Chinese is the default system language, as long as the set back to English to solve the garbled. To prevent garbled during Oracle installation, it is recommended that you use English as your system language to
Configuring Hugepage in Linux can improve Oracle performance and reduce the page exchange of Oracle SGA, similar to the Lagepage in Aix.
Why use a large page?
The default block size for Linux memory is 4K
If the SGA is: 128G
Select 128*1024*1024/
First see what columns exist in v$process
Sys@orcl>desc v$process
Name Null? Type
----------------------------------------- -------- ----------------------------
ADDR RAW (4)
PID number
SPID VARCHAR2 (12)
USERNAME VARCHAR2 (15)
serial#
In SQL Server, the bulk update of the associated tables can be reviewed here:
Http://www.cnblogs.com/downmoon/archive/2007/12/29/1019832.html
Oracle did not find a good grammar, temporarily use this:
Update employee Set hrdeptname=
(select
Normal table online redefinition is an error in the partitioning table, the range of values exceeds the partition limit size, so what steps do you need to redefine the table online? This example records the processing process:
Sales@orcl>exec
The rapidly changing database market shows that MySQL chief executive Martin Mickos first called Oracle's product "Crippled Software" (Crippleware), and a few minutes later hailed the company as the best partner of the year.
Mickos The Oracle in a
sql> desc V$lock;
is the name empty? Type
----------------------------------------- -------- ----------------------------
ADDR RAW (8)
Kaddr RAW (8)
SID number
TYPE VARCHAR2 (2)
ID1 number
ID2 number
Lmode number
REQUEST number
CTIME
Output query content to text
Set echo off pagesize 0 heading off feedback out termout off
Spool Test.sql
Select COUNT (*) from User_tables;
Spool off
The above script will output the query content to the Test.sql after it has finished executing
Branch of the database performance problems, help to help diagnose.
The database is a Oracle10.2.0.3 RAC environment, but is now in a single node working state. The current problem is that page access is slow and no further information is available.
1.dba_logstdby_events
This view can be viewed as a logical standby action log, so if an error occurs, you can see what the recent logic standby has done with the view. By default, this view retains only the records of the last 100 events (you can
The goal of this article is to complete the process of automated Oracle database backups by executing a shell script, and to generate its compressed files in the current directory. The following steps are implemented:
1. Log on to the Linux system
Oracle Common Startup methods:
1, Startup Nomount
Non-installation startup, this way to launch executable: Rebuild control files, rebuild the database read Init.ora file, start instance, that is, start the SGA and background process, this startup
It is believed that a large number of system administrators are doing the same job every day-backing up the data. Once a day of negligence, and this day the system is precisely the fault, the need for data recovery, then there is nothing at this
Methods that Oracle stored procedures return arrays:
1. Create a Package
create or replace package test isTYPE filename_array IS TABLE OF varchar2(1);filename filename_array;end test;
2. Establish a stored procedure
create or replace procedure
I. Loss of recovery of the inactive log file group:
Because the inactive log file group indicates that the checkpoint has been completed (dirty data has been written to the data file). The database itself does not have database loss, and if 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