Call of oracle stored procedures and functions

Call oracle stored procedures and functions -- create or replace procedure pro_add (num1 number, num2 number, r out number) asbeginr: = num1 + num2; end; www.2cto.com create or replace procedure pro_minus (num1 number, num2 number, r out number)

Oracle uses relevant triggers to implement auto-incremental ID

The following article describes how to use relevant triggers to implement auto-increment IDs in Oracle. The actual steps for implementing auto-increment effects for IDs in the userinfo table are as follows, if you are interested in the actual

Linux boot oracle

Linux boot oracle 1. Use the root user to modify the/etc/oratab file: $ vi/etc/oratab orcl:/oracle/app/product/10.2.0/db_1: N to: orcl: /oracle/app/product/10.2.0/db_1: Y * (/oracle/app/product/10.2.0) here is my oracle installation directory 2. Use

Read/write operations on oracle blob

Read/write operations for oracle blob -- create or replace procedure P_IMG_INSERT (v_filename VARCHAR2) IS www.2cto.com v_bfile BFILE; -- file pointer v_blob blob; dir constant VARCHAR2 (20 ): = 'test'; -- DIRECTORY for storing files, case sensitive

Set define off statement

The default "&" in the set define off statement in SQL * Plus indicates the substitution variable. That is to say, as long as the symbol appears in the command, SQL * Plus requires you to enter the substitution value. This means that you cannot

Database backup and Restoration Process

Database backup and restoration process 1. New database instance note character set is UTF-82, command line C: \> set ORACLE_SID = EAS (note Instance name is not capitalized Instance name) define default instance C: \> sqlplus/nolog3. user system

When Oracle database is installed, the 0x7c92e514 memory cannot be written.

Decompress the 10__database_win32.zip \ database.zip package of oracle 10g. decompress the package and complete the prerequisites for Oracle Installation. Then, you do not know why a memory error is reported. Then I checked all kinds of information.

ORA-01157: unable to identify/lock data file... resolved

ORA-01157: unable to identify/lock data file... solution error: SQL> alter database datafile 'd: \ ORACLE \ ORADATA \ FLOW \ GGSC \ SYSCOM. ORA 'offline dro database has been changed. SQL> alter database open; alter database open * www.2cto.com

Install Oracle 11g R2 on CentOS 6.2 X64 in KVM

Install Oracle 11g R2 on CentOS 6.2 X64 in KVM. install the Master System CetnOS6.2x64 Englis minimal install configure network IP and Bridge Mode vi/etc/sysconfig/network-scripts/ifcfg-eth0 vi/etc/sysconfig/network-scripts/ifcfg-br0 www.2cto.com

Notes and demos for creating temporary tables during storage

Precautions for creating a temporary table in the stored procedure and the demo cannot be used directly in the stored procedure of creating a temporary table in the ORACLE stored procedure, therefore, you can only use dynamic SQL statements to

Oracle returns multiple result sets

Oracle returned multi-result set www.2cto.com Oracle stored procedure: create or replace procedure P_Sel_TopCount2 (in_top in number, out_count out number, cur_out_1 out sys_refcursor, cur_out_2 out sys_refcursor) is -- queries the data of the

Locate important (resource-consuming) SQL statements

Locate important (resource-consuming) SQL statements 1. statspack -- capture the 15-minute report when your database is busy and check the top sql1 top to find the resource-consuming pid.2. Determine whether it is an oracle application process or a

Oracle object tablespace migration

When oracle Objects migrate IMP data in tablespaces, the imported and exported tablespaces are different and the imported data is in the system tablespace. Therefore, the tablespace needs to be moved to the user tablespace. The specific process is

Generation of oracle fixed-length primary keys

When I started to contact oracle, I felt very complicated. I had to create a sequence and trigger even when the primary key increments. After I got to know it, I felt that the design was very flexible and practical. The following code has

Oracle cursor (2) Implicit cursor

Oracle cursor (2) Implicit cursor if the Select statement is used in pl/SQL for operations, the cursor is implicitly used and does not need to be defined or enabled or closed.The select statement must have an into statement, and the result can only

Oracle cursor (iii) REF Dynamic Cursor

Oracle cursor (iii) REF Dynamic Cursor link: Oracle cursor (I) Explicit cursor http://www.bkjia.com/database/201208/150342.html#oraclecursor (ii) Implicit cursor http://www.bkjia.com/database/201208/150344.html REF dynamic cursor is used to process

Solve the problem of accessing the variant table in the ORA-04091 row trigger

To solve the problem of accessing the variant table in the ORA-04091 row trigger, the core idea is: Save the value to the package variable at the First insert, the second insert no longer read the table itself, instead read the package variable,

Oralce troubleshooting Summary

Oralce troubleshooting Summary 1. Unable to connect to the Oracle database during development in Visual Studio. When confirming that the connection configuration is correct, you can consider permission issues and run Studio as an administrator; 2.

Create auto-increment columns in oracle

Create auto-increment column 1 in oracle first create a sequence: create sequence h75510010_uhz_phonelist_seq -- sequence name (AUTO_ADD is a series name, just name it) ­ www.2cto.com increment by 1 -- start with 1 each time -- start from 1 --

Oracle remote connection analysis

Oracle remote connection analysis first to the Oracle official website to download the required configuration http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html www.2cto.com configuration server tnsnames. ora file.

Total Pages: 2147 1 .... 1691 1692 1693 1694 1695 .... 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.