Oracle database exception handling and views

PL/SQL Exception handlingException handling when the input number is not in the casedeclare-- definition v_ename emp.ename%type;begin--Selectfromwhere Empno = &gno;dbms.output.put_line (' name:'| | v_ename); Exceptionwhen no_data_found

Constraints in Oracle

nonempty constraint NOT NULL A column in a database table cannot be empty Uniquely constrained unique One column in a table does not allow duplicates The column that contains the unique constraint can be null,

Oracle Record Learning

--Basic functions--select Name,count (ID) from Work_test GROUP by name have count (ID) >1--select Upper (name), T.*,lower (name), substr (name,1,5) from Work_test t--Even table update/*update Work_test Set (Price) = (select T.price from Work_test t

Differences between MySQL and Oracle's triggers and stored procedure syntax

Corrected a script, encountered some of the differences between the two databases, recorded:Trigger: Difference Mysql ORACLE Description Create statements different Create Trigger ' AA ' before INSERT

ORACLE RAC Listener configuration (Listener.ora Tnsnames.ora)

The configuration of an Oracle RAC listener is slightly different from a single instance, but the principle and implementation methods are essentially the same. In Oracle, the TNS process is used to provide service registration for one or more

Oracle Related issues

RPM-IVH http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpmRPM-IVH http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmRPM--import/etc/pki/rpm-gpg/rpm-gpg-key-epel-6Yum Install RlwrapSu-oracleecho

Oracle Flash-Back technology detailed

Overview:The flashback technology is part of Oracle's powerful database backup recovery mechanism, which provides fast and minimal recovery (most of the flashback functionality can be done in the database online state) When a logical error occurs in

To view the data type of a column in an Oracle table

First, Sqlplus, the direct use of Desc[ribe] tablename can be.Second, when external application calls view the table structure in Oracle, you can only use the following statement instead:1. See field names and data typesSelect * from cols

Database on Oracle Connection server

The Tnsnames.ora file needs to be found under the Oracle installation folder, with the following path:Under Oracle installation file: App\oracle\product\11.2.0\server\network\admin/tnsnames.oraAdd the following code at the end of the file:--where

Oracle installation Detailed

Step one: Unzip the two Oracle database package and click Setup.exe to run the Setup programStep two: Wait for the installer to detect if the system meets the minimum configuration requirementsStep three: Install the interface directly click Next to

Oracle View and modify the number of connections (process/session/concurrency, etc.)

Query the current process of the database and the number of connections to the session, the number of concurrent connections and the status of the session and so on, you can refer to the next ha, hope to help you1. Query the number of connections to

Oracle 12c Installation Detailed steps, with screenshots

1, download Oracle's compressed files on the official website, and download all two of them. and two simultaneous check unzip in a folder inside.  2, after decompression, such as, click Setup.exe Wait a moment, 3, start the installation:Do not

Oracle Import Chinese garbled solution

Oracle Import Chinese garbled solution One, ensure that the encoding of each client character set is consistent with the server character set encoding1-Determines the sqlplus character set encoding, if Windows sets environment variables.2-Ensure

Oracle Database index usage and index invalidation summary

There are a number of reasons why Oracle Index failures can be easily caused:1. Use the function on the index column. such as SUBSTR,DECODE,INSTR, and so on, to the index column operation. You need to create a function index to resolve it.2, the new

Processing method for Oracle 11g cannot export empty table with EXP

Processing method for Oracle 11g cannot export empty table with EXPExecute the following SQL query in Plsql Dev:Select ' '| | table_name| | ' allocate extent; ' from where num_rows=0Then you can export the empty table in the oracle11g after you

Oracle Database Design Small Details

1. If you use powerdesigner such a tool, be careful to remove the double quotation marks from the table in the exported SQL statement for the tool.2. When building tables and building fields, use underscores between different words, such as rec_id3.

MAVEN's Oracle Configuration error

The first blog post, hope to write down their experience, to prevent later forget.    Today encountered a mistake, that is, using MAVEN to build the project, pom.xml files in the Oracle configuration always error, in Baidu search for a long time did

Detailed steps for installing Oracle 11.2.0.4.0 in a Linux environment

Objective:recently in the study of Oracle, here I put the installation and configuration process to record, follow my method of this step by point basically no problem, If you have any questions, you can talk about learning from each other.

MySQL database switching with Oracle database

1. Export the ambition (database name) structure and the Ambition.sql file of the data from the MySQL database.2. Convert ambition.sql to MySQL data model with power designer.Give the Model a name and choose your MySQL version.Select the. sql

Oracle queries perform slow SQL every day

This article is reproduced from http://blog.itpub.net/28602568/viewspace-1364844/Preface:  Do you want to query, summarize or optimize the rows of SQL every day, the following SQL wants to help    ---query perform slow sql:select s.sql_text every

Total Pages: 2147 1 .... 1285 1286 1287 1288 1289 .... 2147 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.