Case: Paging Query displays employee information: Show employee number, name, salary
1. Display four records per page
2. Employees showing the second page
3. Sort by descending monthly salary
Analysis:
1. You can display the location of the query
Oracle has two functions: lead and lag, which are the analytic functions used to compute offsets, and the two functions are the same in use.
The Oracle official documentation explains:
The lead is a analytic function. IT provides access to more
Recent project with Struts+spring+ibatis
I am a novice, the first time with Ibatis
So check the data online, download demo, run ...
The beginning is more smooth, nothing more than some select/update/delete
Later encountered a stored procedure call,
Dbms_output packages are primarily used to debug pl/sql programs, or to display information (displaying messages) and reports in Sql*plus commands, such as we can write a simple anonymous PL/SQL program block that is used for some reason Dbms_
Due to field application needs, the newly configured Oracle RAC environment needs to be added with 2 Scanip addresses, 10.138.129.106 and 10.138.129.107.
Pre-configuration scenario:
[grid@db1 ~]$ srvctl config scan----View configuration information
This is Oracle's description of the backreference of regular expressions
As you can see from the definition, a substring is included in the form of a matching expression, which can be referenced later in the form of \. \1 corresponds to the first ()
Start your bbed trip.
By default, bbed is linked to the Rdbms/lib directory. Obviously, it's not the $oracle_home/bin directory we use very often. The linked bbed executable file can be moved to the bin directory, and if you don't move, you can
Environment: Oracle 11g R2 +sqlplus problem: Oracle with SYS and system default password login prompt Ora-01017:invalidusername/password;logond denied As we all know, the default password for SYS is Manager,system's default password is
Today encountered ORA-12560:TNS: Protocol adapter error problem, after a few efforts to solve the problem, and share with you.
There are three reasons for the problem with Ora-12560:tns: Protocol Adapter errors:
1. The monitoring service did not
Reason
Oracle Httpserver takes up 8080 ports
Solution 1.
Find the Server.xml under the Conf folder under the Tomcat directory
Modify
maxthreads= "minsparethreads=" maxsparethreads= "75"Enablelookups= "false" redirectport= "8443" acceptcount=
Start multiple Oracle Instances
To build a second Oracle instance step on Linux:1, in the Linux server graphics interface, open a terminal, enter the following command;Xhost +2, switch to the Oracle user, use the following command:Su-oracle3.
1. Basic Grammar
SELECT * from table [start and Condition1]
connect by [prior] Id=parentid1
It is commonly used to find data that has a parent-child relationship, that is, a tree-structured data, and its return data can clearly differentiate
One, Backup script command:
@ECHO offIf not exist d:\ora_dmp MD d:\ora_dmpSET backpath=d:\ora_dmpECHO prepares to back up the databaseREM 7 days a loopIF EXIST%backpath%\one GOTO OneIF EXIST%backpath%\two GOTO TwoIF EXIST%backpath%\three GOTO
1. Stop Service
First lsnrctl stop with command
And then run
Sqlplus/nolog
Sql> Conn/as SYSDBA
sql> shutdown
2, view the instance process and delete
Find $ORACLE _base/-name $ORACLE
The database connection is timed to see if the number of sessions is normal. Set up too many data links to consume the resources of the database
For some hung connections, a manual kill is required
Select Sid,serial#,username,program,status from V$
Oracle has a number of views built into the SYS user scenario that we can use to easily view system-related information. We can call these views without schema, and here are some
Summary of views about user, role, and permission information:
(1) all_
The cursor (cursor)--the cursor is a data buffer that the system opens for the user, and holds the execution result of the SQL statement. Each cursor area has a name that allows the user to retrieve the record from the cursor in one of the SQL
I. Permissions-related
1. Landing
Sqlplus System/admin as SYSDBA; Administrator Login System Account
Sqlplus Scott/tiger; Log on to regular user Scott
2. Managing Users
Create user Wahaha; Under the Administrator account, create a user
1.1 Definition of the index
The index resembles the directory structure of the book, and you can quickly find what you need based on the page numbers in the table of contents.
An index is a separate, physical database structure that is a
Oracle 11g introduces snapshot Standby, which allows Standby database to be opened in Read-write mode. When switching back to standby mode, all modifications in the Read-write mode are lost. It is implemented through the flashback database, but
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