Oracle queries table space usage and queries which database instances are running
Query table space usage
Select a. tablespace_name "tablespace name ",
100-round (nvl (B. bytes_free, 0)/a. bytes_alloc) *) "usage (% )",
Round (a. bytes_alloc/10
Oracle connection information
View user connections
Select s. osuser OS _user_name, decode (sign (48-command), 1, to_char (command ),
'Action Code # '| to_char (command) Action, p. program oracle_process,
Status session_status, s. terminal, s.
1. Use of query statementsThe select statement and subquery can be used to return data from one or more tables, views, and entities. 1.1 Related subqueriesSubqueries (as subquery), in, or exists can be considered as part of a where condition. Such
In oracle, regexp_like (VALID_STR, '^ [+-]? \ D + (\. \ d )? \ D * $ '); is used to process positive numbers. Use new Regex ("[\ u4e00-\ u9fa5] +", RegexOptions. Compiled) in Chinese.
In oracle, regexp_like (valid_str, '^ [+-]? D + (. d )? D * $ ');
Whether the result value of the expression is within the specified range. Entity SQL between expressions have the same functions as transact-SQL between expressions.
ExpressionYou need to test whether any valid expression is within the range defined
The syntax is the same as that of other SQL database tutorials.DELETE FROM COURSESWHERE COURSE_DESIGNATER = 'java110'
Complex operations by conditions
DELETE FROM CLASSCONVENINGSWHERE CLASSES_NUM_FK> 4AND CLASS_CONVENE_DATE = TO_DATE ('2017-02-15 00:
How to use oracle rowid
1. Create a temporary tableCreate table test_rowid (id number, row_id rowid );2. Insert a row of recordsInsert into test_rowid values (1, null );3. Modify the inserted recordUpdate test_rowid set row_id = rowid where id = 1;4.
Oracle XML implementation?Oracle has implemented XML through the xml db Component of the database tutorial. This component is a standard feature of the Enterprise Edition and Standard Edition. You can easily install Oracle xml db by using the
Oracle Database tutorial compilation Stored Procedure false
In this case, if the Stored Procedure compilation is forcibly terminated, the Recompile stored procedure will find that it is still suspended. This is mainly because the session is INACTIVE
1. Create an Oracle package definition. Use the ref cursor data type to process the Oracle result set. Ref cursor is a pointer to the result set returned by PL/SQL queries. Unlike a normal CURSOR, ref cursor is a variable that references the CURSOR.
This article introduces some usage of oracle Regular Expression functions, including matching. Oracle10g provides the function of using regular expression in queries, it is implemented through various functions that support regular expressions in
For more information about Oracle basic statement instance code, see.
Basic Oracle statements
1. Enter the interface
Go to the sqlplus interface of oracle in cmd: sqlplus scott/orcl @ orcl
2. Connection Management
Connection command conn
Oracle data recovery-if you need to learn how to delete data files due to incorrect OEM operations, refer.
A complete group deletion that contains data files and content is sent out. If you use it manually, I am afraid DBAs will be very careful in
Sometimes you need to judge when inserting data in an oracle database. For example, you can write only one entry per person per day.When inserting data, you must first make a judgment to check whether there is an operation record for this person on
The following describes how to write SQL statements for mysql/Oracle/mssql to retrieve the first few pieces of data. If you need them, refer to them.
If you use this statement in ms sqlserver:
The Code is as follows:
Copy code
Creating and Deleting Users is a common operation in Oracle user management, but it implies the knowledge of the system and object permissions of the Oracle database system. Understanding the Authorized operations and principles of Oracle users can
I will not talk about the role of the over () function in oracle. Next I will share my understanding of the over () function usage and some examples of over () function applications.
Example 1
The Code is as follows:
Copy code
The previous night, the Big Table deletion operation was tested, and the multipart deletion operation did not delete 100000 commit records once. Because the Stored Procedure printed the execution time, the network was disconnected and the execution
DBTwin Database ClusterShows the principle structure of the database cluster:
20130312210124. png(27.47 K)21:05:42
DBTwin implementation principle
20130312210230. png(19.52 K)21:05:42
Transactions are a basic but important concept in
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