/U01/app/Oracle/product/11.2.0/dbhome_1/root. sh
Running Oracle 11g root. sh script...
The following environment variables are set:
ORACLE_OWNER=Oracle
ORACLE_HOME=/U01/app/oracle/product/11.2.0/dbhome_1
Enter the full pathname of the local
I. date type usage
The date type subtraction only obtains the number of days.SQL> SELECT sysdate-(sysdate-1) FROM dual;SYSDATE-(SYSDATE-1)-------------------1Make an experiment:Create table t2 (d1 date, d2 date); -- create a tableInsert into T2
1. query the first row of records:
Select * from table limit 1
2. query records from row n to row mSelect * from table1 limit n-1, m-n;
SELECT * FROM table LIMIT 5, 10; returns records FROM 6th rows to 15th rows
Select * from employee limit 3, 1;//
Logon username for Linux: Oracle
Sqlplus/as sysdba
Alter system set OS _authent_prefix = ''scope = spfile;
Startup force;
Create user oracle identified externally;
Grant connect to oracle;
Exit the current session and then su to oracle
Exit
Grid plug-and-play (GPnP)
Grid plug-and-play is used to help administrators maintain clusters. Some manual operation steps required to add or delete nodes can now be automatically implemented by GPnP.
GPnP is not a separate concept. It relies on the
BecauseAUD $Audit-related tables such as tables are stored inSYSTEMTherefore, to avoid affecting system performanceSYSTEMTablespace.AUD $Move to another tablespace. You can use the following statement to move:
Oracle@www.bkjia.com ~ $
The test Department reported that the Intranet 1.105Oracle database service could not be started, or opened the alter _ . log file in a regular manner to view the log Content:
Fri Nov 11 11:46:09 2011Errors in
Open PL/SQL Developer today and see the "ORA-12154: TNS: unable to resolve the specified connection identifier" error, which can be connected before, is to connect to my local machine.
View listener-enabled;
The configuration of the tnsnames. ora
Some friends asked what is instance and database. So the Group of Friends said a lot of things that are very theoretical and theoretical. There are a lot of things online. If the questioner can understand them, he will not ask us. Obviously, the
Rollback segment Overview:
Rollback segments are used to store values before data modification (including locations and values before data modification ). A transaction can use only one rollback segment to store its rollback information, while a
CUBE and ROLLUP are new SQL keywords since Oracle8i. 9i and-11G are not new. It is an extension of the GROUP BY clause, allows you to calculate the subtotal of different levels in the SELECT statement.
CUBE is another extension of the group by
I. Syntax:TRANSLATE (string, from_str, to_str)Ii. Purpose
Replace each character in from_str with a string after the corresponding character in to_str. TRANSLATE Is a superset of the functions provided by REPLACE. If from_str is longer than to_str,
// Create a temporary tablespace
Create TemporaryTablespace test_temp
Tempfile'E:/Oracle/product/10.2.0/oradata/testserver/test_temp01.dbf'
Size32 m
AutoextendOn
Next32 m maxsize 2048 m
Extent managementLocal;
// Create a data table
Check the status of the Replica Set and execute rs. status ().
Rs. status (){"Set": "set1 ","Date": "Thu Oct 28 2010 10:09:28 GMT + 0800 (CST )","MyState": 2,"Members ":[{"_ Id": 0,"Name": "192.168.95.216: 10000 ","Health": 1,"State": 1,"Uptime": 2
Personal definition:
Primary prosecution: maintain one side of the joined table, usually the Creator side, which will be more efficient.
Operation Principle: If inverse is set to false, one is set to true.
When cascade is used to check the
Step 1: su ipvs
Step 2: bash-4.2 $/usr/pgsql-9.1/bin/initdb-D/var/lib/pgsql/9.1/data/, press enter and the following message appearsThe files belonging to this database system will be owned by user "stored s ".
This user must also own the server
First, only the InnoDB Engine allows the use of foreign keys in MySQL versions available in the product environment (4.0.x and 4.1.x). Therefore, our data tables must use the InnoDB engine.
Next, we will first create the following database tables
1. Create a simple project environment in Oracle1) create a tablespaceSQL> create tablespace dreamtry_tbs datafile 'd: \ oracledate \ dreamtry_tbs01.dbf 'size 100 M;The tablespace has been created.2) create a userSQL> create user dreamtry identified
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