--View of database nameSelect name from V$database;650) this.width=650; "src="%5c "alt=" spacer.gif\ "/>--View of instance nameShow parameter instance_name;650) this.width=650; "src="%5c "alt=" spacer.gif\ "/>--Data filesSelect name from V$datafile;-
A set of SQL code for archive modesql> archive log list;#查看是不是归档方式Sql> alter system set LOG_ARCHIVE_START=TRUE Scope=spfile;#启用主动归档Sql> alter system set log_archive_dest= "Location=/oracle/ora9/oradata/arch" scope=spfile;#设置归档路径Sql> alter system set
NULL refers to a null value, or an illegal value.1, NVL (expr1, expr2) functionEXPR1 is null, returns EXPR2, is not NULL, returns EXPR1. Note that the two types should be consistentEg:select NVL (column,0) from DUAL--column value is null, it is
Data processing in the database, it is often necessary to get top N for a certain class, which involves grouping group by and sorting order by, then according to RowNum to obtain the first few data, the Oracle Database Row_number () over function
Exception handlingCreate or replace procedure Prc_get_sex(Stuname Student.name%type)AsStusex Student.sex%type;BeginSelect Sex to Stusex from student where name=stuname;Dbms_output.put_line (' Students ' | | stuname | | ' The sex is: ' | |
After installing Oracle, we can go to the service and see several more Oracle services,650) this.width=650; "id=" aimg_ifb4b "class=" Zoom "width=" "height=" "src=" http://dl2.iteye.com/upload/ Attachment/0105/7934/4858e4ce-5cb4-340b-b040-806be8907e4
This SQL paging is simple, but is often used to query large amounts of data.SELECT * FROM (select A.*,rownum RN from (SELECT * from table_xx) A WHERE ROWNUM =11 This SQL is efficient because in optimization mode, Oracle can push the outer query
Line 1:Create OR REPLACE PROCEDURE is an SQL statement that notifies the Oracle database to create a stored procedure called skeleton, overwriting it if it exists;Line 2:The IS keyword indicates that a PL/SQL body is followed.Line 3:The BEGIN
First, the demandUser answer, a total of 3, must be 3 questions are completed to submit.Objective: To query the user answered several questions correctly, answered several wrong questions. (Of course, you can only find the correct number of
business background, when executing oracle file, need to authorize to the corresponding file, while we use chown-roracle:oraclegroup xxx, different server Oraclegroup The name is different, how to get it? method: First, we can obtain oraclegroups
One, the current timeUse the Sysdate function directly in SQL to represent the current time.So, using the current time, we can get the time information specified before and after the current time.1.1 Plus SubtractionSelectSysdate-1 fromdual;-- --
In order to facilitate learning and testing, all of the examples are created under the Oracle's own user Scott.Note: The red Order by in the title indicates that you must bring an order by when using this method.Rank ()/dense_rank () over (partition
Install with previous version of the database, the installation directory selection is the same as before.
Turn off all services from Oracle.
Copy the database folder from the original Oracle_home directory to the current directory (it is a
A new feature in 11G that does not allocate segment when the table has no data to save spaceWorkaround: 1, insert a row, and then rollback will produce segment.The method is to insert data into the empty table and then delete it, resulting in
The error is as follows:D:\software\xfwebdb2015-05-11\autobackup>impImport:release 10.2.0.1.0-production on Wednesday May 13 19:36:10 2015Copyright (c) 1982, 2005, Oracle. All rights reserved.User name: ZFZBPassword:IMP-00058: Encountering ORACLE
Oracle internal connection and external connection
Inner join: We usually connect tables to display data with matched IDs.
SELECT * FROM a, B WHERE a. aid = B. bid only retrieves matched data.
Outer connections: Left connections and right
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