Auto-increment of oracle trigger + sequence id

1. select * from s_hrdata2. create Sequence: create sequence s_hrdata_SEQUENCE start with 1 increment by 13. CREATE Trigger: create or replace trigger s_hrdata_trgger before insert or update of id on s_hrdata for each row begin select

Oracle multi-condition Outer Join execution plan

(1) select host. id from itr_host_v host left join itr_ci_ref r on host. id = r. to_ci and r. from_template_id = '000000'; (2) select host. id from itr_host_v host, itr_ci_ref r where host. id = r. to_ci (+) and r. from_template_id (+) = '000000'; (3

Oracle merge row example

The following data id name1 a12 a23 a31 b13 b31 c1 is used to merge different rows with the same id. The result is id name1 a1/b1/c12 a23 a3/b3: for more than 8 I: SQL code -- for www.2cto.com after 8 ISELECT t. id, MAX (substr (sys_connect_by_path (

Solution for Oracle TNSListener service to stop automatically upon startup

The solution for Oracle TNSListener to automatically stop when it is started has been normal. Today, we suddenly find that the TNSListener service cannot be started. After starting it on the service console, refresh it, it automatically returns to

Oracle uses naming to create tablespaces and users

Create temporary tablespace: create temporary tablespace test_tempTEMPFILE 'd: \ app \ Administrator \ oradata \ orcl \ test_temp01.dbf 'size 32 mautoextend on next 32 m maxsize 2048 mextent management local; CREATE user TABLESPACE: create

Oracle like fuzzy query

For LIKE fuzzy search, you can use the wildcard "%" and "_": %: to indicate any character, including zero; _: to indicate any character; SQL code Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 Connected as scott SQL> select *

Some tips of plsql developer

Some tips of plsql developer 1. After logon, My Objects is automatically selected by default. By default, after PLSQL Developer logs on, All objects will be selected in Brower. If the user you log on to is dba, to expand the tables directory, it

Oracle Chinese sorting statement

1. Set the value of the NLS_SORT parameter SCHINESE_RADICAL_M to sort SCHINESE_STROKE_M By the beginning (First Order), strokes (Second Order), and heads (Second Order) sort SCHINESE_PINYIN_M by pinyin: www.2cto.com 2. set the Session level. Modify

Connect to oracle11g remotely using PL/SQL Developer

1, first go to the Oracle site to download Instant Client: http://www.oracle.com/technology/global/cn/software/tech/oci/instantclient/index.htmlDownload a compressed file from different Instant Client versions based on your operating system. The

Oracle online redefinition of non-partition table to partition table conversion

Online conversion from non-partitioned tables to Partitioned Tables: SQL> select * from v $ version; BANNER implements Oracle Database 10g Enterprise Edition Release 10.2.0.3.0-Prod PL/SQL Release 10.2.0.3.0-Production CORE 10.2.0.3.0 Production TNS

Multi-level data aggregation

Solution: create table t_20120512_a (id varchar2 (6) primary key, cost number (3), www.2cto.com p2 number (3), p3 number (3 )) /create table t_20120512_ B (id varchar2 (6) primary key, name varchar2 (50), B varchar2 (100)/insert into t_20120512_a

View the usage of oracle tablespace

View oracle tablespace usage 1 select 2 B. file_id File ID, 3 B. tablespace_name tablespace name, 4 B. bytes/1024/1024 | 'mb' number of bytes, 5 (B. bytes-sum (nvl (. bytes, 0)/1024/1024 | 'mb' used, 6 sum (nvl (. bytes, 0)/1024/1024 | 'mb'

Oracle Date and Time Range Query

Oracle Date and Time Range Query SQL code/* Date and Time Range Query */---------- create Date and Time Test table ‑ www.2cto.com create table testdatetime (ID integer not null primary KEY, createdate CHAR (10) NULL, startdate date null, enddate

How to query duplicate data and delete duplicate records in oracle

For example, if you want to query records with identical names, ID card numbers, and addresses in a personnel table (table name: peosons), select p1. * from persons p1, persons p2 where p1.id <> p2.id and p1.cardid = p2.cardid and p1.pname =

Oracle-distinct usage

The Oracle-distinct usage distinct keyword is used to filter out redundant duplicate records and retain only one record, but it is often used to return the number of records that are not repeated, instead of using it to return all non-record values.

How to Understand & quot; Role authorization & quot; in Oracle requiring a user to log on again

In Oracle, how does one understand that "Role authorization" requires users to log on again? We often hear that in Oracle, users must log on again to obtain the permissions granted when the role is granted user permissions,How can this sentence be

Solve ora-12154 Problems

Solve the Problem of ora-12154 recently the project uses oralce 10g as the database, haven't touched for a long time, but vaguely remember that there is such a tool pl/SQL can be very convenient to operate the database. After pl/SQL is installed on

Analysis on small table cache to memory

Analysis of small table cache to memory the db_buffer_pool of oracle consists of three parts:Buffer_pool_defualtbuffer_pool_keepbuffer_pool_recycleIf you want to pin the table to the memory, that is, pin the table to the keep area. -- If the table

Frequently Asked Questions about oracle Installation

Oracle Installation Often see problem error A: ORA-24324: uninitialized effect handle ORA-24323: do not permit this value ORA-28547: Connector effect failed, perhaps Oracle Net Control Error and then "Ignore" and "interrupt" two buttons, points

Ora-12516: TNS: Listeners cannot find available handlers that meet protocol stack requirements

Ora-12516: TNS: Listeners cannot find available handlers that meet protocol stack requirements solution: processes reaches the upper limit, increase processes initialization parameter value SQL> select count (*) from v $ process; COUNT (*) ----------

Total Pages: 2147 1 .... 1871 1872 1873 1874 1875 .... 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.