First, the grammar
Repalce (STR_SOURCE,STR1,STR2) replaces the STR1 string in Str_source with a str2 string, which is the same as the next when str2 is null or '
Replace (STR_SOURCE,STR1) to remove the str1 string in Str_source
Regexp_replace
However, a problem was encountered during the operation.1, 32 bit of sqlserver,64 Oracle, I did not have a good day, can tnsping pass, but always reported ora-28545.2,sqlserver sa login can see a lot of libraries, in the establishment of ODBC is to
An Oracle database Tutorial cursor usage detailed
1. What is a cursor
The cursor is a kind of pl/sql control structure, can display control to the SQL statement, it is easy to deal with the data of the table.
2. Cursor classification
Display
Failure phenomenon:How do I make a cold backup of an Oracle database in case of an emergency, without opening the Oracle log archive?Solution:
A cold backup of the Oracle database, sorted as follows:
When do I have to use cold backup?
1. Database
Recently a friend database abnormal, consulting me, through the analysis log found that the other people do not understand the bare devices in Aix and Oracle database and then directly use the OEM to create a new table space, resulting in database
VARCHAR2 (* char) and VARCHAR2 (*)
A Hibernate automatic table was recently used, and when a string is used, the VARCHAR2 type field is created by default, such as setting length=10, after which the field property is Varchar2 (. Char), not VARCHAR2
How to transfer an Oracle database tutorial file to another machine
Because restoring video data causes insufficient space to terminate, you need to transfer some data files to another hard drive. In the reference section
Network data, combined
Create or replace procedure Pro_test
Is
Begin
SELECT * from T_test;
End Pro_test;
Is this stored procedure correct?
Yesterday because of this, delayed for a long time (a SELECT statement is used in a stored procedure, but there is
A, DELETE statement
(1) Conditional deletion
Syntax format: delete [from] table_name [where condition];
For example: Delete data from the users Table of UserID ' 001 ': Delete from users where userid= ' 001 ';
(2) Unconditionally delete the
1. Execute a SQL script file
The code is as follows
Copy Code
Sqlplus User/pass@servicenameOrSql>start File_namesOrsql>@ file_name
We can save multiple SQL statements in a text file so that when you execute all
First, when using Oracle's to_date function to do date conversion, many Java programmers may directly use the format of "Yyyy-mm-dd HH:mm:ss" as a format for conversion, but will cause errors in Oracle: "ORA 01810 The format code appears two times.
Customer feedback system Hang live, can not be archived, we need urgent intervention analysisNode 1st logRedo cannot be archived, redo logs have been filled, and the database has been manually executing alter SYSTEM ARCHIVE log current, but the
Oracle does not support limit similar to MySQL. But you can still rownum to limit the number of rows returned by the result set.
If you only want to return the first 10 lines of records, you can write this:
SELECT * FROM table WHERE rownumBut the
WIN2008 64-bit installation of Oracle 11.2.0.4 also encountered INS 30131 errorDescribe:Cause-the temporary location could not be accessed.Action-Make sure that the current user has the required permissions to access the temporary
! = does not equal select Empno,ename,job from scott.emp where job!= ' manager '^= not equal to select Empno,ename,job from Scott.emp where job^= ' manager '<> not equal to select Empno,ename,job from Scott.emp where job<> ' manager '> Greater than
1. Backup:Ps:2014-1-15If the exported DMP data file is not large, it is exported directly every day, do not save only seven days of data. Then, the file is packaged by WinRAR, and I find that the DMP files are still very compressed.Then you need to
First, use the following command to clean up the space:1. Cd/orabak2. Find. -type f-mtime +30-exec rm-rf {} \;Second, then began to use the Rman backup script for backup, back to the last occurrence of the following error-----------------------------
11) Database object already existsIn general, you should completely delete the table, sequence, function/process, trigger, etc. of the target data before importing the data.The database object already exists, and the import fails by the default imp
Paging queries are often used when working with database systems, and the following is a detailed introduction to the paging query statements in the Oracle database system for your reference.Oracle Paging Query statements make one of our most
ASP (Active Server Pages) is one of Microsoft's tools for developing Internet applications. It is similar to HTML (HypertextMarkup Language (Hypertext Markup Language), Script and CGI (Common Gateway Interface Universal Gateway Interface)
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