In December 2, I deleted the database by mistake. The boss was so upset that I would recover the database within 30 minutes. In a hurry, I wrote a stored procedure, this method is applicable when the table is deleted on the day of restoration
In ORACLE, You can automatically create a unique index when creating a primary key constraint, or create a unique index first, and then create a primary key constraint based on this unique index. The latter method has the following advantages:
Calculate the total amountSelect sum (price * qty) from books; Query groups (the group by statement must be in select)Select sum (price * qty) from books group by pub; use Group by and having to replace where Incorrect case:This is not correct. As
1. concept:The tablespace is the largest logical carrier. It stores the associated database logic and stores database files.2. Create a tablespace using SQLPLUSCreate tablespace tabs -- create a tablespaceDatafile 'f: \ oracle \ product \ 10.2.0 \
Author: runming 2012-2-1 QQ: 226399587 http://blog.csdn.net/runming918 Difference between Purge and drop:The new flashback drop feature provided by Oracle 10g provides the flashback drop feature to speed up recovery of user error operations. In
Author: runming 2012-2-1 QQ: 226399587 http://blog.csdn.net/runming918 This article describes the concepts and operations of Partitioned Tables from the following aspects:1. Concepts of tablespaces and partition tables2. Specific functions of table
1. Introduction to shared pool: The location, parts, and functions of the Shared Pool; Ii. Set and view the shared pool size: In 9i, we use the Shared_pool_size parameter to set the size of the Shared Pool. Let's talk about the setting in 10 Gb. In 9
The installation steps are basically the same as those of 32-bit, and some parameters are changed. Official Website installation documents:Http://download.oracle.com/docs/cd/B19306_01/install.102/b15667/pre_install.htm#CIHFICFD 1. Install the
I recently summarized how to set the oracle primary key. paste it here and save it. There are two ways to set a primary key, one is auto-incrementing primary key, and the other is to generate a unique sequence.I. Auto-increment primary key
-- First
1. log on to the database as an administrator using pl/SQL
2. Run the script file utlxplan in the path % oracle_home %/rdms/admin, for example, D: \ Oracle \ rdbms \ admin.
Note that all file types should be selected below
Then run,
-- Common oracle system tables/*Start with dba .....Dba_users database user informationDba_segments table segment informationDba_extents data zone informationDba_objects database object informationDba_tablespaces database tablespace
In Oracle, how does one import the table structure under one user to another? Unix: exp \ 'sys/password as sysdba \ 'file =. dmp owner = Export user rows = Nimp \ 'sys/password as sysdba \ 'file =. dmp fromuser = Export user touser = import user in
Oracle uses the Start with... Connect By clause to recursively query ORACLE. It provides an interesting function to connect by clause, which can sort the branches with a family tree structure. It applies to the structure of organizations or
Common oracle and sqlserver functions: decode (c1, A, y1, B, y2 ....) // c1 is the prerequisite, A is the comparison object, y1 is the result object, B is the comparison object, and y2 is the result object. Equivalent to case when (..) and (..) then
In oracle 11g r2, we found that the traditional exp could not export an empty table, and then looked at it and found that the following steps are required to take notes. Oracle 11g adds a parameter: deferred_segment_creation, which indicates that
Problem:During database migration, if the table contains LOB fields (BLOB, CLOB, etc.) and IMP fails, the system prompts that the tablespace does not exist.Cause:All data of the LOB type is stored in the tablespace, and only the pointer is stored in
ORACLE 11g Automatic Memory Management: in oracle 11g, the SGA and PGA components can be automatically allocated based on the workload by using the memory_target parameter. Oracle recommends using automatic memory management to simplify memory
Use the Alter Database statement to switch between startup modes.1. switch from NoMount mode to Mount mode (not from mount to nomount): Command: alter database mount; 2. when the DATABASE status is closed, switch to the Open mode command: alter
Solution for accidental deletion of oracle log files: oracle log files are deleted (mainly for those software such as 360 security guard, QQ computer manager, and Kingsoft guard that use logs as garbage, when using them, be careful, or remove 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