Odoo POS session with more than 6000 enteries not closing - session

One of my clients did not close POS session for 1 year, due to some accounting issues, now it has more than 6000 pos orders and they want to close it.
I have tried to close and it took more than 12 hours and yet could not reconcile all entries and throw a time-out exception.
Is there a way to close the session manually, automatically, or using code or database queries?
Any help will be highly appreciated.
Thank you.
*Note odoo version 10.

Related

Is it normal that CockroachDB Serverless uses 500K RUs in 19 hours with no connections?

I set up a CockroachDB cluster for a school project. The only thing I have done is created 1 database with 1 table with 1 instance of 6 rows, but when I look at the dashboard I have already used 500K RUs. This seems like a huge amount to me, but I'm new to cloud databases so I don't know if this is normal behavior or not. I'm just worried I will run out of RUs without doing anything on the database. In this image the graph of the RU usage can be seen when there are no connections and when the hub wasn't opened. Can anyone maybe clarify this for me?
I think this explanation is more likely to be the reason:
https://www.cockroachlabs.com/docs/cockroachcloud/serverless-faqs.html#my-cluster-doesnt-have-any-current-co[…]ing-rus-when-there-are-no-connections
To summarize, the monitoring console uses up some RUs. So if you have a browser tab open with the console, it will use RUs even if you don't have any connections open.
As that FAQ says, this can use ~8 RUs per second. Over 19 hours, that is about ~540,000 RUs total. The solution is to not leave the console open.
On the stats point, note that auto-stats collection is only triggered when data in the table changes.
I believe what you're seeing is the Automatic Metric collection. You can read more about it on this FAQ.

oracle times out even when query is executed

We are using oracle 12.1 at work. We have issues with the oracle session timing out after the 15 minute mark even after executing sqls(select/update/insert/delete). The sqls are not long running(usually executes in less than 10 seconds)It does not do this consistently and it does not seem to matter which tool we use(SQLplus, PL/SQL, Advanced Query Tool, Powerbuilder).
Please note that the timeout is set to 15 mins and we cannot change this due to federal regulations. Any hints or suggestions would be greatly appreciated.

DB2 Query Timeout issue - How to handle

This may have been asked numerous times but none of them helped me so far.
Here's some history:
QueryTimeOut: 120 secs
Database:DB2
App Server: JBoss
Framework: Struts 2
I've one query which fetches around a million records. Yes, we need to fetch it all at once for caching purpose, sadly can't change the design.
Now, we've 2 servers Primary and DR. In DR server, the query is getting executed within 30 secs, so no timeout issue there. But in Primary serverit is getting time out due to some unknown reason. Sometimes it is getting timed out in rs.next() and sometime in pstmt.executeQuery().
All DB indexes, connection pool etc are in place. The explain plan shows, there are no full table scan as well.
My Analysis:
Since query is not the issue here, there might be issue in Network delay?
How can I get the root cause behind this timeout. How can I make sure there are no connection leakage? (Since all connection are closed properly).
Any way to recover from the timeout and again execute the query with increased timeout value for e.g: pstmt.setQueryTimeOut(600)? <- Note that this has no effect whatsoever. Don't know why..!
Appreciate any inputs.
Thank You!

Oracle: find Block session in the past

I had a problem with session of DB in the past.
My problem is i have some session of DB blocked in the past 4 day.
I want to trace why those session blocked to fixed it.
I tried many way and searching in Google to a achieved this purpose not no hope.
I looked up in table:
V$ACTIVE_SESSION_HISTORY, dba_hist_active_sess_history,sys.WRH$_ACTIVE_SESSION_HISTORY
But no clue.
Please help me solve it.
Thanks.
What have you tried? What, specifically, didn't work?
Are you saying that there are no rows in dba_hist_active_sess_history where blocking_session is non-NULL? At least during the time frame that you are interested in)? Are there other rows in the table for that time frame? If there are, why are you confident that the sessions were actually blocked in the database (which I assume here means waiting for a lock in the database)?

Server issue when searching Oracle database

I have a JEE application searching a large Oracle databse for data. The application uses JDBC to query the database.
The issue I am having is that the results page is unable to be displayed. I get the following error:
The connection to the server was reset while the page was loading.
This happens after 60 seconds. When I run the sql query manually using a SQL client, the results return in 3 seconds.
I have checked the logs and there are no exceptions that I can see.
Do any of you know the best way to find what is causing the connection to be reset? If I break my search date range into 2, and search both ranges individually, both return results. So it seems that it's the larger result set causing the issue.
Any help is welcome.
You are probably right about the larger result set. Often when running a query from a SQL client, you'll get the first set of records right away. If you page down to force pull of all records, then it bogs down. Perhaps your hitting the same issue with JDBC client where it takes more than 60 sec to get all the rows. I've not done JDBC in a while, but can you get it to stream the result set?
Regards,
Roger
All views are mine ...

Resources