Recently, I encountered a very depressing problem when using Oracle for backup and restoration. Exp did not report any error, but IMP reported a missing right bracket error. The detailed error message is as follows:
ORA-00907: missing right
1. ---- query the SQL statement being executed by a sessionSQL> select S. Sid, SQL _text from V $ session S, V $ SQL QWhere S. SQL _address = Q. Address and S. SQL _hash_value = Q. hash_valueAnd S. Sid in (107, 44803) and S. Serial # In (53098,54004
. Table data replication between different users
For two users A and B in a database, if you need to copy the old data in Table A to the new data in Table B, use a user with sufficient permissions to log on to sqlplus:
Insert into B. New (select *
1. Create a tablespace
Create tablespace ccpbs datafile '/home/Oracle/bossdata/ora_data/ccpbs_index01.dbf' size 100 m reuse default storage (initial 5000 K next 5000 K pctincrease 20 );
2. Create user
Create user osuser identified by osuser; //
1. log on to the database using an oracle user
[Oracle @ wuzj ~] $ Sqlplus/nolog
SQL * Plus: Release 10.2.0.1.0-production on Thu Feb 26 12:06:29 2009
Copyright (c) 1982,200 5, Oracle. All rights reserved.
SQL> Conn/As sysdbaConnected.
//
[Problem]:
1. Oracle control files and online redo logs do not implement multi-path mirroring, resulting in reduced database reliability.
2. data files are not adjusted based on the I/O load, resulting in Io imbalance between disks and high I/O
Environment: VM + redhat9 + oracle9.2
1. Modify/etc/oratab content
Oracle_sid:/u01/APP/Oracle/product/10.2.0/db_1: N is changed to the following content:# Add below content# $ Oracle_sid: $ ORACLE_HOME:
Delete a user
Drop user user_name cascade;
Create a tablespace
Create tablespace data01Datafile '/Oracle/oradata/DB/data01.dbf' size 500 mUniform. Size 128 K; # specify the partition size as 128 K. If not specified, the default partition size
Export directlyExp system/manager file = exp_full.dmp log = exp_full.log compress = N full = y direct = y recordlength = 65535View exported file contentIMP username/password show = y full = y file = A. dmp
Export option: compress = n to ensure
I in database transactions (acid) refers to isolation (isolation): Unfinished (that is, uncommitted) transactions must be invisible. During a transaction, only one session that executes the transaction can see the changes.
Oracle uses restoration
-- In Oracle Database Operations, we sometimes use lock table queries and unlock and kill processes. How do we implement these operations? This article mainly introduces this part. -- Lock Table query
CodeSelect count (*) from V $ locked_object;
The overall structure of ofa is divided into two layers: Software-Oracle software and files (database)
Software Directory structure
Oracle_base/-------------------------------------- the name oracle is the most
/Product ------------------------------
Data Type comparison
Type name
Oracle
Sqlserver
Comparison
Character Data Type
Char
Char
All are fixed-length characters,OracleThe maximum size is 2 kb.Maximum length8 KB
Starting from 9i, Oracle provides an operation to avoid transaction exceptions due to space error, that is, resumable. generally, DBA often ignores the requirements for space resources in daily work, such as temp, undo, and data space required by a
1. User failure During the last installation of a railway system, the Oracle 11g database was found to have a user expiration date. Check the relevant ORACLE data and check whether there is such a problem. [Cause/trigger factor] It is determined
I read a lot of articles about Oracle provider in codesmith2.6. Codesmith3.0 was rarely seen about this. It was tested yesterday.
Enter codesmith's community, http:
// Community.codesmithtools.com/files/9/schemaproviders/default.aspx, in this
The purpose of the Union command is to combine the results of two SQL statements to view the query results you want.
For example:
Select date from store_informationUnionSelect date from internet_sales
Note: In Union usage, the Field Types of the two
First let's talk about my notebook configuration: CPU: i3-2310M/memory: 4 GB (actual 2.95gb available because it is a 32-bit System)/graphics: GT 550 m (Display memory 2 GB) /Hard Disk: 500 GBWhen only Vs and SQL Server are installed, the startup
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.