|
|
Improved sequence management
What does this mean?
How would I use a sequence value?
A new features of Oracle 11g will bypass DML (sequence.nextval) and allow
normal assignments on sequence values.
|
|
0
|
|
|
|
Reply
|
paddy_nyr
|
11/9/2010 7:41:14 PM |
|
On Nov 9, 2:41=A0pm, "paddy_nyr" <philpott.patr...@gmail.com> wrote:
> What does this mean?
>
> How would I use a sequence value?
>
> A new features of Oracle 11g will bypass DML (sequence.nextval) and allow
> normal assignments on sequence values.
Old way:
declare
p_seqval number;
begin
select myseq.nextval into p_seqval from dual;
end;
/
New way:
declare
p_seqval number;
begin
p_seqval :=3D myseq.nextval;
end;
/
David Fitzjarrell
|
|
0
|
|
|
|
Reply
|
ddf
|
11/9/2010 8:22:21 PM
|
|
On Tue, 09 Nov 2010 14:41:14 -0500, paddy_nyr wrote:
> What does this mean?
>
> How would I use a sequence value?
>
> A new features of Oracle 11g will bypass DML (sequence.nextval) and
> allow normal assignments on sequence values.
This is what it means:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing
options
SQL> create sequence test_seq start with 1 cache 2048;
Sequence created.
Elapsed: 00:00:00.09
SQL> declare
2 a number(10,0);
3 begin
4 a:=test_seq.nextval;
5 dbms_output.put_line('A is:'||a);
6 end;
7 /
A is:1
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.07
SQL> /
A is:2
SQL> save /tmp/1
Created file /tmp/1.sql
SQL> connect scott/tiger@stag3
Connected.
SQL> create sequence test_seq start with 1 cache 2048;
Sequence created.
Elapsed: 00:00:00.15
SQL> @/tmp/1
a:=test_seq.nextval;
*
ERROR at line 4:
ORA-06550: line 4, column 13:
PLS-00357: Table,View Or Sequence reference 'TEST_SEQ.NEXTVAL' not
allowed in
this context
ORA-06550: line 4, column 1:
PL/SQL: Statement ignored
Elapsed: 00:00:00.10
SQL> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
PL/SQL Release 10.2.0.5.0 - Production
CORE 10.2.0.5.0 Production
TNS for Linux: Version 10.2.0.5.0 - Production
NLSRTL Version 10.2.0.5.0 - Production
Elapsed: 00:00:00.13
--
http://mgogala.byethost5.com
|
|
0
|
|
|
|
Reply
|
Mladen
|
11/9/2010 9:37:55 PM
|
|
|
2 Replies
205 Views
(page loaded in 0.05 seconds)
Similiar Articles: oracle solaris tns error - comp.unix.solarisHi, I have installed Oracle 10g on Solaris 10X86. Install appears to have gone okay but when I type sqlplus the prompt asks me for the username/pwd Wh... New computer justification - comp.cad.solidworksI just need to provide him some ammunition with management and IS to help speed up the ... realized that it wasn't really going to tell me what I needed to know, in order to ... Poker hand evaluator - comp.lang.javascriptAltogether, your suggestions have improved speed by about 30 %, and the ... Improved sequence management - comp.databases.oracle.server ... Poker hand evaluator - comp ... Part Numbering Systems for CAD management. - comp.cad.solidworks ...... Key Former We are trying to come up with an improved ... number family, followed by a four number sequence ... Part Numbering Systems for CAD management. - comp.cad ... My Font Manager Wishlist - comp.fonts... like to be able to protect those fonts that have to be installed in order ... Improve memory management so that very large images can be ... IrfanView Help • My Videos ... K&R Exercise 1-21: entab - comp.lang.cHow do you all think it might be improved? Thanks. /* +AMDG */ /* * A program that replaces a sequence of ... FOR Financial Management- Theory and Practice 12 ... Tools for managing IP/MPLS network - comp.dcom.sys.cisco ...multicast testing on Solaris - comp.unix.solaris Hi all, In order to test ... MPLS Core Network Performance Management | InfoVista Improve Network Performance and Capacity ... Non-Directed Graphing in Matlab - comp.soft-sys.matlabSolutions manual to Operations Management 10e William J. Stevenson ..... College ... why first order filter have slope 6db/octave - comp.dsp... clear that the ... optimizing huffman coding (especially for natural language) - comp ...Using bigrams will give you improved compression but at ... wrote: > Hi, >> to find the exact cut points in order ... have a huge F90 code composed by several ... management ... Ada in Boeing 787 - comp.lang.ada... half-dozen seats or more might have been out of order. The cynic in me pictures management types ... new in flight entertainment system with a much improved map ... Amazon Adds A New Search Method, Improved Order Management, And ...Amazon Adds A New Search Method, Improved Order Management, And More To Their Mobile App. BY Casey Tschida on Wed September 07th, 2011 amazon amazon mobile Order Management, Order Fulfillment, Order Processing, Billing ...A best-in-class order management process results in a faster path to recognized revenue, improved operational efficiencies, and higher customer satisfaction and renewals. 7/24/2012 6:27:35 AM
|
|
|
|
|
|
|
|
|