Directory=========================================1.Oracle Date function2. Date plus minus3. Month Plus and minus4. Year Plus and minus5. Ask for the last day of the month6. Ask for the first day of the month7. For the next one weeks
Introductory
Usage of instr in Oracle:The format of the InStr method isINSTR (The source string, the string to find, starting with the first few characters, to find the ordinal number of matches)Returns the location found, or 0 if it is not found.For example:
ORA-00904 Invalid identifierThe reason for this error is most likely that one of the field names in your SQL statement is incorrectly written,
or the table name is wrong, and so on, in short, it is very complicated! The field name does not
There is a project because there are more query summaries, considering the speed, so the materialized view is used. Simply put the used to the next to tidy up. First look at the simple Create statement: Create materialized view
Goldengate TDM (transaction data management) software is a kind of structured data replication software based on log, which can be used to analyze and change the data from the online log or archive log of the source database, then apply these
Switch to Oracle's HR users to practice under
1. Check the name and salary of the employee whose salary is more than 12000
Select Initcap (concat (last_name,first_name)) "name" salary from employees where salary>12000;
2. Check the employee's
This is the most recently written batch of an Oracle database automatic backup, which has been tested for normal operation and is recorded as follows. Includes two parts, logical backup and cold backup, if there is not complete, but also to see the
Have always wanted to summarize the knowledge of Oracle memory tuning, recently optimized a database memory parameters, look for some information and Google a lot. Now write it down and do the backup.
First, overview:
Oracle memory can be divided
How to use the MyBatis pass list type parameter to the database stored procedure to implement the bulk insert data.
MyBatis What to do when the parameter is a list type. As you all know, it's hard to get a lot of data out of MyBatis batch
Navicat version: Navicat Premium 9.1.11 Oracle version: Oracle Database 10g Release 2 (10.2.0.1.0)
The following figure, failed to connect to the Oracle database using Navicat
Problem Reason:Navicat OCI.dll does not support the GBK character
For logging's understanding that the table's log is always set to no it will not generate the log, in fact it is not the following are some explanations and experiments for logging.
Logging Introduction
You can perform the following actions in
about whether to import with imp command, or import with IMPDP command, you'd better ask if the traditional exp generated DMP file or DataPump generated DMP file, the former to be imported with IMP, the latter with IMPDP import.
Second, the
Example: Cursor loop loop cursor SET serveriutput on DECLARE r_emp emp%rowtype; CURSOR C_emp is a SELECT * from EMP; BEGIN OPEN c_emp; LOOP FETCH c_emp into r_emp; EXIT when C_emp%notfound; Dbms_out. Put. Put_Line (' Salary of Employee ' | |
Recently in the Data Warehouse, because some of the almost fixed value of the table, need to write some data directly, read some information. It is found that many are from dual.What is dual?Dual is a pseudo-table in Oracle that can be used to set
Directory
Boot to Nomount State
Set Trace
Start the database to mount State and open
Check Trace
Another way to look up the trace V$diag_info view
The demo is as follows:Boot to Nomount State[email protected]> startup
1. Custom ref cursor and sys_refcursor;2. Sys_refcursor as a parameter to pass the result set;3. The REF CURSOR is passed as a parameter to the result set;1. Custom REF CURSOR and Sys_refcursor: Declare Type df_ref is REF CURSOR; --Define REF
description of a phenomenon Delete is a common operation in the Oracle database, especially in the automated test, the initialization environment, the pre-preparation are unavoidable additions and deletions, but after a while, may encounter 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