The principle of 1 and Dataguard is dataguard by establishing a primary and standby group to establish its reference relationship. Once standby is created, Dataguard passes the redo of the primary database (PRIMARY) to the standby database and
1. Define the primary key as the auto-grow identifier typeMysqlIn MySQL, if the primary key of the table is set to the auto_increment type, the database is automatically assigned a value for the primary key. For example: Customers (ID auto_increment,
Oracle cannot support directly returning a table type like MSSQL, so create a custom type first. This is used for nested tables (Nested table).--Nested tablecreate or replace TYPE split_str is TABLE of VARCHAR,/--functioncreate or replace FUNCTION
The correct syntax is:Select /*+ Index (x idx_t) */ * from T X where x.object_id=123/*+ * * and comments like, more than comments a "+", this is hintThe above hint means that Oracle is forced to take the index when executing this SQL.If the syntax
Recently read Oracle data, understand the concept of rownum, previously only known to the database table simple additions and deletions; After seeing the concept of rownum, I suddenly thought that a lot of business scenarios should be applicable,
1. System Kernel parameter setting Cat >>/etc/sysctl.conf RHEL 6 Shmall and Shmmax are configured to use the default settings, Shmmax is generally set to half of the system memory, 4195057664=4GB After modification, the Execute command takes effect:
One, character functionsThe character function is the most commonly used function in Oracle, so let's see what the character functions are:Lower (char): Converts a string to a lowercase format.Upper (char): Converts a string to an uppercase
I. What is PL/SQL?PL/SQL (procedural language/sql) is an extension of Oracle in the standard SQL language.PL/SQL not only allows the embedding of the language, but also defines variables and constants, allows the use of conditional and circular
OS authentication1. In Sqlnet.ora (located in the $oracle_home/network/admin directory) file, use VI Edit to comment out the #sqlnet. Authentication_services = (NONE) the row. 2. Check whether the current OS user belongs to the DBA group.3. Execute
How to get Oracle Labs to improve performance when not experimenting--win7 exampleModel: ThinkPad E431System: WIN7When the notebook used by the experiment does not use the database, it is recommended that Oracle be shut down so that it frees up the
Oracle data import and export imp/exp is equivalent to Oracle data restore and backup. The EXP command can export data from a remote database server to a local DMP file, and the IMP command can import the DMP file from a local to a distant database
the SYS user and system user Oracle installation automatically generates SYS users and system users (1), sys user is superuser, has the highest privileges, has the SYSDBA role, has the permission to create database, the user's default password is
Oralce archive log enabling and disabling example, oralce Archive
Check whether the oracle database is in archive ModeSQL> select name, log_mode from V $ database;
NAME LOG_MODE------------------------------------------TEST NOARCHIVELOG
SQL> archive
Batch Data insertion in oracle
Once a function was developed, tens of thousands of pieces of data provided by others need to be imported,
There are about 80 thousand pieces of data in a *. SQL file.
Insert into testtable (id, name) values (1, '1')
Oracle Database Password Reset, Import and Export command example application, oracle Import and Export
The reset method is as follows: Open the CMD command prompt and enter the following command to reset:
Enter sqlplus/nolog, and press ENTER
SQL>
OracleDBA user management, oracledba user management
I would like to share with you the management of users in Oracle. The following are my Oracle learning notes stored on the database. I will share them with you today. For more information, see the
Dba_hist_ SQL _plan is an important view for querying the execution plan of oraclesql.
I would like to express my gratitude for the help of elders who have prepared this article.
The applicable oracle database version is oracle 10 Gb or later.
This
Notes for writing high-performance SQL statements, high-performance SQL statements
1. is null and IS NOT NULLNull cannot be used as an index. Any column containing null values will not be included in the index. Even ifIf there are multiple columns
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