Start by understanding 2 concepts:1. SCN (System change number), one will only increase the numbers that do not decrease, exist in the Oracle smallest unit block, and the SCN will increment when a block changes.2. The database rollback segment
Cases:Rank () over (partition by deptno ORDER by Sal desc) rank Explain:Deptno--Department, SAL--wagesOver : on what condition.partition by E.deptno: divided by department number (partition).ORDER BY e.sal Desc: Sort by salary from high to low
MySQL imports data into Oracle.To build an Oracle table:CREATETABLE"Gg_user" ("USERID"VARCHAR2 (255 BYTE)NotNull, "Ispart"VARCHAR2 (255 BYTE)DEFAULTNull, "Actualpositionid"Number (11)DEFAULTNull, "Beginworktime"TIMESTAMP (0)DEFAULTNull,
1. Close an instance[Email protected] ~]$ Sqlplus/as sysdbasql> shutdown immediate;2. Back up the SPFile filesql> create pfile= '/home/oracle/acct1.pfile ' from SPFile;3. Modify the Pfile file Cluster_database to False*.cluster_database=false4. Use
Here is an example of my own test environment:1. The tablespace's block_size is 8192 bytes, or 8KBytes. From the data dictionary, the max_size is 2147483645, which is about 15.9TBytes.2. When creating a tablespace, you can choose Bigfile or
1. Open a session Session1Sql>select SID from V$mystat where Rownum=1;Sid158Sql>create table T (x int primary key);Table createdSql>insert into t values (1);Commitsql>update T1 set t=10 where x=1;2. Open a session againSql>select SID from V$mystat
One, roll back to the retention point
Use the savepoint statement to create a savepoint in the current transaction.
Use the ROLLBACK to savepoint statement to roll back to the saved point that was created.
Second, the data state
Audit audit users to see what the user is doing, and Oracle will store audit trail results in OS files or databasesActivating auditsConn/as SYSDBAShow parameter audit_sys_operations; View Audit parametersAlter system set AUDIT_SYS_OPERATIONS=TRUE
1. Linux InstallationMainly do not set the home partition of the special large2. Install some of the necessary packages.Yum Install-y binutils.x86_64 elfutils-libelf-devel.x86_64 Compat-libstdc++- -. x86_64 Compat-libcap1.x86_64 gcc.x86_64 gcc-c++.
-Cross connection (produces Cartesian product)SELECT * from the EMP Cross join dept;--Natural connection (can automatically match related fields and eliminate Cartesian product)SELECT * FROM EMP Natural JOIN dept;--join ... The using,using clause is
How does an Oracle database Delete redundant duplicate data ?, Oracle Database
This problem is often encountered in Oracle. There is a table a, where multiple data with different IDs but the same information exists. The requirement is to delete
Explain the steps for implementing seamless migration of virtual machines through Oracle Ravello cloud service, oracleravello
What is Ravello?
Seamlessly deploy existing data center loads based on VMware or KVM to the Oracle cloud infrastructure,
How can I view the table space usage of an oracle database ?, Oracle Database
-- 1G = 1024 MB
-- 1 M = 1024KB
-- 1 K = 1024 Bytes
-- 1 M = 11048576 Bytes
-- 1G = 1024*11048576 Bytes = 11313741824 Bytes
SELECT a. tablespace_name "tablespace
Oracle trigger demo sharing, oracle trigger demo
-- Trigger
-- Statement-Level Trigger (executed only once)
-- Trigger occurs before adding
Create or replace trigger tg1after inserton emp01declare n int; begin select count (*) into n from emp01;
Oracle PL/SQL basic syntax summary, oracle basic syntax
Basic Oracle PL/SQL Syntax:
Declare (optional, declaring a variable or cursor)
Begin (required, where the statement is executed)
Exception)
End; (required. The semicolon cannot be omitted from
Installation and use of the oracle11g Database
I installed oracle databases twice at school, but I never learned how to use them. What is missing is creating user tablespaces.
Temporary tablespace -- data table space -- authorize the user
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