dbTalk Databases Forums  

Re: writing records while doing select.

comp.databases.oracle.server comp.databases.oracle.server


Discuss Re: writing records while doing select. in the comp.databases.oracle.server forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
sybrandb
 
Posts: n/a

Default Re: writing records while doing select. - 04-26-2006 , 03:11 AM






Why? Please use statspack or query v$sql after the statement has
completed.

Please do not crosspost to every group you can spell, especially if
they don't exist anymore.

--
Sybrand Bakker
Senior Oracle DBA


Reply With Quote
  #2  
Old   
Eitan
 
Posts: n/a

Default Re: writing records while doing select. - 04-26-2006 , 09:09 AM






I have reported by a report tool (crystal), which has to run a single sql,
so everything should be in the sql statement.
(It cannot perform otherwise, and I would be glad if it does).

I don't know about statspack nor query v$sql.
I need some sample codes, please.

Thanks )



Reply With Quote
  #3  
Old   
Sybrand Bakker
 
Posts: n/a

Default Re: writing records while doing select. - 04-26-2006 , 11:23 AM



On Wed, 26 Apr 2006 16:09:28 +0200, "Eitan" <nospam (AT) nospam_please (DOT) com>
wrote:

Quote:
I have reported by a report tool (crystal), which has to run a single sql,
so everything should be in the sql statement.
(It cannot perform otherwise, and I would be glad if it does).

I don't know about statspack nor query v$sql.
I need some sample codes, please.

Thanks )

Hire a consultant. We don't do your work, especially not for free. We
don't get your wage for doing your work, don't we?

--
Sybrand Bakker, Senior Oracle DBA


Reply With Quote
  #4  
Old   
Eitan
 
Posts: n/a

Default Re: writing records while doing select. - 05-01-2006 , 10:47 AM



Oh ...
Newsgroup should be the best way to learn,
if there are somewhere good people to learn from
(it can be any).
I am also myself send my answers and help peoples arround the internet's
newsgroups
for no fee.

All I want is a simple way to write on the db, via select statement + sample
code, please.

Thanks



Reply With Quote
  #5  
Old   
AT
 
Posts: n/a

Default Re: writing records while doing select. - 05-01-2006 , 12:18 PM



A session can only do one thing at once, unless you thread a call to
another method that is posted when the select completes. You would
have to write your procedure as an external procedure, or better yet, a
Java stored procedure in the database that your Crytsal Report invokes
as its data source. You could also use DBM_JOBS as your thread source.
That sounds really ugly, though. Talk about re-inventing the wheel...

Why not just turn on trace? It captures the exact time statement is
run in microseconds relative to an arbitrary epoch. You can always
parse the trace file later and do the math to get the difference (and
associated run time).

Regards,

Steve


Reply With Quote
  #6  
Old   
Daniel Fink
 
Posts: n/a

Default Re: writing records while doing select. - 05-01-2006 , 12:47 PM



Read up on v$session_longops. Do some testing, determine what is
good/bad/ugly about it.

That's a good starting point.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.