1, under normal circumstances, we are not access to Ojdbc.jar, need to establish a local warehouse.2, first find your own Oracle Ojdbc.jar put it into the C:\Users\Administrator directory, and then execute the following codeMVN
Write a simple query statement1. Display all the information of the Department tableSelect * FROM Dept;2. Show department number, department nameSelectdeptno,dname from Dept;3. Displays the connection for the following fields and strings: Employee
--Generate a script to update the trigger ('/' to create multiple triggers consecutively without error) for all HY start TablesSelect 'CREATE OR REPLACE TRIGGER'||table_name||'before UPDATE on'||table_name||'Referencing new as new old as old for
Advantages of using Views:1. Simplify data manipulation: Views Simplify how users work with data.2. Focus on specific data: unnecessary data or sensitive data can not be present in the view.3. The view provides a simple and effective security
1, look for redundant records in the table, duplicate records are based on a single field (ID) to determineSELECT * FROM table where Id in (select ID from table group Byid have count (Id) > 1)2, delete redundant records in the table, duplicate
--Add, modify, and delete constraints--1. Add Constraint ALTER TABLE tableAdd[constraint constraint]Constraint_type (column1[, Column2,...])[constraint_parameters];Alter TableBooks Modify Title not NULL;--add a non-null constraint--2. Modifying
Rollup Function Application Scenario: The main use in the grouping, each group to the total value (that is, subtotal), and finally all values (minus subtotals) sum (is total)Of course, the same effect can be achieved with union. Identify the groups
In the Oracle database environment of their own virtual machine, when tossing and making experiments, do not know what special changes, operations caused from the Sql*plus to start the database instance, reported the following error:Then use startup
--Create the user create user XX identified by "", default tablespace USERS temporary tablespace TEMP profile default Password expire;--grant/revoke role privileges Grant connect to Xx;grant Ctxapp to Xx;grant dba to Xx;grant exp_full_database to xx;
The new feature after oracle11g makes it possible to omit empty tables when allocating table spaces by default, to reduce the resource usage of tablespaces, so that empty tables are ignored when exporting user data using the EXP export of Oracle,
When debugging code encountered such a problem, the program run to the SQL statement to throw invalid character exception, then I had to copy the SQL statement, in Oracle to execute, but there is nothing wrong, this can be difficult for me, so I can
Open instance, database to Nomount state:Startup Nomount;Parameter fileMemory, ProcessSpecifying control filesThe database opens to the Mount State:Alter Datatbase Mount;Control filesWhat data files are included, what log filesBackup-related
Oracle Flashback is a fast and easy database recovery technology, it does not use backup files, through the flashback log can restore the database to a state of the past, when the user logic error (delete table data, table, table space, etc.) need
How does Oracle work?
Select ID , name from the T order by ID;
–sql parsing (see if the syntax is incorrect, if there are no errors, parse the semantics, execute permissions on this statement)– Execution Plan (howORACLE accesses data
Management SectionIf database force logging is not enabled, the repository/*+ append */operation, nologging operation, will report the bad block;Suggested table space Force logging or database force logging;Test:Select Force_logging, tablespace_name
substr intercept FieldSUBSTR (string, intercept start position, intercept length)SUBSTR (STR,N,M)Second, the three parameters can be omitted,The second parameter is a negative number, which means to intercept m from the nth bit of the
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