To create a data table with a stored procedure:
Note that you must add Authid current_user if you create a table that already exists, the stored procedure continues to execute, but if you do not add this key statement, the stored procedure will
Today, an Win2K server server, installed in the native Oracle9i database via ASP, found an error and could not connect to the database at all. The error description is as follows:
Microsoft OLE DB Provider for ODBC Drivers error ' 80004005
I want to do two sets of RAC between the data guard, because Datafile,controlfile, and even archivelog are stored on the ASM, direct copy of the data is a bit unrealistic, ASM disk is always used, so want to do from a library Rman full backup, Then
Today, in the investigation of the original code encountered a mistake, prompted the "select が@@facesymbol@@ 郡 skewer rdquo, baffled by the solution." Later foundIt's the "DISTINCT" keyword that's haunting you.
My original SQL statement
The former is easy to locate. All operating systems allow us to look at CPU-intensive tasks. These tasks can be traced back to a specific user, a specific application module. CPU-intensive modules are generally caused by poor code and/or structure,
Use the following statement: O_char (pubtime, ' yyyymmdd HH:mm:ss '), for example:
The code is as follows
Copy Code
Select Id,to_char (pubtime, ' yyyymmdd HH:mm:ss '), content from Bj_ref.gz_twinfo_ref where user_id=2603
Received technical support requests, WIN 2003 NTFS format file system, Oracle 8.1.7 version, the host restart, the database can not start normally, offline DataFile 15, the database open successfully, but datafile can not normal online, The error is:
Hints is a mechanism provided by Oracle to tell the optimizer to generate an execution plan in the way we tell it. We can use hints to achieve:
1. Types of optimizer used
2. Cost-based optimizer optimization objective is all_rows or first_rows.
3.
Oracle Profile Limits Oracle UsersOracle profile files are a means of restricting the resources used by users of database tutorials. such as: Control session or SQL can use the CPU, control the user's password management strategy.After the database
Oracle Database Tutorial Compiling stored procedure suspended animation problem
In this case, if you forcibly terminate the stored procedure compilation, again recompile the stored procedure will be found to be dead, this is mainly because the
The syntax is the same as the other SQL database tutorials, as followsDELETE from CoursesWHERE course_designater = ' Java110 '
A more complex method of operation by condition
DELETE from ClassconveningsWHERE CLASSES_NUM_FK > 4and
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
Date field: SQL Server Date field format in the same character field format, that is, a single quotation mark on it, Oracle Date field format is different, it is very wordy, there are only two ways to deal with:
A: Add a single quotation mark to
SQL Server
Replace Null:isnull (Arg,value)
For example: Select IsNull (price,0.0) from orders, if Price is null, replace with 0.0
Compared to null: is not null,is null
For example, select * from to orders where price is null and price equals
Recent knowledge of learning database, make a mark.here is an English explanation, suggest to read more English documents: https: // www.techonthenet.com/oracle/functions/Let's start by documenting some of the functions that are commonly used in
! = 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
Learning Oracle also for some time, found that the functions of Oracle many, for the background of the program ape, a lot of time to learn many other new things, and then remember these functions are not very realistic, so summed up some of Oracle's
If our project is to be migrated from Oracle to Mysql, but the instr function of MySQL can only find whether the child string is in the parent string, it cannot be searched according to the number of occurrences.Here I wrote one for migration. Of
Since I/O waits for a large amount of data to be imported into the database, new storage cannot be mounted directly. You need to use nfs mounting and store redo to relieve the I/O pressure.Database version informationSQL> select * from v $
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