Oracle table Space Maintenance common commands

---view tablespace name and file location: Select Tablespace_name, file_id, File_name,round (bytes/(1024*1024), 0) Total_space from Dba_data_ Files ORDER BY Tablespace_name---How to see if the Oracle Tablespace is automatically expanded

Oracle's Common modification tables and statements for fields

Single-line Comment:--Multiline Comment:/* */modifying table Structures in OracleAdd FieldALTER TABLE table_nameADD column_name data_type;Delete a fieldALTET TABLE table_nameDROP COLUMN column_name;modifying field typesALTER TABLE table_nameALTER

Oracle Common functions

One, operatorArithmetic operators: +-*/Can be used in SELECT statementsJoin Operators: | | Select Deptno| | Dname from Dept;Comparison operators:> >= =! = Logical operator: not and ORSet operators: Intersect, Union, union all, minusRequirement: The

Resolution for Oracle number type query accuracy loss

Oracle Number type query, sometimes you encounter the problem of loss of precision, the following shows you a resolution of the Oracle Number type query precision loss method for your reference.One, the Oracle number type query needs to find the

Oracle Regular intercept String function

Now there is a demand, the database of a hand to lose the ' birthplace ' field, in accordance with a certain standard interception display on the report, for example, if the ' birthplace ' of the content is: ' Shandong province Weifang Changle

The way Oracle Delete inner, cascade deletes the data of the child table.

Example 1:Delete from where exists (Select1fromwhere a.id=b.id)Example 2:The Rebatepolicy table is the primary table, Rebatepolicyitems is the primary key from the table that has the primary table, and now the corresponding sub-table of the data

[Oracle] Oracle Learning Summary (1)

1. View all users in the Oracle database: (1) Log in to the database using an account with DBA authority; (2) Execute select username from dba_users. SQL> conn sys input password: connected. SQL>Select from dba_users; USERNAME-----------------------

Oracle Query Chinese data garbled

First, in Oracle, enter select Userenv (' language ') from dual to find out how the encoding used by Oracle is, and mine is simplified Chinese_china. ZHS16GBK. AfterStart-run-Enter regedit-carriage Enter the registry, click

Stored Procedures Oracle Learning (i)

First, IntroductionStored procedure: is a program created in the database for others to call. Actually, I feel like I'm defining a method.Two, no parameter stored proceduresAs below, the classic output "Hello world" to get started stored

Oracle Regular expression function-regexp_replace use example

The original is here: Poke6 parametersThe first one is the string enteredThe second one is the regular expressionThe third one is the substituted characterThe fourth is to identify a regular expression match starting from the first few characters.

Oracle database any user password can be logged in with the SYSDBA role

* Related environment: Windows 10, 64-bit operating system, Oracle 11gr2;toad for Oracle12.1 Recently in the Learning Oracle database, using Toad for Oracle to view the database information, found in the SYSDBA role in the database, regardless of

ORACLE migration MySQL Essay

1. Convert the Oralce database on the server to DMP and then import the local temp library2. Change the date in the Oracle table to timestamp;A. Create a table first CREATE TABLE Type_table_info ( table_name varchar2 (), column_name varchar2 (

Oracle General Operations

1. Create a tableSQL code 650) this.width=650; "class=" star "src=" Http://1395573703.iteye.com/images/icon_star.png "alt=" Favorite Code "style=" border:0px; "/> Create Table Test ( ID VARCHAR2 (10), Age Number ); 2.

Oracle creates data

Oracle creates data in three ways:I. Using DBCA (Database configuration Assistant);Second, the use of the CREATE Database Directive;Third, the database is created when the database software is installed;I. Creating a database using DBCAMy

Oracle recovery method for accidental deletion of data

Oracle deduplication Data Recovery is divided into two methods:SCN and time stamp two methods of recovery. I. Recovering deleted and committed data through the SCN1. Obtain the SCN number of the current databaseSelect Current_scn from V$database;

How Oracle sets up auto-increment

1) Create a sequence: 1234567 createsequenceSEQ_TEST --字段名minvalue 1        --最小值maxvalue XXXXX      --设置最大值start with 1      --从1开始计数increment by1    --每次加1个nocycle           --一直累加,不循环nocache;          --不建缓冲区 2) sequence

SUBSTR () InStr () Usage in Oracle

--substr (string, intercept start position, intercept length) = return the intercepted wordSelectSubstr'miaoying',0,1) fromDual--The returned result is: MSelectSubstr'miaoying',1,1) fromDual--The returned result is: m--description 0 and 1 both

[Oracle] solves the problem of Oracle's garbled language in CentOS 7

First in the formation of Chinese garbled reason is due to the character set is not unified, different character sets in the process of conversion will inevitably appear garbled, of course, do not exclude can be converted. So to solve the problem of

The Java implementation invokes cursors and packages in Oracle

Today the Oracle in the package and the cursor learning, no nonsense, some of the online code is wrong, copied to copy, on their own practice under, make a record. Direct, on the codeCreate your own package with Plsql, which is divided into Baotou

How to install Oracle 11gR2 on CentOS 6.7

1. Software Preparation:centos6.7 (64-bit);ORACLE11GR2 ((Linux x86-64))2, execute the following command to install the relevant package:Yum-y install \Binutils \COMPAT-LIBCAP1 \COMPAT-LIBSTDC++-33 \compat-libstdc++-33*.i686 \Elfutils-libelf-devel

Total Pages: 2147 1 .... 1451 1452 1453 1454 1455 .... 2147 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.