Oracle query-related note points

Single-Table query:  1. mix with OR and andRequirements: Query owner name contains ' Liu ' or house number containing ' 5 ', and Address No. 3 recordSELECT * from WHERE like ' % LIU% ' or like ' %5% ' and = 3and permissions take precedence over

Oracle Sqlplus Common Commands

1. Connect or Conn2. Show user3. Clear Screen4, SpoolEnter: Spool d:\sql.txt after landing in SqlplusResult: The file will be created in the D drive Sql.txtThen execute: SELECT * from EMP;Then execute: SELECT * FROM dept;Re-enter: spool off;Result:

Oracle's Data Objects

Oracle's data objects include tables, views, constraints, sequences, indexes, functions, stored procedures, packages, and triggers.Here are the main introduction to views, sequences, indexes, triggers, stored proceduresA view is a logical table that

Oracle Grid Infrastructure CRS (cluster-ready service)

The main function of CRSD (cluster-ready service) is to manage application resources in the cluster to achieve high availability of cluster resources, and another part of CRSD is to manage OCR, including updates and backups of OCR.CRSD operating

Oracle 11g RAC monitoring daily management

Need to master the command, last week encountered a small problem, is the need to restart the database monitoring, some students even use the Oracle user restart monitoring, the principle is wrong how to line. The following actions need to be

Oracle Chinese sort nlssort nls_sort

Tag: Type field name--order span arch 16px set ChineseToday found a very interesting function: Nlssort, found to Chinese by pinyin, strokes, radical sort, then looked up the relevant information, the results are as follows:Oracle 9i begins with the

Oracle Database Memory Management

sgasql> show parameter sga_targetname                                   TYPE                                value------------------------------------ --------------------------------- ------------------ ------------sga_target                         

How does the Oracle four table look together? (two lines)

One line is item,para_value,feature; the other one is Item,sku.Thinking process: The item and SKU tables are combined to isolate the result set, then the result set as a table, and finally with the other two tables combined query.SELECT *From

Oracle's Learning Three

DDL data Definition language CREATE ALTER DROPDML Data Manipulation Language INSERT UPDATE DELETEDQL Data Query Language SELECTTCL Transaction Control Language COMMIT ROLLBACKDCL Data Control Language GRANT REVOKEView:    1. Simplify the SQL

Collection Operators for Oracle

The set operators for Oracle have Union unions, union all, intersection intersect, and difference sets minusFirst build the table myemp, perform the test of set operationCREATE TABLE Myemp as SELECT * from emp where empno = 7934;and setUnion ALL

Oracle Database Basic Operations (i)

First, the basic type of data  1. Pseudo-Columns of Oracle    A pseudo-column in Oracle is like a table column, but it is not stored in a table where pseudo-columns can be queried from a table, but cannot be inserted, updated, and deleted by their

Several common ways to sign in to Oracle

1. Run Sqlplus tool C:\users\csb>sqlplus (return) (Enter account) system (carriage return) (Enter password) (carriage return)2. Go directly to the Sqlplus command promptC:\users\csb>sqlplus/nolog (carriage return)3. Connect as OS

Initial knowledge of Oracle

Oracle Server: Two components, Oracle database and Oracle Instance Oracle database: Files that actually hold data on your hard disk, which are organized together into a logical whole, that is, an Oracle database. Therefore, in Oracle's view,

Oracle gives one user full table data for querying another user

A user who needs to be queried to log on to Oracle (if a) B is the user who wants to query the table under the A userTwo execution query statements: Select ' Grant Select on A. ' | | Tname | | ' to B; ' from Tab;The simulation results are as follows:

Plsql connecting to a remote Oracle database

1. Locate Tnsnames.ora in the Oracle installation directory D:\app\Eric\product\11.2.0\dbhome_1\NETWORK\ADMIN;2.ORCL =(DESCRIPTION =(Address_list =(ADDRESS = (PROTOCOL = TCP) (HOST = 10.74.20.31) (PORT = 1521)))(Connect_data =(service_name =

Analytic functions for Oracle

Oracle's analytic Functions row_number (), rank (), Dense_rank () usage and differencesFor example, to query the payroll 7th Employee information, you can use the analysis function to do.--Query Employee information for payroll 7thSELECT *From

Oracle Database permissions and role management

Grant the user system permissions sql> grant create table,create sequence,create view to tpcc; grant succeeded. Querying system permissions granted to users Sql> col grantee for a20sql> col privilege  for a30sql> col admin_option for a15sql> select *

Oracle Object Permissions

Drop user test cascade;Create user test identified by test;Grant create session to test;Grant create any table to test;Conn Test/test;CREATE TABLE Scott.test (ID number);Conn Scott/tiger;INSERT INTO Test values (888);SELECT * from Test;Conn

Oracle User System permissions

Create user test identified by test;Grant create session to test;Grant CREATE table to test; There is no permission to use the tablespace at this time, and it is not possible to create a tableGrant unlimited tablespace to test;CREATE TABLE Test (SNO

ORACLE GI CSS (Cluster sync Service)

CSS Startup process1) The operating system is started and calls the GI-related script in the/etc/inittab file.2) The Ohasd.bin daemon is started and the process is responsible for initiating all agent processes, including the oracssdagent_root agent

Total Pages: 2147 1 .... 1498 1499 1500 1501 1502 .... 2147 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.