execution. The ename value of the query is stored in the V_name, and Sal is placed in the V_sal and then displayed.3. Example 3 PL/SQL block with exception handlingDeclare v_name varchar2, v_sal number (7,2); Begin select Ename,sal into V_name,v_sal from EMP where empno=no; Dbms_output.put_line (' Employee Name: ' | |V_name); Dbms_output.put_line (' Salary: ' | | v_sal); Exceptionwhen No_data_found then Db
Today, the second configuration of PL/SQL developer, said that the egg hurts, yesterday because moved a thing and then inexplicably can not connect the database, always show a variety ofError, I moved the thing is because the Chinese will show garbled, (because I am using 32-bit PL/SQL developer to connect 64-bit Orcal
Tags: Oracle Toad database ManagementUsing PL/SQL developer to manage Oracle in the past has found it inconvenient to use. Open very card, and the upper left corner of the interface is always more out of that box, how can not be set by default hidden away.The only thing that is worth it is that there is a beautificatio
Transferred from: http://zhengdu.net/archives/152First, see if the remote end Oracle service is startedIf it does not start, start the Oracle servicePS: Create or delete Oracle ListenerSecond, remote-side Oracle ConfigurationLISTENER_ORCL =(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.1.10) (PORT = 1521))Oraclr_connectio
Basic PL/SQL entry-Table Partitioning
PL/SQL: a programming Language combined with a Structured Language (Structured Query Language). It is an extension of SQL and supports multiple data types, such as large objects and Collection types, you can use control statements such a
A trigger is a special type of subroutine that resides in a database. cannot be called directly by the user, but is initiated by the system when a particular event or action occursTune with the holder line. The trigger cannot accept the number of parameters. So executing a trigger is called triggering or ignition. An Oracle event refers to an INSERT, UPDATE,delete operation, or similar operation on a view of a database table. Triggers are a technique
Oracle sets a scheduled task JOB to schedule and execute stored procedures or PL/SQL code blocks
Currently, there are two methods for configuring scheduled job Scheduling in Oracle Database: dbms_scheduler to create job scheduling and dbms_job to create job scheduling. Dbms_scheduler job Scheduling is only available af
The main content of this article is as follows:
6.1 Introduction
6.2 create a function
6.3 stored procedures
6.3.1 creation process
6.3.2 call a stored procedure
6.3.3 AUTHID
6.3.4 PRAGMA AUTONOMOUS_TRANSACTION
6.3.5 procedure
6.3.6 deletion process and Function
6.3.7 comparison of processes and functions
6.1 IntroductionProcedures and functions (In addition, packages and triggers) are named PL/SQL blocks (
Debug oracle stored procedures in PL/SQL Developer.Author: iamlaosong
Alas, in the real world, I used Toad and used dbms_output.put_line to debug the stored procedure. I only thought it was inconvenient. After PL/SQL Developer was used, I still used this method habitually. P
Restore the tables drop by pl SQL in oracle by mistake
View tables in the recycle bin
Select object_name, original_name, partition_name, type, ts_name, createtime, droptime from recyclebin;
Restore table
SQL> flashback table test_drop to before drop; orSQL> flashback table "BIN $ B + XkkO1RS5K10uKo9BfmuA = $0" to befor
1) Install Oracle 11g 64-bit, I use the version: Http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-win64soft-094461.html2) Install the 32-bit Oracle Client (instantclient-basic-win32-11.2.0.1.0) as: Http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html Download Instantclient-basic-win32-11.2.0.1.0.zip (must be 32-bit, do not make the wrong version,
Tags: make line home strong close End Statement stat data type Zha
The native installation of Oracle, the default is the boot service, boot time is too slow, shut down, need to open the service:
OracledbconsoleorclOracleoradb10g_home1isql*plusOracleoradb10g_home1tnslistenerORACLESERVICEORCL This behind the ORCL is the database name, the official term is called the database SID2. Open PL
Cursors for getting Started with PL/SQL basics PL/sql: Process Language (Procedure Language) and structured language (structured Query Language) A programming language that is a combination of Span style= "Color:rgb (51,51,51); line-height:26px; Font-family:calibri ">sql
High-performance PL/SQLAssuming the code meets functional requirements, PL/SQL code needs to meet 3 conditions to become efficient:1. Performance: The operating time is within an acceptable range.2. Impact: It does not disrupt (or weaken in some unacceptable way) any other component of your system.3. Provable: You can prove that, under all reasonable conditions,
Oracle PL/SQL non-predefined exceptions, custom exception handling, RAISE_APPLICATION_ERROR throwing exceptions Oracle has three types of exception errors: 1. there are about 24 Predefined ORACLE exceptions. To handle this exception, you do not need to define it in the progr
PL/SQL Connect Oracle Database 1, IntroductionUse PL/SQL to connect to a remote Oracle database without installing an Oracle database.2, the specific steps:A) Install
Normally, connecting Oracle with PL/SQL developer requires the installation of Oracle client software, which means that your hard drive will take up about 1g-2g of space, and you will have some more boot-enabled services for the Windows operating system. Of course, for most people, you don't apply the database you crea
1. Variable
2. Constant
3. Basic program Structure and statement
Pl/sql can reside in both Oracle database servers and Oracle development tools environments. In both environments, the Pl/sql engine accepts any
Oracle | PL/SQL Check constraints usage
1. Objectives
The instance explains how to use CHECK constraints (create, enable, disable, and delete) in Oracle)
2. What are Check constraints?
The CHECK constraint adds additional constraints to the columns of the table.
Note:
CHECK constraints cannot be defined in VIEW.Only th
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.