It seems that some people still do not understand the true meaning of the schema, and now I have to tidy up a bit, I hope to be helpful to everyone.Let's start by looking at their definition:ASchemais a collection of the database objects (used by a
In Oracle, the default listener port number is 1521, once someone scans the port number will know that this server is an Oracle database server, there is a great security risk, here, teach you how to modify the Oracle default port number is 9999:1.
DUAL is a table automatically created by Oracle Database along with the dataDictionary. DUAL is in the schema of the user SYS, but was accessible by the name DUALto all users. It has one column, DUMMY, defined to be VARCHAR2 (1), and contains oneRow
Transferred from:http://chenxy.blog.51cto.com/729966/1684591, the same point a. You can delete data, where truncate is used for full table emptying data, and delete can choose to delete 2, different points: A. rollback, delete supports the rollback
1, get the last day of the monthSELECT To_char (Last_day (to_date (' 20140125 ', ' YYYYMMDD ')), ' YYYYMMDD ') Lastday from DUAL2, get the last day of the end of last month:Select To_char (Add_months (Last_day (' 2008-08-08 ', ' yyyy-mm-dd '), -1),
Recently encountered a case:Status: HP-UX operating system, Oracle 10.2.0.4 RAC, MCSG mode, 2 OCR and 3 voting disk each correspond to one LV in the same concurrent volume groupPurpose: To mirror shared storage, the technology used is HP's own HP
--Create Target library dblinkcreate database link target library connect to account identified by "password" using ' IP Address: port/target library '; --Query created Dblinkselect owner,object_name from dba_objects where object_type= ' DATABASE
This command uses a single statement to complete updating and inserting data from one or more data sources to the table. Oracle 9i, using this command must specify both the update and insert keywords, and ORACLE 10g makes the following
One, the Oracle data dictionary is composed of the following views mainly:1.user ViewUse User_ as a prefix to record information about user objects2.all ViewAll_, which is used to record the information of the user object and the object information
1.dblink IntroductionDblink database link is a link to a database that spans the local database2. Using syntaxBasic syntaxCREATE [shared][public] Database link link_name[CONNECT to [user][current_user] identified by password][Authenticated by the
There are two logging modes in the Oracle database: Non-archive log mode and archive log mode.In an Oracle database system, in order to prevent the content in the log file from being overwritten when it is recycled, the Oracle systemwill already A
Oracle uses triggers to implement self-increment columnsOracle does not have the self-increment feature, and MySQL and SQL Server use Auto_increment and identity respectively to achieve self-increment. Oracle to implement only through the sequence
Recently, we often use time functions, write a note here, record your income, and hope to help you.1, for a time such as Sysdate:2015/1/30 14:16:03 how to get only the month and day, at the same time its data type does not change it?The easiest to
How to set the oracle primary key
Primary key:
1. primary key constraint: A table can have only one primary key constraint. The primary key can be a single field or multiple fields. In either case, all the fields are not null.2. Unique constraint: A
How to obtain index recommendations in Oracle 10 GB
One of the best features of racle 10G is the Advisory Framework, a collection of optimization consultants that can help you make full use of your database. One of them, the SQL Access Advisor,
Oracle Study Note: Tablespace and Data Files, oracletablespace
1. how to create a tablespace that employs the most common features
1 create tablespace tb_name #create bigfile tablespace tb_name2 datafile ‘/u01/dbfile/orcl/tb_name.dbf’3
How to import additional fields in Oracle as null values
Q: We have migrated our Oracle database to a new environment. Some customer tables exist in two databases at the same time, but those tables in the new environment have some additional fields.
Exploration of two oracle Time Functions
I have recently used time functions. I want to take a note here to record my income and hope it will be helpful to you.
1. For a time such as sysdate: 14:16:03, how can I get only the year, month, and day
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