Summarizes the Oracle exceptions and handling methods that are often encountered when working with databases.
Code
Tips
NoteGeneral processing methods
ORA-01861
The text does not match the format string-
Col_2 Col_321 3123 31As above table dataFront desk display shows the need to convert col_2 21 and 23 into Chinese ' machine ' starting with the following writingSELECT T.col_3,Case T.col_2WhenMachineWhenMachineENDFrom A_test_1 tGROUP by
The database instance was created in the previous installment, but there was a problem when the DB instance was last accessed with EM?Enterprise Manager cannot connect to the DB instance. The status of the components is listed below.To answer the
Anyone familiar with Oracle knows that by setting Oracle's nologging option, some operations can be done quickly, with the risk that a database backup might fail. There are a lot of things you can do with nologging, and gather the following
1. Basic SELECT Statement1. Basic SELECT StatementSelect identifies which columns are selected.From identifies the table from which to select.Attention:SQL language is not case sensitive.SQL can be written in one line or multiple linesKeywords
Start the database to view the database log:Wed Dec 17:40:32 2014db_recovery_file_dest_size of 3882 MB is 0.00% used. This was auser-specified limit on the amount of space that would be used by Thisdatabase for recovery-related files, and Doe s not
One: The gentle way:1, view all job;SELECT * from Dba_jobs;2, check the running job;SELECT * from Dba_jobs_running;3, according to SID isolated the corresponding session;Select sid,serial# from v$session where sid= ' &sid ';4, kill the corresponding
Tag:io use for on data ef amp as time /*1.flashback query*/--flash back 15 minutes ago Select * from orders as of timestamp (systimestamp-interval "" Minute ") where ... You can replace minute with day, SECOND, month, for
1. After installing the Oracle database: Execute Dbstart and Dbshut will prompt:[Email protected] ~]$ DbstartOracle_home_listner is isn't SET, unable to auto-start Oracle Net ListenerUsage:/u01/app/oracle/oracle/product/10.2.0/db_1/bin/dbstart
Add comments to a tableComment on table Mw_sys. An object instance of the Mwt_om_obj1 is ' business type. ‘;Add a comment to a column in a tableComment on column Mw_sys. Mwt_om_obj1. A unique identifier for the obj_id is ' object. ‘;Comment on
1> the custom comparison function, the value of Targetval is a string, for example: ">=90", "2~8", and so on, the Dataval value is a string.Create or Replace functionCompare1 (Targetvalinch varchar2, Datavalinch varchar2)return integer
When we operate the database, we sometimes encounter the need of insertorupdate.If there is data in the database in the update, insert if it does not exist.In the past, additional select queries are required, and if there is data on the update,
Before installing the WebMethods to install an Oracle database, in the use of the process encountered some problems, through the Internet to find data after the resolution. As this kind of problem has appeared several times, therefore summarizes the
Description:JAVA springmvc+mybatis (Oracle and MySQL) HTML5 new tall still background framework bootstrap1. Support App phone app (Android and iOS) interface call2. New high-html5+css3.0+bootstrap development interface UI, beautiful and stylish,
Replace functionReplace (longest string, replaced string, replacement string)Mathematical functionsRound (N,[m]) retains the number of M-bits in total n-bit length, using rounding.Trunc (N,[m]) intercepts numbers and does not write directly to the
Fourth Multi-table query1. Descartes SetThe Cartesian assembly is produced under the following conditions:Omit join conditionInvalid connection conditionAll rows in all tables are connected to each otherTo avoid a Cartesian set, a valid join
Basic Oracle tablespace, basic oracle tablespace
Database Storage Structure
Databases are mainly used to store and retrieve relevant information. Oracle databases include logical and physical structures.
A physical structure refers to a real storage
PLSQL _ base Series 8 _ operator LPAD/TRUNC/DECODE/TRIM/INSTR, plsqllpad
BaoXinjian
I. Character Functions
1. LOWER (strexp)-returns a string and lowercase all characters.
select lower('ABCDE') from dual
2. UPPER (strexp) returns a string and
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