RE: bind variables in VB using OO4O

2004-01-21 Thread Prem Khanna J
Hi John , i have mailed a doc . have a look at it . Regards, Prem. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Does anyone have examples of how to use bind variables in VB when using OO4O? John -- Please see the official ORACLE-L FAQ:

RE: Bind variables

2003-02-11 Thread Bahar, Rivaldi (BBASSI-CHQ)
(BBASSI-CHQ) To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] rivaldi.bahar@b cc: bassi.com Subject: RE: Bind variables Sent by: [EMAIL PROTECTED

RE: Bind variables

2003-02-11 Thread Stephen Lee
TMTOWTDI ... It's everywhere. All these choices. Why do they have to make life so complicated? I'm just curious: How do you turn if off? level(0)? -Original Message- Hi, in 8i etc, you can use dbms_system.set_ev(sid,serial#,10046,level(1-12),'') too. -- Please see

RE: Bind variables

2003-02-11 Thread Richard Ji
alter session set events '10046 trace name context off' or exec sys.dbms_system.set_ev(sid, serial#, 10046, 0, '') Richard Ji -Original Message- Sent: Tuesday, February 11, 2003 9:29 AM To: Multiple recipients of list ORACLE-L TMTOWTDI ... It's everywhere. All these choices. Why do

RE: Bind variables

2003-02-10 Thread Richard Ji
In order to see the actual value of bind variables, you need to use event 10046 with level 4. from your procedure do: alter session set events '10046 trace name context forever, level 4' Richard -Original Message- Sent: Monday, February 10, 2003 12:29 PM To: Multiple recipients of list

RE: Bind variables

2003-02-10 Thread Bahar, Rivaldi (BBASSI-CHQ)
It worked well from SQLplus but not from procedure. Did I miss something ? SQLcreate or replace procedure testtrace 2 as 3vempno varchar2(3); 4vempno1 varchar2(3); 5begin 6 ALTER Session SET EVENTS '10046 trace name context forever, level 4'; 7 select empno

RE: Bind variables

2003-02-10 Thread Stephen Lee
You might try playing around with the DBMS_SUPPORT package which is loaded with the dbmssupp.sql script in the rdbms/admin directory. dbms_support.start_trace_in_session(SID, SERIAL#, waits=false, binds=true) dbms_support.stop_trace_in_session(SID, SERIAL#). -Original Message- It

RE: Bind variables

2003-02-10 Thread Richard Ji
alter session is DDL, you should do: execute immediate 'ALTER Session SET EVENTS ''10046 trace name context forever, level 4'''; Richard -Original Message- Sent: Monday, February 10, 2003 2:54 PM To: Multiple recipients of list ORACLE-L It worked well from SQLplus but not from

RE: Bind variables

2003-02-10 Thread Mark Richard
: Bind variables Sent by: [EMAIL PROTECTED

RE: Bind variables

2003-02-10 Thread Pillai, Rajesh
Try exec sql alter session set events . Rajesh -Original Message- Sent: Monday, February 10, 2003 11:54 AM To: Multiple recipients of list ORACLE-L It worked well from SQLplus but not from procedure. Did I miss something ? SQLcreate or replace procedure testtrace 2

Re: Bind variables

2003-02-10 Thread Igor Neyman
Stephen, What version of oracle are you talking about? I didn't find dbms_support in 9.2. Igor Neyman, OCP DBA [EMAIL PROTECTED] - Original Message - To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] Sent: Monday, February 10, 2003 3:43 PM You might try playing around

RE: Bind variables

2003-02-10 Thread Stephen Lee
You have to load it by running the dbmssupp.sql script in the ?/rdbms/admin directory. -Original Message- From: Igor Neyman [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 3:44 PM To: Multiple recipients of list ORACLE-L Subject: Re: Bind variables Stephen, What

RE: Bind variables

2003-02-10 Thread Sony kristanto
Hi Bahar, If you run it on form you can find out the values by debugging that 'procedure testproc'. Rgrds, Sony -Original Message- From: Bahar, Rivaldi (BBASSI-CHQ) [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, February 11, 2003 12:29 AM To: Multiple recipients of list ORACLE-L

Re: RE: Bind variables

2003-02-10 Thread chao_ping
the dbmssupp.sql script in the ?/rdbms/admin directory. -Original Message- From: Igor Neyman [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 3:44 PM To: Multiple recipients of list ORACLE-L Subject: Re: Bind variables Stephen, What version of oracle are you talking

RE: bind variables

2002-09-09 Thread Vikas Khanna
Hi Nicoll, The importance of bind variables, to use in OLTP application is such that if we use, we survive else one or the other day we would feel uncomfortable over the performance issues and would repent over the scalability of the application. Yes, if we use bind variables, the parser does

RE: bind variables

2002-09-09 Thread Toepke, Kevin M
Yes. -Original Message- Sent: Friday, September 06, 2002 4:28 PM To: Multiple recipients of list ORACLE-L Kevin, Are you saying then, that by default, any static statement that is executed within PL/SQL will not have be re-parsed eg sp_proc(var in varchar2) as begin select

RE: bind variables

2002-09-08 Thread George . Leonard
If you want to show anyone the different in seed between using bind variables and not using them Tom Kyte's Expert one on one got a nice example, it is in chap 2 or 3 I think. George George Leonard Oracle Database Administrator Dimension Data

RE: bind variables

2002-09-06 Thread Toepke, Kevin M
Actually its easy. Any variable declared in PL/SQL and referenced in a non-dynamic SQL statement is a bind variable. In the following example (#1), some_var is an output bind-variable and other_var is a input bind variable. PL/SQL does manipulation on the statement and will send something like

Re: bind variables

2002-09-06 Thread Philip Douglass
You probably already are. You have to go to a lot of trouble to avoid using bind variables in PL/SQL. (I'm too lazy^H^H^H^H busy to find the doc link right now.) -- Philip - Original Message - To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] Sent: Friday, September 06, 2002

RE: bind variables

2002-09-06 Thread mkb
Kevin, Are you saying then, that by default, any static statement that is executed within PL/SQL will not have be re-parsed eg sp_proc(var in varchar2) as begin select last_name from emp where last_name = var; end; If that's the case, I wont have to change much code. mkb --- Toepke,

RE: Bind Variables in VB

2002-07-24 Thread Miller, Jay
Someone pointed me towards these articles when I asked this question a week or two ago: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/ mdobjparameter.asp http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/ mdmscadoobjmod.asp -Original

RE: Bind Variables

2001-10-22 Thread Kimberly Smith
What percentage are you estimating? Have you played with that? -Original Message- Sent: Saturday, October 20, 2001 10:55 AM To: Multiple recipients of list ORACLE-L I have always used the CBO and statistics are generated fairly regularly. I use the analyze table estimate statistics

Re: Bind Variables

2001-10-21 Thread Greg Moore
Danny, I'll bet my morning cheese danish that when you changed the SQL from using literals to bind variables, the execution plan changed. Just pull each SQL statement and run it in SQL*Plus, one version of it with literals and the other with bind variables. The difference in your web page

RE: Bind Variables

2001-10-21 Thread A. Bardeen
Danny, Have you tried generating explain plans with and without bind variables and comparing them? That should help you identify if it's truly related to bind variables. What are the wait events for the queries that are running slower? HTH, -- Anita --- Danny Hughes [EMAIL PROTECTED] wrote:

RE: Bind variables v. cursor_sharing = FORCE

2001-10-20 Thread Steve Adams
Hi Greg and list, I'm not convinced of John's conclusion that 'cursor_sharing' = FORCE outperforms bind variables. Some months ago I tried to reproduce John's results and was not able to, despite trying several different variations on the tests. Tom Kyte claims that 'cursor_sharing' is about

RE: Bind Variables

2001-10-20 Thread Danny Hughes
I have always used the CBO and statistics are generated fairly regularly. I use the analyze table estimate statistics which should not generate histogram information. I have even used the INDEX, FIRST_ROWS, and ALL_ROWS hints. None made a difference. I regenerated the statistics on all

Re: Bind Variables

2001-10-19 Thread Cherie_Machler
Danny, Were you using histograms? Histograms do not work on bind variables, they only work on literals. I'm sure others will have more to say on the topic but that is one tidbit that I do have experience with on bind variables. Cherie Machler Oracle DBA Gelco Information Network

Re: Bind Variables

2001-10-19 Thread Val_Gamerman/Victoria_Financial . VICTORIA_FINANCIAL
Danny, It sounds like when you ...moved to bind variables... you did two things: 1. Switched to using CBO 2. Changed your application to take advantage of the bind variables. I have never heard of switching to bind variables making things slower (and can not imagine when it would make it so

Re: Bind Variables

2001-10-19 Thread Val_Gamerman/Victoria_Financial . VICTORIA_FINANCIAL
Danny, It sounds like when you ...moved to bind variables... you did two things: 1. Switched to using CBO 2. Changed your application to take advantage of the bind variables. I have never heard of switching to bind variables making things slower (and can not imagine when it would make it so

Re: Bind Variables

2001-10-19 Thread Val_Gamerman/Victoria_Financial . VICTORIA_FINANCIAL
Danny, It sounds like when you ...moved to bind variables... you did two things: 1. Switched to using CBO 2. Changed your application to take advantage of the bind variables. I have never heard of switching to bind variables making things slower (and can not imagine when it would make it so

RE: Bind Variables

2001-10-19 Thread Kimberly Smith
I have heard of it. Its a concern. However, with hints you can solve some of your problems. And then you could use Stored Outlines and get it stable. And then life will be groovy. -Original Message- [mailto:[EMAIL PROTECTED]] Sent: Friday, October 19, 2001 3:45 PM To: Multiple

Re: Bind Variables

2001-10-19 Thread Jared . Still
Danny, Bind variables are nearly always better than literals in your SQL. The one exception I can think of is if you are making using of histograms, but those aren't often used in OLTP type apps. Without sitting down and analyzing what was taking place, all anyone can do is guess. If you