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 =
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
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
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:
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
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
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
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] |
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,
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
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.
[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
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.
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
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.
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
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
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
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.