As we all know, in MySQL, it is very easy to automatically increment the primary key. You only need to add auto_increment to the primary key definition, but not in Oracle, and it takes a few steps to complete 1. Create a table Create tables account
See deterministic many times, have been very puzzled, today did an experiment. We cheat Oracle to say it is a deterministic function, which is called only once in SQL. If you do not use deterministic, you can see that the values are different. after
--query users who have logged in for 3 consecutive days1 Create a table first, as follows:1 Create Table User_data 2 (3user_idnumber,4login_time DATE5 );2 Inserting user login data:1 Insert intoUser_data (user_id, Login_time)Values('10002',
The Dbms_random package in Oracle encapsulates a number of functions that generate random numbers and random strings, which are commonly used in the following two:Dbms_random. VALUE function This function is used to produce a random number in two
1, grant to database user (object to User table) Grant privilege[, ...] On object[, ...] to {public | GROUP group| Username}privilege:select: Querying insert: Inserting update: Updating delete: Deleting Rule:all: All Grant Select,insert,update on
0The previous chapter (http://www.cnblogs.com/souvenir/p/3884904.html) We used a lot of time and a long space to introduce Oracle's entire installation process, hoping to help everyone. Oracle automatically starts the database service when it is
Oracle queries table information to obtain table fields and field comments. oracle Fields
Obtain table fields:
Select * from user_tab_columns where Table_Name = 'user table' order by column_name
Get table comments:
Select * from user_tab_comments
Calculate the CheckpointLag of the rep process of the OracleGoldenGate (OGG) destination end.
This article is original. For more information, see the source.It is estimated that the Checkpoint Lag calculation method of the rep process on the target
FAQs about Oracle Installation-1
Installing Oracle may be a simple task for some people, but the installation process contains a wealth of knowledge points, especially on the Linux platform, we may encounter a variety of strange problems. We can see
How to create and delete tablespaces in Oracle cainiao
1. When creating a temporary tablespace and creating a tablespace, dbf Files are generally stored in the directory where the datafile file is stored (typically under the folder named by
CentOS6.5 Oracle11G-R2 installation, uninstall
CentOS6.5 Oracle11G-R2 installation, uninstallResources (including all my installation processes, system backup files): http://download.csdn.net/detail/attagain/7700437
I. Hardware requirementsCommands
In the Oracle11g environment, use utl_smtp to create a storage process for sending emails
If there are too many email storage processes on the internet, I will not forward them. Let's make a simple example;
Create or replace procedure Send_mail
Oracle uses the instr or like method to determine whether the string is contained. oracleinstr
The first thought is contains. The usage of contains is as follows:
select * from students where contains(address, 'beijing')
However, a condition for
[Oracle] pl/SQL -- paging process demo
This SQL statement can be used to query records at specific locations in a table.
-- Query Method: select * from (select t1. *, rownum rn from (select * from books) t1 where rownum 2;
-- Use paging write
[Oracle] User Creation and permission management
# Administrator permissions are required to create a user.SQL> create user lzz identified by lzz123; // a common user is created, but not unlocked.# Change the password of a user# For yourself:SQL>
Dbca create database ORA-01034ORACLEnotavailableSYMPTOMS
When using dbca to create a database, when all the parameters are set up, the ORA-01034 ORACLE not available,
For example
CAUSE
There's a script in ORACLE_HOME/sqlplus/admin which is
Common oracle functions (2)
1. TRIM ([{LEADING | TRAILING | BOTH} [trim_character] | trim_character} FROM] trim_source) FunctionParameter: If leading is specified, the oracle database removes any starting characters equal to trim_character.Parameter:
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