1. Use imp/exp. Export the source database first, create a new database, create the tablespace, and then import it. (It is said that this is acceptable, provided that the new database cannot contain tablespaces with the same name as the source
Merging partitions
Use the alter table.. Merge partition statement to merge the content of the two partitions into the other partition. Both the source partitions and the associated local indexes will be dropped.Cannot be used for hash partition
Lunatic sorting
1. Notes for deleting a tableWhen deleting all data in a table, the truncate table name must be used. Because when the drop table or delete * from table name is used, the occupied space of the table in the tablespace is not
The start with... connect by clause recursive query is generally used for a table to maintain a tree structure. Create example Table: Create Table tbl_test
(
ID number,
Name varchar2 (100 byte ),
PID Number default 0
); Insert test data: insert
[Guide] Any software may be re-installed intentionally or unintentionally. How can I restore the database after oracle is reinstalled? This happens when you have no intention! We often use the Oracle database restoration method. The following
Oracle's imp/exp component is a common tool. One of its operational principles is
Backward compatibility . The following are the usage rules and related tests summarized as follows:
Rule 1: earlier versions of exp/IMP can be connected to database
Analysis:1. when installing Oracle, Oracle creates a directory named "Current ip_orcl" under F: \ oracle \ product \ 10.2.0 \ db_1 by default, this directory stores information such as the configuration of the Oracle database named orcl.2. by
Oracle 11g allows marking an index as invisible. OracleSame as maintaining other indexesInvisible IndexBut the default invisible index cannot be used by the optimizer, unless explicitly setOptimizer_use_invisible_indexes= True (you can alter
The previous project data used MSSQL and MySQL, and the orm used a lightweight dapper, which was very convenient and had better performance than ef. The key was the flexible syntax and ease of use, I feel very good when I develop several websites
This is because more and more people have asked me this question recently. I want to write down my ideas.
1. How fast is it?Many people like shortcuts, so they often ask for shortcuts, but I often tell you that there are no shortcuts, or there are
The time spent preparing new SQL statements is the most important part of the execution time of Oracle SQL statements. However, by understanding the internal execution plan generation mechanism of Oracle, you can control the number of times that
I have never paid attention to the data storage methods in Oracle, because most of them use metadata stored in Oracle relational databases. Today, I happened to see a description about Oracle 11g data definition, which is collected as follows:
1.
Spool outputs all the output on the screen to the specified file-- Spool file path name; spool G: \ mysql. SQL; -- business operation -- end output spool off;
Execute an SQL script fileWe can save multiple SQL statements in a text file, so that when
1. Oracle has no database Concept
Therefore, we can use user as a substitute for the database.
For example, our previous SQL statement is
Select AA, BB, CC from librarya. tablea
Now, we create a user named librarya
Then we use this user to
There are four main steps:1. Create a table using the utlxplan. SQL script.SQL> @? /Rdbms/admin/utlxplan. SQL2. Create a synonym so that multiple users can share a plan_table and authorize it to the public.SQL> Create public synonym plan_table for
Simple development of PL/SQL stored procedures
Paging of stored procedure using dynamic SQL
procedure proc_goods_search_count(p_type number, p_keywords varchar2, p_number out
Before developing a database system, who knows a lot about the Oracle system, especially its features? It seems very rare. For Beginners, this is even more impossible; with a simple understanding of the SQL writing method, we started database
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