Query the table size and tablespace size in Oracle. | medium | small

The table size has two meanings. One is the number of physical spaces allocated to a table, regardless of whether the space is used or not. You can query the number of bytes as follows:Select segment_name, bytesFrom user_segmentsWhere segment_type =

Oracle Study Notes (4) PL/SQL

First, give a smallProgram: 1 Set Serveroutput On 2 Declare 3 Maxrecords constant Int : = 100 ; 4 I Int : = 1 ; 5 Begin 6   For I In   1 .. Maxrecords Loop 7 Insert  

Oracle Classic Books

Many netizens asked how to choose entry books and learn about Oracle's good books. Here are some common books. First, I declare that this article only involves foreign works, because there are very few domestic works, most of which are pieced

Highlights of Oracle usage for the first time

I remember that Oracle I installed more than a year ago has never been used. When I was preparing for use, I encountered various problems. I had to find a solution on the Internet to solve them one by one. I 'd like to note it in case I forget it:

Accidental deletion and data recovery of Oracle learning notes

Note: When I changed the bug, I accidentally deleted a piece of data from the generated database, so I was shocked and found it again. You can use the following methods to delete a file: Use the followingCommand to view the current database

Oracle expdp Import/Export

Let's popularize the process of using expdp to back up the Oracle database. Export the database on server a (centos): (all SQL statements that can be executed in server sqlplus can be remotely executed in client PLSQL. Can sqlplus be operated

Summary of column and column conversion in Oracle

1) Row-to-column Conversion Table Structure: Student Create TableStudent (User_name Varchar2(20), CourseVarchar2(20), ScoreFloat) Initialize data: Insert Into Student ( User_name , Course, score) Values (' Zhangyue ' , ' Enlish ' , 85

Oracle Stored Procedure

Create or replace procedure proc_update_staffinfoIsTemp number;Cursor cur_staff is select * From hr_rs_staff where deleted = 0 and sysdate> entryTime + 365;BeginFor u in cur_staffLoopTemp: = Mod (floor (sysdate-to_date (U. entryTime, 'yyyy-mm-dd'), 3

Oracle exception [ORA-22908: NULL Table value reference] Problem Analysis and Solution

The scenario is as follows: -- Creation type) Create Or Replace Type list_obj Is Table Of Number ; -- Create Table Structure Create Table Test (name Varchar2 (30 ) Primary Key Check (Regexp_like (name, ' ^ ([A-Z] | [0-9] |

Oracle converts sqlserver

Recently, a Project Database of the company was converted to SQL Server (2000 or 2005) as a database of Oracle. At the beginning, I found some information on the Internet, I found a tool called swissql. I tried it and failed to find it again. later,

Solution to the. nettiers and codesmith problems for Number Fields in Oracle

When the field type in Oracle is number (m, n), it is generated using the codesmith +. nettiers template.CodeWhen the M and N values are specified, an exception occurs in data type conversion. The current solution is to only specify the data type as

An error occurred while executing the update statement in Oracle.

Today, I suddenly got stuck when I executed the following statements: Update t_properties setContent1 = 'starttime ==@ 2012-12-1200:00:00 @; @ ID ==@ 750; @ permoney ==@ 1100 @@;; @ permember ==@ 20; @ firstprizeprobability ==@ 5; @ endtime ==@ 201

Dbprovider connection to Oracle 10 Gb Database

When connecting Oracle using. NET 2.0:In the 1.1 era, both using system. Data. oracleclient and. NET 2.0 were improved to dbprovider (system. Data. Common,It looks pretty, but it's okay when I use the Oracle stored procedure to return the result set.

Two typical ORACLE trigger examples

[Case 1] Question:-- Trigger:-- Add employee information. The serial number is used as the automatic serial number (generated by serial number ),-- If the wage is less than 0, it is changed to 0. If the wage is greater than 10000, it is changed to

Import the Oracle database file dmp

Before performing the following operations, you 'd better create a user name and password with the same name as the backup, as well as permissions, and table space. The following is an operation in the CMD command window to see how it is imported.

Web server configuration of ADO. Net EF + Oracle

1. Install the simplified dotnet35sp1 version 2. Register eforacleprovider: C: \> gacutil/I eforacleprovider. dll Gacutil.exe and eforacleprovider. dll are available in the current directory. Eforaclesampleprovider ProjectSource codeObtained

Oracle System Table query

From: Http://www.gbunix.com/htmldata/2004_06/2/5/article_53_1.html The data dictionary dict always belongs to the Oracle user SYS.1. User:Select username from dba_users;Change PasswordAlter user spgroup identified by spgtest;2.

Oracle recursive query

In database queries, data in the tree structure is often queried. You need to use the data of a field as the parent node of the next record to continue the query, if you do not know how many nodes there are, writing SQL queries again and again will

Efficiency of exists and in oracle

There are two simple examples to illustrate the efficiency of "exists" and "in ". 1) select * from T1 where exists (select * from T2 where T1.a = T2.a ); Small Data size of T1 and large data size of T2, T1 2) select * from T1 where T1.a in (select

Zhuan Oracle maintenance Common SQL statement Summary

How to remotely determine Oracle DatabaseOf InstallPlatform Http://hi.baidu.com/dingqiang123/blog/item/1bdeccee9d9799f7b3fb9535.html Select * from v $ version; View table space usage Select sum (bytes)/(1024*1024) as free_space, tablespace_nameFrom

Total Pages: 2147 1 .... 1886 1887 1888 1889 1890 .... 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.