In the Oracle database, when the data queried is large, it needs to be formatted. Otherwise, "####" is displayed when the result is converted to a string.
Select
Rtrim(To_char (
5279.59
*
100
*
30,
'
Fm9999999990.9999
'),
'
.
')
Make a table insert trigger to modify only the fields of the inserted rows.
Create or replace trigger tr_rme_slotBefore insert on rme_slotFor each rowBeginIf (: New. Position> = 0 and: New. Position : New. slot_name: = '0' | to_char (: New.
Authorized users can access database objects and their contents. Prompt that after a user has the permission to Process Tables of other users, the user must have public or private synonyms of these tables before he can reference tables of other
You can see this article on scid.ArticleFor ORACLE data import, the method is simple and effective, and it is useful for data preparation for performance testing, so let's take a look.
Before you perform a performance test, make sure that there is
Physical storage structure of Oracle Database Structure
1
, Physical storage structure
1.1
Data Files
Data files are used to store all database data. Storing data in multiple data files and storing data files in Different Hard disks can
Simple Oracle Stored Procedure
-- The salary is increased by 500, old. SAL> 2500 not added, new. SAL> 2500 is changed to 2500;
Select * from EMP -- before salary increase
Create or replace procedure sp_add (add in number) is -- add parameter
Oracle Study Notes --- (5)
V.
1. define abstract data types/*Create or replace type animal_ty as object(Breed varchar2 (25), -- animal typeName varchar2 (25), -- nameBirthdate date, -- Date of birthMember function age (birthdate in date)
After a long period of learning to create Oracle tablespaces, I would like to share with you that you will certainly have a lot of gains after reading this article. I hope this article will teach you more things.
1. First query free space
1. Create a role
Create role "qiudingrole" not identified;
Grant "Connect" to "qiudingrole ";Grant "dba" to "qiudingrole ";Grant "resource" to "qiudingrole ";
2. Create a tablespaceCreate smallfile tablespace "diaocha" datafile 'd: \ oracle \
1. Basic server maintenance
1. 1. Create an Oracle database in the Windows operating system. After the Oracle database is installed, the database has been created. You do not need to create a database again. You only need to create a tablespace
Reprinted: http://www.cnblogs.com/BeautyOfCode/archive/2010/09/21/1832205.html
1. Database Administrator
Overview: Each Oracle database should have at least one Database Administrator (DBA). For a small database, one DBA is enough, however, for
Create or replace procedure p_pagination(Pindex in number, -- the page number starts from 1Psql in varchar2, -- query statementPsize in number, -- number of rows per pagePcount out number, -- total number of pagesV_cur out sys_refcursor -- return
10.0.0.11 is the IP address of my master server, 10.0.0.111 is the IP address of my slave server, and testdbase is the SID number of the database,
The operating system version is RedHat Linux 8.0. The database version is Oracle 9.2.0.1.
1.
--
Create a package
Create
Or
Replace
Package Types
As
Type cursortype
Is
Ref
Cursor
;
End
Types;
-- Create a stored procedure and return parameters of the cursor type Create Or Replace
1. go to Oracle and download a file named odac111_20xcopy.rar. decompress the file. There is an instantclient_11_1 folder in it. 11-1 is the version number of Oracle, 2. place the instantclient_11_1 folder in C:/Windows/and modify the system
Compare Oracle and MSSQL. The main differences and advantages of server. What are the differences in specific use?
Openness:
SQL Server can only run on windows without any openness. The stability of the operating system is very important
In the Oracle PL-SQL, left and right connections can be implemented in the following way:Statement segment:
Select
Emp_name, dept_nameForm employee, Department
Where
Employee. emp_deptid (
+
)
=
Department. deptid
This SQL
From: http://www.itpub.net/showthread.php? S = & postid = 8169093 # post8169093
For the rownum problem in Oracle, many documents do not support>, >=, =, between... and. The preceding symbols can only be used (,> =, =, .. and will prompt SQL syntax
Oracle Study Notes --- (3)
3.
1. Lock
To prevent users from concurrently accessing and modifying resources at the same time, ORACLE uses different types of locks to control concurrent access to data to prevent destructive interaction between
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