(Tablespace contraction script)]
-- 1. obtain information about the tablespace to be released (including the tablespace owned by oracle database)
-- Drop table system. tbs_detail;
Create table system. tbs_detail as select
A. tablespace_name,
A.
Oracle-related Distributed Data SolutionsThis solution may gradually die out in the cloud computing and SOA architecture, but it is still quite practical. This article briefly introduces common data synchronization solutions because Advanced
Using script files to manage Oracle databases has great advantages.
For example, you can reduce the command input. For example, you can save the commands that pass the debugging test so that you can use them again when needed. For example, you can
After finishing the project yesterday, I asked the test to test it. The test said that paging query does not seem to work. After Turning to page 4th, the data results will be the same.At that time, I was puzzled. It was impossible. The paging
SQL1:Copy codeThe Code is as follows:-- 1. view the table space name and size.SELECT t. tablespace_name, round (SUM (bytes/(1024*1024), 0) ts_sizeFROM dba_tablespaces t, dba_data_files dWHERE t. tablespace_name = d. tablespace_nameGroup by t.
1. query the number of connections to the current process of the database:Copy codeThe Code is as follows:Select count (*) from v $ process; 2. view the number of connections in the current session of the database:Copy codeThe Code is as
Content • Software environment• A simple demonstration of Row-level locks caused by concurrent Oracle databasesThis article briefly demonstrates the row-level locks caused by concurrent Table Primary keys. More than two concurrent users modify the
The syntax structure of the Decode function is as follows:
Copy codeThe Code is as follows:Decode (expression, search_1, result_1)Decode (expression, search_1, result_1, search_2, result_2)Decode (expression, search_1, result_1, search_2, result_2,..
Table query: Merge query: Use the union keyword to remove duplicate rows that meet the condition.Copy codeThe Code is as follows:Select ename, sal, job from emp where sal> 2500 union select ename, sal, job from emp where job = 'manager '; Union all
When deleting a user in Oracle, the following statement is prompted: ORACLE cannot delete the current connected user:SQL codeSQL>Copy codeThe Code is as follows: select username, sid, serial # from v $ session;Username sid serial #-------------------
As a DBA, one of the common scenarios is:Create a tablespace:Copy codeThe Code is as follows:CreatetablespaceThinkDatafile '/u01/app/oracle/oradata/orcl/think. dbf'
IN is mainly used to input parameters, which can be variables, constants, and expressions. The value cannot be changed within the subroutine.Copy codeThe Code is as follows:DECLAREN NUMBER: = 10;PROCEDURE do_something (N1 in number)
1. query the names of products with prices higher than the average price:SELECT item_name FROM ebsp. product_market_price WHERE item_price> (select avg (item_price) FROM ebsp. product_market_price2. oracle9i or a later version allows you to insert
In addition, some of the differences they listed are quite meaningful. Some may be due to their own identity as a MySQL DBA, and some may be confused about Oracle. however, in general, the list of Baron Schwartz can help you understand the
1. query Table Name: Copy codeThe Code is as follows:Select table_name, tablespace_name, temporary from user_tables [where table_name = table name]Where: table_name: Table Name (varchar2 (30 ));Tablespace_name: The tablespace that stores the table
1. intersect is the intersection of multiple query results;2. query the SQL statements recorded in the table within two basic periods;Select * from shengjibiao t where t. createtime between to_date ('2017-7-26 ', 'yyyy-MM-dd') and to_date ('2017-7-29
Author: peace. zhaoExample of cursor if andCreate or replace procedure peace_ifIsCursor var_c is select * from grade;BeginFor temp in var_c loopIf temp. course_name = 'OS' thenDbms_output.put_line ('stu _ name = '| temp. stu_name );Elsif temp.
The ORACLE tutorial is about space management of Oracle databases. In Oracle databases, DBAs can observe tables or views to understand the usage of the current space and make possible adjustments.I. Free Space for tablespaceBy observing the free
The ORACLE tutorial is: Oracle common error diagnosis. ORACLE errors are detailed in the ORALCE documentation, but the causes and measures are not detailed. This article focuses on how to solve these errors.
1, ORA-12571, ORA-03113, ORA-03114, ORA-
The ORACLE tutorial is: Oracle Database Security Policy Analysis (3 ).Data security policy:
Data Generation considerations should be based on the importance of data. If data is not important, the data security policy can be relaxed. However, if
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