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.
There are two connection functions in the mysql character or field content: CONCAT_WS () and CONCAT (). Let's take a look at their simple examples.
Mysql tutorial concat usage
There are two connection functions in the mysql character or field
SQL statement for querying by page in Oracle Database
Query SQL statements by page in the oracle database tutorialOracleSelect *From (select rownum r, t1. * from table name t1 where rownum Where t2.r> = m
For example, to retrieve 10 or 20 records
Create or replace procedure pro_test
Is
Begin
Select * from t_test;
End pro_test;
Is this stored procedure correct?
Yesterday, this was a long delay (the select statement was used in a stored procedure, but neither the cursor nor the into
1. Two different servers;
2. synchronize data from oracle10g at regular intervals (every day) to sqlserver2005;
3. For security considerations, the customer service does not provide the sqlserver2005 account password. We only need to provide the
Oracel alter table adds the primary key to the table
SQL>SQL> create table emp (empno number (4) not null,2 ename varchar2 (10 ),3 job varchar2 (9 ),4 mgr number (4 ),5 hiredate date,6 sal number (7, 2 ),7 comm number (7, 2 ),8 deptno number (2 ));
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 conditions in SQL are often used in select, delete, and update statements. The range condition only contains: (not) between... and.
2) oracle's between... and... are closed intervals, that is, the number of two ends, for example:
SELECT *
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
Insert into select statement
Statement format: Insert into Table2 (field1, field2,...) select value1, value2,... from Table1
The target table Table2 must exist. Because the target table Table2 already exists, We can insert constants in addition to
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.
I can only solve one of the problems I encountered here, and there may be other problems that I have not encountered.Symptoms:Log on to EBS. Normally, an error is returned when you click the Form to bring up the Form.The prompt is as
The article will analyze the orecle To_Date () date operation. If you need it, you can refer to it. The function usage is very simple. It is mainly a reference table.
First look at the syntax of the to_date () function
To_date (string1, [format_mask]
Using the built-in function paging will certainly be more efficient. This article introduces an efficient paging Method for Oracle row_number (). For more information, see.
Step 1: Use rownum first
The Code is as follows:
Copy code
Replace the replce, regexp_replace, and translate functions with strings in ORACLE. I will introduce them to you.
I. Syntax
Repalce (str_source, str1, str2) replaces str1 string in str_source with str2 string. When str2 is null or '', it works the
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
This article will introduce you to the solutions to the slow connection of PL/SQL to Oracle in a virtual machine on a Windows host.
When I used PL/SQL to connect to the oracle database in the virtual machine on my Windows host last weekend, it took
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 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