Environment:OS: Red Hat Linux As 5DB: Oracle 10.2.0.4 Sometimes, due to the need of the test environment, we need to use the backup set of the production database to recover from another new machine (provided that the Oracle software is installed on
When I used imp to import a database backup in dmp format today, I found that an import error occurred and reminded that the object already exists so that I can only remember to delete all tables before importing, if the database has dozens of
1. Log On As an Oracle user
2. Compile an automatic backup script and clear the archived logs.
$ Vi/home/oracle/backs. sh
#! /Bin/shSource/home/oracle/. bash_profileCd $ ORACLE_HOME/binRman target/nocatalog msglog =/home/oracle/rman_bk _ 'date' + %
Oracle:
Syntax:
Substr (string, a, B ):
A: Starting from the nth digit, the first digit a = 1,Last Third digit (right in sqlserver) a =-3
B: Several Characters[SQL]
Substr ('This is a Test', 6, 2) wowouldReturn 'Is'
Substr ('This is a Test', 6)
To understand the role of each file, you must master the basic concepts of Oracle.
I. backup and recovery of Oracle basic files
1. logfile diversification and Backup Recovery
Log query
Select * from v $ logfile;
Select * from v $ log;
Manually
Insert time into sqlite3 and search by time range.
Void my_first_sqlite3_func (){Int I;Sqlite3 * db;Sqlite3_stmt * stmt;Char name [16], occ [16];Char * SQL _drop = "drop table if exists people ;";Char * SQL _create = "create table people (id, time,
The restrictions on Oracle histograms often lead to headaches for many beginners-not displaying more than 32 bytes, and generating the same errors as the first 32 bytes.
Since the number of DISTINCT values in the OBJECT_TYPE column is less than 254,
On the Linux platform, you can use the up and down arrows on the keyboard to call up the SQL commands executed in history at the SQL * PLUS command line prompt of the Oracle database, you can consider using the rlwrap open-source tool. Now, record
Related indicators
1. Database Hot Backup in seconds and transactions (cross-operating system platform supported)
Monitors the database in real time and backs up the changed data to the standby database in seconds. At the same time, only the
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 help
Imp help =
The user reports that the front-end business response is slow. log on to the database to obtain the awr report. The system recovers after kill related sessions. For more information about kill sessions, see metalink id 786507.1.In addition to
The Oracle password contains special characters, such as "@". It is written in imp and exp.
Today in Oracle data export, because the user name password is a special character, so encountered the error code: "EXP-00056: encountered ORACLE error 12154
Synonym: literally, it means an alias, which is similar to an attempt. Is a ing relationship.
(1. Create a synonym statement:
Create public synonym table_name for user. table_name;
The first table_name and the second table_name can be different.
I. Table access between users:
For example, if a bkjia user wants to access the users table in the system user, the command is as follows:
:
Grant select on users to bkjia;
Bkjia users can only query the users table data in the system user .)
Run the db2look command to obtain the DDL script of the database object.DB2's db2look command is interpreted as follows:Db2look 8.2Db2look: Generate DDL to recreate objects defined in the databaseSyntax: db2look-d DBname [-e] [-u Creator] [-z Schema]
Profile SettingsINV: Debug Trace: YesINV: Debug Level: 10 (or greater than 10, less than 15, the higher the Level, the higher the log details)
INV: Debug file:/usr/tmp/invdebug. log
Note: The path specified by INV: Debug file must be in the
In Oracle, various components (listeners, database instances, and various configuration tools) are installed and run with Log and Trace files generated. Before Oracle 11g, the information was scattered in the Oracle component directory. At 11g,
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.