Solution to deadlock in Oracle Data Tables: oracle Solution
During database management, tables are often locked due to some unreasonable operations on data tables. The following describes how to find which tables are locked by whi
When Oracle 11g is exported using EXP, empty tables cannot be exported, and 11 gexp
I. cause:There is a new feature in 11G. When the table has no data, no segment is allocated to save space.1. insert a row and then roll back to generate a segment.This method inserts data into an empty table and then deletes it, resulting in a segment. An empty table can be exported.2. Set the deferred_segment_creation param
'); --------------------------------------------------------------------------------------------------------------- ---------------------- ORACLE:----Common Data dictionaryUser_Records information about user objects, such as user_tables contains all tables created by the user; user_views,user_constraints, etc.;All_To record the information of the user object and the object information that is authorized to
Oracle Database Operations (10)-logical backup and recovery of databases (tables), oracle backup and recovery
Logical backup and recovery of databases (tables)-export
System can export any scheme, for example:
Exp system/manager @ myoral owner (system, scott) file = d: system. dmp; // Note: two schemes can be exported
Explain how to query and unlock Oracle lock tables and explain how to unlock oracle locksDatabase Operation statement category
DDL: database mode definition language; Keyword: create
DML: data manipulation language; keywords: Insert, delete, and update
DCL: Database Control Language, Keyword: grant, remove
DQL: Database Query Language, Keyword: selectWhen Will
Oracle queries all tables under the userSELECT * FROM all_tab_comments– queries all users ' tables, views, etc.SELECT * FROM user_tab_comments– query This user's table, view, etc.SELECT * FROM all_col_comments– queries the column names and comments for all users ' tables.SELECT * from user_col_comments– Query the column names and comments for this user's tableSEL
How to use Oracle External tables to import data from text files, oracle Text Files
Recently, colleagues are busy with Data Consistency comparison. They need to compare the data in different text files. Some files are large and have many records. If they are opened in a common text editor, it is obvious that, it will be very difficult, or even cannot be opened.
B
Analysis on the storage format of Oracle nested tables and oracle nesting
Oracle nested tables are rarely used. The following describes how to store them. For example, a user corresponds to a department.
SQL> select * from v $ version;BANNER----------------------------------
1.1 Partitioned Tables Partition tableIn Oracle, if you encounter a particularly large table, you can use partitioned tables to change the performance of their applications.1.1.1 Partition Table Establishment:A company generates huge sales records each year, and the DBA suggests to the company that quarterly data be pl
Summary of basic table space management operations in Oracle databases, tables in oracle
DB storage hierarchy
(I drew a sketch and I will take a look at it... XD)
Manage tablespaces
-System: required to store data dictionary information. It is the first database to be created.
-New and required 10 Gb sysaux, which helps to share system load, system management, o
table space contain more than one physical file
3. Oracle users
Multiple users in a database create and manage their own data. each user has its own permissions and can share data with other users.
4. Data Tables
In the warehouse, we may have multiple houses, each with multiple shelves and multiple layers. We store data in databases and ultimately store and manage data
Restore the tables drop by pl SQL in oracle by mistake
View tables in the recycle bin
Select object_name, original_name, partition_name, type, ts_name, createtime, droptime from recyclebin;
Restore table
SQL> flashback table test_drop to before drop; orSQL> flashback table "BIN $ B + XkkO1RS5K10uKo9BfmuA = $0" to before drop;
Note: The full-text index cannot be r
How to restore the accidental deletion of tables in oracle (drop )?, Oracledrop
View tables in the recycle bin
Select object_name, original_name, partition_name, type, ts_name, createtime, droptime from recyclebin;
Restore table
SQL> flashback table test_drop to before drop; or
SQL> flashback table "BIN $ B + XkkO1RS5K10uKo9BfmuA = $0" to before drop;
Note: The
,exp_full_database,imp_full_database, Dba,connect,resource,create SESSION to User name Example execution: F:workoracle_dataackup>imp userid=test/test full=y file=inner_notify.dmp Screen display Import:release 8.1.7.0.0-production on Thu February 16 16:50:05 2006 (c) Copyright: Oracle Corporation. All rights reserved. Connected to: Oracle8i Enterprise Edition Release 8.1.7.0.0-production With the partitionin
If you want to reprint, please specify the source!
People who have used Oracle know that it's a trivial matter to change the column names and order of tables in Oracle, and here's a simple way to do it.
Sql> Select object_id from all_objects where owner= ' SCOTT ' and object_name= ' T1 ';
object_id
----------
6067
Sql> Select Obj#,col#,name from sys.col$ where
to divide users and applications. For example, the USER tablespace is used by general users, and the RBS tablespace is used by rollback segments. A tablespace can belong to only one database.
Create tablespace Syntax:
Create TableSpace name
DataFile tablespace data file path
Size tablespace initial Size
Autoextendon
For example:
Create tablespace db_test
Datafile 'd: \ oracle \ product \ 10.2.0 \ userdata \ db_test.dbf'
Size 50 m
Autoextend on;
View
Oracle uses a cursor to add a primary key statement to all user tables. oracle cursor
Application Scenario: adding an auto-increment primary key to a data table can speed up data table access, and is the fastest in integer indexing. This program is suitable for running when the Oracle database is imported and the prima
rows selected As can be seen here, in the case of the exp DMP file is partially damaged, or can be directly read the DMP file to recover all or part of the exp DMP file content (the specific amount of recovery depends on the degree of damage to the DMP file) --------------------------------------ORACLE-DBA---------------------------------------- The most authoritative and professional case of
View tables in the recycle bin
Select object_name, original_name, partition_name, type, ts_name, createtime, droptime from recyclebin;
Restore table
SQL> flashback table test_drop to before drop; orSQL> flashback table "bin $ B + xkko1rs5k10uko9bfmua = $0" to before drop;
Note: The full-text index cannot be restored because it must be available in 9i or 10 Gb or later versions.
References:
Using the flash back table feature in
Oracle uses a cursor to delete all record scripts in all user data tables. oracle cursor
Application Scenario: because the data in the database involves confidential information, we hope to delete all the data at a time and only keep the data table structure for the development of new projects.
Test Result: All data has been deleted.
Problem: if the data table ha
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.