Concept:1. directory structure of similar books2 . Oracle 's Index object, an optional object associated with the table, to increase The speed of SQL query statements3. Theindex directly points to the location of the row containing the queried
ProgrammersThe focus is on the logical structure of the program, and the main purpose for the developer is to interact with the data.The reason for explaining user management is mainly to explain DCL, Data Control language, grant and revoke.Such two
Permissions allow users to access objects or execute programs that belong to other users.ORACLE System provides permissions: Object-level, system -levelTo view the data dictionary for permissions:Dictionary name meaningRole_sys_privs System
First, IntroductionThe importance of Oracle databases in system operations is self-evident, and the knowledge of operating systems and databases is deepened through familiarity with the installation of Oracle. Linux installation Oracle early
SELECT * FROM teacher--Joint query--01.union (also set)Select TNO from teacher where tno>1080 union(select TNO from teacher where tno>1090)--02.union all (set and show duplicate data)Select TNO from teacher where tno>1080 union ALL(select TNO from
--Query the number of each department, maximum wage, sum, average wage--and in descending order of total wages in a departmentSelect Deptno,max (SAL), sum (SAL), avg (SAL)From teacherGROUP BY DeptnoORDER by sum (SAL) desc-Add one more condition and
Use SQL statements to export stored procedures and functions in Oracle:SETEchoif ;SETHeadingoff ;SETFeedbackoff ; SPOOL'C:/prc.sql' ReplaceSELECT Case whenLine= 1 Then 'CREATE OR REPLACE' || TEXT whenLine=Max_line Then
PL/SQL Exception handlingException handling when the input number is not in the casedeclare-- definition v_ename emp.ename%type;begin--Selectfromwhere Empno = &gno;dbms.output.put_line (' name:'| | v_ename); Exceptionwhen no_data_found
Scenario: Encountered 100 million data volume data needs to do some statistical analysis according to the user name, want to do some aggregation calculation is basically not possible, so the intention is to create a partition according to the date
Oracle user-to-table space relationshipsuser = MerchantTable = CommodityTable Space = Warehouse1.1 businesses can have a lot of goods, 1 products can only belong to one business2.1 items can be placed in warehouse A, can also be placed in warehouse
Wm_concat is a non-public function of Oracle and is not encouraged, and the new version of Oracle does not have this function and needs to be added manually.1. Download three files: owmctab.plb, OWMAGGRS.PLB, OWMAGGRB.PLB2. Login with Sqlplus:
Never give up, everything is possible!!!Only to find a way to succeed, not to find excuses for failure!Oracle database Backup 1. File ViewThe data files, control files, and log files are viewed as follows:From V$datafile; -- View data file from
1. Create a Table object type.To return a Table object in Oracle, you must customize a table type as follows:Create or Replace type t_table is table of number;When the above type is defined, the function uses a table that can return a column, and if
First step: Stop all Oracle-related services in the Services windowStep Two: uninstall the Oracle software "All Programs--oracle installation directory--oracle install product--universal Installer"Step three: Delete the contents of the registry,
Update two table associations include a word query1.update T2 Set parentid= (select ownerID from t1 where t1.id=t2.id);2.Update Tb_client_win_lost_report a set a.rolling_code_id=2where game_code_id=70000and exists(SELECT ' X ' from (select a.IDFrom (
Oracle Recovery DataIn the Oracle 10g and later versions, the Recycle Bin mechanism is provided, in order to prevent misoperation by emptying the table data with a recycling mechanism.In other words, the table we deleted does not disappear
First,SQLThe development of language
SQL (Structure Query Language)Language is the core language of the database.
SQLThe development is from
1974The development process of the year begins as follows:
1974Years
-----By
BoyceAnd
SELECT * from v_$circuit; view logical loops, share server connections, use Easy connect to displaySELECT * from V_$dispatcher; General configuration of threeOperation in SqlplusShow Parameter DispaAlter system set dispatchers= ' (PROTOCOL=TCP)
1 First, we open the "Tools" and "Options" menu, see the following interface, according to the OCI Library (oci.dll) path, navigate to the Navicat OCI directory, back up the files (by creating a new Bak folder in this directory, the "%dir%/ Navicat
1.oracle Database Server Enterprise Edition installs a database instance by default, with 4 administrator accounts installed with the same username and password installed.2. Once the database instance is installed, we can create more than one table
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