Unix Technical Forum

concurrent access

This is a discussion on concurrent access within the Oracle Database forums, part of the Database Server Software category; --> When trying to execute select * from tablename from two differnt sql plus instances at the same time ( ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-24-2008, 04:46 PM
sk
 
Posts: n/a
Default concurrent access

When trying to execute select * from tablename from two differnt sql plus
instances at the same time
( the same user ) both of sql plus stop working and don't get any response
until i restart the sql plus.
Why ?

sk


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-24-2008, 04:47 PM
Jim Kennedy
 
Posts: n/a
Default Re: concurrent access


"sk" <sk@dkfjd.com> wrote in message news:AnG%e.2077$z26.500@edtnps84...
> When trying to execute select * from tablename from two differnt sql plus
> instances at the same time
> ( the same user ) both of sql plus stop working and don't get any response
> until i restart the sql plus.
> Why ?
>
> sk
>
>

Is the table a view with an order by? If so maybe it is taking a long time
to sort the records and send you results. You shouldn't have any problems
with concurrent access. What happens if you select from just one sqlplus
session.
Jim


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-24-2008, 04:47 PM
sk
 
Posts: n/a
Default Re: concurrent access

Jim

Thanks for replay.

> Is the table a view with an order by?

No I am not specifying any "orderby"
This table is the view with about 30000 rows and( with about 5 fields
varchar nothing special).


>What happens if you select from just one sqlplus
> session.

I don't have any problem. Just it takes time to display everything.


The thing is we met similar problem with the application we are developing
in JAVA.
what it does is execuing following two lines I am accessing throught jdbc

select count(*) from thistableview
select * from thistableview

If running only one instance of the application, we don't have any problem.
However, when two users trying to do the same thing at the same time.
Sometimes we get (OALL8 is in an inconsistent state) error.

Any clue?

SK



"Jim Kennedy" <kennedy-downwithspammersfamily@attbi.net> wrote in message
news:2OudnQDxFMicY6LeRVn-tg@comcast.com...
>
> "sk" <sk@dkfjd.com> wrote in message news:AnG%e.2077$z26.500@edtnps84...
> > When trying to execute select * from tablename from two differnt sql

plus
> > instances at the same time
> > ( the same user ) both of sql plus stop working and don't get any

response
> > until i restart the sql plus.
> > Why ?
> >
> > sk
> >
> >

> Is the table a view with an order by? If so maybe it is taking a long

time
> to sort the records and send you results. You shouldn't have any problems
> with concurrent access. What happens if you select from just one sqlplus
> session.
> Jim
>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-24-2008, 04:47 PM
Sybrand Bakker
 
Posts: n/a
Default Re: concurrent access

On Sun, 02 Oct 2005 19:25:03 GMT, "sk" <sk@dkfjd.com> wrote:

>If running only one instance of the application, we don't have any problem.
>However, when two users trying to do the same thing at the same time.
>Sometimes we get (OALL8 is in an inconsistent state) error.
>
>Any clue?


Looks like your server doesn't have enough RAM and/or CPU, and is page
faulting heavily, because you have cranked up the memory to 'tune' the
database.

--
Sybrand Bakker, Senior Oracle DBA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-24-2008, 04:47 PM
sk
 
Posts: n/a
Default Re: concurrent access


>OALL8 is in an inconsistent state

So this tells I don't have enought memory/or CPU?

For 30000 records what kind of CPU and RAM you are
expecting? We have P4 with 1 GB RAM for test machines.

SGA configured are the following
Share Pool 64MB
Buffer Cache 24MB
Large 8
Java Pool 32
Total SGA 128


SK

"Sybrand Bakker" <postbus@sybrandb.demon.nl> wrote in message
news:rlh0k1h9264qc7q12f0ui1jd967iafugv5@4ax.com...
> On Sun, 02 Oct 2005 19:25:03 GMT, "sk" <sk@dkfjd.com> wrote:
>
> >If running only one instance of the application, we don't have any

problem.
> >However, when two users trying to do the same thing at the same time.
> >Sometimes we get (OALL8 is in an inconsistent state) error.
> >
> >Any clue?

>
> Looks like your server doesn't have enough RAM and/or CPU, and is page
> faulting heavily, because you have cranked up the memory to 'tune' the
> database.
>
> --
> Sybrand Bakker, Senior Oracle DBA



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-24-2008, 04:47 PM
Jim Kennedy
 
Posts: n/a
Default Re: concurrent access


"sk" <sk@dkfjd.com> wrote in message
news:rPZ%e.287729$tt5.194598@edtnps90...
>
> >OALL8 is in an inconsistent state

> So this tells I don't have enought memory/or CPU?
>
> For 30000 records what kind of CPU and RAM you are
> expecting? We have P4 with 1 GB RAM for test machines.
>
> SGA configured are the following
> Share Pool 64MB
> Buffer Cache 24MB
> Large 8
> Java Pool 32
> Total SGA 128
>
>
> SK
>
> "Sybrand Bakker" <postbus@sybrandb.demon.nl> wrote in message
> news:rlh0k1h9264qc7q12f0ui1jd967iafugv5@4ax.com...
> > On Sun, 02 Oct 2005 19:25:03 GMT, "sk" <sk@dkfjd.com> wrote:
> >
> > >If running only one instance of the application, we don't have any

> problem.
> > >However, when two users trying to do the same thing at the same time.
> > >Sometimes we get (OALL8 is in an inconsistent state) error.
> > >
> > >Any clue?

> >
> > Looks like your server doesn't have enough RAM and/or CPU, and is page
> > faulting heavily, because you have cranked up the memory to 'tune' the
> > database.
> >
> > --
> > Sybrand Bakker, Senior Oracle DBA

>
>


What is the exact error message?(including error number)
Jim


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-24-2008, 04:47 PM
sk
 
Posts: n/a
Default Re: concurrent access

I only get this error.

OALL8 is in an inconsistent state

this is from oracle or jdbc?

Sk



"Jim Kennedy" <kennedy-downwithspammersfamily@attbi.net> wrote in message
news:uuqdnePpPaG6BN3eRVn-jw@comcast.com...
>
> "sk" <sk@dkfjd.com> wrote in message
> news:rPZ%e.287729$tt5.194598@edtnps90...
>>
>> >OALL8 is in an inconsistent state

>> So this tells I don't have enought memory/or CPU?
>>
>> For 30000 records what kind of CPU and RAM you are
>> expecting? We have P4 with 1 GB RAM for test machines.
>>
>> SGA configured are the following
>> Share Pool 64MB
>> Buffer Cache 24MB
>> Large 8
>> Java Pool 32
>> Total SGA 128
>>
>>
>> SK
>>
>> "Sybrand Bakker" <postbus@sybrandb.demon.nl> wrote in message
>> news:rlh0k1h9264qc7q12f0ui1jd967iafugv5@4ax.com...
>> > On Sun, 02 Oct 2005 19:25:03 GMT, "sk" <sk@dkfjd.com> wrote:
>> >
>> > >If running only one instance of the application, we don't have any

>> problem.
>> > >However, when two users trying to do the same thing at the same time.
>> > >Sometimes we get (OALL8 is in an inconsistent state) error.
>> > >
>> > >Any clue?
>> >
>> > Looks like your server doesn't have enough RAM and/or CPU, and is page
>> > faulting heavily, because you have cranked up the memory to 'tune' the
>> > database.
>> >
>> > --
>> > Sybrand Bakker, Senior Oracle DBA

>>
>>

>
> What is the exact error message?(including error number)
> Jim
>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-24-2008, 04:47 PM
Jim Kennedy
 
Posts: n/a
Default Re: concurrent access


"sk" <sdkfjksd@dkfjd.com> wrote in message
news:mg10f.323336$on1.273371@clgrps13...
> I only get this error.
>
> OALL8 is in an inconsistent state
>
> this is from oracle or jdbc?
>
> Sk
>
>
>
> "Jim Kennedy" <kennedy-downwithspammersfamily@attbi.net> wrote in message
> news:uuqdnePpPaG6BN3eRVn-jw@comcast.com...
> >
> > "sk" <sk@dkfjd.com> wrote in message
> > news:rPZ%e.287729$tt5.194598@edtnps90...
> >>
> >> >OALL8 is in an inconsistent state
> >> So this tells I don't have enought memory/or CPU?
> >>
> >> For 30000 records what kind of CPU and RAM you are
> >> expecting? We have P4 with 1 GB RAM for test machines.
> >>
> >> SGA configured are the following
> >> Share Pool 64MB
> >> Buffer Cache 24MB
> >> Large 8
> >> Java Pool 32
> >> Total SGA 128
> >>
> >>
> >> SK
> >>
> >> "Sybrand Bakker" <postbus@sybrandb.demon.nl> wrote in message
> >> news:rlh0k1h9264qc7q12f0ui1jd967iafugv5@4ax.com...
> >> > On Sun, 02 Oct 2005 19:25:03 GMT, "sk" <sk@dkfjd.com> wrote:
> >> >
> >> > >If running only one instance of the application, we don't have any
> >> problem.
> >> > >However, when two users trying to do the same thing at the same

time.
> >> > >Sometimes we get (OALL8 is in an inconsistent state) error.
> >> > >
> >> > >Any clue?
> >> >
> >> > Looks like your server doesn't have enough RAM and/or CPU, and is

page
> >> > faulting heavily, because you have cranked up the memory to 'tune'

the
> >> > database.
> >> >
> >> > --
> >> > Sybrand Bakker, Senior Oracle DBA
> >>
> >>

> >
> > What is the exact error message?(including error number)
> > Jim
> >
> >

>
>

Probably a JDBC error. If you do it in sqlplus what is the error?
Jim


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-24-2008, 04:47 PM
sk
 
Posts: n/a
Default Re: concurrent access

I don't get anything. If there is an error where can I see it.
it will be displayed in the sqlplus or log?


"Jim Kennedy" <kennedy-downwithspammersfamily@attbi.net> wrote in message
news:IfmdnS_7cYL8LN3eRVn-tA@comcast.com...
>
> "sk" <sdkfjksd@dkfjd.com> wrote in message
> news:mg10f.323336$on1.273371@clgrps13...
>> I only get this error.
>>
>> OALL8 is in an inconsistent state
>>
>> this is from oracle or jdbc?
>>
>> Sk
>>
>>
>>
>> "Jim Kennedy" <kennedy-downwithspammersfamily@attbi.net> wrote in message
>> news:uuqdnePpPaG6BN3eRVn-jw@comcast.com...
>> >
>> > "sk" <sk@dkfjd.com> wrote in message
>> > news:rPZ%e.287729$tt5.194598@edtnps90...
>> >>
>> >> >OALL8 is in an inconsistent state
>> >> So this tells I don't have enought memory/or CPU?
>> >>
>> >> For 30000 records what kind of CPU and RAM you are
>> >> expecting? We have P4 with 1 GB RAM for test machines.
>> >>
>> >> SGA configured are the following
>> >> Share Pool 64MB
>> >> Buffer Cache 24MB
>> >> Large 8
>> >> Java Pool 32
>> >> Total SGA 128
>> >>
>> >>
>> >> SK
>> >>
>> >> "Sybrand Bakker" <postbus@sybrandb.demon.nl> wrote in message
>> >> news:rlh0k1h9264qc7q12f0ui1jd967iafugv5@4ax.com...
>> >> > On Sun, 02 Oct 2005 19:25:03 GMT, "sk" <sk@dkfjd.com> wrote:
>> >> >
>> >> > >If running only one instance of the application, we don't have any
>> >> problem.
>> >> > >However, when two users trying to do the same thing at the same

> time.
>> >> > >Sometimes we get (OALL8 is in an inconsistent state) error.
>> >> > >
>> >> > >Any clue?
>> >> >
>> >> > Looks like your server doesn't have enough RAM and/or CPU, and is

> page
>> >> > faulting heavily, because you have cranked up the memory to 'tune'

> the
>> >> > database.
>> >> >
>> >> > --
>> >> > Sybrand Bakker, Senior Oracle DBA
>> >>
>> >>
>> >
>> > What is the exact error message?(including error number)
>> > Jim
>> >
>> >

>>
>>

> Probably a JDBC error. If you do it in sqlplus what is the error?
> Jim
>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-24-2008, 04:47 PM
Jim Kennedy
 
Posts: n/a
Default Re: concurrent access


"sk" <sdkfjksd@dkfjd.com> wrote in message
news:7n20f.323344$on1.256859@clgrps13...
> I don't get anything. If there is an error where can I see it.
> it will be displayed in the sqlplus or log?
>
>
> "Jim Kennedy" <kennedy-downwithspammersfamily@attbi.net> wrote in message
> news:IfmdnS_7cYL8LN3eRVn-tA@comcast.com...
> >
> > "sk" <sdkfjksd@dkfjd.com> wrote in message
> > news:mg10f.323336$on1.273371@clgrps13...
> >> I only get this error.
> >>
> >> OALL8 is in an inconsistent state
> >>
> >> this is from oracle or jdbc?
> >>
> >> Sk
> >>
> >>
> >>
> >> "Jim Kennedy" <kennedy-downwithspammersfamily@attbi.net> wrote in

message
> >> news:uuqdnePpPaG6BN3eRVn-jw@comcast.com...
> >> >
> >> > "sk" <sk@dkfjd.com> wrote in message
> >> > news:rPZ%e.287729$tt5.194598@edtnps90...
> >> >>
> >> >> >OALL8 is in an inconsistent state
> >> >> So this tells I don't have enought memory/or CPU?
> >> >>
> >> >> For 30000 records what kind of CPU and RAM you are
> >> >> expecting? We have P4 with 1 GB RAM for test machines.
> >> >>
> >> >> SGA configured are the following
> >> >> Share Pool 64MB
> >> >> Buffer Cache 24MB
> >> >> Large 8
> >> >> Java Pool 32
> >> >> Total SGA 128
> >> >>
> >> >>
> >> >> SK
> >> >>
> >> >> "Sybrand Bakker" <postbus@sybrandb.demon.nl> wrote in message
> >> >> news:rlh0k1h9264qc7q12f0ui1jd967iafugv5@4ax.com...
> >> >> > On Sun, 02 Oct 2005 19:25:03 GMT, "sk" <sk@dkfjd.com> wrote:
> >> >> >
> >> >> > >If running only one instance of the application, we don't have

any
> >> >> problem.
> >> >> > >However, when two users trying to do the same thing at the same

> > time.
> >> >> > >Sometimes we get (OALL8 is in an inconsistent state) error.
> >> >> > >
> >> >> > >Any clue?
> >> >> >
> >> >> > Looks like your server doesn't have enough RAM and/or CPU, and is

> > page
> >> >> > faulting heavily, because you have cranked up the memory to 'tune'

> > the
> >> >> > database.
> >> >> >
> >> >> > --
> >> >> > Sybrand Bakker, Senior Oracle DBA
> >> >>
> >> >>
> >> >
> >> > What is the exact error message?(including error number)
> >> > Jim
> >> >
> >> >
> >>
> >>

> > Probably a JDBC error. If you do it in sqlplus what is the error?
> > Jim
> >
> >

>
>

Stop top posting, it makes it hard to read. It should be in sqlplus.
Jim


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:13 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com