Original address Oracle Declaration constantsConstants are given an initial value when declared, and are not allowed to be re-assigned at run time. declare constants using the constant keyword. Declaring constants1 DECLARE2 PiCONSTANT Number:=3.
1. Basic StructureCREATE OR REPLACE PROCEDURE Stored procedure name(Parameter 1 in number,Parameter 2 in number) isVariable 1 INTEGER: = 0;Variable 2 DATE;BEGINEND Stored Procedure Name2.SELECT into STATEMENTStoring the results of a select query in
Ora-00257:archiver error. Connect internal only, until freed. Cause:the archiver Process received a error while trying to archive a redo log. If the problem is not resolved soon, the database would stop executing transactions. The most likely cause
Inside connection: Is our normal table connection, display ID match dataSELECT * fromA,bWHEREThe a.aid=b.bid only takes out the matching data. Outer joins: Divided into left and right connectionsLeft join: First remove the left table (a table) data,
1. If you update a table, without an error, waiting for a long time is not over, it is likely that the table is locked.2. View Locked objectsSelect sid,serial#,username,schemaname,osuser,machine,terminal,program,owner,object_name,
1. Character data type (Char,varchar2,long)CHAR: To store an alphanumeric value, the column length of this data type can be between 1 and 2000 bytes. If not specified, it consumes one byte by default, if the user enters avalue is small at the
Add to Oracle User's ~/.bash_profilenls_lang= "Simplified Chinese" _china. Zhs16gbkExport Nls_langThen save the exit,SOURCE ~/.bash_profileLogin again Sqlplus garbled on the lost.Note: The specific values of Nls_lang are modified according to the
Sys_guid ()-Unique indexIn Oracle, you can use Sys_guid () to generate a GUID that is equivalent to NEWID () in MSSQL.The resulting data in oracle9i and Oracle 10g is 32 bits, such as: 234E45F0077881AAE0430AA3034681AAHowever, the GUID in Oracle is
--View User system permissionsSELECT * from Dba_sys_privs;SELECT * from User_sys_privs;--View User object permissionsSELECT * from Dba_tab_privs;SELECT * from All_tab_privs;SELECT * from User_tab_privs;SELECT * from Dba_roles; --View all roles--View
I always thought that Oracle would only lock in the data that needed to be modified, but in parallel, the parallel update would lock the whole table, the following experiment:Session1:Sql> select Sid from V$mystat where Rownum=1;Sid----------11Sql>
(Reprinted) TNSPING command, reprinted tnsping command
Oracle Net tool (command) tnsping is an OSI Session Layer tool used:
1) Verify the name resolution (name resolution, of course, the name of the oracle Network Service)
2) whether the remote
Misunderstanding of Oracle parallelism 2: locking the entire table
I have written a misunderstanding about Oracle parallelism before. 1. In fact, you didn't use parallelism. I always thought that Oracle would only lock the data to be modified. But
Oracle tables cannot be DDL or stored in a stored procedure.
In the process of data migration, we will face two common hang scenarios:
1. You cannot modify or increase the length of a field in a table.
2. stored procedures cannot be
Export oracle comments and oracle comments
Indicates that a user has a comment + Table comment + field details + field comment
select ATC.OWNER, atC.TABLE_NAME, utc.comments, ATC.COLUMN_NAME, ATC.DATA_TYPE,
The SQL query result set is sorted by specified conditions.
Oracle considers null to be the largest.
Sort in ascending order. By default, the null value is placed behind.
Sort in descending order. By default, the null value is ranked first.
There
How Does Oracle Randomly Read values from a specific combination?
Here, we will use the DBMS_RANDOM package and the case when statement as follows:
1. Use the DBMS_RANDOM.RANDOM function to randomly generate a value and then modulo the value. If we
Create a tablespace in an Oracle database and an oracle database
-- Create a tablespace in the Oracle database
Create tablespace new_taspace
-- Tablespace name
DATAFILE 'd: \ NEWTABLESPACE. dbf' -- the data file and location associated with the
Oracle Database beginners opening
Preface:
For project reasons, I recently started to learn Oracle databases. Oracle is currently one of the most popular databases, with powerful functions and excellent performance. It is relatively difficult to
[Book Reviews: Oracle query optimization and rewriting] Chapter 4: book reviews oracle
[Book Reviews: Oracle query optimization and rewriting] Chapter 4
BLOG document structure
I. 1 Guide
After reading this article, you can master the following
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